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

#include <albaRWIBase.h>

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

Public Member Functions

 vtkTypeMacro (albaRWIBase, vtkRenderWindowInteractor)
 
 albaRWIBase ()
 
 albaRWIBase (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxWANTS_CHARS, const wxString &name=wxPanelNameStr)
 
 ~albaRWIBase ()
 
void SetListener (albaObserver *listener)
 
void NotifyClick ()
 
void SetMouse (albaDeviceButtonsPadMouse *mouse)
 
void SetStereoMovieDirectory (const char *dir)
 
void EnableStereoMovie (bool enable=true)
 
void Initialize ()
 
void Enable ()
 
void Disable ()
 
void Start ()
 
void UpdateSize (int x, int y)
 
void TerminateApp ()
 
wxBitmap * GetImage (int magnification=1)
 
void SaveImage (albaString filename="", int magnification=1)
 
void SaveImageRecursive (albaString filename="", albaViewCompound *v=NULL, int magnification=1)
 
void RecursiveSaving (albaString filename="", albaViewCompound *v=NULL, int magnification=1)
 
void SaveAllImages (albaString filename="", albaViewCompound *v=NULL)
 
vtkCamera * GetCamera ()
 
int CreateTimer (int timertype)
 
int DestroyTimer ()
 
void OnPaint (wxPaintEvent &event)
 
void OnEraseBackground (wxEraseEvent &event)
 
virtual void OnLeftMouseDoubleClick (wxMouseEvent &event)
 
virtual void OnLeftMouseButtonDown (wxMouseEvent &event)
 
virtual void OnLeftMouseButtonUp (wxMouseEvent &event)
 
virtual void OnMiddleMouseButtonDown (wxMouseEvent &event)
 
virtual void OnMiddleMouseButtonUp (wxMouseEvent &event)
 
virtual void OnRightMouseButtonDown (wxMouseEvent &event)
 
virtual void OnRightMouseButtonUp (wxMouseEvent &event)
 
virtual void OnMouseMotion (wxMouseEvent &event)
 
virtual void OnMouseWheel (wxMouseEvent &event)
 
virtual void OnTimer (wxTimerEvent &event)
 
virtual void OnKeyDown (wxKeyEvent &event)
 
virtual void OnKeyUp (wxKeyEvent &event)
 
virtual void OnChar (wxKeyEvent &event)
 
virtual void OnSize (wxSizeEvent &event)
 
virtual void OnIdle (wxIdleEvent &event)
 
virtual void OnMouseCaptureLost (wxMouseCaptureLostEvent &WXUNUSED(evt))
 
void SetInteractorStyle (vtkInteractorObserver *o)
 
void GenerateStereoFrames ()
 

Static Public Member Functions

static albaRWIBaseNew ()
 

Public Attributes

bool m_Hidden
 
int m_Width
 
int m_Height
 

Protected Attributes

wxTimer m_Timer
 
albaString m_StereoMovieDir
 
int m_StereoMovieFrameCounter
 
bool m_StereoMovieEnable
 
bool m_StereoFrameGenerate
 
vtkWindowToImageFilter * m_StereoMovieLeftEye
 
vtkWindowToImageFilter * m_StereoMovieRightEye
 
vtkImageAppend * m_StereoImage
 
vtkPNGWriter * m_StereoMoviewFrameWriter
 
albaString m_SaveDir
 
vtkCamera * m_Camera
 
albaDeviceButtonsPadMousem_Mouse
 
bool m_CustomInteractorStyle
 
albaObserverm_Listener
 
int m_LastX
 
int m_LastY
 

Detailed Description

albaRWIBase is a vtkRenderWindowInteractor placed on a wxWindow

Attention:
Normally there is no need to destroy any object derived from wxWindow, they will be automatically destroyed as a result of closing the MainFrame. albaRWIBase behave differently, and you must explicitly destroy them by calling "Delete()" BEFORE wxWindow destroy it (using "delete").

Definition at line 60 of file albaRWIBase.h.

Constructor & Destructor Documentation

◆ albaRWIBase() [1/2]

albaRWIBase::albaRWIBase ( )

◆ albaRWIBase() [2/2]

albaRWIBase::albaRWIBase ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxWANTS_CHARS,
const wxString &  name = wxPanelNameStr 
)

◆ ~albaRWIBase()

albaRWIBase::~albaRWIBase ( )

Member Function Documentation

◆ vtkTypeMacro()

