SHAPER
9.13.0
|
Expression for calculated values. More...
Public Member Functions | |
virtual | ~ModelAPI_Expression () |
To virtually destroy the fields of successors. More... | |
virtual bool | isInitialized () |
Returns true if attribute was initialized by some value. More... | |
virtual void | setInitialized () |
Makes attribute initialized. More... | |
virtual void | setText (const std::wstring &theText)=0 |
Sets the text of this Expression. More... | |
virtual std::wstring | text () const =0 |
Returns the text of this Expression. More... | |
virtual void | setInvalid (const bool theFlag)=0 |
Allows to set expression (text) as invalid (by the parameters listener) More... | |
virtual bool | isInvalid ()=0 |
Returns true if text is invalid. More... | |
virtual void | setError (const std::string &theError)=0 |
Allows to set expression (text) error (by the parameters listener) More... | |
virtual std::string | error ()=0 |
Returns an expression error. More... | |
virtual void | setUsedParameters (const std::set< std::wstring > &theUsedParameters)=0 |
Defines the used parameters (by the parameters listener) More... | |
virtual std::set< std::wstring > | usedParameters () const =0 |
Returns the used parameters. More... | |
Static Public Member Functions | |
static bool | isVariable (const std::string &theString) |
Returns True if the given string can be defined as a name of an expression variable. More... | |
static bool | isVariable (const std::wstring &theString) |
Returns True if the given string can be defined as a name of an expression variable. More... | |
Protected Member Functions | |
ModelAPI_Expression () | |
Objects are created for features automatically. More... | |
virtual void | reinit ()=0 |
Reinitializes the internal state of the attribute (may be needed on undo/redo, abort, etc) More... | |
virtual void | reset () |
Resets attribute to deafult state. More... | |
Protected Attributes | |
bool | myIsInitialized |
is some value assigned to this attribute More... | |
Friends | |
class | Model_Data |
class | Model_AttributeDouble |
class | Model_AttributeInteger |
class | GeomData_Point |
class | GeomData_Point2D |
Expression for calculated values.
|
virtual |
To virtually destroy the fields of successors.
|
protected |
Objects are created for features automatically.
|
virtual |
Returns true if attribute was initialized by some value.
|
virtual |
Makes attribute initialized.
|
pure virtual |
Sets the text of this Expression.
Implemented in Model_ExpressionInteger, Model_ExpressionDouble, and Model_Expression.
|
pure virtual |
Returns the text of this Expression.
Implemented in Model_ExpressionInteger, Model_ExpressionDouble, and Model_Expression.
|
pure virtual |
Allows to set expression (text) as invalid (by the parameters listener)
Implemented in Model_ExpressionInteger, and Model_ExpressionDouble.
|
pure virtual |
Returns true if text is invalid.
Implemented in Model_ExpressionInteger, and Model_ExpressionDouble.
|
pure virtual |
Allows to set expression (text) error (by the parameters listener)
Implemented in Model_ExpressionInteger, Model_ExpressionDouble, and Model_Expression.
|
pure virtual |
Returns an expression error.
Implemented in Model_ExpressionInteger, Model_ExpressionDouble, and Model_Expression.
|
pure virtual |
Defines the used parameters (by the parameters listener)
Implemented in Model_ExpressionInteger, Model_ExpressionDouble, and Model_Expression.
|
pure virtual |
Returns the used parameters.
Implemented in Model_ExpressionInteger, Model_ExpressionDouble, and Model_Expression.
|
static |
Returns True if the given string can be defined as a name of an expression variable.
|
static |
Returns True if the given string can be defined as a name of an expression variable.
|
protectedpure virtual |
Reinitializes the internal state of the attribute (may be needed on undo/redo, abort, etc)
Implemented in Model_ExpressionInteger, and Model_ExpressionDouble.
|
inlineprotectedvirtual |
Resets attribute to deafult state.
|
protected |
is some value assigned to this attribute