#include <igtlPolyDataMessage.h>
Attribute class used for passing attribute data.
Definition at line 172 of file igtlPolyDataMessage.h.
Point and cell types.
Enumerator |
---|
POINT_SCALAR |
|
POINT_VECTOR |
|
POINT_NORMAL |
|
POINT_TENSOR |
|
POINT_RGBA |
|
CELL_SCALAR |
|
CELL_VECTOR |
|
CELL_NORMAL |
|
CELL_TENSOR |
|
CELL_RGBA |
|
Definition at line 176 of file igtlPolyDataMessage.h.
igtl::PolyDataAttribute::PolyDataAttribute |
( |
| ) |
|
|
protected |
igtl::PolyDataAttribute::~PolyDataAttribute |
( |
| ) |
|
|
protected |
static void igtl::LightObject::BreakOnError |
( |
| ) |
|
|
staticinherited |
This method is called when igtlExceptionMacro executes. It allows the debugger to break on error.
void igtl::PolyDataAttribute::Clear |
( |
| ) |
|
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from igtl::LightObject.
virtual void igtl::Object::DebugOff |
( |
| ) |
const |
|
virtualinherited |
Turn debugging output off.
virtual void igtl::Object::DebugOn |
( |
| ) |
const |
|
virtualinherited |
Turn debugging output on.
virtual void igtl::LightObject::Delete |
( |
| ) |
|
|
virtualinherited |
Delete an igtl object. This method should always be used to delete an object when the new operator was used to create it. Using the C delete method will not work with reference counting.
int igtl::PolyDataAttribute::GetData |
( |
igtlFloat32 * |
data | ) |
|
Gets the attribute as a byte array.
bool igtl::Object::GetDebug |
( |
| ) |
const |
|
inherited |
Get the value of the debug flag.
static bool igtl::Object::GetGlobalWarningDisplay |
( |
| ) |
|
|
staticinherited |
This is a global flag that controls whether any debug, warning or error messages are displayed.
const char* igtl::PolyDataAttribute::GetName |
( |
| ) |
|
|
inline |
virtual const char* igtl::LightObject::GetNameOfClass |
( |
| ) |
const |
|
inlinevirtualinherited |
Return the name of this class as a string. Used by the object factory (implemented in New()) to instantiate objects of a named type. Also used for debugging and other output information.
Definition at line 84 of file igtlLightObject.h.
int igtl::PolyDataAttribute::GetNthData |
( |
unsigned int |
n, |
|
|
igtlFloat32 * |
data |
|
) |
| |
igtlUint32 igtl::PolyDataAttribute::GetNumberOfComponents |
( |
| ) |
|
Gets the number of components. The number depends on the type of the points/cells e.g. 3 in case of POINT_VECTOR.
virtual int igtl::LightObject::GetReferenceCount |
( |
| ) |
const |
|
inlinevirtualinherited |
igtlUint32 igtl::PolyDataAttribute::GetSize |
( |
| ) |
|
Gets the size of the attribute.
igtlUint8 igtl::PolyDataAttribute::GetType |
( |
| ) |
|
|
inline |
static void igtl::Object::GlobalWarningDisplayOff |
( |
| ) |
|
|
inlinestaticinherited |
static void igtl::Object::GlobalWarningDisplayOn |
( |
| ) |
|
|
inlinestaticinherited |
Standard part of all igtl objects.
static Pointer igtl::Object::New |
( |
| ) |
|
|
staticinherited |
Method for creation through the object factory.
void igtl::LightObject::Print |
( |
std::ostream & |
os | ) |
const |
|
inherited |
Cause the object to print itself out.
virtual void igtl::LightObject::PrintHeader |
( |
std::ostream & |
os | ) |
const |
|
protectedvirtualinherited |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
virtual void igtl::Object::PrintSelf |
( |
std::ostream & |
os | ) |
const |
|
protectedvirtualinherited |
virtual void igtl::LightObject::PrintTrailer |
( |
std::ostream & |
os | ) |
const |
|
protectedvirtualinherited |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
virtual void igtl::Object::Register |
( |
| ) |
const |
|
virtualinherited |
Return this objects modified time. Update the modification time for this object. Many filters rely on the modification time to determine if they need to recompute their data. Increase the reference count (mark as used by another object).
Reimplemented from igtl::LightObject.
int igtl::PolyDataAttribute::SetData |
( |
igtlFloat32 * |
data | ) |
|
Sets the attribute by byte array.
void igtl::Object::SetDebug |
( |
bool |
debugFlag | ) |
const |
|
inherited |
Set the value of the debug flag. A non-zero value turns debugging on.
static void igtl::Object::SetGlobalWarningDisplay |
( |
bool |
flag | ) |
|
|
staticinherited |
void igtl::PolyDataAttribute::SetName |
( |
const char * |
name | ) |
|
Sets the name of the attribute.
int igtl::PolyDataAttribute::SetNthData |
( |
unsigned int |
n, |
|
|
igtlFloat32 * |
data |
|
) |
| |
virtual void igtl::Object::SetReferenceCount |
( |
int |
| ) |
|
|
virtualinherited |
igtlUint32 igtl::PolyDataAttribute::SetSize |
( |
igtlUint32 |
size | ) |
|
Sets the size of the attribute.
int igtl::PolyDataAttribute::SetType |
( |
int |
t, |
|
|
int |
n = 1 |
|
) |
| |
SetType() is used to set the attribute type. If the attribute is set properly, the function returns the type value (POINT_* or CELL_*). Otherwise the function returns negative value. The second argument will be ignored if 't' is neither POINT_SCALAR nor CELL_SCALAR. If the POINT_SCALAR and CELL_SCALAR is specified as 't', the number of components can be specified as the second argument. The number of components must be 0 < n < 128.
virtual void igtl::Object::UnRegister |
( |
| ) |
const |
|
virtualinherited |
Decrease the reference count (release by another object).
Reimplemented from igtl::LightObject.
volatile int igtl::LightObject::m_ReferenceCount |
|
mutableprotectedinherited |
|
mutableprotectedinherited |
Mutex lock to protect modification to the reference count
Definition at line 134 of file igtlLightObject.h.
The documentation for this class was generated from the following file: