|
SHAPER
9.15.0
|
A base class of constraint presentation which is represented by an icon. More...

Public Member Functions | |
| SketcherPrs_SymbolPrs (ModelAPI_Feature *theConstraint, SketchPlugin_Sketch *theSketcher) | |
| Constructor. 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 highlight 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 const char * | iconName (bool isActiveIcon=true) const =0 |
| Returns an icon file name. Has to be redefined in successors. 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... | |
| virtual void | drawLines (const Handle &&, Quantity_Color) const |
| Redefine this function in order to add additional lines of constraint base. More... | |
| virtual bool | updateIfReadyToDisplay (double, bool) const |
| Update myPntArray according to presentation positions. 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... | |
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... | |
Friends | |
| class | SketcherPrs_SymbolArray |
A base class of constraint presentation which is represented by an icon.
| SketcherPrs_SymbolPrs::SketcherPrs_SymbolPrs | ( | ModelAPI_Feature * | theConstraint, |
| SketchPlugin_Sketch * | theSketcher | ||
| ) |
Constructor.
| theConstraint | a constraint feature |
| thePlane | a coordinate plane of current sketch |
|
virtual |
Method which draws selected owners ( for fast presentation draw )
|
virtual |
Method which highlight an owner belonging to.
|
inline |
Returns sketcher plane.
|
inline |
Returns feature object.
|
inline |
Returns Sketcher object (owner of the constraint)
|
inline |
Return array of points where symbols will be placed.
| void SketcherPrs_SymbolPrs::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.
The state is stored in an internal field, so should be changed when constraint become not conflicting
| theColor | a color for conflicting object |
|
virtual |
Add a bounding box of the presentation to common bounding box.
| theBndBox | the common bounding box to update |
|
virtual |
Redefinition of virtual function.
| aSelection | selection |
| aMode | compute mode |
|
pure virtual |
Returns an icon file name. Has to be redefined in successors.
Implemented in SketcherPrs_Transformation, SketcherPrs_Offset, SketcherPrs_Mirror, SketcherPrs_Tangent, SketcherPrs_Rigid, SketcherPrs_Perpendicular, SketcherPrs_Parallel, SketcherPrs_Middle, SketcherPrs_HVDirection, SketcherPrs_Equal, and SketcherPrs_Collinear.
|
virtual |
Check and creates if it is necessary myAspect member.
It has to be called before the object computation
| SketcherPrs_SymbolPrs::Handleiicon | ( | ) |
Returns icon corresponded to the current constraint type.
| void SketcherPrs_SymbolPrs::addLine | ( | const Handle && | theGroup, |
| std::string | theAttrName | ||
| ) | const |
Add a line into the given group.
| theGroup | a group for drawing |
| theAttrName | an attribute name which corresponds to referenced line |
|
inlinevirtual |
Redefine this function in order to add additional lines of constraint base.
| thePrs | a presentation |
| theColor | a color of additional lines |
Reimplemented in SketcherPrs_Transformation, SketcherPrs_Tangent, SketcherPrs_Rigid, SketcherPrs_Perpendicular, SketcherPrs_Parallel, SketcherPrs_Offset, SketcherPrs_Mirror, SketcherPrs_Middle, SketcherPrs_HVDirection, SketcherPrs_Equal, and SketcherPrs_Collinear.
|
inlinevirtual |
Update myPntArray according to presentation positions.
Reimplemented in SketcherPrs_Transformation, SketcherPrs_Tangent, SketcherPrs_Rigid, SketcherPrs_Perpendicular, SketcherPrs_Parallel, SketcherPrs_Offset, SketcherPrs_Mirror, SketcherPrs_Middle, SketcherPrs_HVDirection, SketcherPrs_Equal, and SketcherPrs_Collinear.
| void SketcherPrs_SymbolPrs::drawShape | ( | const std::shared_ptr< GeomAPI_Shape > & | theShape, |
| const Handle && | thePrs, | ||
| Quantity_Color | theColor | ||
| ) | const |
Draw a shape into the given presentation scene.
| theShape | the shape to draw |
| thePrs | the presentation scene |
| void SketcherPrs_SymbolPrs::drawListOfShapes | ( | const std::shared_ptr< ModelAPI_AttributeRefList > & | theListAttr, |
| const Handle && | thePrs, | ||
| Quantity_Color | theColor | ||
| ) | const |
Draw a list of shapes stored in a RefListAttribute.
| theListAttr | the attribute of reference3s list |
| thePrs | the presentation scene |
|
protected |
Constraint feature.
|
protected |
Sketcher feature.
|
protected |
Aspect for entities drawing.
|
mutableprotected |
Array of symbols positions.
|
protected |
An owner object of the presentation.