GEOM_Displayer Class Reference

#include <GEOM_Displayer.h>

Inheritance diagram for GEOM_Displayer:

Inheritance graph

Public Member Functions

 GEOM_Displayer (SalomeApp_Study *app)
virtual ~GEOM_Displayer ()
virtual bool canBeDisplayed (const QString &, const QString &) const
void Display (const Handle(SALOME_InteractiveObject)&theIO, const bool updateViewer=true, SALOME_View *theViewFrame=0)
void Display (GEOM::GEOM_Object_ptr theObj, const bool updateViewer=true)
void Redisplay (const Handle(SALOME_InteractiveObject)&theIO, const bool updateViewer=true)
void Erase (const Handle(SALOME_InteractiveObject)&theIO, const bool forced=false, const bool updateViewer=true, SALOME_View *theViewFrame=0)
void Erase (GEOM::GEOM_Object_ptr theObj, const bool forced=false, const bool updateViewer=true)
void Display (const SALOME_ListIO &theIOList, const bool updateViewer=true)
void Erase (const SALOME_ListIO &theIOList, const bool forced=false, const bool updateViewer=true)
void Redisplay (const SALOME_ListIO &theIOList, const bool updateViewer=true)
SALOME_Prs * BuildPrs (GEOM::GEOM_Object_ptr)
SALOME_Prs * BuildPrs (const TopoDS_Shape &)
void SetColor (const int)
void UnsetColor ()
int GetColor () const
bool HasColor () const
void SetWidth (const double)
void UnsetWidth ()
double GetWidth () const
bool HasWidth () const
void SetName (const char *theName)
void UnsetName ()
virtual void Update (SALOME_OCCPrs *)
virtual void Update (SALOME_VTKPrs *)
virtual void BeforeDisplay (SALOME_View *, const SALOME_OCCViewType &)
virtual void AfterDisplay (SALOME_View *, const SALOME_OCCViewType &)
void SetToActivate (const bool)
bool ToActivate () const
void LocalSelection (const Handle(SALOME_InteractiveObject)&, const int)
void LocalSelection (const SALOME_ListIO &theIOList, const int)
void GlobalSelection (const int=GEOM_ALLOBJECTS, const bool=false)
void GlobalSelection (const TColStd_MapOfInteger &, const bool=false)
SalomeApp_Study * getStudy () const

Protected Member Functions

virtual SALOME_Prs * buildPresentation (const QString &, SALOME_View *=0)
void setIO (const Handle(SALOME_InteractiveObject)&theIO)
void setShape (const TopoDS_Shape &theShape)
void internalReset ()
void clearTemporary (LightApp_SelectionMgr *theSelMgr)
SUIT_SelectionFiltergetFilter (const int theMode)
 Handle (SALOME_InteractiveObject) myIO

Protected Attributes

TopoDS_Shape myShape
string myName
int myType
SALOME_View * myViewFrame
Quantity_Color myShadingColor
int myColor
double myWidth
bool myToActivate
int myDisplayMode

Private Attributes

SalomeApp_Application * myApp

Constructor & Destructor Documentation

GEOM_Displayer::GEOM_Displayer SalomeApp_Study *  st  ) 
 

GEOM_Displayer.GEOM_Displayer Constructor

GEOM_Displayer::~GEOM_Displayer  )  [virtual]
 

GEOM_Displayer.~GEOM_Displayer Destructor


Member Function Documentation

bool GEOM_Displayer::canBeDisplayed const QString &  ,
const QString & 
const [virtual]
 

void GEOM_Displayer::Display const Handle(SALOME_InteractiveObject)&  theIO,
const bool  updateViewer = true,
SALOME_View *  theViewFrame = 0
 

GEOM_Displayer.Display Display interactive object in the current viewer

void GEOM_Displayer::Display GEOM::GEOM_Object_ptr  theObj,
const bool  updateViewer = true
 

GEOM_Displayer.Display This overloaded Display() method can be useful for operations not using dialog boxes.

void GEOM_Displayer::Redisplay const Handle(SALOME_InteractiveObject)&  theIO,
const bool  updateViewer = true
 

GEOM_Displayer.Redisplay Redisplay (erase and then display again) interactive object in the current viewer

void GEOM_Displayer::Erase const Handle(SALOME_InteractiveObject)&  theIO,
const bool  forced = false,
const bool  updateViewer = true,
SALOME_View *  theViewFrame = 0
 

GEOM_Displayer.Erase Erase interactive object in the current viewer

void GEOM_Displayer::Erase GEOM::GEOM_Object_ptr  theObj,
const bool  forced = false,
const bool  updateViewer = true
 

GEOM_Displayer.Erase Erase geometry object in the current viewer

void GEOM_Displayer::Display const SALOME_ListIO &  theIOList,
const bool  updateViewer = true
 

GEOM_Displayer.Display Calls Display() method for each object in the given list

void GEOM_Displayer::Erase const SALOME_ListIO &  theIOList,
const bool  forced = false,
const bool  updateViewer = true
 

GEOM_Displayer.Erase Calls Erase() method for each object in the given list

void GEOM_Displayer::Redisplay const SALOME_ListIO &  theIOList,
const bool  updateViewer = true
 

