#include <vtkDataSetAttributes.h>
Inheritance diagram for vtkDataSetAttributes:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | Initialize () |
virtual void | Update () |
void | PassData (vtkDataSetAttributes *pd) |
void | PassNoReplaceData (vtkDataSetAttributes *pd) |
void | CopyAllocate (vtkDataSetAttributes *pd, int sze=0, int ext=1000) |
void | CopyData (vtkDataSetAttributes *fromPd, int fromId, int toId) |
void | InterpolateAllocate (vtkDataSetAttributes *pd, int sze=0, int ext=1000) |
void | InterpolatePoint (vtkDataSetAttributes *fromPd, int toId, vtkIdList *ids, float *weights) |
void | InterpolateEdge (vtkDataSetAttributes *fromPd, int toId, int p1, int p2, float t) |
void | InterpolateTime (vtkDataSetAttributes *from1, vtkDataSetAttributes *from2, int id, float t) |
void | DeepCopy (vtkDataSetAttributes *pd) |
void | ShallowCopy (vtkDataSetAttributes *pd) |
void | Squeeze () |
unsigned long int | GetMTime () |
virtual void | SetScalars (vtkScalars *) |
virtual vtkScalars * | GetScalars () |
virtual void | SetVectors (vtkVectors *) |
virtual vtkVectors * | GetVectors () |
virtual void | SetNormals (vtkNormals *) |
virtual vtkNormals * | GetNormals () |
virtual void | SetGhostLevels (vtkGhostLevels *) |
virtual vtkGhostLevels * | GetGhostLevels () |
virtual void | SetTCoords (vtkTCoords *) |
virtual vtkTCoords * | GetTCoords () |
virtual void | SetTensors (vtkTensors *) |
virtual vtkTensors * | GetTensors () |
virtual void | SetFieldData (vtkFieldData *) |
virtual vtkFieldData * | GetFieldData () |
virtual void | SetCopyScalars (int) |
virtual int | GetCopyScalars () |
virtual void | CopyScalarsOn () |
virtual void | CopyScalarsOff () |
virtual void | SetCopyVectors (int) |
virtual int | GetCopyVectors () |
virtual void | CopyVectorsOn () |
virtual void | CopyVectorsOff () |
virtual void | SetCopyGhostLevels (int) |
virtual int | GetCopyGhostLevels () |
virtual void | CopyGhostLevelsOn () |
virtual void | CopyGhostLevelsOff () |
virtual void | SetCopyNormals (int) |
virtual int | GetCopyNormals () |
virtual void | CopyNormalsOn () |
virtual void | CopyNormalsOff () |
virtual void | SetCopyTCoords (int) |
virtual int | GetCopyTCoords () |
virtual void | CopyTCoordsOn () |
virtual void | CopyTCoordsOff () |
virtual void | SetCopyTensors (int) |
virtual int | GetCopyTensors () |
virtual void | CopyTensorsOn () |
virtual void | CopyTensorsOff () |
virtual void | SetCopyFieldData (int) |
virtual int | GetCopyFieldData () |
virtual void | CopyFieldDataOn () |
virtual void | CopyFieldDataOff () |
int | GetAnyEnabled () |
void | CopyAllOn () |
void | CopyAllOff () |
void | CopyTuple (vtkDataArray *fromData, vtkDataArray *toData, int fromId, int toId) |
unsigned long | GetActualMemorySize () |
void | DeepCopy (vtkDataSetAttributes &pd) |
void | ShallowCopy (vtkDataSetAttributes &pd) |
Static Public Methods | |
vtkDataSetAttributes * | New () |
int | IsTypeOf (const char *type) |
vtkDataSetAttributes * | SafeDownCast (vtkObject *o) |
Protected Methods | |
vtkDataSetAttributes () | |
~vtkDataSetAttributes () | |
vtkDataSetAttributes (const vtkDataSetAttributes &) | |
void | operator= (const vtkDataSetAttributes &) |
void | InterpolateTuple (vtkDataArray *fromData, vtkDataArray *toData, int toId, vtkIdList *ptIds, float *weights) |
void | InterpolateTuple (vtkDataArray *fromData, vtkDataArray *toData, int toId, int id1, int id2, float t) |
void | InterpolateTuple (vtkDataArray *fromData1, vtkDataArray *fromData2, vtkDataArray *toData, int id, float t) |
Protected Attributes | |
vtkScalars * | Scalars |
vtkVectors * | Vectors |
vtkNormals * | Normals |
vtkTCoords * | TCoords |
vtkTensors * | Tensors |
vtkFieldData * | FieldData |
vtkGhostLevels * | GhostLevels |
int | CopyScalars |
int | CopyVectors |
int | CopyNormals |
int | CopyTCoords |
int | CopyTensors |
int | CopyFieldData |
int | CopyGhostLevels |
int | AnyEnabled |
int | CopyScalarsEnabled |
int | CopyVectorsEnabled |
int | CopyNormalsEnabled |
int | CopyTCoordsEnabled |
int | CopyTensorsEnabled |
int | CopyFieldDataEnabled |
int | CopyGhostLevelsEnabled |
float | Null3Tuple [3] |
float | Null4Tuple [4] |
vtkTensor * | NullTensor |
float * | NullTuple |
int | TupleSize |
float * | Tuple |
vtkDataSetAttributes is a class that is used to represent and manipulate attribute data (e.g., scalars, vectors, normals, texture coordinates, tensors, and field data) Special methods are provided to work with filter objects, such as passing data through filter, copying data from one attribute set to another, and interpolating data given cell interpolation weights.
|
Allocates point data for point-by-point (or cell-by-cell) copy operation. If sze=0, then use the input DataSetAttributes to create (i.e., find initial size of) new objects; otherwise use the sze variable. |
|
Turn off copying of all data. |
|
Turn on copying of all data. |
|
Copy the attribute data from one id to another. Make sure CopyAllocate() has been invoked before using this method. |
|
Copy a tuple of data from one data array to another. This method (and following ones) assume that the fromData and toData objects are of the same type, and have the same number of components. This is true if you invoke CopyAllocate() or InterpolateAllocate(). |
|
For legacy compatibility. Do not use. |
|
Deep copy of data (i.e., create new data arrays and copy from input data). |
|
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. |
|
Flag indicates whether any data is to be copied or interpolated. This flag can be used to improve performance by avoiding extra CopyData() or Interpolate() calls. This method returns valid results only after CopyAllocate() or InterpolateAllocate() has been invoked. |
|
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 vtkCellData. |
|
Check object's components for modified times. Reimplemented from vtkObject. |
|
Initialize all of the object's data to NULL |
|
Initialize point interpolation method. |
|
Interpolate data from the two points p1,p2 (forming an edge) and an interpolation factor, t, along the edge. The weight ranges from (0,1), with t=0 located at p1. Make sure that the method InterpolateAllocate() has been invoked before using this method. |
|
Interpolate data set attributes from other data set attributes given cell or point ids and associated interpolation weights. |
|
Interpolate data from the same id (point or cell) at different points in time (parameter t). Two input data set attributes objects are input. The parameter t lies between (0<=t<=1). IMPORTANT: it is assumed that the number of attributes and number of components is the same for both from1 and from2, and the type of data for from1 and from2 are the same. Make sure that the method InterpolateAllocate() has been invoked before using this method. |
|
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 vtkCellData. |
|
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 vtkCellData. |
|
Construct object with copying turned on for all data. Reimplemented from vtkObject. Reimplemented in vtkCellData. |
|
Pass entire arrays of input data through to output. Obey the "copy" flags. |
|
Pass entire arrays of input data through to output. Obey the "copy" flags. Only passes the data if the output attribute is NULL (i.e., not set). |
|
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 vtkCellData. |
|
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 vtkCellData. |
|
Turn on/off the copying of field data. |
|
Turn on/off the copying of ghost level data. |
|
Turn on/off the copying of normals data. |
|
Turn on/off the copying of scalar data. |
|
Turn on/off the copying of texture coordinates data. |
|
Turn on/off the copying of tensor data. |
|
Turn on/off the copying of vector data. |
|
Set/Get the field data. |
|
Set/Get the ghost level data. |
|
Set/get the normal data. |
|
Set/Get the scalar data. |
|
Set/Get the texture coordinate data. |
|
Set/Get the tensor data. |
|
Set/Get the vector data. |
|
Shallow copy of data (i.e., use reference counting). |
|
Resize object to just fit data requirements. Reclaims extra memory. |
|
Attributes have a chance to bring themselves up to date; right now this is ignored. |