X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_Tools.h;h=250e82a19119653cb83bf5b71f2b0768026f4f68;hb=5cd9804b0680fcf9c89c4265964679e36c015773;hp=0bd4159c45290407fa968856cb5a8eaecc808c4b;hpb=c4eab94a20a0d93100549a210582d46409fec1cc;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_Tools.h b/src/PartSet/PartSet_Tools.h index 0bd4159c4..250e82a19 100644 --- a/src/PartSet/PartSet_Tools.h +++ b/src/PartSet/PartSet_Tools.h @@ -26,6 +26,7 @@ #include #include +#include #include #include @@ -143,6 +144,11 @@ public: /// \return API object of geom plane static std::shared_ptr sketchPlane(CompositeFeaturePtr theSketch); + /// Create a sketch plane instance + /// \param theSketch a sketch feature + /// \return API object of geom plane + static void nullifySketchPlane(CompositeFeaturePtr theSketch); + /// Create a point 3D on a basis of point 2D and sketch feature /// \param thePoint2D a point on a sketch /// \param theSketch a sketch feature @@ -292,7 +298,31 @@ public: FeaturePtr& theCreatedFeature); - static void getFirstAndLastIndexInFolder(const ObjectPtr& theFolder, int& theFirst, int& theLast); + static void getFirstAndLastIndexInFolder(const ObjectPtr& theFolder, + int& theFirst, int& theLast); + + + /** + * Returns default color value for the given object + */ + static void getDefaultColor(ObjectPtr theObject, const bool isEmptyColorValid, + std::vector& theColor); + + /** + * Returns default deflection value for the given object + */ + static double getDefaultDeflection(const ObjectPtr& theObject); + + + /** + * Returns default transparency value + */ + static double getDefaultTransparency(); + + /** + * Returns cursor according to (SKETCH_TAB_NAME, "operation_cursor") property value + */ + static QCursor getOperationCursor(); }; #endif