albaRWIBase::vtkTypeMacro ( albaRWIBase  ,
vtkRenderWindowInteractor   
)

◆ New()

static albaRWIBase * albaRWIBase::New ( )
static

◆ SetListener()

void albaRWIBase::SetListener ( albaObserver listener)
inline

Definition at line 77 of file albaRWIBase.h.

◆ NotifyClick()

void albaRWIBase::NotifyClick ( )

Notify mouse click on a view.

◆ SetMouse()

void albaRWIBase::SetMouse ( albaDeviceButtonsPadMouse mouse)

set the mouse device to which forward events from the view

◆ SetStereoMovieDirectory()

void albaRWIBase::SetStereoMovieDirectory ( const char *  dir)

Set the directory for the Stereo Movie.

◆ EnableStereoMovie()

void albaRWIBase::EnableStereoMovie ( bool  enable = true)

Enable/disable stereo movie frames generation.

◆ Initialize()

void albaRWIBase::Initialize ( )

Initialize the render window interactor.

◆ Enable()

void albaRWIBase::Enable ( )

Enable the render window interactor.

◆ Disable()

void albaRWIBase::Disable ( )

Disable the render window interactor.

◆ Start()

void albaRWIBase::Start ( )

Redefined method to take the control on event loop.

◆ UpdateSize()

void albaRWIBase::UpdateSize ( int  x,
int  y 
)

Update the size of the render window.

◆ TerminateApp()

void albaRWIBase::TerminateApp ( )

Redefined method to terminate the application.

◆ GetImage()

wxBitmap * albaRWIBase::GetImage ( int  magnification = 1)

Return an image of the render window.

◆ SaveImage()

void albaRWIBase::SaveImage ( albaString  filename = "",
int  magnification = 1 
)

Save an image of the render window.

◆ SaveImageRecursive()

void albaRWIBase::SaveImageRecursive ( albaString  filename = "",
albaViewCompound v = NULL,
int  magnification = 1 
)

Save all images of a view compound creating a view for every subview.

◆ RecursiveSaving()

void albaRWIBase::RecursiveSaving ( albaString  filename = "",
albaViewCompound v = NULL,
int  magnification = 1 
)

◆ SaveAllImages()

void albaRWIBase::SaveAllImages ( albaString  filename = "",
albaViewCompound v = NULL 
)

Save all images of the compound view.

◆ GetCamera()

vtkCamera * albaRWIBase::GetCamera ( )

Return the current used camera.

◆ CreateTimer()

int albaRWIBase::CreateTimer ( int  timertype)

◆ DestroyTimer()

int albaRWIBase::DestroyTimer ( )

◆ OnPaint()

void albaRWIBase::OnPaint ( wxPaintEvent &  event)

Method called whe the render window as to be repainted.

◆ OnEraseBackground()

void albaRWIBase::OnEraseBackground ( wxEraseEvent &  event)

◆ OnLeftMouseDoubleClick()

virtual void albaRWIBase::OnLeftMouseDoubleClick ( wxMouseEvent &  event)
virtual

Capture left mouse double click and notify it.

◆ OnLeftMouseButtonDown()

virtual void albaRWIBase::OnLeftMouseButtonDown ( wxMouseEvent &  event)
virtual

Capture mouse and notify the mouse click.

◆ OnLeftMouseButtonUp()

virtual void albaRWIBase::OnLeftMouseButtonUp ( wxMouseEvent &  event)
virtual

Release the mouse and send an event with mouse position.

◆ OnMiddleMouseButtonDown()

virtual void albaRWIBase::OnMiddleMouseButtonDown ( wxMouseEvent &  event)
virtual

Capture mouse and notify the mouse click.

◆ OnMiddleMouseButtonUp()

virtual void albaRWIBase::OnMiddleMouseButtonUp ( wxMouseEvent &  event)
virtual

Release the mouse and send an event with mouse position.

◆ OnRightMouseButtonDown()

virtual void albaRWIBase::OnRightMouseButtonDown ( wxMouseEvent &  event)
virtual

Capture mouse and notify the mouse click.

◆ OnRightMouseButtonUp()

virtual void albaRWIBase::OnRightMouseButtonUp ( wxMouseEvent &  event)
virtual

Release the mouse and send an event with mouse position.

◆ OnMouseMotion()

virtual void albaRWIBase::OnMouseMotion ( wxMouseEvent &  event)
virtual

Send an event with mouse position.

