|
ALBA
|
#include <albaRWIBase.h>


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 | NotifyClick () |
| void | EnableCameraInteraction (bool enable) |
| bool | IsCameraInteractionEnabled () |
| void | SetView (albaView *view) |
| albaView * | GetView () |
| void | SetStereoMovieDirectory (const char *dir) |
| void | EnableStereoMovie (bool enable=true) |
| void | Initialize () |
| void | Enable () |
| void | Disable () |
| void | ReleaseButtons () |
| void | Start () |
| void | UpdateSize (int x, int y) |
| void | TerminateApp () |
| wxBitmap * | GetImage (int magnification=1) |
| void | SaveImage (albaString filename="") |
| void | SaveImageFromImageData (albaString &filename, vtkImageData *imageData) |
| void | SaveAllImages (albaString filename, albaViewCompound *v) |
| 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 albaRWIBase * | New () |
| static albaRWIBase * | GetLastMouseRWI () |
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 |
| bool | m_CustomInteractorStyle |
| bool | m_CameraInteractionEnabled |
| albaView * | m_View |
| int | m_LastX |
| int | m_LastY |
| bool | m_LeftDown |
| bool | m_MiddleDown |
| bool | m_RightDown |
Static Protected Attributes | |
| static albaRWIBase * | m_LastMouseRWI |
albaRWIBase is a vtkRenderWindowInteractor placed on a wxWindow
Definition at line 61 of file albaRWIBase.h.
| albaRWIBase::albaRWIBase | ( | ) |
| 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::vtkTypeMacro | ( | albaRWIBase | , |
| vtkRenderWindowInteractor | |||
| ) |
|
static |
| void albaRWIBase::NotifyClick | ( | ) |
Notify mouse click on a view.
|
inline |
Enable/disable the camera motion with the mouse in this render window (enabled by default).
Each mouse event calls the method of the router of the mouse events registered in albaServiceLocator with this render window, the renderer under the mouse and the position: the router gets the view from the render window. The modifier keys are set first.
Definition at line 84 of file albaRWIBase.h.
|
inline |
Definition at line 85 of file albaRWIBase.h.
|
inline |
Set the view this render window belongs to (the compound view for the render windows of its sub views)
Definition at line 88 of file albaRWIBase.h.
|
inline |
Definition at line 89 of file albaRWIBase.h.
|
inlinestatic |
Return the render window that got the last mouse move, button down or wheel, NULL if deleted.
Definition at line 92 of file albaRWIBase.h.
| void albaRWIBase::SetStereoMovieDirectory | ( | const char * | dir | ) |
Set the directory for the Stereo Movie.
| void albaRWIBase::EnableStereoMovie | ( | bool | enable = true | ) |
Enable/disable stereo movie frames generation.
| void albaRWIBase::Initialize | ( | ) |
Initialize the render window interactor.
| void albaRWIBase::Enable | ( | ) |
Enable the render window interactor.
| void albaRWIBase::Disable | ( | ) |
Disable the render window interactor: the buttons still pressed are released first.
| void albaRWIBase::ReleaseButtons | ( | ) |
Send the button up of each button still pressed, at the last position, so that the interaction started by them ends: called at the loss of the mouse capture, when the render window is disabled and when it is destroyed.
| void albaRWIBase::Start | ( | ) |
Redefined method to take the control on event loop.
| void albaRWIBase::UpdateSize | ( | int | x, |
| int | y | ||
| ) |
Update the size of the render window.
| void albaRWIBase::TerminateApp | ( | ) |
Redefined method to terminate the application.
| wxBitmap * albaRWIBase::GetImage | ( | int | magnification = 1 | ) |
Return an image of the render window.
| void albaRWIBase::SaveImage | ( | albaString | filename = "" | ) |
Save an image of the render window.
| void albaRWIBase::SaveImageFromImageData | ( | albaString & | filename, |
| vtkImageData * | imageData | ||
| ) |
| void albaRWIBase::SaveAllImages | ( | albaString | filename, |
| albaViewCompound * | v | ||
| ) |
Save all images of the compound view.
| vtkCamera * albaRWIBase::GetCamera | ( | ) |
Return the current used camera.
| int albaRWIBase::CreateTimer | ( | int | timertype | ) |
| int albaRWIBase::DestroyTimer | ( | ) |
| void albaRWIBase::OnPaint | ( | wxPaintEvent & | event | ) |
Method called whe the render window as to be repainted.
| void albaRWIBase::OnEraseBackground | ( | wxEraseEvent & | event | ) |
|
virtual |
The double click is sent as a left button down.
|
virtual |
Capture mouse and notify the mouse click.
|
virtual |
Release the mouse and send an event with mouse position.
|
virtual |
Capture mouse and notify the mouse click.
|
virtual |
Release the mouse and send an event with mouse position.
|
virtual |
Capture mouse and notify the mouse click.
|
virtual |
Release the mouse and send an event with mouse position.
|
virtual |
Send an event with mouse position.
|
virtual |
Send an event with mouse wheel.
|
virtual |
Send an event with timer information.
|
virtual |
Send an event with key code information.
|
virtual |
Send an event with key code information.
|
virtual |
Send an event with key code information.
|
virtual |
Find the current camera and set UseHorizontalViewAngle depending on the win aspect ratio.
|
virtual |
Do nothing.
|
virtual |
Release the buttons still pressed (see ReleaseButtons).
| void albaRWIBase::SetInteractorStyle | ( | vtkInteractorObserver * | o | ) |
Redefined to set the m_CustomInteractorStyle flag.
| void albaRWIBase::GenerateStereoFrames | ( | ) |
Generate stereo frames for movie.
|
protected |
Definition at line 66 of file albaRWIBase.h.
| bool albaRWIBase::m_Hidden |
Definition at line 191 of file albaRWIBase.h.
| int albaRWIBase::m_Width |
Definition at line 192 of file albaRWIBase.h.
| int albaRWIBase::m_Height |
Definition at line 193 of file albaRWIBase.h.
|
protected |
Definition at line 199 of file albaRWIBase.h.
|
protected |
Definition at line 200 of file albaRWIBase.h.
|
protected |
Definition at line 201 of file albaRWIBase.h.
|
protected |
Definition at line 202 of file albaRWIBase.h.
|
protected |
Definition at line 203 of file albaRWIBase.h.
|
protected |
Definition at line 204 of file albaRWIBase.h.
|
protected |
Definition at line 205 of file albaRWIBase.h.
|
protected |
Definition at line 206 of file albaRWIBase.h.
|
protected |
Definition at line 208 of file albaRWIBase.h.
|
protected |
Definition at line 209 of file albaRWIBase.h.
|
protected |
Definition at line 210 of file albaRWIBase.h.
|
protected |
true if the mouse moves the camera of this render window
Definition at line 211 of file albaRWIBase.h.
|
protected |
the view this render window belongs to
Definition at line 212 of file albaRWIBase.h.
|
staticprotected |
the render window that got the last mouse event
Definition at line 213 of file albaRWIBase.h.
|
protected |
Definition at line 215 of file albaRWIBase.h.
|
protected |
Definition at line 216 of file albaRWIBase.h.
|
protected |
buttons pressed: released when the mouse capture is lost
Definition at line 218 of file albaRWIBase.h.
|
protected |
Definition at line 219 of file albaRWIBase.h.
|
protected |
Definition at line 220 of file albaRWIBase.h.