SHAPER
9.12.0
|
A class for representation of angle constraint. More...
Public Member Functions | |
SketcherPrs_Angle (ModelAPI_Feature *theConstraint, SketchPlugin_Sketch *theSketcher) | |
Constructor. More... | |
~SketcherPrs_Angle () | |
Destructor. More... | |
DEFINE_STANDARD_RTTIEXT (SketcherPrs_Angle, PrsDim_AngleDimension) static bool IsReadyToDisplay(ModelAPI_Feature *theConstraint | |
Returns true if the constraint feature arguments are correcly filled to build AIS presentation. More... | |
std::shared_ptr< GeomAPI_Ax3 > | plane () const |
Returns sketcher plane. More... | |
Data Fields | |
const std::shared_ptr< GeomAPI_Ax3 > & | thePlane |
Protected Member Functions | |
virtual void | Compute (const Handle &&thePresentationManager, const Handle &&thePresentation, const Standard_Integer theMode=0) |
Redefinition of virtual function. More... | |
virtual void | ComputeSelection (const Handle &&aSelection, const Standard_Integer aMode) |
Redefinition of virtual function. More... | |
bool | isAnglePlaneReversedToSketchPlane () |
Checks is the angle plane has inverted direction of normal to the plane of current sketcher Returns true if crossed product is negative. More... | |
double | calculateDistanceToFlyoutPoint () |
Calculates a distance between center of the angle presentation and the value of flyout point attribute. More... | |
Static Protected Member Functions | |
static bool | readyToDisplay (ModelAPI_Feature *theConstraint, const std::shared_ptr< GeomAPI_Ax3 > &thePlane, gp_Pnt &theFirstPoint, gp_Pnt &theSecondPoint, gp_Pnt &theCenterPoint) |
A class for representation of angle constraint.
SketcherPrs_Angle::SketcherPrs_Angle | ( | ModelAPI_Feature * | theConstraint, |
SketchPlugin_Sketch * | theSketcher | ||
) |
Constructor.
theConstraint | a constraint feature |
thePlane | a coordinate plane of current sketch |
SketcherPrs_Angle::~SketcherPrs_Angle | ( | ) |
Destructor.
SketcherPrs_Angle::DEFINE_STANDARD_RTTIEXT | ( | SketcherPrs_Angle | , |
PrsDim_AngleDimension | |||
) |
Returns true if the constraint feature arguments are correcly filled to build AIS presentation.
theConstraint | a constraint feature |
thePlane | a coordinate plane of current sketch |
|
inline |
Returns sketcher plane.
|
protectedvirtual |
Redefinition of virtual function.
it was not calculated yet
|
protectedvirtual |
Redefinition of virtual function.
|
protected |
Checks is the angle plane has inverted direction of normal to the plane of current sketcher Returns true if crossed product is negative.
|
protected |
Calculates a distance between center of the angle presentation and the value of flyout point attribute.
It should be used after setting measured geometry for the angle presentation as it uses calculated center/first/second point coordinates