#include <vtkAttributeData.h>
Inheritance diagram for vtkAttributeData:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | Allocate (const int sz, const int ext=1000) |
virtual void | Initialize () |
virtual vtkAttributeData * | MakeObject ()=0 |
virtual void | SetData (vtkDataArray *) |
vtkDataArray * | GetData () |
virtual int | GetDataType () |
virtual void | SetDataType (int dataType) |
void | SetDataTypeToBit () |
void | SetDataTypeToChar () |
void | SetDataTypeToUnsignedChar () |
void | SetDataTypeToShort () |
void | SetDataTypeToUnsignedShort () |
void | SetDataTypeToInt () |
void | SetDataTypeToUnsignedInt () |
void | SetDataTypeToLong () |
void | SetDataTypeToUnsignedLong () |
void | SetDataTypeToFloat () |
void | SetDataTypeToDouble () |
void * | GetVoidPointer (const int id) |
virtual void | Squeeze () |
virtual void | Reset () |
virtual void | DeepCopy (vtkAttributeData *ad) |
virtual void | ShallowCopy (vtkAttributeData *ad) |
unsigned long | GetActualMemorySize () |
void | DeepCopy (vtkAttributeData &ad) |
void | ShallowCopy (vtkAttributeData &ad) |
Static Public Methods | |
int | IsTypeOf (const char *type) |
vtkAttributeData * | SafeDownCast (vtkObject *o) |
Protected Methods | |
vtkAttributeData () | |
vtkAttributeData (int dataType) | |
~vtkAttributeData () | |
vtkAttributeData (const vtkAttributeData &) | |
void | operator= (const vtkAttributeData &) |
Protected Attributes | |
vtkDataArray * | Data |
vtkAttributeData is an abstract class that defines an API and methods to support attribute data such as scalars, vectors, tensors, etc. The class works by managing an underlying data array. This data array can be explicitly set or alternatively, created by the object. You can control the type of the underlying data, if necessary.
Definition at line 60 of file vtkAttributeData.h.
|
|
|
|
|
|
|
Definition at line 140 of file vtkAttributeData.h. |
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkGhostLevels, vtkNormals, vtkPoints, vtkScalars, vtkTCoords, vtkTensors, and vtkVectors. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkGhostLevels, vtkNormals, vtkPoints, vtkScalars, vtkTCoords, vtkTensors, and vtkVectors. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkGhostLevels, vtkNormals, vtkPoints, vtkScalars, vtkTCoords, vtkTensors, and vtkVectors. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkGhostLevels, vtkNormals, vtkPoints, vtkScalars, vtkTCoords, vtkTensors, and vtkVectors. |
|
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. Reimplemented from vtkObject. Reimplemented in vtkGhostLevels, vtkNormals, vtkPoints, vtkScalars, vtkTCoords, vtkTensors, and vtkVectors. |
|
Allocate initial memory size. |
|
Return object to instantiated state. |
|
Virtual constructor creates object of same type as this object. Reimplemented in vtkGhostLevels, vtkNormals, vtkPoints, vtkScalars, vtkTCoords, vtkTensors, and vtkVectors. |
|
Set/Get the underlying data array. This function must be implemented in a concrete subclass to check for consistency. (The tuple size must match the type of data. For example, 3-tuple data array can be assigned to a vector, normal, or points object, but not a tensor object, which has a tuple dimension of 9. Scalars, on the other hand, can have tuple dimension from 1-4, depending on the type of scalar.) Reimplemented in vtkFloatNormals, vtkFloatPoints, vtkFloatScalars, vtkFloatTCoords, vtkFloatTensors, vtkFloatVectors, vtkScalars, and vtkTCoords. Referenced by vtkFloatVectors::SetData(), vtkFloatTensors::SetData(), vtkFloatPoints::SetData(), and vtkFloatNormals::SetData().
|
|
Definition at line 82 of file vtkAttributeData.h. Referenced by vtkGhostLevels::GetGhostLevel(), vtkGhostLevels::InsertGhostLevel(), vtkGhostLevels::InsertNextGhostLevel(), and vtkGhostLevels::SetGhostLevel().
|
|
Return the underlying data type. An integer indicating data type is returned as specified in vtkSetGet.h. |
|
Specify the underlying data type of the object. Reimplemented in vtkFloatNormals, vtkFloatPoints, vtkFloatScalars, vtkFloatTCoords, vtkFloatTensors, and vtkFloatVectors. Referenced by vtkFloatVectors::SetDataType(), vtkFloatTensors::SetDataType(), vtkFloatTCoords::SetDataType(), vtkFloatScalars::SetDataType(), vtkFloatPoints::SetDataType(), and vtkFloatNormals::SetDataType().
|
|
Definition at line 90 of file vtkAttributeData.h. |
|
Definition at line 91 of file vtkAttributeData.h. |
|
Definition at line 92 of file vtkAttributeData.h. |
|
Definition at line 93 of file vtkAttributeData.h. |
|
Definition at line 94 of file vtkAttributeData.h. |
|
Definition at line 95 of file vtkAttributeData.h. |
|
Definition at line 96 of file vtkAttributeData.h. |
|
Definition at line 97 of file vtkAttributeData.h. |
|
Definition at line 98 of file vtkAttributeData.h. |
|
Definition at line 99 of file vtkAttributeData.h. |
|
Definition at line 100 of file vtkAttributeData.h. |
|
Return a void pointer. For image pipeline interface and other special pointer manipulation. Definition at line 104 of file vtkAttributeData.h. |
|
Reclaim any extra memory. Definition at line 107 of file vtkAttributeData.h. |
|
Make object look empty but do not delete memory. Definition at line 110 of file vtkAttributeData.h. |
|
Different ways to copy data. Shallow copy does reference count (i.e., assigns pointers and updates reference count); deep copy runs through entire data array assigning values. |
|
|
|
Return the memory in kilobytes consumed by this attribute data. Used to support streaming and reading/writing data. The value returned is guaranteed to be greater than or equal to the memory required to actually represent the data represented by this object. The information returned is valid only after the pipeline has been updated. |
|
For legacy compatibility. Do not use. Definition at line 128 of file vtkAttributeData.h. |
|
Definition at line 130 of file vtkAttributeData.h. |
|
Definition at line 141 of file vtkAttributeData.h. |
|
Definition at line 143 of file vtkAttributeData.h. |