-private:
- ObjectPtr myResult; /// the feature
- Handle(SelectMgr_EntityOwner) myOwner; /// the selection owner
- TopoDS_Shape myShape; /// the shape
+ /// Returns interactive object if it is installed
+ MODULEBASE_EXPORT Handle(AIS_InteractiveObject) interactive() const
+ {
+ return myInteractive;
+ }
+
+ /// Returns true if all presentation fields are empty
+ /// \return boolean value
+ MODULEBASE_EXPORT bool isEmpty() const
+ {
+ return myShape.IsNull() &&
+ myOwner.IsNull() && !myResult.get();
+ }
+
+ /// Returns True if the current object is equal to the given one
+ /// \param thePrs an object to compare
+ MODULEBASE_EXPORT bool operator==(const ModuleBase_ViewerPrs& thePrs);
+
+ private:
+ ObjectPtr myResult; /// the feature
+ Handle(SelectMgr_EntityOwner) myOwner; /// the selection owner
+ TopoDS_Shape myShape; /// the shape
+ Handle(AIS_InteractiveObject) myInteractive; /// interactive object