20 #ifndef SketcherPrs_LinearDimension_H
21 #define SketcherPrs_LinearDimension_H
23 #include <GeomAPI_Ax3.h>
24 #include <ModelAPI_Feature.h>
25 #include <PrsDim_LengthDimension.hxx>
26 #include <Standard_DefineHandle.hxx>
27 #include <SketchPlugin_Sketch.h>
33 #include <SketcherPrs_DimensionStyle.h>
62 const std::shared_ptr<GeomAPI_Ax3>& thePlane);
65 Standard_EXPORT std::shared_ptr<GeomAPI_Ax3>
plane()
const
67 return mySketcher->coordinatePlane();
72 Standard_EXPORT
virtual void Compute(
73 const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
74 const Handle(Prs3d_Presentation)& thePresentation,
75 const Standard_Integer theMode = 0);
78 Standard_EXPORT
virtual void ComputeSelection(
const Handle(SelectMgr_Selection)& aSelection,
79 const Standard_Integer aMode);
83 const std::shared_ptr<GeomAPI_Ax3>& thePlane,
84 gp_Pnt2d& thePnt1, gp_Pnt2d& thePnt2);
88 const std::shared_ptr<GeomAPI_Ax3>& thePlane);
104 gp_Pnt mySecondPoint;
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:39
Feature for creation of the new part in PartSet.
Definition: SketchPlugin_Sketch.h:47
Definition: SketcherPrs_DimensionStyle.h:43
Definition: SketcherPrs_DimensionStyle.h:41
A class for representation of linear dimension constraint.
Definition: SketcherPrs_LengthDimension.h:43
std::shared_ptr< GeomAPI_Ax3 > plane() const
Returns sketcher plane.
Definition: SketcherPrs_LengthDimension.h:65
DEFINE_STANDARD_RTTIEXT(SketcherPrs_LengthDimension, PrsDim_LengthDimension) static bool IsReadyToDisplay(ModelAPI_Feature *theConstraint
Returns true if the constraint feature arguments are correcly filled to build AIS presentation.