VTK  9.4.20241108
vtkDGArraysInputAccessor.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
10#ifndef vtkDGArraysInputAccessor_h
11#define vtkDGArraysInputAccessor_h
12
13#include "vtkFiltersCellGridModule.h" // For export macro.
14#include "vtkVector.h" // For API.
15
16VTK_ABI_NAMESPACE_BEGIN
17
18class vtkDataArray;
19
20class VTKFILTERSCELLGRID_EXPORT vtkDGArraysInputAccessor
21{
22public:
26
28
29 vtkIdType GetCellId(vtkTypeUInt64 iteration);
30 vtkVector3d GetParameter(vtkTypeUInt64 iteration);
31 vtkTypeUInt64 GetKey() const { return this->Key; }
32 void Restart();
33 bool IsAtEnd() const;
34
35 std::size_t size() const;
36
37 vtkTypeUInt64 operator++();
38 vtkTypeUInt64 operator++(int);
39
40 vtkDGArraysInputAccessor& operator+=(vtkTypeUInt64 count);
41
42protected:
43 vtkTypeUInt64 Key{ 0 };
44 vtkDataArray* CellIds{ nullptr };
45 vtkDataArray* RST{ nullptr };
46};
47
48VTK_ABI_NAMESPACE_END
49
50#endif // vtkDGArraysInputAccessor_h
RealT rst
Definition TetF2Basis.h:17
Evaluate DG cells whose indices and parameters are provided by vtkDataArray instances.
vtkTypeUInt64 operator++()
vtkDGArraysInputAccessor & operator=(const vtkDGArraysInputAccessor &other)
std::size_t size() const
vtkDGArraysInputAccessor(vtkDataArray *cellIds, vtkDataArray *rst)
vtkTypeUInt64 operator++(int)
vtkDGArraysInputAccessor & operator+=(vtkTypeUInt64 count)
vtkVector3d GetParameter(vtkTypeUInt64 iteration)
vtkIdType GetCellId(vtkTypeUInt64 iteration)
vtkDGArraysInputAccessor(const vtkDGArraysInputAccessor &other)
abstract superclass for arrays of numeric data
int vtkIdType
Definition vtkType.h:315