20 #ifndef ModuleBase_ViewerPrs_H
21 #define ModuleBase_ViewerPrs_H
23 #include "ModuleBase.h"
26 #include <SelectMgr_EntityOwner.hxx>
27 #include <AIS_InteractiveObject.hxx>
29 #include <ModelAPI_Result.h>
30 #include <GeomAPI_Shape.h>
44 const GeomShapePtr& theShape = GeomShapePtr(),
45 Handle(SelectMgr_EntityOwner) theOwner = NULL);
52 MODULEBASE_EXPORT
void setObject(ObjectPtr theResult)
59 MODULEBASE_EXPORT ObjectPtr
object()
const
66 MODULEBASE_EXPORT
void setOwner(Handle_SelectMgr_EntityOwner theOwner)
73 MODULEBASE_EXPORT Handle_SelectMgr_EntityOwner
owner()
const
80 MODULEBASE_EXPORT
void setShape(
const GeomShapePtr& theShape)
87 MODULEBASE_EXPORT
const GeomShapePtr&
shape()
const
96 myInteractive = theIO;
102 return myInteractive;
109 return (!myShape.get() || myShape->isNull()) &&
110 myOwner.IsNull() && !myResult.get();
123 Handle(SelectMgr_EntityOwner) myOwner;
124 GeomShapePtr myShape;
128 typedef std::shared_ptr<ModuleBase_ViewerPrs> ModuleBase_ViewerPrsPtr;
Presentation.
Definition: ModuleBase_ViewerPrs.h:37
ModuleBase_ViewerPrs(ObjectPtr theResult=ObjectPtr(), const GeomShapePtr &theShape=GeomShapePtr(), HandlettheOwner=NULL)
Constructor.
Definition: ModuleBase_ViewerPrs.cpp:25
const GeomShapePtr & shape() const
Returns the shape.
Definition: ModuleBase_ViewerPrs.h:87
void setInteractive(const Handle &&theIO)
Set interactive object.
Definition: ModuleBase_ViewerPrs.h:94
void setShape(const GeomShapePtr &theShape)
Sets the shape.
Definition: ModuleBase_ViewerPrs.h:80
void setObject(ObjectPtr theResult)
Sets the object.
Definition: ModuleBase_ViewerPrs.h:52
Handle_SelectMgr_EntityOwner owner() const
Returns the presentation owner.
Definition: ModuleBase_ViewerPrs.h:73
bool operator==(const ModuleBase_ViewerPrs &thePrs)
Returns True if the current object is equal to the given one.
Definition: ModuleBase_ViewerPrs.cpp:80
void setOwner(Handle_SelectMgr_EntityOwner theOwner)
Set the presentation owner.
Definition: ModuleBase_ViewerPrs.h:66
ObjectPtr object() const
Returns the feature.
Definition: ModuleBase_ViewerPrs.h:59
virtual ~ModuleBase_ViewerPrs()
Destructor.
Definition: ModuleBase_ViewerPrs.cpp:34
bool isEqual(ModuleBase_ViewerPrs *thePrs) const
Returns true if all presentation fields are empty.
Definition: ModuleBase_ViewerPrs.cpp:38
bool isEmpty() const
Returns true if all presentation fields are empty.
Definition: ModuleBase_ViewerPrs.h:107