◆ OnMouseWheel()

virtual void albaRWIBase::OnMouseWheel ( wxMouseEvent &  event)
virtual

Send an event with mouse wheel.

◆ OnTimer()

virtual void albaRWIBase::OnTimer ( wxTimerEvent &  event)
virtual

Send an event with timer information.

◆ OnKeyDown()

virtual void albaRWIBase::OnKeyDown ( wxKeyEvent &  event)
virtual

Send an event with key code information.

◆ OnKeyUp()

virtual void albaRWIBase::OnKeyUp ( wxKeyEvent &  event)
virtual

Send an event with key code information.

◆ OnChar()

virtual void albaRWIBase::OnChar ( wxKeyEvent &  event)
virtual

Send an event with key code information.

◆ OnSize()

virtual void albaRWIBase::OnSize ( wxSizeEvent &  event)
virtual

Find the current camera and set UseHorizontalViewAngle depending on the win aspect ratio.

◆ OnIdle()

virtual void albaRWIBase::OnIdle ( wxIdleEvent &  event)
virtual

Do nothing.

◆ OnMouseCaptureLost()

virtual void albaRWIBase::OnMouseCaptureLost ( wxMouseCaptureLostEvent &  WXUNUSEDevt)
virtual

Manage Mouse Capture Lost.

◆ SetInteractorStyle()

void albaRWIBase::SetInteractorStyle ( vtkInteractorObserver *  o)

Redefined to set the m_CustomInteractorStyle flag.

◆ GenerateStereoFrames()

void albaRWIBase::GenerateStereoFrames ( )

Generate stereo frames for movie.

Member Data Documentation

◆ m_Timer

wxTimer albaRWIBase::m_Timer
protected

Definition at line 65 of file albaRWIBase.h.

◆ m_Hidden

bool albaRWIBase::m_Hidden

Definition at line 179 of file albaRWIBase.h.

◆ m_Width

int albaRWIBase::m_Width

Definition at line 180 of file albaRWIBase.h.

◆ m_Height

int albaRWIBase::m_Height

Definition at line 181 of file albaRWIBase.h.

◆ m_StereoMovieDir

albaString albaRWIBase::m_StereoMovieDir
protected

Definition at line 187 of file albaRWIBase.h.

◆ m_StereoMovieFrameCounter

int albaRWIBase::m_StereoMovieFrameCounter
protected

Definition at line 188 of file albaRWIBase.h.

◆ m_StereoMovieEnable

bool albaRWIBase::m_StereoMovieEnable
protected

Definition at line 189 of file albaRWIBase.h.

◆ m_StereoFrameGenerate

bool albaRWIBase::m_StereoFrameGenerate
protected

Definition at line 190 of file albaRWIBase.h.

◆ m_StereoMovieLeftEye

vtkWindowToImageFilter* albaRWIBase::m_StereoMovieLeftEye
protected

Definition at line 191 of file albaRWIBase.h.

◆ m_StereoMovieRightEye

vtkWindowToImageFilter* albaRWIBase::m_StereoMovieRightEye
protected

Definition at line 192 of file albaRWIBase.h.

◆ m_StereoImage

vtkImageAppend* albaRWIBase::m_StereoImage
protected

Definition at line 193 of file albaRWIBase.h.

◆ m_StereoMoviewFrameWriter

vtkPNGWriter* albaRWIBase::m_StereoMoviewFrameWriter
protected

Definition at line 194 of file albaRWIBase.h.

◆ m_SaveDir

albaString albaRWIBase::m_SaveDir
protected

Definition at line 196 of file albaRWIBase.h.

◆ m_Camera

vtkCamera* albaRWIBase::m_Camera
protected

Definition at line 197 of file albaRWIBase.h.

◆ m_Mouse

albaDeviceButtonsPadMouse* albaRWIBase::m_Mouse
protected

Definition at line 198 of file albaRWIBase.h.

◆ m_CustomInteractorStyle

bool albaRWIBase::m_CustomInteractorStyle
protected

Definition at line 199 of file albaRWIBase.h.

◆ m_Listener

albaObserver* albaRWIBase::m_Listener
protected

Definition at line 200 of file albaRWIBase.h.

◆ m_LastX

int albaRWIBase::m_LastX
protected

Definition at line 202 of file albaRWIBase.h.

◆ m_LastY

int albaRWIBase::m_LastY
protected

Definition at line 203 of file albaRWIBase.h.


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