29class vtkALBAGridActor;
39class vtkALBATextOrientator;
40class vtkALBAProfilingActor;
81 void CameraSet(
double pos[3],
double viewUp[3],
double zoom = 1.,
bool parallelProjection =
false);
145 double m_CameraPosition[3];
146 double m_FocalPoint[3];
148 double m_CameraViewUp[3];
149 double m_CameraOrientation[3];
Create 3D axes representation and insert them in the passed renderer: axes can be global (World Coord...
Implementation of the message object for the Subject/Observer design pattern.
albaGUI is a panel with function to easily create GUI.
Interface implementing the Observer of the Subject/Observer design pattern.
albaRWIBase is a vtkRenderWindowInteractor placed on a wxWindow
void 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.
albaObserver * m_Listener
void SetGridVisibility(bool show)
Set the visibility for the grid actor.
int m_ShowProfilingInformation
void UpdateCameraParameters()
Update member variables and GUI elements according to vtkCamera position, focal point,...
void CameraReset(albaVME *vme=NULL, double zoom=1)
Reset the camera position.
vtkALBATextOrientator * m_Orientator
void SetGridPosition(double position)
Set the position for the grid actor.
void CameraReset(double bounds[6], double zoom=1)
Reset the camera position according to the bounds.
void ResetCameraClippingRange()
void SetOrientatorProperties(double rgbText[3], double rgbBackground[3], double scale=1)
Set Orientator Text Properties.
void CameraSet(int cam_position, double zoom=1)
Set the camera position.
void SetAxesVisibility(bool show)
Set the visibility for the axes actor.
double m_LeftRigthAccumulationLast
vtkRenderer * m_RenFront
Renderer used to show actors on the first layer.
double m_TopBottomAccumulation
int m_ShowGrid
Flag used to show/hide the grid.
double m_StepCameraOrientation
Step with which rotate the camera around its focal point.
void Show(bool show)
Show the render window.
wxColor GetBackgroundColor()
Get the background color for the render window.
virtual void SetListener(albaObserver *Listener)
void CameraUpdate()
Update the renderwindow.
albaString m_StereoMovieDir
void SetGridColor(const wxColor &col)
Set the color for the grid actor.
double * ComputeVisibleBounds(albaVME *vme=NULL)
Compute the bounds for the visible actors; if vme is passed, the bounds of vme are calculated.
void SetProfilingActorVisibility(bool show)
Set Profiling Information Text Visibility.
void SetStereo(int stereo_type)
Set the stereo type.
vtkRenderer * m_AlwaysVisibleRenderer
void SetOrientatorSingleActorVisibility(bool showLeft=true, bool showDown=true, bool showRight=true, bool showUp=true)
Set the visibility for the orientation single actor.
vtkALBAGridActor * m_Grid
Actor representing a grid showed into the render window.
virtual albaGUI * GetGui()
vtkRenderWindow * m_RenderWindow
< Renderer used to superimpose utility stuff to main render window
double m_TopBottomAccumulationLast
double m_LeftRigthAccumulation
void SetBackgroundColor(const wxColor &col)
Set the background color for the render window.
void SetSize(int x, int y, int w, int h)
Set the render window's size.
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)
int m_CameraPositionId
Integer representing a preset for camera position, focal point and view up.
void SetOrientatorSingleActorText(const char *textLeft, const char *textDown, const char *textRight, const char *textUp)
Set the text for the orientator actor.
void SetOrientatorVisibility(bool show=true)
Set the visibility for the orientation actor.
albaAxes * m_Axes
Actor representing a global reference system.
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)
Create all the elements necessary to build the rendering scene.
virtual void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
int m_ParallelView
Flag used to set Camera Mode Orthographic or Perspective.
vtkALBAProfilingActor * m_ProfilingActor
int m_ShowAxes
Flag used to show/hide axes in low left corner of the view.
vtkRenderer * m_RenBack
Renderer used to show actors on the second layer.
void SetGridNormal(int normal_id)
Set the normal for the grid actor.
albaString - performs common string operations on c-strings.