VTK  9.5.20251215
vtkCPExodusIINodalCoordinatesTemplate.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
3
14
15#ifndef vtkCPExodusIINodalCoordinatesTemplate_h
16#define vtkCPExodusIINodalCoordinatesTemplate_h
17
18#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_5_0
19#include "vtkIOExodusModule.h" // For export macro
20#include "vtkMappedDataArray.h"
21
22#include "vtkObjectFactory.h" // for vtkStandardNewMacro
23
24VTK_ABI_NAMESPACE_BEGIN
25template <class Scalar>
27 "Please use the SetArray functionality of `vtkSOADataArrayTemplate` instead.")
29{
30public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
37 typedef typename Superclass::ValueType ValueType;
38
43 void SetExodusScalarArrays(Scalar* x, Scalar* y, Scalar* z, vtkIdType numPoints);
44
45 // Reimplemented virtuals -- see superclasses for descriptions:
46 void Initialize() override;
47 void GetTuples(vtkIdList* ptIds, vtkAbstractArray* output) override;
48 void GetTuples(vtkIdType p1, vtkIdType p2, vtkAbstractArray* output) override;
49 void Squeeze() override;
52 void LookupValue(vtkVariant value, vtkIdList* ids) override;
54 void ClearLookup() override;
55 double* GetTuple(vtkIdType i) override;
56 void GetTuple(vtkIdType i, double* tuple) override;
57 vtkIdType LookupTypedValue(Scalar value) override;
58 void LookupTypedValue(Scalar value, vtkIdList* ids) override;
59 ValueType GetValue(vtkIdType idx) const override;
61 void GetTypedTuple(vtkIdType idx, Scalar* t) const override;
62
64
69 vtkTypeBool Resize(vtkIdType numTuples) override;
70 void SetNumberOfTuples(vtkIdType number) override;
72 void SetTuple(vtkIdType i, const float* source) override;
73 void SetTuple(vtkIdType i, const double* source) override;
75 void InsertTuple(vtkIdType i, const float* source) override;
76 void InsertTuple(vtkIdType i, const double* source) override;
77 void InsertTuples(vtkIdList* dstIds, vtkIdList* srcIds, vtkAbstractArray* source) override;
79 vtkIdType dstStart, vtkIdList* srcIds, vtkAbstractArray* source) override;
81 vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkAbstractArray* source) override;
83 vtkIdType InsertNextTuple(const float* source) override;
84 vtkIdType InsertNextTuple(const double* source) override;
85 void DeepCopy(vtkAbstractArray* aa) override;
86 void DeepCopy(vtkDataArray* da) override;
88 vtkIdType i, vtkIdList* ptIndices, vtkAbstractArray* source, double* weights) override;
90 vtkAbstractArray* source2, double t) override;
91 void SetVariantValue(vtkIdType idx, vtkVariant value) override;
92 void InsertVariantValue(vtkIdType idx, vtkVariant value) override;
93 void RemoveTuple(vtkIdType id) override;
94 void RemoveFirstTuple() override;
95 void RemoveLastTuple() override;
96 void SetTypedTuple(vtkIdType i, const Scalar* t) override;
97 void InsertTypedTuple(vtkIdType i, const Scalar* t) override;
98 vtkIdType InsertNextTypedTuple(const Scalar* t) override;
99 void SetValue(vtkIdType idx, Scalar value) override;
100 vtkIdType InsertNextValue(Scalar v) override;
101 void InsertValue(vtkIdType idx, Scalar v) override;
103
104protected:
107
108 Scalar* XArray;
109 Scalar* YArray;
110 Scalar* ZArray;
111
112private:
114 void operator=(const vtkCPExodusIINodalCoordinatesTemplate&) = delete;
115
116 vtkIdType Lookup(const Scalar& val, vtkIdType startIndex);
117 double* TempDoubleArray;
118};
119
120VTK_ABI_NAMESPACE_END
121#include "vtkCPExodusIINodalCoordinatesTemplate.txx"
122
123#endif // vtkCPExodusIINodalCoordinatesTemplate_h
124
125// VTK-HeaderTest-Exclude: vtkCPExodusIINodalCoordinatesTemplate.h
Abstract superclass for all arrays.
Abstract superclass to iterate over elements in an vtkAbstractArray.
void SetTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source) override
This container is read only – this method does nothing but print a warning.
vtkIdType InsertNextTypedTuple(const Scalar *t) override
This container is read only – this method does nothing but print a warning.
vtkArrayIterator * NewIterator() override
Subclasses must override this method and provide the right kind of templated vtkArrayIteratorTemplate...
void SetValue(vtkIdType idx, Scalar value) override
This container is read only – this method does nothing but print a warning.
vtkIdType InsertNextTuple(vtkIdType j, vtkAbstractArray *source) override
This container is read only – this method does nothing but print a warning.
void InsertTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source) override
This container is read only – this method does nothing but print a warning.
void DeepCopy(vtkAbstractArray *aa) override
This container is read only – this method does nothing but print a warning.
void RemoveTuple(vtkIdType id) override
This container is read only – this method does nothing but print a warning.
void InsertTuplesStartingAt(vtkIdType dstStart, vtkIdList *srcIds, vtkAbstractArray *source) override
This container is read only – this method does nothing but print a warning.
double * GetTuple(vtkIdType i) override
Get the data tuple at tupleIdx.
vtkTypeBool Resize(vtkIdType numTuples) override
This container is read only – this method does nothing but print a warning.
vtkAbstractTemplateTypeMacro(vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkMappedDataArray< Scalar >) vtkMappedDataArrayNewInstanceMacro(vtkCPExodusIINodalCoordinatesTemplate< Scalar >) static vtkCPExodusIINodalCoordinatesTemplate *New()
void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source) override
This container is read only – this method does nothing but print a warning.
ValueType GetValue(vtkIdType idx) const override
Get the data at a particular index.
void RemoveLastTuple() override
This container is read only – this method does nothing but print a warning.
void SetTypedTuple(vtkIdType i, const Scalar *t) override
This container is read only – this method does nothing but print a warning.
void InterpolateTuple(vtkIdType i, vtkIdList *ptIndices, vtkAbstractArray *source, double *weights) override
This container is read only – this method does nothing but print a warning.
vtkVariant GetVariantValue(vtkIdType idx) override
Retrieve value from the array as a variant.
void Squeeze() override
Free any unnecessary memory.
void SetExodusScalarArrays(Scalar *x, Scalar *y, Scalar *z, vtkIdType numPoints)
Set the raw scalar arrays for the coordinate set.
void RemoveFirstTuple() override
This container is read only – this method does nothing but print a warning.
ValueType & GetValueReference(vtkIdType idx) override
Get a reference to the scalar value at a particular index.
void InsertVariantValue(vtkIdType idx, vtkVariant value) override
This container is read only – this method does nothing but print a warning.
void ClearLookup() override
Delete the associated fast lookup data structure on this array, if it exists.
vtkIdType LookupTypedValue(Scalar value) override
void GetTypedTuple(vtkIdType idx, Scalar *t) const override
void InsertValue(vtkIdType idx, Scalar v) override
This container is read only – this method does nothing but print a warning.
void SetNumberOfTuples(vtkIdType number) override
This container is read only – this method does nothing but print a warning.
vtkIdType InsertNextValue(Scalar v) override
This container is read only – this method does nothing but print a warning.
void InsertTypedTuple(vtkIdType i, const Scalar *t) override
This container is read only – this method does nothing but print a warning.
vtkTypeBool Allocate(vtkIdType sz, vtkIdType ext) override
This container is read only – this method does nothing but print a warning.
void SetVariantValue(vtkIdType idx, vtkVariant value) override
This container is read only – this method does nothing but print a warning.
void GetTuples(vtkIdList *ptIds, vtkAbstractArray *output) override
Given a list of tuple ids, return an array of tuples.
void Initialize() override
Release storage and reset array to initial state.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType LookupValue(vtkVariant value) override
Return the value indices where a specific value appears.
vtkAbstractArray Superclass
list of point or cell ids
Definition vtkIdList.h:133
a simple class to control print indentation
Definition vtkIndent.h:108
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
A type representing the union of many types.
Definition vtkVariant.h:162
int vtkTypeBool
Definition vtkABI.h:64
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define vtkDataArray
#define VTK_DEPRECATED_IN_9_5_0(reason)
#define vtkMappedDataArrayNewInstanceMacro(thisClass)
int vtkIdType
Definition vtkType.h:368
#define VTK_NEWINSTANCE