SHAPER
9.13.0
|
A redefinition of standard AIS Interactive Object in order to provide
presentation of Equal constraint.
More...
Public Member Functions | |
SketcherPrs_Equal (ModelAPI_Feature *theConstraint, SketchPlugin_Sketch *theSketcher) | |
Constructor. More... | |
DEFINE_STANDARD_RTTIEXT (SketcherPrs_Equal, SketcherPrs_SymbolPrs) static bool IsReadyToDisplay(ModelAPI_Feature *theConstraint | |
Returns true if the constraint feature arguments are correcly filled to build AIS presentation. More... | |
virtual void | HilightSelected (const Handle &&thePM, const SelectMgr_SequenceOfOwner &theOwners) |
Method which draws selected owners ( for fast presentation draw ) More... | |
virtual void | HilightOwnerWithColor (const Handle &&thePM, const Handle &&theStyle, const Handle &&theOwner) |
Method which hilight an owner belonging to. More... | |
std::shared_ptr< GeomAPI_Ax3 > | plane () const |
Returns sketcher plane. More... | |
ModelAPI_Feature * | feature () const |
Returns feature object. More... | |
ModelAPI_CompositeFeature * | sketcher () const |
Returns Sketcher object (owner of the constraint) More... | |
const Handle && | pointsArray () const |
Return array of points where symbols will be placed. More... | |
void | SetCustomColor (const std::vector< int > &theColor) |
Set state of the presentation, in case of conflicting state, the icon of the presentation is visualized in error color. More... | |
virtual void | BoundingBox (Bnd_Box &theBndBox) Standard_OVERRIDE |
Add a bounding box of the presentation to common bounding box. More... | |
virtual DEFINE_STANDARD_RTTIEXT(SketcherPrs_SymbolPrs, AIS_InteractiveObject) protected void | ComputeSelection (const Handle &&aSelection, const Standard_Integer aMode) |
Redefinition of virtual function. More... | |
virtual void | prepareAspect () |
Check and creates if it is necessary myAspect member. More... | |
Handleiicon () | |
Returns icon corresponded to the current constraint type. More... | |
void | addLine (const Handle &&theGroup, std::string theAttrName) const |
Add a line into the given group. More... | |
void | drawShape (const std::shared_ptr< GeomAPI_Shape > &theShape, const Handle &&thePrs, Quantity_Color theColor) const |
Draw a shape into the given presentation scene. More... | |
void | drawListOfShapes (const std::shared_ptr< ModelAPI_AttributeRefList > &theListAttr, const Handle &&thePrs, Quantity_Color theColor) const |
Draw a list of shapes stored in a RefListAttribute. More... | |
Data Fields | |
const std::shared_ptr< GeomAPI_Ax3 > & | thePlane |
Protected Member Functions | |
virtual const char * | iconName () const |
Returns an icon file name. Has to be redefined in successors. More... | |
virtual void | drawLines (const Handle &&thePrs, Quantity_Color theColor) const |
Redefine this function in order to add additiona lines of constraint base. More... | |
virtual bool | updateIfReadyToDisplay (double theStep, bool withColor) const |
Update myPntArray according to presentation positions. More... | |
Protected Attributes | |
ModelAPI_Feature * | myConstraint |
Constraint feature. More... | |
SketchPlugin_Sketch * | mySketcher |
Sketcher feature. More... | |
HandlemmyAspect | |
Aspect for entities drawing. More... | |
HandlemmyPntArray | |
Array of symbols positions. More... | |
HandlemmyOwner | |
An owner object of the presentation. More... | |
A redefinition of standard AIS Interactive Object in order to provide
presentation of Equal constraint.
SketcherPrs_Equal::SketcherPrs_Equal | ( | ModelAPI_Feature * | theConstraint, |
SketchPlugin_Sketch * | theSketcher | ||
) |
Constructor.
theConstraint | a constraint feature |
theSketcher | a sketcher object |
SketcherPrs_Equal::DEFINE_STANDARD_RTTIEXT | ( | SketcherPrs_Equal | , |
SketcherPrs_SymbolPrs | |||
) |
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 |
|
inlineprotectedvirtual |
Returns an icon file name. Has to be redefined in successors.
Implements SketcherPrs_SymbolPrs.
|
protectedvirtual |
Redefine this function in order to add additiona lines of constraint base.
thePrs | a presentation |
theColor | a color of additiona lines |
Reimplemented from SketcherPrs_SymbolPrs.
|
protectedvirtual |
Update myPntArray according to presentation positions.
Reimplemented from SketcherPrs_SymbolPrs.
|
virtualinherited |
Method which draws selected owners ( for fast presentation draw )
|
virtualinherited |
Method which hilight an owner belonging to.
|
inlineinherited |
Returns sketcher plane.
|
inlineinherited |
Returns feature object.
|
inlineinherited |
Returns Sketcher object (owner of the constraint)
|
inlineinherited |
Return array of points where symbols will be placed.
|
inherited |
Set state of the presentation, in case of conflicting state, the icon of the presentation is visualized in error color.
The state is stored in an internal field, so should be changed when constraint become not conflicting
theColor | a color for conflicting object |
|
virtualinherited |
Add a bounding box of the presentation to common bounding box.
theBndBox | the common bounding box to update |
|
virtualinherited |
Redefinition of virtual function.
aSelection | selection |
aMode | compute mode |
|
virtualinherited |
Check and creates if it is necessary myAspect member.
It has to be called before the object computation
|
inherited |
Returns icon corresponded to the current constraint type.
|
inherited |
Add a line into the given group.
theGroup | a group for drawing |
theAttrName | an attribute name which corresponds to referenced line |
|
inherited |
Draw a shape into the given presentation scene.
theShape | the shape to draw |
thePrs | the presentation scene |
|
inherited |
Draw a list of shapes stored in a RefListAttribute.
theListAttr | the attribute of reference3s list |
thePrs | the presentation scene |
|
protectedinherited |
Constraint feature.
|
protectedinherited |
Sketcher feature.
|
protectedinherited |
Aspect for entities drawing.
|
mutableprotectedinherited |
Array of symbols positions.
|
protectedinherited |
An owner object of the presentation.