Version: 6.3.1
Public Member Functions | Private Attributes

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)
void Clear ()
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 BeforeDisplayIn (SALOME_Displayer *, SALOME_View *) const
 It uses double dispatch in order to invoke BeforeDisplayIn() method corresponding to the actual type of presentation.
virtual void AfterDisplayIn (SALOME_Displayer *, SALOME_View *) const
 It uses double dispatch in order to invoke AfterDisplayIn() method corresponding to the actual type of presentation.
virtual void BeforeEraseIn (SALOME_Displayer *, SALOME_View *) const
 It uses double dispatch in order to invoke BeforeEraseIn() method corresponding to the actual type of presentation.
virtual void AfterEraseIn (SALOME_Displayer *, SALOME_View *) const
 It uses double dispatch in order to invoke AfterEraseIn() 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

void SOCC_Prs::Clear ( )

Remove all interactive objects

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  toActivate)

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.

References SALOME_View.Display().

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

Dispatches display operation to proper Erase() method of SALOME_View

Implements SALOME_Prs.

References SALOME_View.Erase().

void SALOME_OCCPrs::BeforeDisplayIn ( SALOME_Displayer d,
SALOME_View v 
) const [virtual, inherited]

Dispatches display operation to proper BeforeDisplay() method of SALOME_Displayer

Implements SALOME_Prs.

References SALOME_Displayer.BeforeDisplay().

void SALOME_OCCPrs::AfterDisplayIn ( SALOME_Displayer d,
SALOME_View v 
) const [virtual, inherited]

Dispatches display operation to proper AfterDisplay() method of SALOME_Displayer

Implements SALOME_Prs.

References SALOME_Displayer.AfterDisplay().

void SALOME_OCCPrs::BeforeEraseIn ( SALOME_Displayer d,
SALOME_View v 
) const [virtual, inherited]

Dispatches display operation to proper BeforeErase() method of SALOME_Displayer

Implements SALOME_Prs.

References SALOME_Displayer.BeforeErase().

void SALOME_OCCPrs::AfterEraseIn ( SALOME_Displayer d,
SALOME_View v 
) const [virtual, inherited]

Dispatches display operation to proper AfterErase() method of SALOME_Displayer

Implements SALOME_Prs.

References SALOME_Displayer.AfterErase().

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

Dispatches update operation to proper Update() method of SALOME_Displayer

Implements SALOME_Prs.

References SALOME_Displayer.Update().

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

Dispatches operation to proper LocalSelectionIn() method of SALOME_View

Implements SALOME_Prs.

References SALOME_View.LocalSelection().


Field Documentation

AIS_ListOfInteractive SOCC_Prs.myObjects [private]
bool SOCC_Prs.myToActivate [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS