14#ifndef vtkGenericAttributeCollection_h
15#define vtkGenericAttributeCollection_h
17#include "vtkCommonDataModelModule.h"
20VTK_ABI_NAMESPACE_BEGIN
21class vtkGenericAttributeInternalVector;
22class vtkIntInternalVector;
170 vtkGetMacro(ActiveAttribute,
int);
180 vtkGetMacro(ActiveComponent,
int);
200 vtkGetMacro(NumberOfAttributesToInterpolate,
int);
228 void SetAttributesToInterpolate(
int size,
int* attributes)
VTK_SIZEHINT(attributes, size);
229 void SetAttributesToInterpolateToAll();
246 vtkGenericAttributeInternalVector* AttributeInternalVector;
250 vtkIntInternalVector* AttributeIndices;
254 int NumberOfAttributesToInterpolate;
255 int AttributesToInterpolate[10];
257 int NumberOfComponents;
258 int NumberOfPointCenteredComponents;
259 int MaxNumberOfComponents;
260 unsigned long ActualMemorySize;
267 void ComputeNumbers();
a collection of attributes
void ShallowCopy(vtkGenericAttributeCollection *other)
Copy, via reference counting, the other attribute array.
void RemoveAttribute(int i)
Remove the attribute at ‘i’.
static vtkGenericAttributeCollection * New()
Create an empty collection.
int GetNumberOfPointCenteredComponents()
Return the number of components.
int GetNumberOfComponents()
Return the number of components.
void InsertNextAttribute(vtkGenericAttribute *a)
Add the attribute ‘a’ to the end of the collection.
int * GetAttributesToInterpolate()
Indices of attributes to interpolate.
int IsEmpty()
Indicate whether the collection contains any attributes.
void DeepCopy(vtkGenericAttributeCollection *other)
Copy, without reference counting, the other attribute array.
int FindAttribute(const char *name)
Return the index of the attribute named ‘name’.
vtkGenericAttribute * GetAttribute(int i)
Return a pointer to the ith instance of vtkGenericAttribute.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard type definition and print methods for a VTK class.
void SetActiveAttribute(int attribute, int component=0)
Set the scalar attribute to be processed.
vtkMTimeType GetMTime() override
vtkAttributeCollection is a composite object and needs to check each member of its collection for mod...
unsigned long GetActualMemorySize()
Actual size of the data in kibibytes (1024 bytes); only valid after the pipeline has updated.
int GetNumberOfAttributes()
Return the number of attributes (e.g., instances of vtkGenericAttribute) in the collection.
int GetAttributeIndex(int i)
Return the index of the first component of attribute ‘i’ in an array of format attrib0comp0 attrib0co...
void Reset()
Remove all attributes.
int GetMaxNumberOfComponents()
Maximum number of components encountered among all attributes.
void InsertAttribute(int i, vtkGenericAttribute *a)
Replace the attribute at index ‘i’ by ‘a’.
abstract class defined API for attribute data
a simple class to control print indentation
abstract base class for most VTK objects
record modification and/or execution time
vtkTypeUInt32 vtkMTimeType
#define VTK_SIZEHINT(...)