VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkCellData Class Reference

represent and manipulate cell attribute data More...

#include <vtkCellData.h>

Inheritance diagram for vtkCellData:
[legend]
Collaboration diagram for vtkCellData:
[legend]

Public Types

typedef vtkDataSetAttributes Superclass
 
- Public Types inherited from vtkDataSetAttributes
enum  AttributeTypes {
  SCALARS =0, VECTORS =1, NORMALS =2, TCOORDS =3,
  TENSORS =4, GLOBALIDS =5, PEDIGREEIDS =6, EDGEFLAG =7,
  NUM_ATTRIBUTES
}
 
enum  AttributeLimitTypes { MAX, EXACT, NOLIMIT }
 
enum  CellGhostTypes {
  DUPLICATECELL = 1, HIGHCONNECTIVITYCELL = 2, LOWCONNECTIVITYCELL = 4, REFINEDCELL = 8,
  EXTERIORCELL = 16, HIDDENCELL = 32
}
 
enum  PointGhostTypes { DUPLICATEPOINT =1, HIDDENPOINT =2 }
 
enum  AttributeCopyOperations { COPYTUPLE =0, INTERPOLATE =1, PASSDATA =2, ALLCOPY }
 
typedef vtkFieldData Superclass
 
- Public Types inherited from vtkFieldData
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkCellDataNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
- Public Member Functions inherited from vtkDataSetAttributes
vtkDataSetAttributesNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void Initialize ()
 
virtual void Update ()
 
virtual void DeepCopy (vtkFieldData *pd)
 
virtual void ShallowCopy (vtkFieldData *pd)
 
int SetActiveAttribute (const char *name, int attributeType)
 
int SetActiveAttribute (int index, int attributeType)
 
void GetAttributeIndices (int *indexArray)
 
int IsArrayAnAttribute (int idx)
 
int SetAttribute (vtkAbstractArray *aa, int attributeType)
 
vtkDataArrayGetAttribute (int attributeType)
 
vtkAbstractArrayGetAbstractAttribute (int attributeType)
 
void SetCopyAttribute (int index, int value, int ctype=ALLCOPY)
 
virtual void CopyAllOn (int ctype=ALLCOPY)
 
virtual void CopyAllOff (int ctype=ALLCOPY)
 
virtual void PassData (vtkFieldData *fd)
 
int SetScalars (vtkDataArray *da)
 
int SetActiveScalars (const char *name)
 
vtkDataArrayGetScalars ()
 
int SetVectors (vtkDataArray *da)
 
int SetActiveVectors (const char *name)
 
vtkDataArrayGetVectors ()
 
int SetNormals (vtkDataArray *da)
 
int SetActiveNormals (const char *name)
 
vtkDataArrayGetNormals ()
 
int SetTCoords (vtkDataArray *da)
 
int SetActiveTCoords (const char *name)
 
vtkDataArrayGetTCoords ()
 
int SetTensors (vtkDataArray *da)
 
int SetActiveTensors (const char *name)
 
vtkDataArrayGetTensors ()
 
int SetGlobalIds (vtkDataArray *da)
 
int SetActiveGlobalIds (const char *name)
 
vtkDataArrayGetGlobalIds ()
 
int SetPedigreeIds (vtkAbstractArray *da)
 
int SetActivePedigreeIds (const char *name)
 
vtkAbstractArrayGetPedigreeIds ()
 
vtkDataArrayGetScalars (const char *name)
 
vtkDataArrayGetVectors (const char *name)
 
vtkDataArrayGetNormals (const char *name)
 
vtkDataArrayGetTCoords (const char *name)
 
vtkDataArrayGetTensors (const char *name)
 
vtkDataArrayGetGlobalIds (const char *name)
 
vtkAbstractArrayGetPedigreeIds (const char *name)
 
virtual void RemoveArray (const char *name)
 
virtual void RemoveArray (int index)
 
void SetCopyScalars (int i, int ctype=ALLCOPY)
 
int GetCopyScalars (int ctype=ALLCOPY)
 
virtual void CopyScalarsOn ()
 
virtual void CopyScalarsOff ()
 
void SetCopyVectors (int i, int ctype=ALLCOPY)
 
int GetCopyVectors (int ctype=ALLCOPY)
 
virtual void CopyVectorsOn ()
 
virtual void CopyVectorsOff ()
 
void SetCopyNormals (int i, int ctype=ALLCOPY)
 
int GetCopyNormals (int ctype=ALLCOPY)
 
