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

#include <albaAvatar3DCone.h>

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

Public Member Functions

 albaTypeMacro (albaAvatar3DCone, albaAvatar3D)
 
virtual int Pick (albaMatrix &tracker_pose)
 
- Public Member Functions inherited from albaAvatar3D
 albaAbstractTypeMacro (albaAvatar3D, albaAvatar)
 
virtual void SetRendererAndView (vtkRenderer *ren, albaView *view)
 
virtual void Hide ()
 
virtual void Show ()
 
vtkALBARayCast3DPicker * GetPicker3D ()
 
vtkCellPicker * GetPicker2D ()
 
virtual vtkAbstractPropPicker * GetPicker ()
 
void SetDisplayWorkingBox (int vis)
 
int GetDisplayWorkingBox ()
 
void DisplayWorkingBoxOn ()
 
void DisplayWorkingBoxOff ()
 
void SetDisplayDebugText (int vis)
 
int GetDisplayDebugText ()
 
void SetDebugTextPosition (double *pos)
 
void SetDebugTextPosition (double posx, double posy)
 
double * GetDebugTextPosition ()
 
void SetCoordsFrame (int frame)
 
int GetCoordsFrame ()
 
virtual void OnEvent (albaEventBase *event)
 
virtual void SetTracker (albaDeviceButtonsPadTracker *tracker)
 
void CanonicalToWorld (const albaMatrix &pose, albaMatrix &dest)
 
void CanonicalToWorld (albaMatrix &pose)
 
void CanonicalToWorld (albaTransform *trans)
 
void WorldToCanonical (const albaMatrix &pose, albaMatrix &dest)
 
void WorldToCanonical (albaMatrix &pose)
 
void WorldToCanonical (albaTransform *trans)
 
void TrackerToWorld (albaMatrix &tracker_pose, albaMatrix &world_pose, int use_scale=1, int use_rot=1, int use_trans=1)
 
void WorldToTracker (albaMatrix &world_pose, albaMatrix &tracker_pose, int use_scale=1, int use_rot=1, int use_trans=1)
 
void TrackerToDisplay (albaMatrix &tracker_pose, double xy[2])
 
void WorldToDisplay (albaMatrix &world_pose, double xy[2])
 
void WorldToNormalizedDisplay (albaMatrix &world_pose, double xy[2])
 
albaCameraTransform * GetCanonicalToWorldTransform ()
 
void SetFittingMode (int type)
 
int GetFittingMode ()
 
albaMatrix & GetLastPoseMatrix ()
 
virtual void CreateGui ()
 
- Public Member Functions inherited from albaAvatar
 albaAbstractTypeMacro (albaAvatar, albaInteractionAgent)
 
virtual void SetRendererAndView (vtkRenderer *ren, albaView *view)
 
void SetActor3D (vtkProp3D *avatar)
 
vtkProp3D * GetActor3D ()
 
void SetActor2D (vtkActor2D *avatar)
 
vtkActor2D * GetActor2D ()
 
virtual void Hide ()
 
virtual void Show ()
 
virtual void HideCursor3D ()
 
virtual void ShowCursor3D ()
 
virtual void HideCursor2D ()
 
virtual void ShowCursor2D ()
 
virtual int Pick (albaMatrix &pose)
 
virtual int Pick (double X, double Y)
 
virtual void OnEvent (albaEventBase *event)
 
albaDevice * GetDevice ()
 
void SetDevice (albaDevice *device)
 
albaDeviceButtonsPadTracker * GetTracker ()
 
virtual void SetTracker (albaDeviceButtonsPadTracker *tracker)
 
void SetMode (int mode)
 
int GetMode ()
 
void SetModeTo2D ()
 
void SetModeTo3D ()
 
virtual vtkAbstractPropPicker * GetPicker ()
 
albaGUI * GetGui ()
 
virtual void CreateGui ()
 
virtual void UpdateGui ()
 
- Public Member Functions inherited from albaInteractionAgent
 albaInteractionAgent ()
 
virtual ~albaInteractionAgent ()
 
 albaAbstractTypeMacro (albaInteractionAgent, albaAgent)
 
virtual void SetRendererAndView (vtkRenderer *ren, albaView *view)
 
vtkRenderer * GetRenderer ()
 
albaView * GetView ()
 
virtual void SetModifierKeys (bool ctrlDown, bool altDown, bool shiftDown)
 
bool GetCtrlDown ()
 
bool GetAltDown ()
 
bool GetShiftDown ()
 
- Public Member Functions inherited from albaAgent
 albaAbstractTypeMacro (albaAgent, albaReferenceCounted)
 
void AddObserver (albaObserver *listener, albaID channel=MCH_UP)
 
void RemoveObserver (albaObserver *listener)
 
void RemoveAllObservers ()
 
virtual void OnEvent (albaEventBase *event)
 
bool HasObservers (albaID channel)
 
void GetObservers (albaID channel, std::vector< albaObserver * > &olist)
 
int Initialize ()
 
void Shutdown ()
 
int IsInitialized ()
 
virtual void SetName (const char *name)
 
const char * GetName ()
 
- Public Member Functions inherited from albaReferenceCounted
 albaReferenceCounted ()
 
virtual ~albaReferenceCounted ()
 
 albaAbstractTypeMacro (albaReferenceCounted, albaObject)
 
virtual void Delete ()
 
void Register (void *obj)
 
virtual void UnRegister (void *obj)
 
int GetReferenceCount ()
 
void SetReferenceCount (int)
 
- Public Member Functions inherited from albaObject
 albaObject ()
 
virtual ~albaObject ()
 
virtual void Delete ()
 
virtual const char * GetTypeName () const
 
virtual bool IsA (const char *type_name) const
 
virtual bool IsA (const albaTypeID &type_id) const
 
virtual albaObject * NewObjectInstance () const =0
 
virtual const albaTypeID & GetTypeId () const
 
virtual void Print (std::ostream &os, const int indent=0) const
 
 albaObject (const albaObject &c)
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 
- Public Member Functions inherited from albaEventBroadcaster
 albaEventBroadcaster (void *owner=NULL)
 
virtual ~albaEventBroadcaster ()
 
 albaEventBroadcaster (const albaEventBroadcaster &c)
 
void AddObserver (albaObserver *obj)
 
void AddObserver (albaObserver &obj)
 
albaObserverCallback * AddObserverCallback (void(*f)(void *sender, albaID eid, void *clientdata, void *calldata))
 
bool RemoveObserver (albaObserver *obj)
 
void RemoveAllObservers ()
 
bool IsObserver (albaObserver *obj)
 
bool HasObservers ()
 
void GetObservers (std::vector< albaObserver * > &olist)
 
void InvokeEvent (albaEventBase &e)
 
void InvokeEvent (albaEventBase *e)
 
void InvokeEvent (void *sender, albaID id=ID_NO_EVENT, void *data=NULL)
 
void SetChannel (albaID ch)
 
albaID GetChannel ()
 
virtual void SetListener (albaObserver *o)
 
- Public Member Functions inherited from albaEventSender
 albaEventSender ()
 
virtual void SetListener (albaObserver *o)
 
virtual albaObserver * GetListener ()
 
virtual bool HasListener ()
 
virtual void InvokeEvent (albaEventBase &e)
 
virtual void InvokeEvent (albaEventBase *e)
 
virtual void InvokeEvent (void *sender, albaID id=ID_NO_EVENT, void *data=NULL)
 
- Public Member Functions inherited from albaStorable
 albaStorable ()
 
int Store (albaStorageElement *element)
 
int Restore (albaStorageElement *element)
 
albaObject * CastToObject ()
 
bool IsStorable ()
 

Protected Member Functions

 albaAvatar3DCone ()
 
virtual ~albaAvatar3DCone ()
 
- Protected Member Functions inherited from albaAvatar3D
 albaAvatar3D ()
 
virtual ~albaAvatar3D ()
 
void SetLastPoseMatrix (albaMatrix &matrix)
 
virtual int InternalStore (albaStorageElement *node)
 
virtual int InternalRestore (albaStorageElement *node)
 
virtual int InternalInitialize ()
 
virtual void InternalShutdown ()
 
virtual void UpdateDebugText (const char *title, albaMatrix &pose)
 
virtual void OnMove3DEvent (albaEventInteraction *e)
 
void OnUpdateBoundsEvent (albaDeviceButtonsPadTracker *tracker)
 
void SetPicker3D (vtkALBARayCast3DPicker *picker)
 
- Protected Member Functions inherited from albaAvatar
 albaAvatar ()
 
virtual ~albaAvatar ()
 
virtual int InternalStore (albaStorageElement *node)
 
virtual int InternalRestore (albaStorageElement *node)
 
virtual int InternalInitialize ()
 
virtual void InternalShutdown ()
 
- Protected Member Functions inherited from albaInteractionAgent
void ComputeDisplayToWorld (double x, double y, double z, double worldPt[4])
 
void ComputeWorldToDisplay (double x, double y, double z, double displayPt[3])
 
void SendPickedPointEvent (int eventId, double pos[3], vtkIdType id=0, double scalar=0, albaVME *vme=NULL)
 
- Protected Member Functions inherited from albaAgent
 albaAgent ()
 
virtual ~albaAgent ()
 
virtual int InternalInitialize ()
 
virtual void InternalShutdown ()
 
void InvokeEvent (albaEventBase &event, albaID channel=-1)
 
void InvokeEvent (albaEventBase *event, albaID channel=-1)
 
void InvokeEvent (void *sender, int id, albaID channel=MCH_UP, void *data=NULL)
 
virtual int InternalStore (albaStorageElement *node)=0
 
virtual int InternalRestore (albaStorageElement *node)=0
 

Protected Attributes

vtkConeSource * m_ConeCursor
 
vtkAxes * m_CursorAxes
 
vtkPolyDataMapper * m_CursorMapper
 
vtkActor * m_CursorActor
 
vtkPolyDataMapper * m_CursorAxesMapper
 
vtkActor * m_CursorAxesActor
 
- Protected Attributes inherited from albaAvatar3D
vtkProp3D * m_WorkingBoxActor
 
vtkOutlineSource * m_WorkingBox
 
vtkTextMapper * m_DebugTextMapper
 
vtkActor2D * m_DebugTextActor
 
albaMatrix m_LastPoseMatrix
 
vtkALBARayCast3DPicker * m_Picker3D
 
vtkCellPicker * m_Picker2D
 
albaCameraTransform * m_CanonicalToWorldTransform
 
int m_FittingMode
 
int m_DisplayWorkingBox
 
int m_DisplayDebugText
 
int m_CoordsFrame
 
double * m_DebugTextPosition
 
- Protected Attributes inherited from albaAvatar
vtkALBASmartPointer< vtkProp3D > m_Actor3D
 
vtkALBASmartPointer< vtkActor2D > m_Actor2D
 
albaDevice * m_Device
 
albaGUI * m_Gui
 
int m_Mode
 
int m_Cursor3DHideCounter
 
int m_Cursor2DHideCounter
 
- Protected Attributes inherited from albaInteractionAgent
albaView * m_View
 
vtkALBASmartPointer< vtkRenderer > m_Renderer
 
bool m_CtrlDown
 
bool m_AltDown
 
bool m_ShiftDown
 
- Protected Attributes inherited from albaAgent
albaString m_Name
 
bool m_Initialized
 
std::vector< albaEventBroadcaster * > m_Channels
 
- Protected Attributes inherited from albaReferenceCounted
int m_ReferenceCount
 
- Protected Attributes inherited from albaObject
bool m_HeapFlag
 
- Protected Attributes inherited from albaEventBroadcaster
albaObserversList m_Observers
 
albaID m_Channel
 
- Protected Attributes inherited from albaEventSender
albaObserver * m_Listener
 
- Protected Attributes inherited from albaStorable
bool m_Storable
 

Additional Inherited Members

- Public Types inherited from albaAvatar3D
enum  AVATAR_3D_GUI_ID {
  ID_FITTING_COMBO = albaAvatar::ID_LAST , ID_WBOX_BOOL , ID_DEBUG_TEXT , ID_DEBUG_TEXT_POSITION ,
  ID_COORDS_COMBO , ID_LAST
}
 
enum  AVATAR_COORDS_TYPE { TRACKER_COORDS =0 , CANONICAL_COORDS , WORLD_COORDS }
 
enum  AVATAR_COORDS_SCALING { NO_SCALE =0 , TRACKER_TO_WORLD_SCALE , CANONICAL_TO_WORLD_SCALE }
 
- Public Types inherited from albaAvatar
enum  AVATAR_GUI_ID { ID_NAME =MINID , ID_LAST }
 
enum  AvatarModality { MODE_2D =0 , MODE_3D }
 
- Static Public Member Functions inherited from albaObject
static const char * GetStaticTypeName ()
 
static bool IsStaticType (const char *type_name)
 
static bool IsStaticType (const albaTypeID &type_id)
 
static const albaTypeID & GetStaticTypeId ()
 
static albaObject * SafeDownCast (albaObject *o)
 
- Static Public Member Functions inherited from albaStorable
static albaStorable * SafeCastToObject (albaObject *o)
 
- Protected Types inherited from albaEventBroadcaster
typedef std::list< albaObserver * > albaObserversList
 

Detailed Description

Create an avatar with a 3D Cone Simple implementation of avatar being represented in the scene as a Cone.

See also
albaAvatar3D

Definition at line 34 of file albaAvatar3DCone.h.

Constructor & Destructor Documentation

◆ albaAvatar3DCone()

albaAvatar3DCone::albaAvatar3DCone ( )
protected

◆ ~albaAvatar3DCone()

virtual albaAvatar3DCone::~albaAvatar3DCone ( )
protectedvirtual

Member Function Documentation

◆ albaTypeMacro()

albaAvatar3DCone::albaTypeMacro ( albaAvatar3DCone  ,
albaAvatar3D   
)

◆ Pick()

virtual int albaAvatar3DCone::Pick ( albaMatrix &  tracker_pose)
virtual

pick in the scene with this avatar, give the avatar pose

Reimplemented from albaAvatar.

Member Data Documentation

◆ m_ConeCursor

vtkConeSource* albaAvatar3DCone::m_ConeCursor
protected

Definition at line 46 of file albaAvatar3DCone.h.

◆ m_CursorAxes

vtkAxes* albaAvatar3DCone::m_CursorAxes
protected

Definition at line 47 of file albaAvatar3DCone.h.

◆ m_CursorMapper

vtkPolyDataMapper* albaAvatar3DCone::m_CursorMapper
protected

Definition at line 48 of file albaAvatar3DCone.h.

◆ m_CursorActor

vtkActor* albaAvatar3DCone::m_CursorActor
protected

Definition at line 49 of file albaAvatar3DCone.h.

◆ m_CursorAxesMapper

vtkPolyDataMapper* albaAvatar3DCone::m_CursorAxesMapper
protected

Definition at line 50 of file albaAvatar3DCone.h.

◆ m_CursorAxesActor

vtkActor* albaAvatar3DCone::m_CursorAxesActor
protected

Definition at line 51 of file albaAvatar3DCone.h.


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