#include "ConstructionPlugin.h"
#include <ModelAPI_Feature.h>
+#include <GeomAPI_ICustomPrs.h>
/**\class ConstructionPlugin_Point
* \ingroup Plugins
* \brief Feature for creation of the new part in PartSet.
*/
-class ConstructionPlugin_Point : public ModelAPI_Feature
+class ConstructionPlugin_Point : public ModelAPI_Feature, public GeomAPI_ICustomPrs
{
public:
/// Returns the kind of a feature
return CONSTRUCTION_POINT_KIND;
}
+ /// default color for a point
+ inline static const std::string& DEFAULT_COLOR()
+ {
+ static const std::string CONSTRUCTION_POINT_COLOR("#ffff00");
+ return CONSTRUCTION_POINT_COLOR;
+ }
+
/// attribute name for X coordinate
inline static const std::string& X()
{
/// Use plugin manager for features creation
ConstructionPlugin_Point();
+
+ /// Modifies the given presentation in the custom way.
+ virtual void customisePresentation(AISObjectPtr thePrs);
+
};
#endif