#include <albaAttachCamera.h>
albaAttachCamera is tool to attach the camera present in albaRWI to the selected VME.
This tool has to be updated by calling UpdateCameraMatrix() during CameraUpdate into a view like albaViewVTK
- See also
- albaViewVTK for an example on how to use it, albaRWI
Definition at line 49 of file albaAttachCamera.h.
◆ albaAttachCamera()
albaAttachCamera::albaAttachCamera |
( |
wxWindow * |
parent, |
|
|
albaRWI * |
rwi, |
|
|
albaObserver * |
Listener = NULL |
|
) |
| |
◆ ~albaAttachCamera()
albaAttachCamera::~albaAttachCamera |
( |
| ) |
|
◆ EnableAttachCamera()
void albaAttachCamera::EnableAttachCamera |
( |
| ) |
|
Enable/Disable attach camera to vme.
◆ DisableAttachCamera()
void albaAttachCamera::DisableAttachCamera |
( |
| ) |
|
◆ SetEnableAttachCamera()
void albaAttachCamera::SetEnableAttachCamera |
( |
int |
enable | ) |
|
◆ GetEnableAttachCamera()
int albaAttachCamera::GetEnableAttachCamera |
( |
| ) |
|
◆ UpdateCameraMatrix()
void albaAttachCamera::UpdateCameraMatrix |
( |
| ) |
|
Update the camera according to the absolute position of the attached VME.
To be used in client view overridden CameraUpdate() method
◆ SetVme()
void albaAttachCamera::SetVme |
( |
albaVME * |
node | ) |
|
Set the vme to follow with camera.
This method is optional; in alternative the vme to follow is set on the attach camera activation keeping the selected vme.
◆ GetVme()
albaVME * albaAttachCamera::GetVme |
( |
| ) |
|
◆ SetStartingMatrix()
void albaAttachCamera::SetStartingMatrix |
( |
vtkMatrix4x4 * |
matrix | ) |
|
Set an initial transform matrix before attaching camera.
this method must be called before SetVme
◆ OnEvent()
process the events sent by subjects
Implements albaObserver.
◆ SetListener()
void albaAttachCamera::SetListener |
( |
albaObserver * |
Listener | ) |
|
◆ GetListener()
◆ GetGui()
albaGUI * albaAttachCamera::GetGui |
( |
| ) |
|
◆ GetAttachedMatrix()
vtkMatrix4x4 * albaAttachCamera::GetAttachedMatrix |
( |
| ) |
const |
|
inline |
◆ SetAttachedMatrix()
void albaAttachCamera::SetAttachedMatrix |
( |
vtkMatrix4x4 * |
attachedMatrix | ) |
|
◆ CreateGui()
void albaAttachCamera::CreateGui |
( |
| ) |
|
|
protected |
Create GUI for AttachCamera module.
◆ m_EnableAttachCamera
int albaAttachCamera::m_EnableAttachCamera |
|
protected |
Flag to turn On/Off the camera attaching on a particular VME.
Definition at line 98 of file albaAttachCamera.h.
◆ m_AttachedVme
albaVME* albaAttachCamera::m_AttachedVme |
|
protected |
VME on which the camera is attached when the attach-camera option is 'On'.
Definition at line 99 of file albaAttachCamera.h.
◆ m_AttachedMatrix
vtkMatrix4x4* albaAttachCamera::m_AttachedMatrix |
|
protected |
Matrix given to the Camera to be moved together with m_AttachedVme.
Definition at line 100 of file albaAttachCamera.h.
◆ m_CurrentMatrix
vtkMatrix4x4* albaAttachCamera::m_CurrentMatrix |
|
protected |
Matrix given to the Camera to be moved together with m_AttachedVme.
Definition at line 101 of file albaAttachCamera.h.
◆ m_Listener
◆ m_Gui
◆ m_RenderWindow
albaRWI* albaAttachCamera::m_RenderWindow |
|
protected |
◆ m_ParentPanel
wxWindow* albaAttachCamera::m_ParentPanel |
|
protected |
The documentation for this class was generated from the following file: