SHAPER  9.12.0
XGUI_TwoSidePresentationMap Class Reference

Public Member Functions

bool add (const ObjectPtr &theObj, const AISObjectPtr &theAIS)
 Add new values pair to the map. More...
 
bool remove (const ObjectPtr &theObj)
 Removes values by object. More...
 
bool remove (const AISObjectPtr &theAIS)
 Removes values by presentation. More...
 
void clear ()
 Removes all values. More...
 
AISObjectPtr value (const ObjectPtr &theObj) const
 Returns presentation by object. More...
 
ObjectPtr value (const AISObjectPtr &theAIS) const
 Returns object by presentation. More...
 
ObjectPtr value (const Handle &&theAIS) const
 Returns object by presentation. More...
 
int size () const
 Returns number of values. More...
 
QObjectPtrList objects () const
 Returns list of objects. More...
 
QList< Handle > presentations () const
 returns list of presentations More...
 
bool contains (const ObjectPtr &theObj) const
 Returns true if the Map contains the object. More...
 
bool contains (const AISObjectPtr &theAIS) const
 Returns true if the Map contains the presentation. More...
 

Member Function Documentation

◆ add()

bool XGUI_TwoSidePresentationMap::add ( const ObjectPtr &  theObj,
const AISObjectPtr &  theAIS 
)
inline

Add new values pair to the map.

Parameters
theObjan object
theAISa corresponded presentation

◆ remove() [1/2]

bool XGUI_TwoSidePresentationMap::remove ( const ObjectPtr &  theObj)
inline

Removes values by object.

Parameters
theObjan object

◆ remove() [2/2]

bool XGUI_TwoSidePresentationMap::remove ( const AISObjectPtr &  theAIS)
inline

Removes values by presentation.

Parameters
theAISa presentation

◆ clear()

void XGUI_TwoSidePresentationMap::clear ( )
inline

Removes all values.

◆ value() [1/3]

AISObjectPtr XGUI_TwoSidePresentationMap::value ( const ObjectPtr &  theObj) const
inline

Returns presentation by object.

Parameters
theObjan object

◆ value() [2/3]

ObjectPtr XGUI_TwoSidePresentationMap::value ( const AISObjectPtr &  theAIS) const
inline

Returns object by presentation.

Parameters
theAISa presentation

◆ value() [3/3]

ObjectPtr XGUI_TwoSidePresentationMap::value ( const Handle &&  theAIS) const
inline

Returns object by presentation.

Parameters
theAISa presentation

◆ size()

int XGUI_TwoSidePresentationMap::size ( ) const
inline

Returns number of values.

◆ objects()

QObjectPtrList XGUI_TwoSidePresentationMap::objects ( ) const
inline

Returns list of objects.

◆ presentations()

QList<Handle> XGUI_TwoSidePresentationMap::presentations ( ) const
inline

returns list of presentations

◆ contains() [1/2]

bool XGUI_TwoSidePresentationMap::contains ( const ObjectPtr &  theObj) const
inline

Returns true if the Map contains the object.

Parameters
theObjan object

◆ contains() [2/2]

bool XGUI_TwoSidePresentationMap::contains ( const AISObjectPtr &  theAIS) const
inline

Returns true if the Map contains the presentation.

Parameters
theAISa presentation