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

#include <albaAnimate.h>

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

Public Member Functions

 albaAnimate (vtkRenderer *renderer, albaVME *vme, albaObserver *listener=NULL)
 
 ~albaAnimate ()
 
void OnEvent (albaEventBase *alba_event)
 
void SetListener (albaObserver *listener)
 
albaGUIGetGui ()
 
void SetInputVME (albaVME *vme)
 
void ResetKit ()
 
void FlyTo (const char *fly_position)
 
albaTagArrayGetStoredPositions ()
 
void SetStoredPositions (albaTagArray *positions)
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 

Protected Member Functions

void SetCurrentSelection (int pos)
 
void FlyTo ()
 
void RetrieveStoredPositions (bool update_listbox=true)
 
void StoreViewPoint ()
 
void RenameViewPoint ()
 
void DeleteViewPoint (int pos=0)
 
void CreateGui ()
 
void EnableWidgets ()
 
void LoadPoseFromFile (albaString &fileName)
 
void StorePoseToFile (albaString &fileName)
 

Protected Attributes

albaObserverm_Listener
 
albaVMEm_Vme
 
albaVMEm_Root
 
albaTagArraym_Tags
 
albaTagArraym_StoredPositions
 
vtkRenderer * m_Renderer
 
albaGUIm_Gui
 
wxString m_SelectedPosition
 
wxListBox * m_PositionList
 
albaGUIButtonm_StorePositionButton
 
albaGUIButtonm_DeletePositionButton
 
albaGUIButtonm_RenamePositionButton
 
albaGUIButtonm_RefreshPositionButton
 
albaGUIButtonm_ImportPositionButton
 
albaGUIButtonm_ExportPositionButton
 
albaGUIMovieCtrlm_AnimatePlayer
 
int m_InterpolateFlag
 

Detailed Description

This component allow to manage camera animation into a view.

albaAnimate allow to store and retrieve a particular point of view.

Definition at line 38 of file albaAnimate.h.

Constructor & Destructor Documentation

◆ albaAnimate()

albaAnimate::albaAnimate ( vtkRenderer *  renderer,
albaVME vme,
albaObserver listener = NULL 
)

◆ ~albaAnimate()

albaAnimate::~albaAnimate ( )

Member Function Documentation

◆ OnEvent()

void albaAnimate::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Implements albaObserver.

◆ SetListener()

void albaAnimate::SetListener ( albaObserver listener)

◆ GetGui()

albaGUI * albaAnimate::GetGui ( )

Return albaAnimate User Interface.

◆ SetInputVME()

void albaAnimate::SetInputVME ( albaVME vme)

set the vme that hold the tag-array where the ViewPoint are stored

◆ ResetKit()

void albaAnimate::ResetKit ( )

delete All entries in listbox.

◆ FlyTo() [1/2]

void albaAnimate::FlyTo ( const char *  fly_position)

Allow to fly on specified position present into the stored positions.

◆ GetStoredPositions()

albaTagArray * albaAnimate::GetStoredPositions ( )

Return the tag-array containing the stored positions (tag) list.

◆ SetStoredPositions()

void albaAnimate::SetStoredPositions ( albaTagArray positions)

Set the list of stored position given by the user.

◆ SetCurrentSelection()

void albaAnimate::SetCurrentSelection ( int  pos)
protected

Select the item into the listbox and update the validator of the widget.

◆ FlyTo() [2/2]

void albaAnimate::FlyTo ( )
protected

Move the camera to the target position.

◆ RetrieveStoredPositions()

void albaAnimate::RetrieveStoredPositions ( bool  update_listbox = true)
protected

Read root node's tags to retrieve previous stored camera positions.


◆ StoreViewPoint()

void albaAnimate::StoreViewPoint ( )
protected

Store a view position into the root's tag array.

◆ RenameViewPoint()

void albaAnimate::RenameViewPoint ( )
protected

Rename the view position.

◆ DeleteViewPoint()

void albaAnimate::DeleteViewPoint ( int  pos = 0)
protected

Delete the view position.

◆ CreateGui()

void albaAnimate::CreateGui ( )
protected

Create the GUI for the FlyTo animation.

◆ EnableWidgets()

void albaAnimate::EnableWidgets ( )
protected

Enable-Disable the GUI's widgets.

◆ LoadPoseFromFile()

void albaAnimate::LoadPoseFromFile ( albaString fileName)
protected

Load poses from file.

◆ StorePoseToFile()

void albaAnimate::StorePoseToFile ( albaString fileName)
protected

Store poses to file.

Member Data Documentation

◆ m_Listener

albaObserver* albaAnimate::m_Listener
protected

Definition at line 99 of file albaAnimate.h.

◆ m_Vme

albaVME* albaAnimate::m_Vme
protected

Definition at line 101 of file albaAnimate.h.

◆ m_Root

albaVME* albaAnimate::m_Root
protected

Definition at line 102 of file albaAnimate.h.

◆ m_Tags

albaTagArray* albaAnimate::m_Tags
protected

Definition at line 104 of file albaAnimate.h.

◆ m_StoredPositions

albaTagArray* albaAnimate::m_StoredPositions
protected

Definition at line 105 of file albaAnimate.h.

◆ m_Renderer

vtkRenderer* albaAnimate::m_Renderer
protected

Definition at line 106 of file albaAnimate.h.

◆ m_Gui

albaGUI* albaAnimate::m_Gui
protected

Definition at line 107 of file albaAnimate.h.

◆ m_SelectedPosition

wxString albaAnimate::m_SelectedPosition
protected

Definition at line 109 of file albaAnimate.h.

◆ m_PositionList

wxListBox* albaAnimate::m_PositionList
protected

Definition at line 110 of file albaAnimate.h.

◆ m_StorePositionButton

albaGUIButton* albaAnimate::m_StorePositionButton
protected

Definition at line 111 of file albaAnimate.h.

◆ m_DeletePositionButton

albaGUIButton* albaAnimate::m_DeletePositionButton
protected

Definition at line 112 of file albaAnimate.h.

◆ m_RenamePositionButton

albaGUIButton* albaAnimate::m_RenamePositionButton
protected

Definition at line 113 of file albaAnimate.h.

◆ m_RefreshPositionButton

albaGUIButton* albaAnimate::m_RefreshPositionButton
protected

Definition at line 114 of file albaAnimate.h.

◆ m_ImportPositionButton

albaGUIButton* albaAnimate::m_ImportPositionButton
protected

Definition at line 115 of file albaAnimate.h.

◆ m_ExportPositionButton

albaGUIButton* albaAnimate::m_ExportPositionButton
protected

Definition at line 116 of file albaAnimate.h.

◆ m_AnimatePlayer

albaGUIMovieCtrl* albaAnimate::m_AnimatePlayer
protected

Definition at line 117 of file albaAnimate.h.

◆ m_InterpolateFlag

int albaAnimate::m_InterpolateFlag
protected

Definition at line 118 of file albaAnimate.h.


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