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

#include <albaAttachCamera.h>

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

Public Member Functions

 albaAttachCamera (wxWindow *parent, albaRWI *rwi, albaObserver *Listener=NULL)
 
 ~albaAttachCamera ()
 
void EnableAttachCamera ()
 
void DisableAttachCamera ()
 
void SetEnableAttachCamera (int enable)
 
int GetEnableAttachCamera ()
 
void UpdateCameraMatrix ()
 
void SetVme (albaVME *node)
 
albaVMEGetVme ()
 
void SetStartingMatrix (vtkMatrix4x4 *matrix)
 
void OnEvent (albaEventBase *alba_event)
 
void SetListener (albaObserver *Listener)
 
albaObserverGetListener ()
 
albaGUIGetGui ()
 
vtkMatrix4x4 * GetAttachedMatrix () const
 
void SetAttachedMatrix (vtkMatrix4x4 *attachedMatrix)
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 

Protected Member Functions

void CreateGui ()
 

Protected Attributes

int m_EnableAttachCamera
 
albaVMEm_AttachedVme
 
vtkMatrix4x4 * m_AttachedMatrix
 
vtkMatrix4x4 * m_CurrentMatrix
 
albaObserverm_Listener
 
albaGUIm_Gui
 
albaRWIm_RenderWindow
 
wxWindow * m_ParentPanel
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ albaAttachCamera()

albaAttachCamera::albaAttachCamera ( wxWindow *  parent,
albaRWI rwi,
albaObserver Listener = NULL 
)

Attach camera is disabled by default: use EnableAttachCamera() to enable attaching.

◆ ~albaAttachCamera()

albaAttachCamera::~albaAttachCamera ( )

Member Function Documentation

◆ 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()

void albaAttachCamera::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Implements albaObserver.

◆ SetListener()

void albaAttachCamera::SetListener ( albaObserver Listener)

◆ GetListener()

albaObserver * albaAttachCamera::GetListener ( )

◆ GetGui()

albaGUI * albaAttachCamera::GetGui ( )

Returns the albaAttachCamera's GUI.

◆ GetAttachedMatrix()

vtkMatrix4x4 * albaAttachCamera::GetAttachedMatrix ( ) const
inline

Returns AttachedMatrix.

Definition at line 87 of file albaAttachCamera.h.

◆ SetAttachedMatrix()

void albaAttachCamera::SetAttachedMatrix ( vtkMatrix4x4 *  attachedMatrix)

Sets AttachedMatrix.

◆ CreateGui()

void albaAttachCamera::CreateGui ( )
protected

Create GUI for AttachCamera module.

Member Data Documentation

◆ 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

albaObserver* albaAttachCamera::m_Listener
protected

Definition at line 104 of file albaAttachCamera.h.

◆ m_Gui

albaGUI* albaAttachCamera::m_Gui
protected

Definition at line 105 of file albaAttachCamera.h.

◆ m_RenderWindow

albaRWI* albaAttachCamera::m_RenderWindow
protected

Definition at line 106 of file albaAttachCamera.h.

◆ m_ParentPanel

wxWindow* albaAttachCamera::m_ParentPanel
protected

Definition at line 107 of file albaAttachCamera.h.


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