#include "ConstructionPlugin.h"
#include <ModelAPI_Feature.h>
+#include <ModelAPI_Result.h>
#include <GeomAPI_ICustomPrs.h>
return MY_KIND;
}
+ /// default color for a plane
+ inline static const std::string& DEFAULT_COLOR()
+ {
+ static const std::string CONSTRUCTION_PLANE_COLOR("150,150,180");
+ return CONSTRUCTION_PLANE_COLOR;
+ }
+
/// Plane kind
inline static const std::string& ID()
{
static const std::string CONSTRUCTION_PLANE_KIND("Plane");
return CONSTRUCTION_PLANE_KIND;
}
+
+ /// attribute name for first point
+ inline static const std::string& METHOD()
+ {
+ static const std::string METHOD_ATTR("CreationMethod");
+ return METHOD_ATTR;
+ }
+
/// attribute name for base face
inline static const std::string& FACE()
{
ConstructionPlugin_Plane();
/// Customize presentation of the feature
- virtual void customisePresentation(AISObjectPtr thePrs);
+ virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs,
+ std::shared_ptr<GeomAPI_ICustomPrs> theDefaultPrs);
+
+ protected:
+ std::shared_ptr<GeomAPI_Shape> createPlaneByFaceAndDistance();
+ std::shared_ptr<GeomAPI_Shape> createPlaneByGeneralEquation();
};
#endif