ALBA
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
albaRWI Class Reference

#include <albaRWI.h>

Inheritance diagram for albaRWI:
Inheritance graph
[legend]
Collaboration diagram for albaRWI:
Collaboration graph
[legend]

Public Member Functions

 albaRWI ()
 
 albaRWI (wxWindow *parent, RWI_LAYERS layers=ONE_LAYER, bool use_grid=false, bool show_axes=false, int stereo=0, bool show_orientator=false, int axesType=albaAxes::TRIAD)
 
virtual ~albaRWI ()
 
virtual void SetListener (albaObserver *Listener)
 
virtual void OnEvent (albaEventBase *alba_event)
 
void CreateRenderingScene (wxWindow *parent, RWI_LAYERS layers=ONE_LAYER, bool use_grid=false, bool show_axes=false, int stereo=0, bool show_orientator=false, int axesType=albaAxes::TRIAD)
 
void CameraReset (albaVME *vme=NULL, double zoom=1)
 
void CameraReset (double bounds[6], double zoom=1)
 
void CameraUpdate ()
 
void CameraSet (int cam_position, double zoom=1)
 
void CameraSet (double pos[3], double viewUp[3], double zoom=1., bool parallelProjection=false)
 
void SetSize (int x, int y, int w, int h)
 
void Show (bool show)
 
void SetGridNormal (int normal_id)
 
void SetGridPosition (double position)
 
void SetGridVisibility (bool show)
 
void SetGridColor (const wxColor &col)
 
void SetBackgroundColor (const wxColor &col)
 
wxColor GetBackgroundColor ()
 
void SetStereo (int stereo_type)
 
void SetAxesVisibility (bool show)
 
void SetOrientatorVisibility (bool show=true)
 
void SetOrientatorSingleActorVisibility (bool showLeft=true, bool showDown=true, bool showRight=true, bool showUp=true)
 
void SetOrientatorSingleActorText (const char *textLeft, const char *textDown, const char *textRight, const char *textUp)
 
void SetOrientatorProperties (double rgbText[3], double rgbBackground[3], double scale=1)
 
void SetProfilingActorVisibility (bool show)
 
virtual albaGUIGetGui ()
 
void UpdateCameraParameters ()
 
void ResetCameraClippingRange ()
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 

Public Attributes

albaSceneGraphm_Sg
 
albaRWIBasem_RwiBase
 
vtkRenderer * m_RenFront
 
vtkRenderer * m_RenBack
 
vtkRenderer * m_AlwaysVisibleRenderer
 
vtkRenderWindow * m_RenderWindow
 
vtkLight * m_Light
 
vtkCamera * m_Camera
 
int m_CameraPositionId
 
double m_CameraPosition [3]
 
double m_FocalPoint [3]
 
double m_CameraViewUp [3]
 
double m_CameraOrientation [3]
 
double m_StepCameraOrientation
 
double m_TopBottomAccumulation
 
double m_LeftRigthAccumulation
 
double m_TopBottomAccumulationLast
 
double m_LeftRigthAccumulationLast
 

Protected Member Functions

double * ComputeVisibleBounds (albaVME *vme=NULL)
 
albaGUICreateGui ()
 

Protected Attributes

albaGUIm_Gui
 
wxColour m_BGColour
 
wxColour m_GridColour
 
double m_GridPosition
 
albaGUIPicButtonm_CameraButtons [6]
 
wxBoxSizer * m_Sizer
 
albaAxesm_Axes
 
vtkALBAGridActor * m_Grid
 
int m_ShowGrid
 
int m_GridNormal
 
int m_ShowAxes
 
int m_ParallelView
 
int m_StereoType
 
vtkALBATextOrientator * m_Orientator
 
int m_ShowProfilingInformation
 
int m_ShowOrientator
 
albaObserverm_Listener
 
vtkALBAProfilingActor * m_ProfilingActor
 
albaString m_StereoMovieDir
 
int m_StereoMovieEnable
 
int m_AxesType
 

Detailed Description

Definition at line 53 of file albaRWI.h.

Constructor & Destructor Documentation

◆ albaRWI() [1/2]

albaRWI::albaRWI ( )

◆ albaRWI() [2/2]

albaRWI::albaRWI ( wxWindow *  parent,
RWI_LAYERS  layers = ONE_LAYER,
bool  use_grid = false,
bool  show_axes = false,
int  stereo = 0,
bool  show_orientator = false,
int  axesType = albaAxes::TRIAD 
)

◆ ~albaRWI()

virtual albaRWI::~albaRWI ( )
virtual

Member Function Documentation

◆ SetListener()

virtual void albaRWI::SetListener ( albaObserver Listener)
inlinevirtual

Definition at line 60 of file albaRWI.h.

◆ OnEvent()

virtual void albaRWI::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Implements albaObserver.

◆ CreateRenderingScene()

void albaRWI::CreateRenderingScene ( wxWindow *  parent,
RWI_LAYERS  layers = ONE_LAYER,
bool  use_grid = false,
bool  show_axes = false,
int  stereo = 0,
bool  show_orientator = false,
int  axesType = albaAxes::TRIAD 
)

Create all the elements necessary to build the rendering scene.

◆ CameraReset() [1/2]

void albaRWI::CameraReset ( albaVME vme = NULL,
double  zoom = 1 
)

Reset the camera position.

If vme is passed as parameter, the camera is resetted to fill the vme into the view.

◆ CameraReset() [2/2]

void albaRWI::CameraReset ( double  bounds[6],
double  zoom = 1 
)

Reset the camera position according to the bounds.

◆ CameraUpdate()

void albaRWI::CameraUpdate ( )

Update the renderwindow.

◆ CameraSet() [1/2]

void albaRWI::CameraSet ( int  cam_position,
double  zoom = 1 
)

Set the camera position.

◆ CameraSet() [2/2]

void albaRWI::CameraSet ( double  pos[3],
double  viewUp[3],
double  zoom = 1.,
bool  parallelProjection = false 
)

Set the camera position, set custom pos , custom viewUp , zoom and if projection is parallel.

◆ SetSize()

void albaRWI::SetSize ( int  x,
int  y,
int  w,
int  h 
)

Set the render window's size.

◆ Show()

void albaRWI::Show ( bool  show)

Show the render window.

◆ SetGridNormal()

void albaRWI::SetGridNormal ( int  normal_id)

Set the normal for the grid actor.

◆ SetGridPosition()

void albaRWI::SetGridPosition ( double  position)

Set the position for the grid actor.

◆ SetGridVisibility()

void albaRWI::SetGridVisibility ( bool  show)

Set the visibility for the grid actor.

◆ SetGridColor()

void albaRWI::SetGridColor ( const wxColor &  col)

Set the color for the grid actor.

◆ SetBackgroundColor()

void albaRWI::SetBackgroundColor ( const wxColor &  col)

Set the background color for the render window.

◆ GetBackgroundColor()

wxColor albaRWI::GetBackgroundColor ( )
inline

Get the background color for the render window.

Definition at line 105 of file albaRWI.h.

◆ SetStereo()

void albaRWI::SetStereo ( int  stereo_type)

Set the stereo type.

◆ SetAxesVisibility()

void albaRWI::SetAxesVisibility ( bool  show)

Set the visibility for the axes actor.

◆ SetOrientatorVisibility()

void albaRWI::SetOrientatorVisibility ( bool  show = true)

Set the visibility for the orientation actor.

◆ SetOrientatorSingleActorVisibility()

void albaRWI::SetOrientatorSingleActorVisibility ( bool  showLeft = true,
bool  showDown = true,
bool  showRight = true,
bool  showUp = true 
)

Set the visibility for the orientation single actor.

◆ SetOrientatorSingleActorText()

void albaRWI::SetOrientatorSingleActorText ( const char *  textLeft,
const char *  textDown,
const char *  textRight,
const char *  textUp 
)

Set the text for the orientator actor.

◆ SetOrientatorProperties()

void albaRWI::SetOrientatorProperties ( double  rgbText[3],
double  rgbBackground[3],
double  scale = 1 
)

Set Orientator Text Properties.

◆ SetProfilingActorVisibility()

void albaRWI::SetProfilingActorVisibility ( bool  show)

Set Profiling Information Text Visibility.

◆ GetGui()

virtual albaGUI * albaRWI::GetGui ( )
virtual

◆ UpdateCameraParameters()

void albaRWI::UpdateCameraParameters ( )

Update member variables and GUI elements according to vtkCamera position, focal point, view up, ...

◆ ResetCameraClippingRange()

void albaRWI::ResetCameraClippingRange ( )

◆ ComputeVisibleBounds()

double * albaRWI::ComputeVisibleBounds ( albaVME vme = NULL)
protected

Compute the bounds for the visible actors; if vme is passed, the bounds of vme are calculated.

◆ CreateGui()

albaGUI * albaRWI::CreateGui ( )
protected

Member Data Documentation

◆ m_Sg

albaSceneGraph* albaRWI::m_Sg

Definition at line 136 of file albaRWI.h.

◆ m_RwiBase

albaRWIBase* albaRWI::m_RwiBase

Definition at line 137 of file albaRWI.h.

◆ m_RenFront

vtkRenderer* albaRWI::m_RenFront

Renderer used to show actors on the first layer.

Definition at line 138 of file albaRWI.h.

◆ m_RenBack

vtkRenderer* albaRWI::m_RenBack

Renderer used to show actors on the second layer.

Definition at line 139 of file albaRWI.h.

◆ m_AlwaysVisibleRenderer

vtkRenderer* albaRWI::m_AlwaysVisibleRenderer

Definition at line 140 of file albaRWI.h.

◆ m_RenderWindow

vtkRenderWindow* albaRWI::m_RenderWindow

< Renderer used to superimpose utility stuff to main render window

Definition at line 141 of file albaRWI.h.

◆ m_Light

vtkLight* albaRWI::m_Light

Definition at line 142 of file albaRWI.h.

◆ m_Camera

vtkCamera* albaRWI::m_Camera

Definition at line 143 of file albaRWI.h.

◆ m_CameraPositionId

int albaRWI::m_CameraPositionId

Integer representing a preset for camera position, focal point and view up.

Definition at line 144 of file albaRWI.h.

◆ m_CameraPosition

double albaRWI::m_CameraPosition[3]

Vector representing the camera position.

Definition at line 145 of file albaRWI.h.

◆ m_FocalPoint

double albaRWI::m_FocalPoint[3]

Vector representing the camera focal point.

Definition at line 146 of file albaRWI.h.

◆ m_CameraViewUp

double albaRWI::m_CameraViewUp[3]

Vector representing the camera view-up.

Definition at line 148 of file albaRWI.h.

◆ m_CameraOrientation

double albaRWI::m_CameraOrientation[3]

Vector representing the camera orientation.

Definition at line 149 of file albaRWI.h.

◆ m_StepCameraOrientation

double albaRWI::m_StepCameraOrientation

Step with which rotate the camera around its focal point.

Definition at line 151 of file albaRWI.h.

◆ m_TopBottomAccumulation

double albaRWI::m_TopBottomAccumulation

Definition at line 152 of file albaRWI.h.

◆ m_LeftRigthAccumulation

double albaRWI::m_LeftRigthAccumulation

Definition at line 153 of file albaRWI.h.

◆ m_TopBottomAccumulationLast

double albaRWI::m_TopBottomAccumulationLast

Definition at line 154 of file albaRWI.h.

◆ m_LeftRigthAccumulationLast

double albaRWI::m_LeftRigthAccumulationLast

Definition at line 155 of file albaRWI.h.

◆ m_Gui

albaGUI* albaRWI::m_Gui
protected

Definition at line 162 of file albaRWI.h.

◆ m_BGColour

wxColour albaRWI::m_BGColour
protected

Definition at line 163 of file albaRWI.h.

◆ m_GridColour

wxColour albaRWI::m_GridColour
protected

Definition at line 164 of file albaRWI.h.

◆ m_GridPosition

double albaRWI::m_GridPosition
protected

Definition at line 165 of file albaRWI.h.

◆ m_CameraButtons

albaGUIPicButton* albaRWI::m_CameraButtons[6]
protected

Definition at line 166 of file albaRWI.h.

◆ m_Sizer

wxBoxSizer* albaRWI::m_Sizer
protected

Definition at line 167 of file albaRWI.h.

◆ m_Axes

albaAxes* albaRWI::m_Axes
protected

Actor representing a global reference system.

Definition at line 169 of file albaRWI.h.

◆ m_Grid

vtkALBAGridActor* albaRWI::m_Grid
protected

Actor representing a grid showed into the render window.

Definition at line 170 of file albaRWI.h.

◆ m_ShowGrid

int albaRWI::m_ShowGrid
protected

Flag used to show/hide the grid.

Definition at line 171 of file albaRWI.h.

◆ m_GridNormal

int albaRWI::m_GridNormal
protected

Definition at line 172 of file albaRWI.h.

◆ m_ShowAxes

int albaRWI::m_ShowAxes
protected

Flag used to show/hide axes in low left corner of the view.

Definition at line 173 of file albaRWI.h.

◆ m_ParallelView

int albaRWI::m_ParallelView
protected

Flag used to set Camera Mode Orthographic or Perspective.

Definition at line 175 of file albaRWI.h.

◆ m_StereoType

int albaRWI::m_StereoType
protected

Definition at line 177 of file albaRWI.h.

◆ m_Orientator

vtkALBATextOrientator* albaRWI::m_Orientator
protected

Definition at line 178 of file albaRWI.h.

◆ m_ShowProfilingInformation

int albaRWI::m_ShowProfilingInformation
protected

Definition at line 179 of file albaRWI.h.

◆ m_ShowOrientator

int albaRWI::m_ShowOrientator
protected

Definition at line 180 of file albaRWI.h.

◆ m_Listener

albaObserver* albaRWI::m_Listener
protected

Definition at line 181 of file albaRWI.h.

◆ m_ProfilingActor

vtkALBAProfilingActor* albaRWI::m_ProfilingActor
protected

Definition at line 184 of file albaRWI.h.

◆ m_StereoMovieDir

albaString albaRWI::m_StereoMovieDir
protected

Definition at line 186 of file albaRWI.h.

◆ m_StereoMovieEnable

int albaRWI::m_StereoMovieEnable
protected

Definition at line 187 of file albaRWI.h.

◆ m_AxesType

int albaRWI::m_AxesType
protected

Definition at line 188 of file albaRWI.h.


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