Version: 9.12.0
SALOME_View Class Reference

#include <SALOME_Prs.h>

Inheritance diagram for SALOME_View:
Inheritance graph

Public Member Functions

virtual ~SALOME_View ()
 Destructor. More...
 
void Display (SALOME_Displayer *, const SALOME_Prs *)
 This Display() method should be called to display given presentation created anywhere by anybody. More...
 
void Erase (SALOME_Displayer *, const SALOME_Prs *, const bool=false)
 This Erase() method should be called to erase given presentation created anywhere by anybody. More...
 
virtual void EraseAll (SALOME_Displayer *, const bool=false)
 This EraseAll() method should be called to erase all presentations created anywhere by anybody. More...
 
void LocalSelection (const SALOME_Prs *, const int)
 This LocalSelection() method should be called to activate sub-shapes selection created anywhere by anybody. More...
 
void LocalSelection (const SALOME_Prs *, const std::list< int >)
 
virtual void Display (const SALOME_OCCPrs *)
 Display SALOME_OCCPrs presentation. More...
 
virtual void Display (const SALOME_VTKPrs *)
 Display SALOME_VTKPrs presentation. More...
 
virtual void Display (const SALOME_PV3DPrs *)
 Display SALOME_PV3DPrs presentation. More...
 
virtual void Display (const SALOME_Prs2d *)
 Display SALOME_Prs2d presentation. More...
 
virtual void Erase (const SALOME_OCCPrs *, const bool=false)
 Erase SALOME_OCCPrs. More...
 
virtual void Erase (const SALOME_VTKPrs *, const bool=false)
 Erase SALOME_VTKPrs. More...
 
virtual void Erase (const SALOME_PV3DPrs *, const bool=false)
 Erase SALOME_PV3DPrs. More...
 
virtual void Erase (const SALOME_Prs2d *, const bool=false)
 Erase SALOME_Prs2d. More...
 
virtual void LocalSelection (const SALOME_OCCPrs *, const int)
 Local selection SALOME_OCCPrs. More...
 
virtual void LocalSelection (const SALOME_OCCPrs *, const std::list< int >)
 Multiple local selection SALOME_OCCPrs. More...
 
virtual void LocalSelection (const SALOME_VTKPrs *, const int)
 Local selection SALOME_VTKPrs. More...
 
virtual void LocalSelection (const SALOME_PV3DPrs *, const int)
 Local selection SALOME_PV3DPrs. More...
 
virtual void LocalSelection (const SALOME_Prs2d *, const int)
 Local selection SALOME_Prs2d. More...
 
virtual void GlobalSelection (const bool=false) const
 Deactivates selection of sub-shapes (must be redefined with OCC viewer) More...
 
virtual SALOME_PrsCreatePrs (const char *=0)
 Creates empty presentation of corresponding type. More...
 
virtual void BeforeDisplay (SALOME_Displayer *, const SALOME_Prs *)
 
virtual void AfterDisplay (SALOME_Displayer *, const SALOME_Prs *)
 
virtual void BeforeErase (SALOME_Displayer *, const SALOME_Prs *)
 
virtual void AfterErase (SALOME_Displayer *, const SALOME_Prs *)
 
virtual bool isVisible (const Handle(SALOME_InteractiveObject)&)
 
virtual void Repaint ()
 Null body here. More...
 
virtual void GetVisible (SALOME_ListIO &)
 

Detailed Description

Base classes for object wrappers for any other visualization libraries should be added here!

Base class for SALOME views (or view frames)

Constructor & Destructor Documentation

◆ ~SALOME_View()

virtual SALOME_View::~SALOME_View ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ AfterDisplay()

void SALOME_View::AfterDisplay ( SALOME_Displayer d,
const SALOME_Prs p 
)
virtual

◆ AfterErase()

void SALOME_View::AfterErase ( SALOME_Displayer d,
const SALOME_Prs p 
)
virtual

◆ BeforeDisplay()

void SALOME_View::BeforeDisplay ( SALOME_Displayer d,
const SALOME_Prs p 
)
virtual

◆ BeforeErase()

void SALOME_View::BeforeErase ( SALOME_Displayer d,
const SALOME_Prs p 
)
virtual

◆ CreatePrs()

virtual SALOME_Prs* SALOME_View::CreatePrs ( const char *  = 0)
inlinevirtual

Creates empty presentation of corresponding type.

Reimplemented in SVTK_Viewer, SPV3D_ViewModel, SPlot2d_Viewer, and SOCC_Viewer.

◆ Display() [1/5]

void SALOME_View::Display ( const SALOME_OCCPrs )
virtual

Display SALOME_OCCPrs presentation.

Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.

Reimplemented in SOCC_Viewer.

◆ Display() [2/5]

void SALOME_View::Display ( const SALOME_Prs2d )
virtual

Display SALOME_Prs2d presentation.

Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.

Reimplemented in SPlot2d_Viewer.

◆ Display() [3/5]

void SALOME_View::Display ( const SALOME_PV3DPrs )
virtual

Display SALOME_PV3DPrs presentation.

Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.

Reimplemented in SPV3D_ViewModel.

