38class vtkAbstractPropPicker;
119 virtual int Pick(
double X,
double Y) {
return false;}
159 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 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: the base avatar does not forward them (see albaAgent::OnEvent)
void SetDevice(albaDevice *device)
Set the device the avatar follows: the avatar observes its input channel.
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)
albaAbstractTypeMacro(albaAvatar, albaInteractionAgent)
int GetMode()
return the current avatar modality.
void SetActor3D(vtkProp3D *avatar)
Set the actor used to display the 3D cursor.
albaDevice * m_Device
the device the avatar follows
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 UpdateGui()
force GUI update
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
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
albaDevice * GetDevice()
Return the device the avatar follows.
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.
This abstract class manages function calls coming from devices and issue specific events to interacto...
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.
Common base class of interactors and interaction tools.
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.