Implementation of ModelAPI_ExpressionDouble.
More...
|
virtual void | setText (const std::wstring &theText) |
| Sets the text of this Expression. More...
|
|
virtual std::wstring | text () const |
| Returns the text of this Expression. More...
|
|
virtual void | setError (const std::string &theError) |
| Allows to set expression (text) error (by the parameters listener) More...
|
|
virtual std::string | error () |
| Returns an expression error. More...
|
|
virtual void | setUsedParameters (const std::set< std::wstring > &theUsedParameters) |
| Defines the used parameters (by the parameters listener) More...
|
|
virtual std::set< std::wstring > | usedParameters () const |
| Returns the used parameters. More...
|
|
virtual void | setValue (const double theValue) |
| Defines the double value. More...
|
|
virtual double | value () |
| Returns the double value. More...
|
|
virtual void | setInvalid (const bool theFlag) |
| Allows to set expression (text) as invalid (by the parameters listener) More...
|
|
virtual bool | isInvalid () |
| Returns true if text is invalid. More...
|
|
virtual bool | isInitialized () |
| Returns true if attribute was initialized by some value. More...
|
|
virtual void | setInitialized () |
| Makes attribute initialized. More...
|
|
|
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...
|
|
|
class | Model_AttributeDouble |
|
class | Model_Data |
|
◆ Model_ExpressionDouble()
Model_ExpressionDouble::Model_ExpressionDouble |
( |
TDF_Label & |
theLabel | ) |
|
|
protected |
◆ setText()
virtual void Model_ExpressionDouble::setText |
( |
const std::wstring & |
theText | ) |
|
|
inlinevirtual |
◆ text()
virtual std::wstring Model_ExpressionDouble::text |
( |
| ) |
const |
|
inlinevirtual |
◆ setError()
virtual void Model_ExpressionDouble::setError |
( |
const std::string & |
theError | ) |
|
|
inlinevirtual |
Allows to set expression (text) error (by the parameters listener)
Reimplemented from Model_Expression.
◆ error()
virtual std::string Model_ExpressionDouble::error |
( |
| ) |
|
|
inlinevirtual |
◆ setUsedParameters()
virtual void Model_ExpressionDouble::setUsedParameters |
( |
const std::set< std::wstring > & |
theUsedParameters | ) |
|
|
inlinevirtual |
Defines the used parameters (by the parameters listener)
Reimplemented from Model_Expression.
◆ usedParameters()
virtual std::set<std::wstring> Model_ExpressionDouble::usedParameters |
( |
| ) |
const |
|
inlinevirtual |
◆ setValue()
void Model_ExpressionDouble::setValue |
( |
const double |
theValue | ) |
|
|
virtual |
◆ value()
double Model_ExpressionDouble::value |
( |
| ) |
|
|
virtual |
◆ setInvalid()
void Model_ExpressionDouble::setInvalid |
( |
const bool |
theFlag | ) |
|
|
virtual |
Allows to set expression (text) as invalid (by the parameters listener)
Implements ModelAPI_Expression.
◆ isInvalid()
bool Model_ExpressionDouble::isInvalid |
( |
| ) |
|
|
virtual |
◆ reinit()
void Model_ExpressionDouble::reinit |
( |
| ) |
|
|
protectedvirtual |
Reinitializes the internal state of the attribute (may be needed on undo/redo, abort, etc)
Implements ModelAPI_Expression.
◆ isInitialized()
bool ModelAPI_Expression::isInitialized |
( |
| ) |
|
|
virtualinherited |
Returns true if attribute was initialized by some value.
◆ setInitialized()
void ModelAPI_Expression::setInitialized |
( |
| ) |
|
|
virtualinherited |
Makes attribute initialized.
◆ isVariable() [1/2]
bool ModelAPI_Expression::isVariable |
( |
const std::string & |
theString | ) |
|
|
staticinherited |
Returns True if the given string can be defined as a name of an expression variable.
◆ isVariable() [2/2]
bool ModelAPI_Expression::isVariable |
( |
const std::wstring & |
theString | ) |
|
|
staticinherited |
Returns True if the given string can be defined as a name of an expression variable.
◆ reset()
virtual void ModelAPI_Expression::reset |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
Resets attribute to deafult state.
◆ myText
Handle_TDataStd_Name Model_Expression::myText |
|
protectedinherited |
Text representation of the attribute (may differ for parameters)
◆ myError
Handle_TDataStd_Comment Model_Expression::myError |
|
protectedinherited |
Error of expression of the text attribute.
◆ myUsedParameters
Handle_TDataStd_ExtStringList Model_Expression::myUsedParameters |
|
protectedinherited |
Parameters used in expression.
◆ myLab
TDF_Label Model_Expression::myLab |
|
protectedinherited |
if attribute is not initialized, store label here
◆ myIsInitialized
bool ModelAPI_Expression::myIsInitialized |
|
protectedinherited |
is some value assigned to this attribute