 |
VTK
9.0.1
|
Go to the documentation of this file.
23 #ifndef vtkGenericAttributeCollection_h
24 #define vtkGenericAttributeCollection_h
26 #include "vtkCommonDataModelModule.h"
29 class vtkGenericAttributeInternalVector;
30 class vtkIntInternalVector;
178 vtkGetMacro(ActiveAttribute,
int);
188 vtkGetMacro(ActiveComponent,
int);
208 vtkGetMacro(NumberOfAttributesToInterpolate,
int);
237 void SetAttributesToInterpolateToAll();
254 vtkGenericAttributeInternalVector* AttributeInternalVector;
258 vtkIntInternalVector* AttributeIndices;
262 int NumberOfAttributesToInterpolate;
263 int AttributesToInterpolate[10];
265 int NumberOfComponents;
266 int NumberOfPointCenteredComponents;
267 int MaxNumberOfComponents;
268 unsigned long ActualMemorySize;
275 void ComputeNumbers();
static vtkGenericAttributeCollection * New()
Create an empty collection.
int GetAttributeIndex(int i)
Return the index of the first component of attribute ‘i’ in an array of format attrib0comp0 attrib0co...
int GetNumberOfAttributes()
Return the number of attributes (e.g., instances of vtkGenericAttribute) in the collection.
void InsertAttribute(int i, vtkGenericAttribute *a)
Replace the attribute at index ‘i’ by ‘a’.
vtkMTimeType GetMTime() override
vtkAttributeCollection is a composite object and needs to check each member of its collection for mod...
int GetMaxNumberOfComponents()
Maximum number of components encountered among all attributes.
record modification and/or execution time
int FindAttribute(const char *name)
Return the index of the attribute named ‘name’.
abstract base class for most VTK objects
void DeepCopy(vtkGenericAttributeCollection *other)
Copy, without reference counting, the other attribute array.
void ShallowCopy(vtkGenericAttributeCollection *other)
Copy, via reference counting, the other attribute array.
#define VTK_SIZEHINT(...)
int GetNumberOfComponents()
Return the number of components.
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Reset()
Remove all attributes.
vtkGenericAttribute * GetAttribute(int i)
Return a pointer to the ith instance of vtkGenericAttribute.
int * GetAttributesToInterpolate())
Indices of attributes to interpolate.
void RemoveAttribute(int i)
Remove the attribute at ‘i’.
a collection of attributes
void SetActiveAttribute(int attribute, int component=0)
Set the scalar attribute to be processed.
abstract class defined API for attribute data
int GetNumberOfPointCenteredComponents()
Return the number of components.
unsigned long GetActualMemorySize()
Actual size of the data in kibibytes (1024 bytes); only valid after the pipeline has updated.
int IsEmpty()
Indicate whether the collection contains any attributes.
void InsertNextAttribute(vtkGenericAttribute *a)
Add the attribute ‘a’ to the end of the collection.
vtkTypeUInt32 vtkMTimeType