/// default color for a plane
inline static const std::string& DEFAULT_COLOR()
{
- static const std::string CONSTRUCTION_PLANE_COLOR("#32FF32");
+ static const std::string CONSTRUCTION_PLANE_COLOR("150,150,180");
return CONSTRUCTION_PLANE_COLOR;
}
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()
{
/// Customize presentation of the feature
virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs,
std::shared_ptr<GeomAPI_ICustomPrs> theDefaultPrs);
+
+ protected:
+ /// Creates a new plane by copy of face plane with translation along the normal
+ /// to the specified distance.
+ std::shared_ptr<GeomAPI_Shape> createPlaneByFaceAndDistance();
+ /// Creates a new plane by general equation.
+ std::shared_ptr<GeomAPI_Shape> createPlaneByGeneralEquation();
};
#endif