◆ Display() [4/5]

void SALOME_View::Display ( const SALOME_VTKPrs )
virtual

Display SALOME_VTKPrs presentation.

Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.

Reimplemented in SVTK_Viewer.

◆ Display() [5/5]

void SALOME_View::Display ( SALOME_Displayer d,
const SALOME_Prs prs 
)

This Display() method should be called to display given presentation created anywhere by anybody.

It simply passes control to SALOME_Prs object so that it could perform double dispatch.

Gives control to SALOME_Prs object, so that it could perform double dispatch

References SALOME_Prs::DisplayIn(), and SALOME_Displayer::UpdateVisibility().

◆ Erase() [1/5]

void SALOME_View::Erase ( const SALOME_OCCPrs ,
const bool  = false 
)
virtual

Erase SALOME_OCCPrs.

Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.

Reimplemented in SOCC_Viewer.

◆ Erase() [2/5]

void SALOME_View::Erase ( const SALOME_Prs2d ,
const bool  = false 
)
virtual

Erase SALOME_Prs2d.

Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.

Reimplemented in SPlot2d_Viewer.

◆ Erase() [3/5]

void SALOME_View::Erase ( const SALOME_PV3DPrs ,
const bool  = false 
)
virtual

Erase SALOME_PV3DPrs.

Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.

Reimplemented in SPV3D_ViewModel.

◆ Erase() [4/5]

void SALOME_View::Erase ( const SALOME_VTKPrs ,
const bool  = false 
)
virtual

Erase SALOME_VTKPrs.

Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.

Reimplemented in SVTK_Viewer.

◆ Erase() [5/5]

void SALOME_View::Erase ( SALOME_Displayer d,
const SALOME_Prs prs,
const bool  forced = false 
)

This Erase() method should be called to erase given presentation created anywhere by anybody.

It simply passes control to SALOME_Prs object so that it could perform double dispatch.

Gives control to SALOME_Prs object, so that it could perform double dispatch

References SALOME_Prs::EraseIn(), and SALOME_Displayer::UpdateVisibility().

◆ EraseAll()

void SALOME_View::EraseAll ( SALOME_Displayer d,
const bool  = false 
)
virtual

This EraseAll() method should be called to erase all presentations created anywhere by anybody.

Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.

Reimplemented in SVTK_Viewer, SPV3D_ViewModel, SPlot2d_Viewer, and SOCC_Viewer.

References SALOME_Displayer::UpdateVisibility().

◆ GetVisible()

virtual void SALOME_View::GetVisible ( SALOME_ListIO )
inlinevirtual

◆ GlobalSelection()

void SALOME_View::GlobalSelection ( const bool  = false) const
virtual

Deactivates selection of sub-shapes (must be redefined with OCC viewer)

Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.

Reimplemented in SOCC_Viewer.

◆ isVisible()

virtual bool SALOME_View::isVisible ( const Handle(SALOME_InteractiveObject)&  )
inlinevirtual
Return values
Returnfalse.

Reimplemented in SPlot2d_Viewer, SVTK_Viewer, SPV3D_ViewModel, and SOCC_Viewer.

◆ LocalSelection() [1/7]

void SALOME_View::LocalSelection ( const SALOME_OCCPrs ,
const int   
)
virtual

Local selection SALOME_OCCPrs.

Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.

Reimplemented in SOCC_Viewer.

◆ LocalSelection() [2/7]

void SALOME_View::LocalSelection ( const SALOME_OCCPrs ,
const std::list< int >   
)
virtual

Multiple local selection SALOME_OCCPrs.

Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.

Reimplemented in SOCC_Viewer.

◆ LocalSelection() [3/7]

void SALOME_View::LocalSelection ( const SALOME_Prs prs,
const int  mode 
)

This LocalSelection() method should be called to activate sub-shapes selection created anywhere by anybody.

It simply passes control to SALOME_Prs object so that it could perform double dispatch.

Gives control to SALOME_Prs object, so that it could perform double dispatch

◆ LocalSelection() [4/7]

void SALOME_View::LocalSelection ( const SALOME_Prs prs,
const std::list< int >  modes 
)

Gives control to SALOME_Prs object, so that it could perform double dispatch

References SALOME_Prs::LocalSelectionIn().

◆ LocalSelection() [5/7]

void SALOME_View::LocalSelection ( const SALOME_Prs2d ,
const int   
)
virtual

Local selection SALOME_Prs2d.

Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.

◆ LocalSelection() [6/7]

void SALOME_View::LocalSelection ( const SALOME_PV3DPrs ,
const int   
)
virtual

Local selection SALOME_PV3DPrs.

Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.

◆ LocalSelection() [7/7]

void SALOME_View::LocalSelection ( const SALOME_VTKPrs ,
const int   
)
virtual

Local selection SALOME_VTKPrs.

Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.

◆ Repaint()

virtual void SALOME_View::Repaint ( )
inlinevirtual

Null body here.

Reimplemented in SVTK_Viewer, SPV3D_ViewModel, SPlot2d_Viewer, and SOCC_Viewer.


The documentation for this class was generated from the following files: