#include <stlfeaturewrapper.h>
Inheritance diagram for StlFeatureWrapper:

Public Member Functions | |
| StlFeatureWrapper (StlFeatureInterface *feature, QObject *parent=0) | |
| virtual | ~StlFeatureWrapper () |
| virtual QByteArray | key () const |
| virtual QString | title () const |
| virtual QString | description () const |
| virtual FeatureResultT | calcValue (const Stroke &stroke, bool *ok=0) const |
| StlFeatureInterface * | feature () const |
| StlFeatureWrapper::StlFeatureWrapper | ( | StlFeatureInterface * | feature, | |
| QObject * | parent = 0 | |||
| ) |
Constructs a new C++ STL feature extractor wrapper.
Note: The new object takes ownership of the feature and hence becomes responsible for the deletion of it.
Note: This asserts that the feature is non-null. This is also asserted by almost all of this class's methods.
| StlFeatureWrapper::~StlFeatureWrapper | ( | ) | [virtual] |
| QByteArray StlFeatureWrapper::key | ( | ) | const [virtual] |
Returns the feature's "key". This is used for identifying features for purposes such as recording the types that a trained recogniser depends on and also for use in "factories".
This string should only contain lower-case characters. All string matching performed with it will be case-insensitive.
Note: This does not return a (const) reference for the sake of "wrappers" (e.g. JavaFeatureWrapper and StlFeatureWrapper), which may have to convert the string from a different structure, usually with the use of a temporary variable. Qt's implicit sharing will help performance.
Implements AbstractFeature.
| QString StlFeatureWrapper::title | ( | ) | const [virtual] |
Returns the feature's "title". This is used in the application's user interface to label the feature in a human friendly / readable manner.
Note: This does not return a (const) reference for the sake of "wrappers" (e.g. JavaFeatureWrapper and StlFeatureWrapper), which may have to convert the string from a different structure, usually with the use of a temporary variable. Qt's implicit sharing will help performance.
Implements AbstractFeature.
| QString StlFeatureWrapper::description | ( | ) | const [virtual] |
Returns the feature's "description". This is used in the application's user interface to provide more information to the user about the feature.
A subset of HTML may be used, such as to make the text bold and change its colour, size and alignment. Please see the Qt documentation for more details on its HTML support.
Note: This does not return a (const) reference for the sake of "wrappers" (e.g. JavaFeatureWrapper and StlFeatureWrapper), which may have to convert the string from a different structure, usually with the use of a temporary variable. Qt's implicit sharing will help performance.
Implements AbstractFeature.
| FeatureResultT StlFeatureWrapper::calcValue | ( | const Stroke & | stroke, | |
| bool * | ok = 0 | |||
| ) | const [virtual] |
Implements AbstractFeature.
| StlFeatureInterface * StlFeatureWrapper::feature | ( | ) | const |
1.5.2