|
SHAPER
9.15.0
|
A redefinition of standard AIS Interactive Object in order to provide specific behaviour for wire presentations based in a one plane. More...

Public Types | |
| enum | SelectionModes { Sel_Result = TopAbs_SHAPE + 1 } |
Public Member Functions | |
| ModuleBase_ResultPrs (ResultPtr theResult) | |
| 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 this selectable object ( for fast presentation draw ) More... | |
| ResultPtr | getResult () const |
| Returns result object. More... | |
| int | getAdditionalSelectionPriority () const |
| Returns selection priorities that will be added to created selection owner. More... | |
| void | setAdditionalSelectionPriority (const int thePriority) |
| Appends a special priority for the mode of selection. More... | |
| virtual void | SetColor (const Quantity_Color &theColor) |
| Updates color of sub shape drawer. More... | |
| void | setSubShapeHidden (const TopoDS_ListOfShape &theShapes) |
| Change presentation to have given shape hidden. More... | |
| bool | isSubShapeHidden (const TopoDS_Shape &theShape) |
| Returns true if parameter shape has been hidden. More... | |
| const TopoDS_ListOfShape & | hiddenSubShapes () const |
| Returns hidden sub shapes list. More... | |
| bool | hasSubShapeVisible (const TopoDS_ListOfShape &theShapesToSkip) |
| Returns true if there are no hidden sub shapes or original shape has at least one not hidden. More... | |
| bool | setHiddenSubShapeTransparency (double theTransparency) |
| Set transparency of hidden sub shapes: if value is 1, shapes are entirely hidden. More... | |
| TopoDS_Shape | originalShape () const |
| Returns the original shape of the presentation. More... | |
| bool | isSubstituted () const |
| Returns True if the original shape is substituted by a corresponded shell. More... | |
| void | updateIsoLines () |
| virtual DEFINE_STANDARD_RTTIEXT(ModuleBase_ResultPrs, ViewerData_AISShape) protected void | ComputeSelection (const Handle &&aSelection, const Standard_Integer theMode) |
| Redefinition of virtual function. More... | |
A redefinition of standard AIS Interactive Object in order to provide specific behaviour for wire presentations based in a one plane.
| ModuleBase_ResultPrs::ModuleBase_ResultPrs | ( | ResultPtr | theResult | ) |
Constructor.
| theResult | a result object |
|
virtual |
Method which draws selected owners ( for fast presentation draw )
|
virtual |
Method which highlight an owner belonging to this selectable object ( for fast presentation draw )
|
inline |
Returns result object.
|
inline |
Returns selection priorities that will be added to created selection owner.
| void ModuleBase_ResultPrs::setAdditionalSelectionPriority | ( | const int | thePriority | ) |
Appends a special priority for the mode of selection.
| theSelectionMode | a mode of selection, used in ComputeSelection |
| thePriority | a new priority value |
|
virtual |
Updates color of sub shape drawer.
| void ModuleBase_ResultPrs::setSubShapeHidden | ( | const TopoDS_ListOfShape & | theShapes | ) |
Change presentation to have given shape hidden.
It supports FACE type of the shape to be hidden. If presentation type is greater than FACE, the SHELL with be shown with the FACE hidden It is possible to hide more than one FACE by calling the method with given FACES Visual state of the face is controlled by the second parameter
| theShapes | a container of shape objects |
| bool ModuleBase_ResultPrs::isSubShapeHidden | ( | const TopoDS_Shape & | theShape | ) |
Returns true if parameter shape has been hidden.
| theShape | sub-shape of the presentation shape |
|
inline |
Returns hidden sub shapes list.
| bool ModuleBase_ResultPrs::hasSubShapeVisible | ( | const TopoDS_ListOfShape & | theShapesToSkip | ) |
Returns true if there are no hidden sub shapes or original shape has at least one not hidden.
| theShapesToSkip | container of shape to be hidden in the presentation (faces) |
| bool ModuleBase_ResultPrs::setHiddenSubShapeTransparency | ( | double | theTransparency | ) |
Set transparency of hidden sub shapes: if value is 1, shapes are entirely hidden.
| theTransparency | transparency value |
|
inline |
Returns the original shape of the presentation.
|
inline |
Returns True if the original shape is substituted by a corresponded shell.
|
virtual |
Redefinition of virtual function.