20 #ifndef SketcherPrs_Tools_H
21 #define SketcherPrs_Tools_H
23 #include "SketcherPrs.h"
24 #include <GeomAPI_Shape.h>
25 #include <GeomAPI_Pnt2d.h>
26 #include <GeomAPI_Ax3.h>
27 #include <ModelAPI_Object.h>
28 #include <ModelAPI_Attribute.h>
29 #include <ModelAPI_Feature.h>
30 #include <ModelAPI_CompositeFeature.h>
31 #include <ModelAPI_Result.h>
34 #include <Events_Loop.h>
35 #include <Events_Message.h>
39 namespace SketcherPrs_Tools {
49 SKETCHERPRS_EXPORT
void setParameterStyle(ParameterStyle theStyle);
52 SKETCHERPRS_EXPORT ParameterStyle parameterStyle();
99 const std::string& theAttrName);
105 const std::string& theAttrName);
109 SKETCHERPRS_EXPORT std::shared_ptr<GeomAPI_Shape> getShape(ObjectPtr theObject);
115 SKETCHERPRS_EXPORT std::shared_ptr<GeomAPI_Pnt2d> getPoint(
ModelAPI_Feature* theFeature,
116 const std::string& theAttrName);
122 SKETCHERPRS_EXPORT std::shared_ptr<GeomAPI_Pnt2d> getProjectionPoint(
123 const FeaturePtr theLine,
124 const std::shared_ptr<GeomAPI_Pnt2d>& thePoint);
126 SKETCHERPRS_EXPORT FeaturePtr getFeatureLine(DataPtr theData,
127 const std::string& theAttribute);
133 SKETCHERPRS_EXPORT std::shared_ptr<GeomDataAPI_Point2D> getFeaturePoint(DataPtr theData,
134 const std::string& theAttribute,
135 const std::shared_ptr<GeomAPI_Ax3>& thePlane);
140 SKETCHERPRS_EXPORT std::list<ResultPtr> getFreePoints(
const CompositeFeaturePtr& theSketch);
143 SKETCHERPRS_EXPORT
double getArrowSize();
147 SKETCHERPRS_EXPORT
void setArrowSize(
double theSize);
150 SKETCHERPRS_EXPORT
int getDefaultArrowSize();
153 SKETCHERPRS_EXPORT
int getConfigArrowSize();
157 SKETCHERPRS_EXPORT
void setTextHeight(
double theHeight);
160 SKETCHERPRS_EXPORT
double getTextHeight();
163 SKETCHERPRS_EXPORT
double getDefaultTextHeight();
166 SKETCHERPRS_EXPORT
double getConfigTextHeight();
170 SKETCHERPRS_EXPORT
double getFlyoutDistance(
const ModelAPI_Feature* theConstraint);
173 SKETCHERPRS_EXPORT std::shared_ptr<GeomAPI_Pnt> getAnchorPoint(
175 const std::shared_ptr<GeomAPI_Ax3>& thePlane);
180 SKETCHERPRS_EXPORT
void sendEmptyPresentationError(
ModelAPI_Feature* theFeature,
181 const std::string theError);
183 SKETCHERPRS_EXPORT
void setPixelRatio(
const double theRatio);
185 SKETCHERPRS_EXPORT
double pixelRatio();
Attribute that contains 2D point coordinates.
Definition: GeomDataAPI_Point2D.h:37
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:41