12 #ifndef vtkPVArrayInformation_h 13 #define vtkPVArrayInformation_h 25 class vtkCellAttribute;
46 vtkGetMacro(DataType,
int);
57 std::string GetRangesAsString(
int lowExponent = -6,
int highExponent = 20)
const;
62 const char*
GetName()
const {
return this->Name.empty() ? nullptr : this->Name.c_str(); }
67 int GetNumberOfComponents()
const;
73 const char* GetComponentName(
int component)
const;
78 vtkGetMacro(NumberOfTuples, vtkTypeInt64);
87 const double* GetComponentRange(
int comp)
const VTK_SIZEHINT(2);
88 void GetComponentRange(
int comp,
double range[2])
const;
99 const double* GetComponentFiniteRange(
int component)
const VTK_SIZEHINT(2);
100 void GetComponentFiniteRange(
int comp,
double range[2])
const;
109 void GetDataTypeRange(
double range[2])
const;
117 vtkGetMacro(IsPartial,
bool);
126 vtkGetMacro(IsGlobal,
bool);
133 vtkGetMacro(IsCellGrid,
bool);
138 vtkGetVector2Macro(PolynomialOrderRange,
int);
141 vtkGetMacro(DegreesOfFreedom, vtkTypeInt64);
147 int GetNumberOfInformationKeys()
const;
148 const char* GetInformationKeyLocation(
int)
const;
149 const char* GetInformationKeyName(
int)
const;
150 bool HasInformationKey(
const char*
location,
const char*
name)
const;
157 int GetNumberOfStringValues();
158 const char* GetStringValue(
int);
166 void CopyFromArray(
vtkFieldData* fieldData,
int fdArrayIdx);
169 void CopyFromCellAttribute(vtkCellGrid* grid, vtkCellAttribute* attribute);
187 vtkSetMacro(IsPartial,
bool);
188 vtkSetMacro(IsGlobal,
bool);
191 vtkSetMacro(Name, std::string);
196 vtkTypeInt64 NumberOfTuples = 0;
197 bool IsPartial =
false;
198 bool IsGlobal =
false;
199 bool IsCellGrid =
false;
201 vtkTypeInt64 DegreesOfFreedom = 0;
208 mutable std::string DefaultName;
211 std::vector<ComponentInfo> Components;
212 std::vector<std::string> StringValues;
215 std::set<std::pair<std::string, std::string>> InformationKeys;
217 struct GetRangeFunctor;
222 void CopyFromArrayInternal(
vtkAbstractArray* array, GetRangeFunctor& getRangeFn);
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Store messages for the interpreter.
#define VTKREMOTINGCORE_EXPORT