TotalAbsAngleTraversedFeature Class Reference

The TotalAbsAngleTraversedFeature class calculates the total absolute angle traversed around the gesture. More...

#include <standardfeatures.h>

Inheritance diagram for TotalAbsAngleTraversedFeature:

StlFeatureInterface List of all members.

Public Member Functions

virtual const std::string & key () const
virtual const std::string & title () const
virtual const std::string & description () const
StlFeatureResultT calcValue (const StlStroke &stroke, bool *ok=0) const

Static Public Member Functions

static const std::string & classKey ()
static const std::string & classTitle ()
static const std::string & classDescription ()
static StlFeatureResultT classCalcValue (const StlStroke &stroke, bool *ok=0)

Detailed Description

The TotalAbsAngleTraversedFeature class calculates the total absolute angle traversed around the gesture.

From: Rubine, D. Specifying Gestures by Example. Computer Graphics 25, 4 (July 1991), 329-337. Page 333:

dX_p = x_p+1 - x_p
dY_p = y_p+1 - y_p
theta_p = arctan( (dX_p  dY_p-1 - dX_p-1  dY_p)
                  /(dX_p  dX_p-1 + dY_p  dY_p-1) )
f10 = sum{ p=1, P-2, abs(theta_p) }


Member Function Documentation

static const std::string& TotalAbsAngleTraversedFeature::classKey (  )  [inline, static]

virtual const std::string& TotalAbsAngleTraversedFeature::key (  )  const [inline, virtual]

Implements StlFeatureInterface.

static const std::string& TotalAbsAngleTraversedFeature::classTitle (  )  [inline, static]

virtual const std::string& TotalAbsAngleTraversedFeature::title (  )  const [inline, virtual]

Implements StlFeatureInterface.

const std::string & TotalAbsAngleTraversedFeature::classDescription (  )  [static]

virtual const std::string& TotalAbsAngleTraversedFeature::description (  )  const [inline, virtual]

Implements StlFeatureInterface.

StlFeatureResultT TotalAbsAngleTraversedFeature::classCalcValue ( const StlStroke stroke,
bool *  ok = 0 
) [static]

StlFeatureResultT TotalAbsAngleTraversedFeature::calcValue ( const StlStroke stroke,
bool *  ok = 0 
) const [inline, virtual]

Implements StlFeatureInterface.


The documentation for this class was generated from the following files:
Generated on Mon Jul 30 09:46:53 2007 for Digest by  doxygen 1.5.2