GEOM_Displayer.Redisplay Calls Redisplay() method for each object in the given list

SALOME_Prs * GEOM_Displayer::BuildPrs GEOM::GEOM_Object_ptr  theObj  ) 
 

GEOM_Displayer.BuildPrs Build presentation accordint to the current viewer type

SALOME_Prs * GEOM_Displayer::BuildPrs const TopoDS_Shape &  theShape  ) 
 

GEOM_Displayer.BuildPrs Build presentation accordint to the current viewer type

void GEOM_Displayer::SetColor const   int  ) 
 

GEOM_Displayer.SetColor Set color for shape displaying. If it is equal -1 then default color is used. Available values are from Quantity_NameOfColor enumeration

void GEOM_Displayer::UnsetColor  ) 
 

int GEOM_Displayer::GetColor  )  const
 

bool GEOM_Displayer::HasColor  )  const
 

void GEOM_Displayer::SetWidth const   double  ) 
 

GEOM_Displayer.SetWidth Set width of shape displaying. If it is equal -1 then default width is used.

void GEOM_Displayer::UnsetWidth  ) 
 

double GEOM_Displayer::GetWidth  )  const
 

bool GEOM_Displayer::HasWidth  )  const
 

void GEOM_Displayer::SetName const char *  theName  ) 
 

void GEOM_Displayer::UnsetName  ) 
 

void GEOM_Displayer::Update SALOME_OCCPrs *  prs  )  [virtual]
 

GEOM_Displayer.Update Update OCC presentaion [ Reimplemented from SALOME_Displayer ]

void GEOM_Displayer::Update SALOME_VTKPrs *  prs  )  [virtual]
 

GEOM_Displayer.Update Update VTK presentaion [ Reimplemented from SALOME_Displayer ]

void GEOM_Displayer::BeforeDisplay SALOME_View *  v,
const SALOME_OCCViewType & 
[virtual]
 

GEOM_Displayer.BeforeDisplay Called before displaying of pars. Close local context [ Reimplemented from SALOME_Displayer ]

void GEOM_Displayer::AfterDisplay SALOME_View *  ,
const SALOME_OCCViewType & 
[virtual]
 

void GEOM_Displayer::SetToActivate const   bool  ) 
 

GEOM_Displayer.SetToActivate This method is used for activisation/deactivisation of objects to be displayed

bool GEOM_Displayer::ToActivate  )  const
 

void GEOM_Displayer::LocalSelection const Handle(SALOME_InteractiveObject)&  theIO,
const   int
 

GEOM_Displayer.LocalSelection Activate selection of CAD shapes with activisation of selection of their sub-shapes (with opened local context for OCC viewer)

void GEOM_Displayer::LocalSelection const SALOME_ListIO &  theIOList,
const   int
 

GEOM_Displayer.LocalSelection Activate selection of CAD shapes with activisation of selection of their sub-shapes (with opened local context for OCC viewer)

void GEOM_Displayer::GlobalSelection const   int = GEOM_ALLOBJECTS,
const   bool = false
 

GEOM_Displayer.globalSelection Activate selection of CAD shapes without activisation of selection of their sub-shapes (without opened local context for OCC viewer)

void GEOM_Displayer::GlobalSelection const TColStd_MapOfInteger &  theModes,
const   bool = false
 

GEOM_Displayer.globalSelection Activate selection of CAD shapes without activisation of selection of their sub-shapes (without opened local context for OCC viewer)

SalomeApp_Study * GEOM_Displayer::getStudy  )  const
 

SALOME_Prs * GEOM_Displayer::buildPresentation const QString &  entry,
SALOME_View *  theViewFrame = 0
[protected, virtual]
 

GEOM_Displayer.buildPresentation Builds/finds object's presentation for the current viewer Calls corresponding Update() method by means of double dispatch [ internal ]

void GEOM_Displayer::setIO const Handle(SALOME_InteractiveObject)&  theIO  )  [protected]
 

void GEOM_Displayer::setShape const TopoDS_Shape &  theShape  )  [protected]
 

void GEOM_Displayer::internalReset  )  [protected]
 

GEOM_Displayer.internalReset Resets internal data [internal]

void GEOM_Displayer::clearTemporary LightApp_SelectionMgr *  theSelMgr  )  [protected]
 

GEOM_Displayer.clearTemporary Removes from selection temporary objects

SUIT_SelectionFilter * GEOM_Displayer::getFilter const int  theMode  )  [protected]
 

GEOM_Displayer.Handle SALOME_InteractiveObject   )  [protected]
 


Field Documentation

TopoDS_Shape GEOM_Displayer.myShape [protected]
 

string GEOM_Displayer.myName [protected]
 

int GEOM_Displayer.myType [protected]
 

SALOME_View* GEOM_Displayer.myViewFrame [protected]
 

Quantity_Color GEOM_Displayer.myShadingColor [protected]
 

int GEOM_Displayer.myColor [protected]
 

double GEOM_Displayer.myWidth [protected]
 

bool GEOM_Displayer.myToActivate [protected]
 

int GEOM_Displayer.myDisplayMode [protected]
 

SalomeApp_Application* GEOM_Displayer.myApp [private]