SHAPER  9.12.0
SketcherPrs_LengthDimension Class Reference

A class for representation of linear dimension constraint. More...

Inheritance diagram for SketcherPrs_LengthDimension:
Inheritance graph

Public Member Functions

 SketcherPrs_LengthDimension (ModelAPI_Feature *theConstraint, SketchPlugin_Sketch *theSketcher)
 Constructor. More...
 
 ~SketcherPrs_LengthDimension ()
 Destructor. More...
 
 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. More...
 
std::shared_ptr< GeomAPI_Ax3plane () 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...
 

Detailed Description

A class for representation of linear dimension constraint.

It supports SketchPlugin_ConstraintLength and SketchPlugin_ConstraintDistance features.

Constructor & Destructor Documentation

◆ SketcherPrs_LengthDimension()

SketcherPrs_LengthDimension::SketcherPrs_LengthDimension ( ModelAPI_Feature theConstraint,
SketchPlugin_Sketch theSketcher 
)

Constructor.

Parameters
theConstrainta constraint feature
thePlanea coordinate plane of current sketch

◆ ~SketcherPrs_LengthDimension()

SketcherPrs_LengthDimension::~SketcherPrs_LengthDimension ( )

Destructor.

Member Function Documentation

◆ DEFINE_STANDARD_RTTIEXT()

SketcherPrs_LengthDimension::DEFINE_STANDARD_RTTIEXT ( SketcherPrs_LengthDimension  ,
PrsDim_LengthDimension   
)

Returns true if the constraint feature arguments are correcly filled to build AIS presentation.

Parameters
theConstrainta constraint feature
thePlanea coordinate plane of current sketch
Returns
boolean result value

◆ plane()

std::shared_ptr<GeomAPI_Ax3> SketcherPrs_LengthDimension::plane ( ) const
inline

Returns sketcher plane.

◆ Compute()

void SketcherPrs_LengthDimension::Compute ( const Handle &&  thePresentationManager,
const Handle &&  thePresentation,
const Standard_Integer  theMode = 0 
)
protectedvirtual

Redefinition of virtual function.

◆ ComputeSelection()

void SketcherPrs_LengthDimension::ComputeSelection ( const Handle &&  aSelection,
const Standard_Integer  aMode 
)
protectedvirtual

Redefinition of virtual function.