#include <GeomDataAPI.h>
#include <ModelAPI_Attribute.h>
+#include <ModelAPI_Data.h>
#include <set>
GEOMDATAAPI_EXPORT virtual void setText(const std::string& theX,
const std::string& theY) = 0;
- /// Returns the text values
+ /// Returns the text value for X
GEOMDATAAPI_EXPORT virtual std::string textX() = 0;
+ /// Returns the text value for Y
GEOMDATAAPI_EXPORT virtual std::string textY() = 0;
+ /// Point component (x,y)
enum PointComponent { C_X = 0,
C_Y = 1,
};
/// Returns the type of this class of attributes, not static method
GEOMDATAAPI_EXPORT virtual std::string attributeType();
+ /// Returns this attribute from the data if it is possible
+ /// \param theData a model data
+ /// \param theAttribute an attribute index
+ static GEOMDATAAPI_EXPORT std::shared_ptr<GeomDataAPI_Point2D> getPoint2D(const DataPtr& theData,
+ const std::string& theAttribute);
+
protected:
/// Objects are created for features automatically
GEOMDATAAPI_EXPORT GeomDataAPI_Point2D();