class GeomData_Point : public GeomDataAPI_Point
{
enum { NUM_COMPONENTS = 3 };
- std::shared_ptr<ModelAPI_ExpressionDouble> myExpression[NUM_COMPONENTS]; ///< Expressions for X, Y and Z
+ /// Expressions for X, Y and Z
+ std::shared_ptr<ModelAPI_ExpressionDouble> myExpression[NUM_COMPONENTS];
public:
/// Defines the double value
GEOMDATA_EXPORT virtual void setValue(const double theX, const double theY, const double theZ);
GEOMDATA_EXPORT virtual std::shared_ptr<GeomAPI_Pnt> pnt();
/// Defines the calculated double value
- GEOMDATA_EXPORT virtual void setCalculatedValue(const double theX, const double theY, const double theZ);
+ GEOMDATA_EXPORT virtual
+ void setCalculatedValue(const double theX, const double theY, const double theZ);
/// Defines the text values
GEOMDATA_EXPORT virtual void setText(const std::string& theX,
GEOMDATA_EXPORT virtual std::string expressionError(int theComponent);
/// Defines the used parameters
- GEOMDATA_EXPORT virtual void setUsedParameters(int theComponent,
+ GEOMDATA_EXPORT virtual void setUsedParameters(int theComponent,
const std::set<std::string>& theUsedParameters);
/// Returns the used parameters
protected:
/// Initializes attributes
- GEOMDATA_EXPORT GeomData_Point(TDF_Label& theLabel);
+ GEOMDATA_EXPORT GeomData_Point();
+ /// Reinitializes the internal state of the attribute (may be needed on undo/redo, abort, etc)
+ virtual void reinit();
friend class Model_Data;
};