 |
VTK
9.0.20210121
|
Go to the documentation of this file.
26 #ifndef vtkArrayIteratorTemplate_h
27 #define vtkArrayIteratorTemplate_h
30 #include "vtkCommonCoreModule.h"
89 int GetNumberOfComponents();
99 int GetDataTypeSize()
const;
120 #ifdef VTK_USE_EXTERN_TEMPLATE
121 #ifndef vtkArrayIteratorTemplateInstantiate_cxx
123 #pragma warning(push)
126 #pragma warning(disable : 4910) // extern and dllexport incompatible
136 #endif // VTK_USE_EXTERN_TEMPLATE
virtual void Initialize(vtkAbstractArray *array)=0
Set the array this iterator will iterate over.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Implementation template for a array iterator.
virtual int GetDataType() const =0
Get the data type from the underlying array.
vtkAbstractArray * GetArray()
Get the array.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
void SetValue(vtkIdType id, T value)
Sets the value at the index.
T ValueType
This is the data type for the value.
Abstract superclass for all arrays.
T & GetValue(vtkIdType id)
Must be called only after Initialize.
vtkInstantiateTemplateMacro(extern template class VTKCOMMONCORE_EXPORT vtkArrayIteratorTemplate)
Abstract superclass to iterate over elements in an vtkAbstractArray.