virtual void CopyNormalsOn ()
 
virtual void CopyNormalsOff ()
 
void SetCopyTCoords (int i, int ctype=ALLCOPY)
 
int GetCopyTCoords (int ctype=ALLCOPY)
 
virtual void CopyTCoordsOn ()
 
virtual void CopyTCoordsOff ()
 
void SetCopyTensors (int i, int ctype=ALLCOPY)
 
int GetCopyTensors (int ctype=ALLCOPY)
 
virtual void CopyTensorsOn ()
 
virtual void CopyTensorsOff ()
 
void SetCopyGlobalIds (int i, int ctype=ALLCOPY)
 
int GetCopyGlobalIds (int ctype=ALLCOPY)
 
virtual void CopyGlobalIdsOn ()
 
virtual void CopyGlobalIdsOff ()
 
void SetCopyPedigreeIds (int i, int ctype=ALLCOPY)
 
int GetCopyPedigreeIds (int ctype=ALLCOPY)
 
virtual void CopyPedigreeIdsOn ()
 
virtual void CopyPedigreeIdsOff ()
 
void CopyAllocate (vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
 
void CopyAllocate (vtkDataSetAttributes *pd, vtkIdType sze, vtkIdType ext, int shallowCopyArrays)
 
void CopyStructuredData (vtkDataSetAttributes *inDsa, const int *inExt, const int *outExt)
 
void CopyData (vtkDataSetAttributes *fromPd, vtkIdType fromId, vtkIdType toId)
 
void CopyData (vtkDataSetAttributes *fromPd, vtkIdList *fromIds, vtkIdList *toIds)
 
void CopyData (vtkDataSetAttributes *fromPd, vtkIdType dstStart, vtkIdType n, vtkIdType srcStart)
 
void CopyTuple (vtkAbstractArray *fromData, vtkAbstractArray *toData, vtkIdType fromId, vtkIdType toId)
 
void CopyTuples (vtkAbstractArray *fromData, vtkAbstractArray *toData, vtkIdList *fromIds, vtkIdList *toIds)
 
void CopyTuples (vtkAbstractArray *fromData, vtkAbstractArray *toData, vtkIdType dstStart, vtkIdType n, vtkIdType srcStart)
 
void InterpolateAllocate (vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
 
void InterpolateAllocate (vtkDataSetAttributes *pd, vtkIdType sze, vtkIdType ext, int shallowCopyArrays)
 
void InterpolatePoint (vtkDataSetAttributes *fromPd, vtkIdType toId, vtkIdList *ids, double *weights)
 
void InterpolateEdge (vtkDataSetAttributes *fromPd, vtkIdType toId, vtkIdType p1, vtkIdType p2, double t)
 
void InterpolateTime (vtkDataSetAttributes *from1, vtkDataSetAttributes *from2, vtkIdType id, double t)
 
void CopyAllocate (vtkDataSetAttributes::FieldList &list, vtkIdType sze=0, vtkIdType ext=1000)
 
void CopyData (vtkDataSetAttributes::FieldList &list, vtkDataSetAttributes *dsa, int idx, vtkIdType fromId, vtkIdType toId)
 
void InterpolateAllocate (vtkDataSetAttributes::FieldList &list, vtkIdType sze=0, vtkIdType ext=1000)
 
void InterpolatePoint (vtkDataSetAttributes::FieldList &list, vtkDataSetAttributes *fromPd, int idx, vtkIdType toId, vtkIdList *ids, double *weights)
 
- Public Member Functions inherited from vtkFieldData
vtkFieldDataNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
int Allocate (const vtkIdType sz, const vtkIdType ext=1000)
 
void CopyStructure (vtkFieldData *)
 
void AllocateArrays (int num)
 
int AddArray (vtkAbstractArray *array)
 
vtkDataArrayGetArray (int i)
 
vtkDataArrayGetArray (const char *arrayName, int &index)
 
vtkAbstractArrayGetAbstractArray (int i)
 
vtkAbstractArrayGetAbstractArray (const char *arrayName, int &index)
 
void Squeeze ()
 
void Reset ()
 
virtual unsigned long GetActualMemorySize ()
 
unsigned long int GetMTime ()
 
void GetField (vtkIdList *ptId, vtkFieldData *f)
 
int GetArrayContainingComponent (int i, int &arrayComp)
 
int GetNumberOfComponents ()
 
vtkIdType GetNumberOfTuples ()
 
void SetNumberOfTuples (const vtkIdType number)
 
void SetTuple (const vtkIdType i, const vtkIdType j, vtkFieldData *source)
 
void InsertTuple (const vtkIdType i, const vtkIdType j, vtkFieldData *source)
 
vtkIdType InsertNextTuple (const vtkIdType j, vtkFieldData *source)
 
int GetNumberOfArrays ()
 
vtkDataArrayGetArray (const char *arrayName)
 
vtkAbstractArrayGetAbstractArray (const char *arrayName)
 
int HasArray (const char *name)
 
const char * GetArrayName (int i)
 
void CopyFieldOn (const char *name)
 
void CopyFieldOff (const char *name)
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkCellDataNew ()
 
static int IsTypeOf (const char *type)
 
static vtkCellDataSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkDataSetAttributes
static vtkDataSetAttributesNew ()
 
static int IsTypeOf (const char *type)
 
static vtkDataSetAttributesSafeDownCast (vtkObjectBase *o)
 
static const char * GhostArrayName ()
 
static const char * GetAttributeTypeAsString (int attributeType)
 
static const char * GetLongAttributeTypeAsString (int attributeType)
 
- Static Public Member Functions inherited from vtkFieldData
static vtkFieldDataNew ()
 
static int IsTypeOf (const char *type)
 
static vtkFieldDataSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkCellData ()
 
 ~vtkCellData ()
 
- Protected Member Functions inherited from vtkDataSetAttributes
 vtkDataSetAttributes ()
 
 ~vtkDataSetAttributes ()
 
void InternalCopyAllocate (vtkDataSetAttributes *pd, int ctype, vtkIdType sze=0, vtkIdType ext=1000, int shallowCopyArrays=0)
 
void InternalCopyAllocate (vtkDataSetAttributes::FieldList &list, int ctype, vtkIdType sze, vtkIdType ext)
 
virtual void InitializeFields ()
 
- Protected Member Functions inherited from vtkFieldData
 vtkFieldData ()
 
 ~vtkFieldData ()
 
void SetArray (int i, vtkAbstractArray *array)
 
void CopyFieldOnOff (const char *name, int onOff)
 
void ClearFieldFlags ()
 
int FindFlag (const char *field)
 
int GetFlag (const char *field)
 
void CopyFlags (const vtkFieldData *source)
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Additional Inherited Members

- Protected Attributes inherited from vtkDataSetAttributes
int AttributeIndices [NUM_ATTRIBUTES]
 
int CopyAttributeFlags [ALLCOPY][NUM_ATTRIBUTES]
 
vtkFieldData::BasicIterator RequiredArrays
 
intTargetIndices
 
- Protected Attributes inherited from vtkFieldData
int NumberOfArrays
 
int NumberOfActiveArrays
 
vtkAbstractArray ** Data
 
CopyFieldFlagCopyFieldFlags
 
int NumberOfFieldFlags
 
int DoCopyAllOn
 
int DoCopyAllOff
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 
- Static Protected Attributes inherited from vtkDataSetAttributes
static const int NumberOfAttributeComponents [NUM_ATTRIBUTES]
 
static const int AttributeLimits [NUM_ATTRIBUTES]
 
static const char AttributeNames [NUM_ATTRIBUTES][12]
 
static const char LongAttributeNames [NUM_ATTRIBUTES][35]
 

Detailed Description

represent and manipulate cell attribute data

vtkCellData is a class that is used to represent and manipulate cell attribute data (e.g., scalars, vectors, normals, texture coordinates, etc.) Special methods are provided to work with filter objects, such as passing data through filter, copying data from one cell to another, and interpolating data given cell interpolation weights.

Examples:
vtkCellData (Examples)
Tests:
vtkCellData (Tests)

Definition at line 37 of file vtkCellData.h.

Member Typedef Documentation

Definition at line 42 of file vtkCellData.h.

Constructor & Destructor Documentation

vtkCellData::vtkCellData ( )
inlineprotected

Definition at line 46 of file vtkCellData.h.

vtkCellData::~vtkCellData ( )
inlineprotected

Definition at line 47 of file vtkCellData.h.

Member Function Documentation

static vtkCellData* vtkCellData::New ( )
static
static int vtkCellData::IsTypeOf ( const char *  type)
static
virtual int vtkCellData::IsA ( const char *  name)
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 vtkDataSetAttributes.

static vtkCellData* vtkCellData::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkCellData::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkDataSetAttributes.

vtkCellData* vtkCellData::NewInstance ( ) const
void vtkCellData::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.


The documentation for this class was generated from the following file: