ALBA
|
#include <albaDataPipe.h>
Public Member Functions | |
albaDataPipe () | |
virtual | ~albaDataPipe () |
albaTypeMacro (albaDataPipe, albaReferenceCounted) | |
virtual void | UpdateBounds () |
virtual void | Update () |
albaOBB * | GetBounds () |
void | SetTimeStamp (albaTimeStamp t) |
albaTimeStamp | GetTimeStamp () |
virtual unsigned long | GetMTime () |
virtual bool | Accept (albaVME *vme) |
albaDataPipe * | MakeACopy () |
virtual int | DeepCopy (albaDataPipe *pipe) |
int | SetVME (albaVME *vme) |
albaVME * | GetVME () |
void | SetDependOnPose (int flag) |
int | GetDependOnPose () |
void | SetDependOnVMETime (int flag) |
int | GetDependOnVMETime () |
void | SetDependOnAbsPose (int flag) |
int | GetDependOnAbsPose () |
virtual void | Print (std::ostream &os, const int tabs=0) const |
virtual void | OnEvent (albaEventBase *alba_event) |
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 albaTimeStamped | |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
Public Member Functions inherited from albaObserver | |
albaObserver () | |
virtual | ~albaObserver () |
virtual void | OnEvent (albaEventBase *e)=0 |
Protected Member Functions | |
virtual void | PreExecute () |
virtual void | Execute () |
Protected Attributes | |
albaOBB | m_Bounds |
albaTimeStamp | m_CurrentTime |
albaVME * | m_VME |
albaMTime | m_PreExecuteTime |
int | m_DependOnPose |
int | m_DependOnAbsPose |
int | m_DependOnVMETime |
Protected Attributes inherited from albaReferenceCounted | |
int | m_ReferenceCount |
Protected Attributes inherited from albaObject | |
bool | m_HeapFlag |
Protected Attributes inherited from albaTimeStamped | |
albaMTime | m_MTime |
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 albaTypeID & | GetStaticTypeId () |
static albaObject * | SafeDownCast (albaObject *o) |
abstract class for process objects producing data as output of a VME.
albaDataPipe is the base class for process objects producing data as output of a VME. This basic class does not define the kind of output data. The class also implements the mechanism to compute the 3D bounds at any time...
Definition at line 50 of file albaDataPipe.h.
albaDataPipe::albaDataPipe | ( | ) |
|
virtual |
albaDataPipe::albaTypeMacro | ( | albaDataPipe | , |
albaReferenceCounted | |||
) |
|
inlinevirtual |
This function makes the current bounds to be updated.
It should be optimized to not require data loading, i.e. data bounds to be evaluated without actually loading the data, but reading dataset bounds from VME item meta-data structure (
Definition at line 63 of file albaDataPipe.h.
|
inlinevirtual |
update the output of the data pipe
Definition at line 66 of file albaDataPipe.h.
|
inline |
Return the current dataset bounds, updated by UpdateBounds() and Update() when CurrentTime is changed.
The Update() functions must be called before calling this function, otherwise the bounds are invalid.
Definition at line 73 of file albaDataPipe.h.
void albaDataPipe::SetTimeStamp | ( | albaTimeStamp | t | ) |
Set/Get the current time.
|
inline |
Definition at line 83 of file albaDataPipe.h.
|
virtual |
return modification time
Reimplemented from albaTimeStamped.
|
inlinevirtual |
This function returns true if the VME is accepted by this Pipe.
Definition at line 89 of file albaDataPipe.h.
albaDataPipe * albaDataPipe::MakeACopy | ( | ) |
Make a copy of this pipe, also copying all parameters.
This is equivalent to NewInstance + DeepCopy. BEWARE: the returned object has reference counter already set to 0. This avoid the to do an extra Delete(), but requires to Register it before passing it to other objects.
|
virtual |
Copy from another pipe, the function return VTK_ERROR if the specified pipe is not compatible.
int albaDataPipe::SetVME | ( | albaVME * | vme | ) |
Set/Get the VME to be used as input for this PIPE.
|
inline |
Definition at line 106 of file albaDataPipe.h.
|
inline |
enable/disable the dependence of this data pipe from VME's pose matrix
Definition at line 109 of file albaDataPipe.h.
References albaTimeStamped::Modified().
|
inline |
Definition at line 110 of file albaDataPipe.h.
|
inline |
enable/disable the dependence of this data pipe from VME's pose matrix
Definition at line 113 of file albaDataPipe.h.
References albaTimeStamped::Modified().
|
inline |
Definition at line 114 of file albaDataPipe.h.
|
inline |
enable/disable the dependence of this data pipe from VME's ABS pose matrix
Definition at line 117 of file albaDataPipe.h.
References albaTimeStamped::Modified().
|
inline |
Definition at line 118 of file albaDataPipe.h.
|
virtual |
print a dump of this object
Reimplemented from albaObject.
|
virtual |
process the events sent by subjects
Implements albaObserver.
|
protectedvirtual |
function called before of data pipe execution
|
protectedvirtual |
function called to updated the data pipe output
|
protected |
bounds of the output data
Definition at line 132 of file albaDataPipe.h.
|
protected |
time for which data is computed
Definition at line 133 of file albaDataPipe.h.
|
protected |
pointer to the VME for which output is computed
Definition at line 134 of file albaDataPipe.h.
|
protected |
use to reduce the number of time PreExecute is called
Definition at line 135 of file albaDataPipe.h.
|
protected |
Definition at line 137 of file albaDataPipe.h.
|
protected |
Definition at line 138 of file albaDataPipe.h.
|
protected |
Definition at line 139 of file albaDataPipe.h.