MEPP2 Project
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
FEVV::BaseViewer Class Referenceabstract

#include <BaseViewer.h>

Inheritance diagram for FEVV::BaseViewer:
Inheritance graph
Collaboration diagram for FEVV::BaseViewer:
Collaboration graph

Public Types

using Window = BaseWindow
 
using Adapter = BaseAdapterVisu
 

Public Member Functions

 BaseViewer ()
 
virtual ~BaseViewer ()
 
virtual void init ()=0
 
virtual bool isInit () const =0
 
virtual bool isValid () const =0
 
virtual bool isSelected () const
 
virtual void setSelected (const bool _isSelected)
 
void attach (Window *_window)
 
void attach (Adapter *_adapter)
 
virtual bool changeBackgroundColor (const Color &_color)=0
 
virtual bool saveScreenshot (const std::string &_name)=0
 
AdaptergetAdapter ()
 
WindowgetWindow ()
 

Public Attributes

RenderMethod m_RenderMethod
 
bool m_RenderSuperimposedVertices
 
bool m_RenderSuperimposedVertices_Big
 
bool m_RenderSuperimposedEdges
 
bool m_UseVertexColor
 
bool m_UseFaceColor
 
bool m_UseTexture
 
bool m_Lighting
 
bool m_SmoothFlat_Shading
 
RenderMode m_RenderMode
 
bool m_ShowAxis
 
bool m_ShowGrid
 
bool m_Show_Vertex_Normals
 
bool m_Show_CustomVectors_Vertices
 
bool m_ShowSelected
 
bool m_ShowTranslateDragger
 
bool m_ShowRotateDragger
 
bool m_redraw
 
bool m_recomputeNT_if_redraw
 
bool m_recreateOSGobj_if_redraw
 
float m_step
 
bool m_space_time
 
bool m_space_time_changeColorMode
 
bool m_time
 

Protected Attributes

WindowmyWindow = nullptr
 
AdaptermyAdapter = nullptr
 
bool bIsInit = false
 
bool bIsSelected = false
 

Detailed Description

Definition at line 42 of file BaseViewer.h.

Member Typedef Documentation

◆ Adapter

Definition at line 46 of file BaseViewer.h.

◆ Window

Definition at line 45 of file BaseViewer.h.

Constructor & Destructor Documentation

◆ BaseViewer()

FEVV::BaseViewer::BaseViewer ( )
inline

Constructor.

Definition at line 52 of file BaseViewer.h.

◆ ~BaseViewer()

virtual FEVV::BaseViewer::~BaseViewer ( )
inlinevirtual

Definition at line 101 of file BaseViewer.h.

Member Function Documentation

◆ attach() [1/2]

void FEVV::BaseViewer::attach ( Adapter _adapter)
inline

Definition at line 139 of file BaseViewer.h.

Here is the call graph for this function:

◆ attach() [2/2]

void FEVV::BaseViewer::attach ( Window _window)
inline

attach a Adapter to the current Viewer.

Note
Must be called by adapter.init()

Definition at line 131 of file BaseViewer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ changeBackgroundColor()

virtual bool FEVV::BaseViewer::changeBackgroundColor ( const Color _color)
pure virtual

Change background color of the scene.

Parameters
[in]_colorthe color to use.

Implemented in FEVV::SimpleViewer.

◆ getAdapter()

Adapter* FEVV::BaseViewer::getAdapter ( )
inline

Definition at line 163 of file BaseViewer.h.

Here is the caller graph for this function:

◆ getWindow()

Window* FEVV::BaseViewer::getWindow ( )
inline

Definition at line 164 of file BaseViewer.h.

Here is the caller graph for this function:

◆ init()

virtual void FEVV::BaseViewer::init ( )
pure virtual

Implemented in FEVV::SimpleViewer.

◆ isInit()

virtual bool FEVV::BaseViewer::isInit ( ) const
pure virtual

Implemented in FEVV::SimpleViewer.

◆ isSelected()

virtual bool FEVV::BaseViewer::isSelected ( ) const
inlinevirtual

Definition at line 118 of file BaseViewer.h.

Here is the caller graph for this function:

◆ isValid()

virtual bool FEVV::BaseViewer::isValid ( ) const
pure virtual

Implemented in FEVV::SimpleViewer.

◆ saveScreenshot()

virtual bool FEVV::BaseViewer::saveScreenshot ( const std::string &  _name)
pure virtual

Export the current view of the scene into a screenshot (PNG).

