SOCC_Prs Class Reference

#include <SOCC_Prs.h>

Inheritance diagram for SOCC_Prs:

Inheritance graph

Public Member Functions

 SOCC_Prs ()
 SOCC_Prs (const Handle(AIS_InteractiveObject)&obj)
 ~SOCC_Prs ()
void GetObjects (AIS_ListOfInteractive &list) const
void AddObject (const Handle(AIS_InteractiveObject)&obj)
bool IsNull () const
void SetToActivate (const bool)
bool ToActivate () const
virtual void DisplayIn (SALOME_View *) const
 It uses double dispatch in order to
invoke Display() method corresponding to the actual type of presentation.
virtual void EraseIn (SALOME_View *, const bool=false) const
 It uses double dispatch in order to
invoke Erase() method corresponding to the actual type of presentation.
virtual void Update (SALOME_Displayer *)
 It uses double dispatch in order to
invoke Update() method corresponding to the actual type of presentation.
virtual void LocalSelectionIn (SALOME_View *, const int) const
 Key method for double dispatch of activation of subshapes selection.

Private Attributes

AIS_ListOfInteractive myObjects
bool myToActivate

Constructor & Destructor Documentation

SOCC_Prs::SOCC_Prs  ) 
 

Default constructor

SOCC_Prs::SOCC_Prs const Handle(AIS_InteractiveObject)&  obj  ) 
 

Standard constructor

SOCC_Prs::~SOCC_Prs  ) 
 

Destructor


Member Function Documentation

void SOCC_Prs::GetObjects AIS_ListOfInteractive &  list  )  const
 

Get interactive objects list

void SOCC_Prs::AddObject const Handle(AIS_InteractiveObject)&  obj  ) 
 

Add interactive object

bool SOCC_Prs::IsNull  )  const [virtual]
 

Returns:
0 if list of the interactive objects is empty [ Reimplemented from SALOME_Prs ]

Implements SALOME_Prs.

void SOCC_Prs::SetToActivate const   bool  ) 
 

This method is used for activisation/deactivisation of objects in the moment of displaying

bool SOCC_Prs::ToActivate  )  const
 

void SALOME_OCCPrs::DisplayIn SALOME_View v  )  const [virtual, inherited]
 

Dispatches display operation to proper Display() method of SALOME_View

Implements SALOME_Prs.

void SALOME_OCCPrs::EraseIn SALOME_View v,
const   bool = false
const [virtual, inherited]
 

Dispatches display operation to proper Erase() method of SALOME_View

Implements SALOME_Prs.

void SALOME_OCCPrs::Update SALOME_Displayer d  )  [virtual, inherited]
 

Dispatches update operation to proper Update() method of SALOME_Displayer

Implements SALOME_Prs.

void SALOME_OCCPrs::LocalSelectionIn SALOME_View v,
const   int
const [virtual, inherited]
 

Dispatches operation to proper LocalSelectionIn() method of SALOME_View

Implements SALOME_Prs.


Field Documentation

AIS_ListOfInteractive SOCC_Prs.myObjects [private]
 

bool SOCC_Prs.myToActivate [private]