VTK  9.1.0
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 =========================================================================*/
160 #ifndef vtkDataSetAttributes_h
161 #define vtkDataSetAttributes_h
162 
163 #include "vtkCommonDataModelModule.h" // For export macro
164 #include "vtkDataSetAttributesFieldList.h" // for vtkDataSetAttributesFieldList
165 #include "vtkFieldData.h"
166 
167 class vtkLookupTable;
168 
169 class VTKCOMMONDATAMODEL_EXPORT vtkDataSetAttributes : public vtkFieldData
170 {
171 public:
177 
179  void PrintSelf(ostream& os, vtkIndent indent) override;
180 
185  void Initialize() override;
186 
191  virtual void Update() {}
192 
193  // -- shallow and deep copy -----------------------------------------------
194 
200  void DeepCopy(vtkFieldData* pd) override;
201 
206  void ShallowCopy(vtkFieldData* pd) override;
207 
208  // -- attribute types -----------------------------------------------------
209 
210  // Always keep NUM_ATTRIBUTES as the last entry
212  {
213  SCALARS = 0,
214  VECTORS = 1,
215  NORMALS = 2,
216  TCOORDS = 3,
217  TENSORS = 4,
218  GLOBALIDS = 5,
219  PEDIGREEIDS = 6,
220  EDGEFLAG = 7,
221  TANGENTS = 8,
222  RATIONALWEIGHTS = 9,
223  HIGHERORDERDEGREES = 10,
224  NUM_ATTRIBUTES
225  };
226 
228  {
231  NOLIMIT
232  };
233 
234  // ----------- ghost points and ghost cells -------------------------------------------
235  // The following bit fields are consistent with VisIt ghost zones specification
236  // For details, see http://www.visitusers.org/index.php?title=Representing_ghost_data
237 
239  {
240  DUPLICATECELL = 1, // the cell is present on multiple processors
241  HIGHCONNECTIVITYCELL = 2, // the cell has more neighbors than in a regular mesh
242  LOWCONNECTIVITYCELL = 4, // the cell has less neighbors than in a regular mesh
243  REFINEDCELL = 8, // other cells are present that refines it.
244  EXTERIORCELL = 16, // the cell is on the exterior of the data set
245  HIDDENCELL =
246  32 // the cell is needed to maintain connectivity, but the data values should be ignored.
247  };
248 
250  {
251  DUPLICATEPOINT = 1, // the cell is present on multiple processors
252  HIDDENPOINT =
253  2 // the point is needed to maintain connectivity, but the data values should be ignored.
254  };
255 
256  // A vtkDataArray with this name must be of type vtkUnsignedCharArray.
257  // Each value must be assigned according to the bit fields described in
258  // PointGhostTypes or CellGhostType
259  static const char* GhostArrayName() { return "vtkGhostType"; }
260 
261  //-----------------------------------------------------------------------------------
262 
264 
268  int SetActiveScalars(const char* name);
271 
273 
277  int SetActiveVectors(const char* name);
280 
282 
286  int SetActiveNormals(const char* name);
289 
291 
295  int SetActiveTangents(const char* name);
298 
300 
304  int SetActiveTCoords(const char* name);
307 
309 
313  int SetActiveTensors(const char* name);
316 
318 
322  int SetActiveGlobalIds(const char* name);
325 
327 
331  int SetActivePedigreeIds(const char* name);
334 
336 
340  int SetActiveRationalWeights(const char* name);
343 
345 
352 
354 
359  vtkDataArray* GetScalars(const char* name);
360  vtkDataArray* GetVectors(const char* name);
361  vtkDataArray* GetNormals(const char* name);
363  vtkDataArray* GetTCoords(const char* name);
364  vtkDataArray* GetTensors(const char* name);
370 
386  int SetActiveAttribute(const char* name, int attributeType);
387 
391  int SetActiveAttribute(int index, int attributeType);
392 
397  void GetAttributeIndices(int* indexArray);
398 
405  int IsArrayAnAttribute(int idx);
406 
429  int SetAttribute(vtkAbstractArray* aa, int attributeType);
430 
437  vtkDataArray* GetAttribute(int attributeType);
438 
447 
449 
453  void RemoveArray(int index) override;
455 
457 
461  static const char* GetAttributeTypeAsString(int attributeType);
462  static const char* GetLongAttributeTypeAsString(int attributeType);
464 
465  // -- attribute copy properties ------------------------------------------
466 
468  {
469  COPYTUPLE = 0,
470  INTERPOLATE = 1,
471  PASSDATA = 2,
472  ALLCOPY // all of the above
473  };
474 
496  void SetCopyAttribute(int index, int value, int ctype = ALLCOPY);
497 
502  int GetCopyAttribute(int index, int ctype);
503 
505  void SetCopyScalars(vtkTypeBool i, int ctype = ALLCOPY);
506  vtkTypeBool GetCopyScalars(int ctype = ALLCOPY);
507  vtkBooleanMacro(CopyScalars, vtkTypeBool);
508 
510  void SetCopyVectors(vtkTypeBool i, int ctype = ALLCOPY);
511  vtkTypeBool GetCopyVectors(int ctype = ALLCOPY);
512  vtkBooleanMacro(CopyVectors, vtkTypeBool);
513 
515  void SetCopyNormals(vtkTypeBool i, int ctype = ALLCOPY);
516  vtkTypeBool GetCopyNormals(int ctype = ALLCOPY);
517  vtkBooleanMacro(CopyNormals, vtkTypeBool);
518 
520  void SetCopyTangents(vtkTypeBool i, int ctype = ALLCOPY);
521  vtkTypeBool GetCopyTangents(int ctype = ALLCOPY);
522  vtkBooleanMacro(CopyTangents, vtkTypeBool);
523 
525  void SetCopyTCoords(vtkTypeBool i, int ctype = ALLCOPY);
526  vtkTypeBool GetCopyTCoords(int ctype = ALLCOPY);
527  vtkBooleanMacro(CopyTCoords, vtkTypeBool);
528 
530  void SetCopyTensors(vtkTypeBool i, int ctype = ALLCOPY);
531  vtkTypeBool GetCopyTensors(int ctype = ALLCOPY);
532  vtkBooleanMacro(CopyTensors, vtkTypeBool);
533 
535  void SetCopyGlobalIds(vtkTypeBool i, int ctype = ALLCOPY);
536  vtkTypeBool GetCopyGlobalIds(int ctype = ALLCOPY);
537  vtkBooleanMacro(CopyGlobalIds, vtkTypeBool);
538 
540  void SetCopyPedigreeIds(vtkTypeBool i, int ctype = ALLCOPY);
541  vtkTypeBool GetCopyPedigreeIds(int ctype = ALLCOPY);
542  vtkBooleanMacro(CopyPedigreeIds, vtkTypeBool);
543 
545  void SetCopyRationalWeights(vtkTypeBool i, int ctype = ALLCOPY);
546  vtkTypeBool GetCopyRationalWeights(int ctype = ALLCOPY);
547  vtkBooleanMacro(CopyRationalWeights, vtkTypeBool);
548 
550  void SetCopyHigherOrderDegrees(vtkTypeBool i, int ctype = ALLCOPY);
552  vtkBooleanMacro(CopyHigherOrderDegrees, vtkTypeBool);
553 
555  void CopyAllOn(int ctype = ALLCOPY) override;
556 
558  void CopyAllOff(int ctype = ALLCOPY) override;
559 
560  // -- passthrough operations ----------------------------------------------
561 
571  void PassData(vtkFieldData* fd) override;
572 
573  // -- copytuple operations ------------------------------------------------
574 
576 
587  void CopyAllocate(vtkDataSetAttributes* pd, vtkIdType sze = 0, vtkIdType ext = 1000)
588  {
589  this->CopyAllocate(pd, sze, ext, 0);
590  }
591  void CopyAllocate(vtkDataSetAttributes* pd, vtkIdType sze, vtkIdType ext, int shallowCopyArrays);
593 
602 
612  vtkDataSetAttributes* inDsa, const int* inExt, const int* outExt, bool setSize = true);
613 
615 
625  void CopyData(vtkDataSetAttributes* fromPd, vtkIdType fromId, vtkIdType toId);
626  void CopyData(vtkDataSetAttributes* fromPd, vtkIdList* fromIds, vtkIdList* toIds);
628 
634  void CopyData(vtkDataSetAttributes* fromPd, vtkIdType dstStart, vtkIdType n, vtkIdType srcStart);
635 
637 
643  void CopyTuple(
644  vtkAbstractArray* fromData, vtkAbstractArray* toData, vtkIdType fromId, vtkIdType toId);
646  vtkAbstractArray* fromData, vtkAbstractArray* toData, vtkIdList* fromIds, vtkIdList* toIds);
647  void CopyTuples(vtkAbstractArray* fromData, vtkAbstractArray* toData, vtkIdType dstStart,
648  vtkIdType n, vtkIdType srcStart);
650 
651  // -- interpolate operations ----------------------------------------------
652 
654 
663  {
664  this->InterpolateAllocate(pd, sze, ext, 0);
665  }
667  vtkDataSetAttributes* pd, vtkIdType sze, vtkIdType ext, int shallowCopyArrays);
669 
678  vtkDataSetAttributes* fromPd, vtkIdType toId, vtkIdList* ids, double* weights);
679 
690  vtkDataSetAttributes* fromPd, vtkIdType toId, vtkIdType p1, vtkIdType p2, double t);
691 
705  vtkDataSetAttributes* from1, vtkDataSetAttributes* from2, vtkIdType id, double t);
706 
708 
709  // field list copy operations ------------------------------------------
710 
716 
724  vtkIdType fromId, vtkIdType toId);
726  vtkIdType dstStart, vtkIdType n, vtkIdType srcStart);
727 
735  vtkDataSetAttributes::FieldList& list, vtkIdType sze = 0, vtkIdType ext = 1000);
736 
744  int idx, vtkIdType toId, vtkIdList* ids, double* weights);
745 
746 protected:
749 
751  vtkIdType ext = 1000, int shallowCopyArrays = 0, bool createNewArrays = true);
752 
756  void InitializeFields() override;
757 
758  int AttributeIndices[NUM_ATTRIBUTES]; // index to attribute array in field data
759  int CopyAttributeFlags[ALLCOPY][NUM_ATTRIBUTES]; // copy flag for attribute data
760 
761  friend struct ArrayList; // Friend to base class in vtkArrayListTemplate
764 
765  static const int NumberOfAttributeComponents[NUM_ATTRIBUTES];
766  static const int AttributeLimits[NUM_ATTRIBUTES];
767  static const char AttributeNames[NUM_ATTRIBUTES][19];
768  static const char LongAttributeNames[NUM_ATTRIBUTES][42];
769 
770 private:
771  static int CheckNumberOfComponents(vtkAbstractArray* da, int attributeType);
772 
773  vtkFieldData::BasicIterator ComputeRequiredArrays(vtkDataSetAttributes* pd, int ctype);
774 
775 private:
777  void operator=(const vtkDataSetAttributes&) = delete;
778 
780 };
781 
782 #endif
vtkDataSetAttributes::GetPedigreeIds
vtkAbstractArray * GetPedigreeIds(const char *name)
This will first look for an array with the correct name.
vtkDataSetAttributes::AttributeLimitTypes
AttributeLimitTypes
Definition: vtkDataSetAttributes.h:228
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::GetRationalWeights
vtkDataArray * GetRationalWeights()
Set/Get the rational weights data.
vtkDataSetAttributes::SetCopyTangents
void SetCopyTangents(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()
Set/Get the texture coordinate data.
vtkDataSetAttributes::SetActiveAttribute
int SetActiveAttribute(const char *name, int attributeType)
Make the array with the given name the active attribute.
vtkDataSetAttributes::GetTensors
vtkDataArray * GetTensors()
Set/Get the tensor data.
vtkDataSetAttributes::GetCopyTangents
vtkTypeBool GetCopyTangents(int ctype=ALLCOPY)
vtkDataSetAttributes::GetVectors
vtkDataArray * GetVectors()
Set/Get the vector data.
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:229
vtkDataSetAttributes::SetActiveTangents
int SetActiveTangents(const char *name)
Set/get the tangent data.
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:226
vtkDataSetAttributes::GetAttribute
vtkDataArray * GetAttribute(int attributeType)
Return an attribute given the attribute type (see vtkDataSetAttributes::AttributeTypes).
vtkDataSetAttributes::GetTCoords
vtkDataArray * GetTCoords(const char *name)
This will first look for an array with the correct name.
vtkIdType
int vtkIdType
Definition: vtkType.h:332
vtkDataSetAttributes::GhostArrayName
static const char * GhostArrayName()
Definition: vtkDataSetAttributes.h:259
vtkDataSetAttributes::GetGlobalIds
vtkDataArray * GetGlobalIds(const char *name)
This will first look for an array with the correct name.
vtkDataSetAttributes::InternalCopyAllocate
void InternalCopyAllocate(vtkDataSetAttributes *pd, int ctype, vtkIdType sze=0, vtkIdType ext=1000, int shallowCopyArrays=0, bool createNewArrays=true)
vtkDataSetAttributes::SetTangents
int SetTangents(vtkDataArray *da)
Set/get the tangent data.
vtkDataSetAttributes::SetActiveNormals
int SetActiveNormals(const char *name)
Set/get the normal data.
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:170
vtkDataSetAttributes::SetActiveRationalWeights
int SetActiveRationalWeights(const char *name)
Set/Get the rational weights data.
vtkDataSetAttributes::GetTensors
vtkDataArray * GetTensors(const char *name)
This will first look for an array with the correct 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::ExtendedNew
static vtkDataSetAttributes * ExtendedNew()
vtkDataSetAttributes::SetGlobalIds
int SetGlobalIds(vtkDataArray *da)
Set/Get the global id data.
vtkDataSetAttributes::SetActiveVectors
int SetActiveVectors(const char *name)
Set/Get the vector data.
vtkDataSetAttributes::SetActiveHigherOrderDegrees
int SetActiveHigherOrderDegrees(const char *name)
Set/Get the rational degrees data.
vtkFieldData::BasicIterator
Definition: vtkFieldData.h:510
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:159
vtkDataSetAttributes::PointGhostTypes
PointGhostTypes
Definition: vtkDataSetAttributes.h:250
ArrayList
Definition: vtkArrayListTemplate.h:253
vtkDataSetAttributes::CopyData
void CopyData(vtkDataSetAttributes *fromPd, vtkIdList *fromIds, vtkIdList *toIds)
Copy the attribute data from one id to another.
vtkDataSetAttributes::AttributeTypes
AttributeTypes
Definition: vtkDataSetAttributes.h:212
vtkDataSetAttributes::CopyData
void CopyData(vtkDataSetAttributes::FieldList &list, vtkDataSetAttributes *dsa, int idx, vtkIdType dstStart, vtkIdType n, vtkIdType srcStart)
vtkDataSetAttributes::GetGlobalIds
vtkDataArray * GetGlobalIds()
Set/Get the global id data.
vtkDataSetAttributes::GetCopyHigherOrderDegrees
vtkTypeBool GetCopyHigherOrderDegrees(int ctype=ALLCOPY)
vtkDataSetAttributes::CellGhostTypes
CellGhostTypes
Definition: vtkDataSetAttributes.h:239
vtkDataSetAttributes::SetActiveTCoords
int SetActiveTCoords(const char *name)
Set/Get the texture coordinate data.
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:164
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:763
vtkDataSetAttributes::Update
virtual void Update()
Attributes have a chance to bring themselves up to date; right now this is ignored.
Definition: vtkDataSetAttributes.h:191
vtkDataSetAttributes::SetScalars
int SetScalars(vtkDataArray *da)
Set/Get the scalar data.
vtkDataSetAttributes::SetActiveScalars
int SetActiveScalars(const char *name)
Set/Get the scalar data.
vtkDataSetAttributes::RequiredArrays
vtkFieldData::BasicIterator RequiredArrays
Definition: vtkDataSetAttributes.h:762
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)
This will first look for an array with the correct name.
vtkDataSetAttributes::SetActivePedigreeIds
int SetActivePedigreeIds(const char *name)
Set/Get the pedigree id data.
vtkDataSetAttributes::GetRationalWeights
vtkDataArray * GetRationalWeights(const char *name)
This will first look for an array with the correct 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)
Set/Get the tensor data.
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:70
vtkDataSetAttributes::GetTangents
vtkDataArray * GetTangents()
Set/get the tangent data.
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:113
vtkDataSetAttributes::GetCopyGlobalIds
vtkTypeBool GetCopyGlobalIds(int ctype=ALLCOPY)
vtkDataSetAttributes::GetHigherOrderDegrees
vtkDataArray * GetHigherOrderDegrees(const char *name)
This will first look for an array with the correct name.
vtkDataSetAttributes::SetActiveGlobalIds
int SetActiveGlobalIds(const char *name)
Set/Get the global id data.
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:140
vtkDataSetAttributes::InterpolateAllocate
void InterpolateAllocate(vtkDataSetAttributes *pd, vtkIdType sze, vtkIdType ext, int shallowCopyArrays)
Initialize point interpolation method.
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()
Set/get the normal data.
vtkDataSetAttributes::GetCopyVectors
vtkTypeBool GetCopyVectors(int ctype=ALLCOPY)
vtkDataSetAttributes::SetCopyRationalWeights
void SetCopyRationalWeights(vtkTypeBool i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
vtkDataSetAttributes::GetScalars
vtkDataArray * GetScalars()
Set/Get the scalar data.
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::GetTangents
vtkDataArray * GetTangents(const char *name)
This will first look for an array with the correct name.
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:225
vtkDataSetAttributes::GetPedigreeIds
vtkAbstractArray * GetPedigreeIds()
Set/Get the pedigree id data.
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
Remove an array (with the given name) from the list of arrays.
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:76
vtkLookupTable
map scalar values into colors via a lookup table
Definition: vtkLookupTable.h:178
vtkDataSetAttributes::SetCopyHigherOrderDegrees
void SetCopyHigherOrderDegrees(vtkTypeBool i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
vtkDataSetAttributesFieldList.h
vtkDataSetAttributes::SetActiveAttribute
int SetActiveAttribute(int index, int attributeType)
Make the array with the given index the active attribute.
vtkDataSetAttributes::SetHigherOrderDegrees
int SetHigherOrderDegrees(vtkDataArray *da)
Set/Get the rational degrees data.
vtkDataSetAttributes::InterpolateAllocate
void InterpolateAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
Initialize point interpolation method.
Definition: vtkDataSetAttributes.h:662
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:587
vtkDataSetAttributes::New
static vtkDataSetAttributes * New()
Construct object with copying turned on for all data.
vtkDataSetAttributes::AttributeCopyOperations
AttributeCopyOperations
Definition: vtkDataSetAttributes.h:468
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)
Given an integer attribute type, this static method returns a string type for the attribute (i....
vtkDataSetAttributes::ShallowCopy
void ShallowCopy(vtkFieldData *pd) override
Shallow copy of data (i.e., use reference counting).
vtkDataSetAttributes::GetVectors
vtkDataArray * GetVectors(const char *name)
This will first look for an array with the correct name.
vtkDataSetAttributes::CopyTuples
void CopyTuples(vtkAbstractArray *fromData, vtkAbstractArray *toData, vtkIdList *fromIds, vtkIdList *toIds)
Copy a tuple (or set of tuples) of data from one data array to another.
vtkDataSetAttributes::GetHigherOrderDegrees
vtkDataArray * GetHigherOrderDegrees()
Set/Get the rational degrees data.
vtkX3D::index
@ index
Definition: vtkX3D.h:252
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:230
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)
Allocates point data for point-by-point (or cell-by-cell) copy operation.
vtkDataSetAttributes::CopyTuples
void CopyTuples(vtkAbstractArray *fromData, vtkAbstractArray *toData, vtkIdType dstStart, vtkIdType n, vtkIdType srcStart)
Copy a tuple (or set of tuples) of data from one data array to another.
vtkDataSetAttributes::GetAttributeIndices
void GetAttributeIndices(int *indexArray)
Get the field data array indices corresponding to scalars, vectors, tensors, etc.
vtkDataSetAttributes::SetRationalWeights
int SetRationalWeights(vtkDataArray *da)
Set/Get the rational weights data.
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)
vtkDataSetAttributes::GetCopyRationalWeights
vtkTypeBool GetCopyRationalWeights(int ctype=ALLCOPY)