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

#include <albaTransformFrame.h>

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

Public Member Functions

 albaTransformFrame ()
 
 ~albaTransformFrame ()
 
 albaTypeMacro (albaTransformFrame, albaTransformBase)
 
void SetInput (albaTransformBase *frame)
 
void SetInput (albaMatrix *frame)
 
albaTransformBaseGetInput ()
 
void SetInputFrame (albaMatrix *frame)
 
void SetInputFrame (albaTransformBase *frame)
 
albaTransformBaseGetInputFrame ()
 
void SetTargetFrame (albaMatrix *frame)
 
void SetTargetFrame (albaTransformBase *frame)
 
albaTransformBaseGetTargetFrame ()
 
virtual unsigned long GetMTime ()
 
- Public Member Functions inherited from albaTransformBase
 albaTransformBase ()
 
 ~albaTransformBase ()
 
 albaTransformBase (const albaTransformBase &)
 
 albaAbstractTypeMacro (albaTransformBase, albaReferenceCounted)
 
virtual void Print (std::ostream &os, const int indent=0) const
 
virtual const albaMatrixGetMatrix ()
 
albaMatrixGetMatrixPointer ()
 
void TransformPoint (const float in[3], float out[3])
 
void TransformPoint (const double in[3], double out[3])
 
void TransformNormalAtPoint (const float point[3], const float in[3], float out[3])
 
void TransformNormalAtPoint (const double point[3], const double in[3], double out[3])
 
void TransformVectorAtPoint (const float point[3], const float in[3], float out[3])
 
void TransformVectorAtPoint (const double point[3], const double in[3], double out[3])
 
virtual void Update ()
 
void Modified ()
 
virtual void InternalTransformPoint (const double in[3], double out[3])
 
virtual void InternalTransformPoint (const float in[3], float out[3])
 
virtual unsigned long GetMTime ()
 
virtual unsigned long GetUpdateTime ()
 
void SetTimeStamp (albaTimeStamp t)
 
albaTimeStamp GetTimeStamp ()
 
- 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 albaObjectNewObjectInstance () const =0
 
virtual const albaTypeIDGetTypeId () const
 
virtual void Print (std::ostream &os, const int indent=0) const
 
 albaObject (const albaObject &c)
 
- Public Member Functions inherited from albaEventBroadcaster
 albaEventBroadcaster (void *owner=NULL)
 
virtual ~albaEventBroadcaster ()
 
 albaEventBroadcaster (const albaEventBroadcaster &c)
 
void AddObserver (albaObserver *obj)
 
void AddObserver (albaObserver &obj)
 
albaObserverCallbackAddObserverCallback (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 albaObserverGetListener ()
 
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)
 

Protected Member Functions

void InternalUpdate ()
 
virtual void InternalUpdate ()=0
 

Protected Attributes

albaTransformBasem_Input
 
albaTransformBasem_InputFrame
 
albaTransformBasem_TargetFrame
 
- Protected Attributes inherited from albaTransformBase
albaAutoPointer< albaMatrixm_Matrix
 
albaMTime m_MTime
 
albaMTime m_UpdateTime
 
albaMutexLock m_UpdateMutex
 
albaTimeStamp m_TimeStamp
 
- 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
albaObserverm_Listener
 

Additional Inherited Members

- 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 albaTypeIDGetStaticTypeId ()
 
static albaObjectSafeDownCast (albaObject *o)
 
- Protected Types inherited from albaEventBroadcaster
typedef std::list< albaObserver * > albaObserversList
 

Detailed Description

albaTransformFrame - class for multi frame homogeneous transformations.

albaTransformFrame provides functionalities for converting homogeneous transformations, between different frames. The idea of this class is to represent by itself a transformation, obtained by changing the an input transformation for its original coordinate system to a target coordinate system. Coordinate systems are by default the world coords system. Reference systems can be expressed as a albaTransformBase.

See also
albaTransformBase albaTransform
Todo:
  • Modifica GetMTime per considerare anche l'MTime di InputFrame e TargetFrame

Definition at line 37 of file albaTransformFrame.h.

Constructor & Destructor Documentation

◆ albaTransformFrame()

albaTransformFrame::albaTransformFrame ( )

◆ ~albaTransformFrame()

albaTransformFrame::~albaTransformFrame ( )

Member Function Documentation

◆ albaTypeMacro()

albaTransformFrame::albaTypeMacro ( albaTransformFrame  ,
albaTransformBase   
)

◆ SetInput() [1/2]

void albaTransformFrame::SetInput ( albaTransformBase frame)

set the matrix to be transformed

◆ SetInput() [2/2]

void albaTransformFrame::SetInput ( albaMatrix frame)

◆ GetInput()

albaTransformBase * albaTransformFrame::GetInput ( )
inline

Definition at line 50 of file albaTransformFrame.h.

◆ SetInputFrame() [1/2]

void albaTransformFrame::SetInputFrame ( albaMatrix frame)

Set/Get the input reference system, i.e.

the reference system of the input matrix.

◆ SetInputFrame() [2/2]

void albaTransformFrame::SetInputFrame ( albaTransformBase frame)

◆ GetInputFrame()

albaTransformBase * albaTransformFrame::GetInputFrame ( )
inline

Definition at line 57 of file albaTransformFrame.h.

◆ SetTargetFrame() [1/2]

void albaTransformFrame::SetTargetFrame ( albaMatrix frame)

Set/Get the output reference system, i.e.

the reference system of the output matrix or the target reference system for point transformation.

◆ SetTargetFrame() [2/2]

void albaTransformFrame::SetTargetFrame ( albaTransformBase frame)

◆ GetTargetFrame()

albaTransformBase * albaTransformFrame::GetTargetFrame ( )
inline

Definition at line 64 of file albaTransformFrame.h.

◆ GetMTime()

virtual unsigned long albaTransformFrame::GetMTime ( )
virtual

Return current modification time, taking inro consideration also Input, InputFrame and TargetFrame.

Reimplemented from albaTransformBase.

◆ InternalUpdate()

void albaTransformFrame::InternalUpdate ( )
protectedvirtual

Perform any subclass-specific Update.

Implements albaTransformBase.

Member Data Documentation

◆ m_Input

albaTransformBase* albaTransformFrame::m_Input
protected

Definition at line 74 of file albaTransformFrame.h.

◆ m_InputFrame

albaTransformBase* albaTransformFrame::m_InputFrame
protected

Definition at line 75 of file albaTransformFrame.h.

◆ m_TargetFrame

albaTransformBase* albaTransformFrame::m_TargetFrame
protected

Definition at line 76 of file albaTransformFrame.h.


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