Note
Can not be const due to OSG.
Parameters
[in]_namename of the file to export (without extension).

Implemented in FEVV::SimpleViewer.

◆ setSelected()

virtual void FEVV::BaseViewer::setSelected ( const bool  _isSelected)
inlinevirtual

Definition at line 120 of file BaseViewer.h.

Here is the caller graph for this function:

Member Data Documentation

◆ bIsInit

bool FEVV::BaseViewer::bIsInit = false
protected

Definition at line 170 of file BaseViewer.h.

◆ bIsSelected

bool FEVV::BaseViewer::bIsSelected = false
protected

Definition at line 171 of file BaseViewer.h.

◆ m_Lighting

bool FEVV::BaseViewer::m_Lighting

Definition at line 183 of file BaseViewer.h.

◆ m_recomputeNT_if_redraw

bool FEVV::BaseViewer::m_recomputeNT_if_redraw

Definition at line 201 of file BaseViewer.h.

◆ m_recreateOSGobj_if_redraw

bool FEVV::BaseViewer::m_recreateOSGobj_if_redraw

Definition at line 202 of file BaseViewer.h.

◆ m_redraw

bool FEVV::BaseViewer::m_redraw

Definition at line 200 of file BaseViewer.h.

◆ m_RenderMethod

RenderMethod FEVV::BaseViewer::m_RenderMethod

Definition at line 174 of file BaseViewer.h.

◆ m_RenderMode

RenderMode FEVV::BaseViewer::m_RenderMode

Definition at line 185 of file BaseViewer.h.

◆ m_RenderSuperimposedEdges

bool FEVV::BaseViewer::m_RenderSuperimposedEdges

Definition at line 177 of file BaseViewer.h.

◆ m_RenderSuperimposedVertices

bool FEVV::BaseViewer::m_RenderSuperimposedVertices

Definition at line 175 of file BaseViewer.h.

◆ m_RenderSuperimposedVertices_Big

bool FEVV::BaseViewer::m_RenderSuperimposedVertices_Big

Definition at line 176 of file BaseViewer.h.

◆ m_Show_CustomVectors_Vertices

bool FEVV::BaseViewer::m_Show_CustomVectors_Vertices

Definition at line 190 of file BaseViewer.h.

◆ m_Show_Vertex_Normals

bool FEVV::BaseViewer::m_Show_Vertex_Normals

Definition at line 189 of file BaseViewer.h.

◆ m_ShowAxis

bool FEVV::BaseViewer::m_ShowAxis

Definition at line 187 of file BaseViewer.h.

◆ m_ShowGrid

bool FEVV::BaseViewer::m_ShowGrid

Definition at line 188 of file BaseViewer.h.

◆ m_ShowRotateDragger

bool FEVV::BaseViewer::m_ShowRotateDragger

Definition at line 196 of file BaseViewer.h.

◆ m_ShowSelected

bool FEVV::BaseViewer::m_ShowSelected

Definition at line 191 of file BaseViewer.h.

◆ m_ShowTranslateDragger

bool FEVV::BaseViewer::m_ShowTranslateDragger

Definition at line 195 of file BaseViewer.h.

◆ m_SmoothFlat_Shading

bool FEVV::BaseViewer::m_SmoothFlat_Shading

Definition at line 184 of file BaseViewer.h.

◆ m_space_time

bool FEVV::BaseViewer::m_space_time

Definition at line 207 of file BaseViewer.h.

◆ m_space_time_changeColorMode

bool FEVV::BaseViewer::m_space_time_changeColorMode

Definition at line 208 of file BaseViewer.h.

◆ m_step

float FEVV::BaseViewer::m_step

Definition at line 203 of file BaseViewer.h.

◆ m_time

bool FEVV::BaseViewer::m_time

Definition at line 210 of file BaseViewer.h.

◆ m_UseFaceColor

bool FEVV::BaseViewer::m_UseFaceColor

Definition at line 180 of file BaseViewer.h.

◆ m_UseTexture

bool FEVV::BaseViewer::m_UseTexture

Definition at line 181 of file BaseViewer.h.

◆ m_UseVertexColor

bool FEVV::BaseViewer::m_UseVertexColor

Definition at line 179 of file BaseViewer.h.

◆ myAdapter

Adapter* FEVV::BaseViewer::myAdapter = nullptr
protected

Definition at line 168 of file BaseViewer.h.

◆ myWindow

Window* FEVV::BaseViewer::myWindow = nullptr
protected

Definition at line 167 of file BaseViewer.h.


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