37class vtkAbstractPropPicker;
124 virtual int Pick(
double X,
double Y) {
return false;}
158 virtual vtkAbstractPropPicker *
GetPicker(){
return NULL; }
Avatars are entities moving in the virtual world according to user's movements, and thus representing...
int m_Mode
Avatar modality, either 2D or 3D
virtual void InternalShutdown()
redefined to remove Cursor from renderer
virtual void ShowCursor2D()
Show the Avatar's 2D cursor actor.
int m_Cursor3DHideCounter
counter of the HideCursor3D() calls, used to manage concurrent calls
virtual int InternalStore(albaStorageElement *node)
This is used to allow nested serialization of subclasses.
virtual void OnPostResetCamera(albaEventBase *event)
process event sent after a camera reset
virtual vtkAbstractPropPicker * GetPicker()
return the picker used by this avatar: from the picker is possible to obtain information about the pi...
int m_Cursor2DHideCounter
counter of the HideCursor2D() calls, used to manage concurrent calls
vtkActor2D * GetActor2D()
Return the prop3D used for this avatar.
virtual void ShowCursor3D()
Show the Avatar's 3D cursor actor.
virtual void OnEvent(albaEventBase *event)
Process events coming from tracker.
void SetActor2D(vtkActor2D *avatar)
Set the actor used to display the 2D cursor.
albaGUI * GetGui()
Return pointer to the GUI.
virtual int Pick(double X, double Y)
int GetMode()
return the current avatar modality.
void SetActor3D(vtkProp3D *avatar)
Set the actor used to display the 3D cursor.
virtual void SetTracker(albaDeviceButtonsPadTracker *tracker)
set the tracker attached to this avatar: the avatar usually follows the movements of the tracker
virtual void CreateGui()
internal function to create device GUI for settings
virtual int Pick(albaMatrix &pose)
pick in the scene with this avatar, give the avatar pose
virtual void OnPreResetCamera(albaEventBase *event)
process event sent before a camera reset
virtual void UpdateGui()
force GUI update
virtual void OnViewSelected(albaEvent *e)
process event sent when a view has been selected
void SetMode(int mode)
Set Avatar modality: MODE_2D or MODE_3D.
albaGUI * m_Gui
the settings Gui
virtual int InternalInitialize()
redefined to add the Cursor actor into the selected renderer
albaAbstractTypeMacro(albaAvatar, albaInteractor)
virtual int InternalRestore(albaStorageElement *node)
This is called by Restore() and must be reimplemented by subclasses The element from which the object...
void SetModeTo2D()
Set Avatar modality to MODE_2D.
vtkALBASmartPointer< vtkProp3D > m_Actor3D
3D representation of the avatar
virtual void HideCursor2D()
Hide the Avatar's 2D cursor actor, i.e.
vtkALBASmartPointer< vtkActor2D > m_Actor2D
2D representation of the avatar
virtual void Hide()
Hide all the Avatar's graphics actors, i.e.
void SetModeTo3D()
Set Avatar modality to MODE_3D.
virtual void HideCursor3D()
Hide the Avatar's 3D cursor actor, i.e.
vtkProp3D * GetActor3D()
Return the prop3D used for this avatar.
albaDeviceButtonsPadTracker * GetTracker()
Return settings object for this Avatar, and if not yet allocated create it.
virtual void Show()
Show all the Avatar's graphics actors.
virtual void SetRendererAndView(vtkRenderer *ren, albaView *view)
Set the renderer this avatar is attached to.
Implementation of the message object for the Subject/Observer design pattern.
albaEvent - Class implementing ALBA application events.
albaGUI is a panel with function to easily create GUI.
Abstract class for ALBA interactors This class provides base interface and features of ALBA continuou...
albaMatrix - Time stamped 4x4 Matrix.
albaStorable is an interface for serializable objects.
Abstract class representing the interface for the unit of information stored in the storage.
albaView is the base class for Views in alba.
ALBA_ID_DEC(AVATAR_SCREEN_PLANE_SETTINGS)
/**
ALBA_ID_DEC(AVATAR_WORKING_BOX_SETTINGS)
Issued to update all the avatar with the same working box.