VTK
vtkDataSetAttributes.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataSetAttributes.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
50 #ifndef vtkDataSetAttributes_h
51 #define vtkDataSetAttributes_h
52 
53 #include "vtkCommonDataModelModule.h" // For export macro
54 #include "vtkDataSetAttributesFieldList.h" // for vtkDataSetAttributesFieldList
55 #include "vtkFieldData.h"
56 
57 class vtkLookupTable;
58 
59 class VTKCOMMONDATAMODEL_EXPORT vtkDataSetAttributes : public vtkFieldData
60 {
61 public:
66 
68  void PrintSelf(ostream& os, vtkIndent indent) override;
69 
74  void Initialize() override;
75 
80  virtual void Update() {}
81 
82  // -- shallow and deep copy -----------------------------------------------
83 
89  void DeepCopy(vtkFieldData *pd) override;
90 
95  void ShallowCopy(vtkFieldData *pd) override;
96 
97  // -- attribute types -----------------------------------------------------
98 
99  // Always keep NUM_ATTRIBUTES as the last entry
101  {
102  SCALARS=0,
103  VECTORS=1,
104  NORMALS=2,
105  TCOORDS=3,
106  TENSORS=4,
107  GLOBALIDS=5,
108  PEDIGREEIDS=6,
109  EDGEFLAG=7,
110  NUM_ATTRIBUTES
111  };
112 
114  {
117  NOLIMIT
118  };
119 
120  // ----------- ghost points and ghost cells -------------------------------------------
121  //The following bit fields are consistent with VisIt ghost zones specification
122  //For details, see http://www.visitusers.org/index.php?title=Representing_ghost_data
123 
125  {
126  DUPLICATECELL = 1, //the cell is present on multiple processors
127  HIGHCONNECTIVITYCELL = 2, //the cell has more neighbors than in a regular mesh
128  LOWCONNECTIVITYCELL = 4, //the cell has less neighbors than in a regular mesh
129  REFINEDCELL = 8, //other cells are present that refines it.
130  EXTERIORCELL = 16, //the cell is on the exterior of the data set
131  HIDDENCELL = 32 //the cell is needed to maintain connectivity, but the data values should be ignored.
132  };
133 
135  {
136  DUPLICATEPOINT =1, //the cell is present on multiple processors
137  HIDDENPOINT =2 //the point is needed to maintain connectivity, but the data values should be ignored.
138  };
139 
140  //A vtkDataArray with this name must be of type vtkUnsignedCharArray.
141  //Each value must be assigned according to the bit fields described in
142  //PointGhostTypes or CellGhostType
143  static const char* GhostArrayName() { return "vtkGhostType";}
144 
145  //-----------------------------------------------------------------------------------
146 
148 
152  int SetActiveScalars(const char* name);
155 
157 
161  int SetActiveVectors(const char* name);
164 
166 
170  int SetActiveNormals(const char* name);
173 
175 
179  int SetActiveTCoords(const char* name);
182 
184 
188  int SetActiveTensors(const char* name);
191 
193 
197  int SetActiveGlobalIds(const char* name);
200 
202 
206  int SetActivePedigreeIds(const char* name);
209 
211 
216  vtkDataArray* GetScalars(const char* name);
217  vtkDataArray* GetVectors(const char* name);
218  vtkDataArray* GetNormals(const char* name);
219  vtkDataArray* GetTCoords(const char* name);
220  vtkDataArray* GetTensors(const char* name);
224 
239  int SetActiveAttribute(const char* name, int attributeType);
240 
244  int SetActiveAttribute(int index, int attributeType);
245 
250  void GetAttributeIndices(int* indexArray);
251 
258  int IsArrayAnAttribute(int idx);
259 
282  int SetAttribute(vtkAbstractArray* aa, int attributeType);
283 
290  vtkDataArray* GetAttribute(int attributeType);
291 
300 
302 
306  void RemoveArray(int index) override;
308 
309 
311 
315  static const char* GetAttributeTypeAsString(int attributeType);
316  static const char* GetLongAttributeTypeAsString(int attributeType);
318 
319  // -- attribute copy properties ------------------------------------------
320 
322  {
323  COPYTUPLE=0,
324  INTERPOLATE=1,
325  PASSDATA=2,
326  ALLCOPY //all of the above
327  };
328 
350  void SetCopyAttribute (int index, int value, int ctype=ALLCOPY);
351 
356  int GetCopyAttribute (int index, int ctype);
357 
359  void SetCopyScalars(vtkTypeBool i, int ctype=ALLCOPY);
360  vtkTypeBool GetCopyScalars(int ctype=ALLCOPY);
361  vtkBooleanMacro(CopyScalars, vtkTypeBool);
362 
364  void SetCopyVectors(vtkTypeBool i, int ctype=ALLCOPY);
365  vtkTypeBool GetCopyVectors(int ctype=ALLCOPY);
366  vtkBooleanMacro(CopyVectors, vtkTypeBool);
367 
369  void SetCopyNormals(vtkTypeBool i, int ctype=ALLCOPY);
370  vtkTypeBool GetCopyNormals(int ctype=ALLCOPY);
371  vtkBooleanMacro(CopyNormals, vtkTypeBool);
372 
374  void SetCopyTCoords(vtkTypeBool i, int ctype=ALLCOPY);
375  vtkTypeBool GetCopyTCoords(int ctype=ALLCOPY);
376  vtkBooleanMacro(CopyTCoords, vtkTypeBool);
377 
379  void SetCopyTensors(vtkTypeBool i, int ctype=ALLCOPY);
380  vtkTypeBool GetCopyTensors(int ctype=ALLCOPY);
381  vtkBooleanMacro(CopyTensors, vtkTypeBool);
382 
384  void SetCopyGlobalIds(vtkTypeBool i, int ctype=ALLCOPY);
385  vtkTypeBool GetCopyGlobalIds(int ctype=ALLCOPY);
386  vtkBooleanMacro(CopyGlobalIds, vtkTypeBool);
387 
389  void SetCopyPedigreeIds(vtkTypeBool i, int ctype=ALLCOPY);
390  vtkTypeBool GetCopyPedigreeIds(int ctype=ALLCOPY);
391  vtkBooleanMacro(CopyPedigreeIds, vtkTypeBool);
392 
394  void CopyAllOn(int ctype=ALLCOPY) override;
395 
397  void CopyAllOff(int ctype=ALLCOPY) override;
398 
399  // -- passthrough operations ----------------------------------------------
400 
410  void PassData(vtkFieldData* fd) override;
411 
412  // -- copytuple operations ------------------------------------------------
413 
415 
427  vtkIdType ext=1000)
428  {
429  this->CopyAllocate(pd, sze, ext, 0);
430  }
432  vtkIdType ext, int shallowCopyArrays);
434 
443 
444 
454  const int *inExt,
455  const int *outExt,
456  bool setSize = true);
457 
459 
469  void CopyData(vtkDataSetAttributes *fromPd, vtkIdType fromId, vtkIdType toId);
471  vtkIdList *fromIds, vtkIdList *toIds);
473 
480  vtkIdType srcStart);
481 
483 
489  void CopyTuple(vtkAbstractArray *fromData, vtkAbstractArray *toData,
490  vtkIdType fromId, vtkIdType toId);
492  vtkIdList *fromIds, vtkIdList *toIds);
494  vtkIdType dstStart, vtkIdType n, vtkIdType srcStart);
496 
497 
498  // -- interpolate operations ----------------------------------------------
499 
501 
510  vtkIdType ext=1000)
511  {
512  this->InterpolateAllocate(pd, sze, ext, 0);
513  }
515  vtkIdType ext, int shallowCopyArrays);
517 
526  vtkIdList *ids, double *weights);
527 
538  vtkIdType p1, vtkIdType p2, double t);
539 
553  vtkDataSetAttributes *from2,
554  vtkIdType id, double t);
555 
557 
558  // field list copy operations ------------------------------------------
559 
565  vtkIdType ext=1000);
566 
574  vtkDataSetAttributes* dsa, int idx, vtkIdType fromId,
575  vtkIdType toId);
577  vtkDataSetAttributes* dsa, int idx, vtkIdType dstStart,
578  vtkIdType n, vtkIdType srcStart);
579 
587  vtkIdType ext=1000);
588 
597  vtkDataSetAttributes *fromPd,
598  int idx, vtkIdType toId,
599  vtkIdList *ids, double *weights);
600 
601 protected:
604 
606  int ctype,
607  vtkIdType sze=0,
608  vtkIdType ext=1000,
609  int shallowCopyArrays=0,
610  bool createNewArrays=true);
611 
615  void InitializeFields() override;
616 
617  int AttributeIndices[NUM_ATTRIBUTES]; //index to attribute array in field data
618  int CopyAttributeFlags[ALLCOPY][NUM_ATTRIBUTES]; //copy flag for attribute data
619 
621 
623 
624  static const int NumberOfAttributeComponents[NUM_ATTRIBUTES];
625  static const int AttributeLimits[NUM_ATTRIBUTES];
626  static const char AttributeNames[NUM_ATTRIBUTES][12];
627  static const char LongAttributeNames[NUM_ATTRIBUTES][35];
628 
629 private:
630  static int CheckNumberOfComponents(vtkAbstractArray* da, int attributeType);
631 
632  vtkFieldData::BasicIterator ComputeRequiredArrays(vtkDataSetAttributes* pd, int ctype);
633 
634 private:
636  void operator=(const vtkDataSetAttributes&) = delete;
637 
639 };
640 
641 #endif
vtkDataSetAttributes::GetPedigreeIds
vtkAbstractArray * GetPedigreeIds(const char *name)
vtkDataSetAttributes::AttributeLimitTypes
AttributeLimitTypes
Definition: vtkDataSetAttributes.h:114
vtkDataSetAttributes::SetNormals
int SetNormals(vtkDataArray *da)
Set/get the normal data.
vtkDataSetAttributes::SetCopyPedigreeIds
void SetCopyPedigreeIds(vtkTypeBool i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
vtkDataSetAttributes::GetScalars
vtkDataArray * GetScalars(const char *name)
This will first look for an array with the correct name.
vtkDataSetAttributes::GetTCoords
vtkDataArray * GetTCoords()
vtkDataSetAttributes::SetActiveAttribute
int SetActiveAttribute(const char *name, int attributeType)
Make the array with the given name the active attribute.
vtkDataSetAttributes::GetTensors
vtkDataArray * GetTensors()
vtkDataSetAttributes::GetVectors
vtkDataArray * GetVectors()
vtkDataSetAttributes::SetCopyNormals
void SetCopyNormals(vtkTypeBool i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
vtkDataSetAttributes::GetAttributeTypeAsString
static const char * GetAttributeTypeAsString(int attributeType)
Given an integer attribute type, this static method returns a string type for the attribute (i....
vtkDataSetAttributes::MAX
@ MAX
Definition: vtkDataSetAttributes.h:115
vtkDataSetAttributes::SetTCoords
int SetTCoords(vtkDataArray *da)
Set/Get the texture coordinate data.
vtkDataSetAttributes::GetCopyTCoords
vtkTypeBool GetCopyTCoords(int ctype=ALLCOPY)
vtkDataSetAttributes::InterpolateEdge
void InterpolateEdge(vtkDataSetAttributes *fromPd, vtkIdType toId, vtkIdType p1, vtkIdType p2, double t)
Interpolate data from the two points p1,p2 (forming an edge) and an interpolation factor,...
vtkDataSetAttributes::vtkDataSetAttributes
vtkDataSetAttributes()
vtkX3D::value
@ value
Definition: vtkX3D.h:220
vtkDataSetAttributes::GetAttribute
vtkDataArray * GetAttribute(int attributeType)
Return an attribute given the attribute type (see vtkDataSetAttributes::AttributeTypes).
vtkDataSetAttributes::GetTCoords
vtkDataArray * GetTCoords(const char *name)
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkDataSetAttributes::GhostArrayName
static const char * GhostArrayName()
Definition: vtkDataSetAttributes.h:143
vtkDataSetAttributes::GetGlobalIds
vtkDataArray * GetGlobalIds(const char *name)
vtkDataSetAttributes::InternalCopyAllocate
void InternalCopyAllocate(vtkDataSetAttributes *pd, int ctype, vtkIdType sze=0, vtkIdType ext=1000, int shallowCopyArrays=0, bool createNewArrays=true)
vtkDataSetAttributes::SetActiveNormals
int SetActiveNormals(const char *name)
vtkDataSetAttributes::SetCopyTCoords
void SetCopyTCoords(vtkTypeBool i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
vtkDataSetAttributes
represent and manipulate attribute data in a dataset
Definition: vtkDataSetAttributes.h:60
vtkDataSetAttributes::GetTensors
vtkDataArray * GetTensors(const char *name)
vtkDataSetAttributes::InterpolateTime
void InterpolateTime(vtkDataSetAttributes *from1, vtkDataSetAttributes *from2, vtkIdType id, double t)
Interpolate data from the same id (point or cell) at different points in time (parameter t).
vtkDataSetAttributes::SetGlobalIds
int SetGlobalIds(vtkDataArray *da)
Set/Get the global id data.
vtkDataSetAttributes::SetActiveVectors
int SetActiveVectors(const char *name)
vtkFieldData::BasicIterator
Definition: vtkFieldData.h:403
vtkDataSetAttributes::InterpolateAllocate
void InterpolateAllocate(vtkDataSetAttributes::FieldList &list, vtkIdType sze=0, vtkIdType ext=1000)
A special form of InterpolateAllocate() to be used with FieldLists.
vtkDataSetAttributes::SetupForCopy
void SetupForCopy(vtkDataSetAttributes *pd)
Create a mapping between the input attributes and this object so that methods like CopyData() and Cop...
vtkDataSetAttributes::SetPedigreeIds
int SetPedigreeIds(vtkAbstractArray *da)
Set/Get the pedigree id data.
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkDataSetAttributes::PointGhostTypes
PointGhostTypes
Definition: vtkDataSetAttributes.h:135
vtkDataSetAttributes::CopyData
void CopyData(vtkDataSetAttributes *fromPd, vtkIdList *fromIds, vtkIdList *toIds)
vtkDataSetAttributes::AttributeTypes
AttributeTypes
Definition: vtkDataSetAttributes.h:101
vtkDataSetAttributes::CopyData
void CopyData(vtkDataSetAttributes::FieldList &list, vtkDataSetAttributes *dsa, int idx, vtkIdType dstStart, vtkIdType n, vtkIdType srcStart)
vtkDataSetAttributes::GetGlobalIds
vtkDataArray * GetGlobalIds()
vtkDataSetAttributes::CellGhostTypes
CellGhostTypes
Definition: vtkDataSetAttributes.h:125
vtkDataSetAttributes::SetActiveTCoords
int SetActiveTCoords(const char *name)
vtkDataSetAttributes::InterpolatePoint
void InterpolatePoint(vtkDataSetAttributes::FieldList &list, vtkDataSetAttributes *fromPd, int idx, vtkIdType toId, vtkIdList *ids, double *weights)
Interpolate data set attributes from other data set attributes given cell or point ids and associated...
vtkDataSetAttributes::GetCopyNormals
vtkTypeBool GetCopyNormals(int ctype=ALLCOPY)
vtkFieldData
represent and manipulate fields of data
Definition: vtkFieldData.h:57
vtkDataSetAttributes::SetCopyVectors
void SetCopyVectors(vtkTypeBool i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
vtkFieldData.h
vtkDataSetAttributes::TargetIndices
int * TargetIndices
Definition: vtkDataSetAttributes.h:622
vtkDataSetAttributes::Update
virtual void Update()
Attributes have a chance to bring themselves up to date; right now this is ignored.
Definition: vtkDataSetAttributes.h:80
vtkDataSetAttributes::SetScalars
int SetScalars(vtkDataArray *da)
Set/Get the scalar data.
vtkDataSetAttributes::SetActiveScalars
int SetActiveScalars(const char *name)
vtkDataSetAttributes::RequiredArrays
vtkFieldData::BasicIterator RequiredArrays
Definition: vtkDataSetAttributes.h:620
vtkDataSetAttributes::SetTensors
int SetTensors(vtkDataArray *da)
Set/Get the tensor data.
vtkDataSetAttributes::InterpolatePoint
void InterpolatePoint(vtkDataSetAttributes *fromPd, vtkIdType toId, vtkIdList *ids, double *weights)
Interpolate data set attributes from other data set attributes given cell or point ids and associated...
vtkDataSetAttributes::GetNormals
vtkDataArray * GetNormals(const char *name)
vtkDataSetAttributes::SetActivePedigreeIds
int SetActivePedigreeIds(const char *name)
vtkDataSetAttributes::CopyStructuredData
void CopyStructuredData(vtkDataSetAttributes *inDsa, const int *inExt, const int *outExt, bool setSize=true)
This method is used to copy data arrays in images.
vtkDataSetAttributes::SetActiveTensors
int SetActiveTensors(const char *name)
vtkDataSetAttributes::CopyTuple
void CopyTuple(vtkAbstractArray *fromData, vtkAbstractArray *toData, vtkIdType fromId, vtkIdType toId)
Copy a tuple (or set of tuples) of data from one data array to another.
vtkDataSetAttributesFieldList
helps manage arrays from multiple vtkDataSetAttributes.
Definition: vtkDataSetAttributesFieldList.h:71
vtkDataSetAttributes::SetCopyScalars
void SetCopyScalars(vtkTypeBool i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
vtkDataSetAttributes::SetCopyTensors
void SetCopyTensors(vtkTypeBool i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
vtkFieldData::RemoveArray
virtual void RemoveArray(const char *name)
Remove an array (with the given name or index) from the list of arrays.
vtkDataSetAttributes::SetCopyAttribute
void SetCopyAttribute(int index, int value, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
vtkDataSetAttributes::IsArrayAnAttribute
int IsArrayAnAttribute(int idx)
Determine whether a data array of index idx is considered a data set attribute (i....
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkDataSetAttributes::GetCopyGlobalIds
vtkTypeBool GetCopyGlobalIds(int ctype=ALLCOPY)
vtkDataSetAttributes::SetActiveGlobalIds
int SetActiveGlobalIds(const char *name)
vtkDataSetAttributes::GetAbstractAttribute
vtkAbstractArray * GetAbstractAttribute(int attributeType)
Return an attribute given the attribute type (see vtkDataSetAttributes::AttributeTypes).
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:37
vtkDataSetAttributes::InterpolateAllocate
void InterpolateAllocate(vtkDataSetAttributes *pd, vtkIdType sze, vtkIdType ext, int shallowCopyArrays)
vtkDataSetAttributes::SetCopyGlobalIds
void SetCopyGlobalIds(vtkTypeBool i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
vtkDataSetAttributes::CopyAllOn
void CopyAllOn(int ctype=ALLCOPY) override
Turn on/off the copying of attribute data.
vtkDataSetAttributes::GetCopyAttribute
int GetCopyAttribute(int index, int ctype)
Get the attribute copy flag for copy operation <ctype> of attribute <index>.
vtkDataSetAttributes::GetNormals
vtkDataArray * GetNormals()
vtkDataSetAttributes::GetCopyVectors
vtkTypeBool GetCopyVectors(int ctype=ALLCOPY)
vtkDataSetAttributes::GetScalars
vtkDataArray * GetScalars()
vtkDataSetAttributes::SetVectors
int SetVectors(vtkDataArray *da)
Set/Get the vector data.
vtkDataSetAttributes::CopyData
void CopyData(vtkDataSetAttributes *fromPd, vtkIdType dstStart, vtkIdType n, vtkIdType srcStart)
Copy n consecutive attributes starting at srcStart from fromPd to this container, starting at the dst...
vtkDataSetAttributes::CopyData
void CopyData(vtkDataSetAttributes *fromPd, vtkIdType fromId, vtkIdType toId)
Copy the attribute data from one id to another.
vtkDataSetAttributes::DeepCopy
void DeepCopy(vtkFieldData *pd) override
Deep copy of data (i.e., create new data arrays and copy from input data).
vtkDataSetAttributes::CopyAllocate
void CopyAllocate(vtkDataSetAttributes::FieldList &list, vtkIdType sze=0, vtkIdType ext=1000)
A special form of CopyAllocate() to be used with FieldLists.
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkDataSetAttributes::GetPedigreeIds
vtkAbstractArray * GetPedigreeIds()
vtkDataSetAttributes::Initialize
void Initialize() override
Initialize all of the object's data to nullptr Also, clear the copy flags.
vtkDataSetAttributes::GetCopyTensors
vtkTypeBool GetCopyTensors(int ctype=ALLCOPY)
vtkDataSetAttributes::RemoveArray
void RemoveArray(int index) override
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:79
vtkLookupTable
map scalar values into colors via a lookup table
Definition: vtkLookupTable.h:75
vtkDataSetAttributesFieldList.h
vtkDataSetAttributes::SetActiveAttribute
int SetActiveAttribute(int index, int attributeType)
Make the array with the given index the active attribute.
vtkDataSetAttributes::InterpolateAllocate
void InterpolateAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
Initialize point interpolation method.
Definition: vtkDataSetAttributes.h:509
vtkDataSetAttributes::PassData
void PassData(vtkFieldData *fd) override
Pass entire arrays of input data through to output.
vtkDataSetAttributes::CopyAllocate
void CopyAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
Allocates point data for point-by-point (or cell-by-cell) copy operation.
Definition: vtkDataSetAttributes.h:426
vtkDataSetAttributes::New
static vtkDataSetAttributes * New()
Construct object with copying turned on for all data.
vtkDataSetAttributes::AttributeCopyOperations
AttributeCopyOperations
Definition: vtkDataSetAttributes.h:322
vtkDataSetAttributes::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataSetAttributes::GetLongAttributeTypeAsString
static const char * GetLongAttributeTypeAsString(int attributeType)
vtkDataSetAttributes::ShallowCopy
void ShallowCopy(vtkFieldData *pd) override
Shallow copy of data (i.e., use reference counting).
vtkDataSetAttributes::GetVectors
vtkDataArray * GetVectors(const char *name)
vtkDataSetAttributes::CopyTuples
void CopyTuples(vtkAbstractArray *fromData, vtkAbstractArray *toData, vtkIdList *fromIds, vtkIdList *toIds)
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkDataSetAttributes::CopyAllOff
void CopyAllOff(int ctype=ALLCOPY) override
Turn on/off the copying of attribute data.
vtkDataSetAttributes::SetAttribute
int SetAttribute(vtkAbstractArray *aa, int attributeType)
Set an array to use as the given attribute type (i.e., vtkDataSetAttributes::SCALAR,...
vtkDataSetAttributes::EXACT
@ EXACT
Definition: vtkDataSetAttributes.h:116
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkDataSetAttributes::CopyData
void CopyData(vtkDataSetAttributes::FieldList &list, vtkDataSetAttributes *dsa, int idx, vtkIdType fromId, vtkIdType toId)
Special forms of CopyData() to be used with FieldLists.
vtkDataSetAttributes::CopyAllocate
void CopyAllocate(vtkDataSetAttributes *pd, vtkIdType sze, vtkIdType ext, int shallowCopyArrays)
vtkDataSetAttributes::CopyTuples
void CopyTuples(vtkAbstractArray *fromData, vtkAbstractArray *toData, vtkIdType dstStart, vtkIdType n, vtkIdType srcStart)
vtkDataSetAttributes::GetAttributeIndices
void GetAttributeIndices(int *indexArray)
Get the field data array indices corresponding to scalars, vectors, tensors, etc.
vtkDataSetAttributes::~vtkDataSetAttributes
~vtkDataSetAttributes() override
vtkDataSetAttributes::InitializeFields
void InitializeFields() override
Initialize all of the object's data to nullptr.
vtkDataSetAttributes::GetCopyScalars
vtkTypeBool GetCopyScalars(int ctype=ALLCOPY)
vtkDataSetAttributes::GetCopyPedigreeIds
vtkTypeBool GetCopyPedigreeIds(int ctype=ALLCOPY)