SHAPER  9.12.0
ModuleBase_ViewerPrs Class Reference

Presentation. More...

Public Member Functions

 ModuleBase_ViewerPrs (ObjectPtr theResult=ObjectPtr(), const GeomShapePtr &theShape=GeomShapePtr(), HandlettheOwner=NULL)
 Constructor. More...
 
virtual ~ModuleBase_ViewerPrs ()
 Destructor. More...
 
void setObject (ObjectPtr theResult)
 Sets the object. More...
 
ObjectPtr object () const
 Returns the feature. More...
 
void setOwner (Handle_SelectMgr_EntityOwner theOwner)
 Set the presentation owner. More...
 
Handle_SelectMgr_EntityOwner owner () const
 Returns the presentation owner. More...
 
void setShape (const GeomShapePtr &theShape)
 Sets the shape. More...
 
const GeomShapePtr & shape () const
 Returns the shape. More...
 
void setInteractive (const Handle &&theIO)
 Set interactive object. More...
 
 Handleiinteractive () const
 Returns interactive object if it is installed. More...
 
bool isEmpty () const
 Returns true if all presentation fields are empty. More...
 
bool isEqual (ModuleBase_ViewerPrs *thePrs) const
 Returns true if all presentation fields are empty. More...
 
bool operator== (const ModuleBase_ViewerPrs &thePrs)
 Returns True if the current object is equal to the given one. More...
 

Detailed Description

Presentation.

Provides container to have feature, shape and/or selection owner.

Constructor & Destructor Documentation

◆ ModuleBase_ViewerPrs()

ModuleBase_ViewerPrs::ModuleBase_ViewerPrs ( ObjectPtr  theResult = ObjectPtr(),
const GeomShapePtr &  theShape = GeomShapePtr(),
HandlettheOwner  = NULL 
)

Constructor.

Parameters
theResultan object
theShapea viewer shape
theOwnera selection owner

◆ ~ModuleBase_ViewerPrs()

ModuleBase_ViewerPrs::~ModuleBase_ViewerPrs ( )
virtual

Destructor.

Member Function Documentation

◆ setObject()

void ModuleBase_ViewerPrs::setObject ( ObjectPtr  theResult)
inline

Sets the object.

Parameters
theResultan object instance

◆ object()

ObjectPtr ModuleBase_ViewerPrs::object ( ) const
inline

Returns the feature.

Returns
a feature instance

◆ setOwner()

void ModuleBase_ViewerPrs::setOwner ( Handle_SelectMgr_EntityOwner  theOwner)
inline

Set the presentation owner.

Parameters
theOwneran owner to set

◆ owner()

Handle_SelectMgr_EntityOwner ModuleBase_ViewerPrs::owner ( ) const
inline

Returns the presentation owner.

Returns
an owner

◆ setShape()

void ModuleBase_ViewerPrs::setShape ( const GeomShapePtr &  theShape)
inline

Sets the shape.

Parameters
theShapea shape instance

◆ shape()

const GeomShapePtr& ModuleBase_ViewerPrs::shape ( ) const
inline

Returns the shape.

Returns
a shape instance

◆ setInteractive()

void ModuleBase_ViewerPrs::setInteractive ( const Handle &&  theIO)
inline

Set interactive object.

Parameters
theIOan interactive object

◆ Handleiinteractive()

ModuleBase_ViewerPrs::Handleiinteractive ( ) const
inline

Returns interactive object if it is installed.

◆ isEmpty()

bool ModuleBase_ViewerPrs::isEmpty ( ) const
inline

Returns true if all presentation fields are empty.

Returns
boolean value

◆ isEqual()

bool ModuleBase_ViewerPrs::isEqual ( ModuleBase_ViewerPrs thePrs) const

Returns true if all presentation fields are empty.

Returns
boolean value

owners are different

AIS are different

◆ operator==()

bool ModuleBase_ViewerPrs::operator== ( const ModuleBase_ViewerPrs thePrs)

Returns True if the current object is equal to the given one.

Parameters
thePrsan object to compare

owners are different

AIS are different