20 #ifndef ModuleBase_ResultPrs_H
21 #define ModuleBase_ResultPrs_H
23 #include "ModuleBase.h"
25 #include <ModelAPI_Result.h>
26 #include <ModelAPI_ResultField.h>
28 #include <BRep_Builder.hxx>
29 #include <NCollection_List.hxx>
30 #include <ViewerData_AISShape.hxx>
31 #include <Standard_DefineHandle.hxx>
32 #include <TopoDS_Compound.hxx>
33 #include <Prs3d_IsoAspect.hxx>
37 class AIS_ColoredDrawer;
51 Sel_Result = TopAbs_SHAPE + 1
62 Standard_EXPORT
virtual void HilightSelected(
const Handle(PrsMgr_PresentationManager3d)& thePM,
63 const SelectMgr_SequenceOfOwner& theOwners);
67 Standard_EXPORT
virtual void HilightOwnerWithColor(
68 const Handle(PrsMgr_PresentationManager3d)& thePM,
69 const Handle(Prs3d_Drawer)& theStyle,
70 const Handle(SelectMgr_EntityOwner)& theOwner);
73 Standard_EXPORT ResultPtr
getResult()
const {
return myResult; }
78 {
return myAdditionalSelectionPriority; }
83 Standard_EXPORT
void setAdditionalSelectionPriority(
const int thePriority);
86 Standard_EXPORT
virtual void SetColor (
const Quantity_Color& theColor);
95 Standard_EXPORT
void setSubShapeHidden(
const TopoDS_ListOfShape& theShapes);
100 Standard_EXPORT
bool isSubShapeHidden(
const TopoDS_Shape& theShape);
104 {
return myHiddenSubShapes; }
109 Standard_EXPORT
bool hasSubShapeVisible(
const TopoDS_ListOfShape& theShapesToSkip);
114 Standard_EXPORT
bool setHiddenSubShapeTransparency(
double theTransparency);
117 Standard_EXPORT TopoDS_Shape
originalShape()
const {
return myOriginalShape; }
122 Standard_EXPORT
void updateIsoLines();
128 Standard_EXPORT
virtual void Compute(
129 const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
130 const Handle(Prs3d_Presentation)& thePresentation,
const Standard_Integer theMode = 0);
133 Standard_EXPORT
virtual void ComputeSelection(
const Handle(SelectMgr_Selection)& aSelection,
134 const Standard_Integer theMode) ;
143 bool appendVertexSelection(
const Handle(SelectMgr_Selection)& aSelection,
144 const Standard_Integer theMode);
154 void collectSubShapes(BRep_Builder& theBuilder, TopoDS_Shape& theCompound,
155 const TopoDS_Shape& theShape,
const TopoDS_ListOfShape& theHiddenSubShapes);
157 void setEdgesDefaultColor();
164 TopoDS_Shape myOriginalShape;
166 bool myIsSubstituted;
169 TopoDS_ListOfShape myHiddenSubShapes;
170 TopoDS_Compound myVisibleCompound;
171 TopoDS_Compound myHiddenCompound;
172 double myTransparency;
173 Handle(AIS_ColoredDrawer) myHiddenSubShapesDrawer;
177 int myAdditionalSelectionPriority;
179 Handle(Prs3d_IsoAspect) myUIsoAspect;
180 Handle(Prs3d_IsoAspect) myVIsoAspect;
A redefinition of standard AIS Interactive Object in order to provide specific behaviour for wire pre...
Definition: ModuleBase_ResultPrs.h:48
TopoDS_Shape originalShape() const
Returns the original shape of the presentation.
Definition: ModuleBase_ResultPrs.h:117
bool isSubstituted() const
Returns True if the original shape is substituted by a corresponded shell.
Definition: ModuleBase_ResultPrs.h:120
const TopoDS_ListOfShape & hiddenSubShapes() const
Returns hidden sub shapes list.
Definition: ModuleBase_ResultPrs.h:103
ResultPtr getResult() const
Returns result object.
Definition: ModuleBase_ResultPrs.h:73
int getAdditionalSelectionPriority() const
Returns selection priorities that will be added to created selection owner.
Definition: ModuleBase_ResultPrs.h:77