Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

vtkDataSetAttributes Class Reference

represent and manipulate attribute data in a dataset. More...

#include <vtkDataSetAttributes.h>

Inheritance diagram for vtkDataSetAttributes:

Inheritance graph
[legend]
Collaboration diagram for vtkDataSetAttributes:

Collaboration graph
[legend]
List of all members.

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 vtkScalarsGetScalars ()
virtual void SetVectors (vtkVectors *)
virtual vtkVectorsGetVectors ()
virtual void SetNormals (vtkNormals *)
virtual vtkNormalsGetNormals ()
virtual void SetGhostLevels (vtkGhostLevels *)
virtual vtkGhostLevelsGetGhostLevels ()
virtual void SetTCoords (vtkTCoords *)
virtual vtkTCoordsGetTCoords ()
virtual void SetTensors (vtkTensors *)
virtual vtkTensorsGetTensors ()
virtual void SetFieldData (vtkFieldData *)
virtual vtkFieldDataGetFieldData ()
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

vtkScalarsScalars
vtkVectorsVectors
vtkNormalsNormals
vtkTCoordsTCoords
vtkTensorsTensors
vtkFieldDataFieldData
vtkGhostLevelsGhostLevels
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]
vtkTensorNullTensor
float * NullTuple
int TupleSize
float * Tuple

Detailed Description

represent and manipulate attribute data in a dataset.

Date:
2000/12/10 20:08:08
Revision:
1.25

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.


Member Function Documentation

void vtkDataSetAttributes::CopyAllocate vtkDataSetAttributes *    pd,
int    sze = 0,
int    ext = 1000
 

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.

void vtkDataSetAttributes::CopyAllOff  
 

Turn off copying of all data.

void vtkDataSetAttributes::CopyAllOn  
 

Turn on copying of all data.

void vtkDataSetAttributes::CopyData vtkDataSetAttributes *    fromPd,
int    fromId,
int    toId
 

Copy the attribute data from one id to another. Make sure CopyAllocate() has been invoked before using this method.

void vtkDataSetAttributes::CopyTuple vtkDataArray   fromData,
vtkDataArray   toData,
int    fromId,
int    toId
 

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().

void vtkDataSetAttributes::DeepCopy vtkDataSetAttributes &    pd [inline]
 

For legacy compatibility. Do not use.

void vtkDataSetAttributes::DeepCopy vtkDataSetAttributes *    pd
 

Deep copy of data (i.e., create new data arrays and copy from input data).

unsigned long vtkDataSetAttributes::GetActualMemorySize  
 

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.

int vtkDataSetAttributes::GetAnyEnabled   [inline]
 

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.

virtual const char* vtkDataSetAttributes::GetClassName   [virtual]
 

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.

unsigned long int vtkDataSetAttributes::GetMTime   [virtual]
 

Check object's components for modified times.

Reimplemented from vtkObject.

void vtkDataSetAttributes::Initialize  
 

Initialize all of the object's data to NULL

void vtkDataSetAttributes::InterpolateAllocate vtkDataSetAttributes *    pd,
int    sze = 0,
int    ext = 1000
 

Initialize point interpolation method.

void vtkDataSetAttributes::InterpolateEdge vtkDataSetAttributes *    fromPd,
int    toId,
int    p1,
int    p2,
float    t
 

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.

void vtkDataSetAttributes::InterpolatePoint vtkDataSetAttributes *    fromPd,
int    toId,
vtkIdList   ids,
float *    weights
 

Interpolate data set attributes from other data set attributes given cell or point ids and associated interpolation weights.

void vtkDataSetAttributes::InterpolateTime vtkDataSetAttributes *    from1,
vtkDataSetAttributes *    from2,
int    id,
float    t
 

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.

virtual int vtkDataSetAttributes::IsA const char *    type [virtual]
 

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.

int vtkDataSetAttributes::IsTypeOf const char *    type [static]
 

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.

vtkDataSetAttributes* vtkDataSetAttributes::New   [static]
 

Construct object with copying turned on for all data.

Reimplemented from vtkObject.

Reimplemented in vtkCellData.

void vtkDataSetAttributes::PassData vtkDataSetAttributes *    pd
 

Pass entire arrays of input data through to output. Obey the "copy" flags.

void vtkDataSetAttributes::PassNoReplaceData vtkDataSetAttributes *    pd
 

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).

void vtkDataSetAttributes::PrintSelf ostream &    os,
vtkIndent    indent
[virtual]
 

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.

vtkDataSetAttributes* vtkDataSetAttributes::SafeDownCast vtkObject   o [static]
 

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.

virtual void vtkDataSetAttributes::SetCopyFieldData int    [virtual]
 

Turn on/off the copying of field data.

virtual void vtkDataSetAttributes::SetCopyGhostLevels int    [virtual]
 

Turn on/off the copying of ghost level data.

virtual void vtkDataSetAttributes::SetCopyNormals int    [virtual]
 

Turn on/off the copying of normals data.

virtual void vtkDataSetAttributes::SetCopyScalars int    [virtual]
 

Turn on/off the copying of scalar data.

virtual void vtkDataSetAttributes::SetCopyTCoords int    [virtual]
 

Turn on/off the copying of texture coordinates data.

virtual void vtkDataSetAttributes::SetCopyTensors int    [virtual]
 

Turn on/off the copying of tensor data.

virtual void vtkDataSetAttributes::SetCopyVectors int    [virtual]
 

Turn on/off the copying of vector data.

virtual void vtkDataSetAttributes::SetFieldData vtkFieldData   [virtual]
 

Set/Get the field data.

virtual void vtkDataSetAttributes::SetGhostLevels vtkGhostLevels   [virtual]
 

Set/Get the ghost level data.

virtual void vtkDataSetAttributes::SetNormals vtkNormals   [virtual]
 

Set/get the normal data.

virtual void vtkDataSetAttributes::SetScalars vtkScalars   [virtual]
 

Set/Get the scalar data.

virtual void vtkDataSetAttributes::SetTCoords vtkTCoords   [virtual]
 

Set/Get the texture coordinate data.

virtual void vtkDataSetAttributes::SetTensors vtkTensors   [virtual]
 

Set/Get the tensor data.

virtual void vtkDataSetAttributes::SetVectors vtkVectors   [virtual]
 

Set/Get the vector data.

void vtkDataSetAttributes::ShallowCopy vtkDataSetAttributes *    pd
 

Shallow copy of data (i.e., use reference counting).

void vtkDataSetAttributes::Squeeze  
 

Resize object to just fit data requirements. Reclaims extra memory.

virtual void vtkDataSetAttributes::Update   [inline, virtual]
 

Attributes have a chance to bring themselves up to date; right now this is ignored.


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:24:40 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002