14 #ifndef vtkPVDataInformation_h 15 #define vtkPVDataInformation_h 29 class vtkDataAssembly;
37 class vtkPVDataInformationHelper;
56 vtkSetMacro(PortNumber,
int);
57 vtkGetMacro(PortNumber,
int);
65 vtkSetClampMacro(Rank,
int, -1, VTK_INT_MAX);
66 vtkGetMacro(Rank,
int);
75 vtkGetStringMacro(SubsetSelector);
76 vtkSetStringMacro(SubsetSelector);
85 vtkSetStringMacro(SubsetAssemblyName);
86 vtkGetStringMacro(SubsetAssemblyName);
87 void SetSubsetAssemblyNameToHierarchy();
135 vtkGetMacro(DataSetType,
int);
141 vtkGetMacro(CompositeDataSetType,
int);
151 bool IsNull()
const {
return this->DataSetType == -1 && this->CompositeDataSetType == -1; }
164 return static_cast<unsigned int>(this->UniqueBlockTypes.size());
166 int GetUniqueBlockType(
unsigned int index)
const;
176 static const char* GetDataSetTypeAsString(
int type);
183 return this->DataSetType != -1 ? this->GetDataSetTypeAsString() :
nullptr;
187 return this->CompositeDataSetType != -1
197 const char* GetPrettyDataTypeString()
const;
198 static const char* GetPrettyDataTypeString(
int dtype);
213 bool DataSetTypeIsA(
const char* classname)
const;
214 bool DataSetTypeIsA(
int typeId)
const;
224 bool HasDataSetType(
const char* classname)
const;
225 bool HasDataSetType(
int typeId)
const;
235 vtkTypeInt64 GetNumberOfElements(
int elementType)
const;
256 vtkGetMacro(NumberOfTrees, vtkTypeInt64);
257 vtkGetMacro(NumberOfLeaves, vtkTypeInt64);
264 vtkGetMacro(NumberOfAMRLevels, vtkTypeInt64);
270 vtkTypeInt64 GetNumberOfAMRDataSets(vtkTypeInt64
level)
const;
284 vtkGetMacro(NumberOfDataSets, vtkTypeInt64);
292 vtkGetMacro(MemorySize, vtkTypeInt64);
299 vtkGetVector6Macro(Bounds,
double);
307 vtkGetVector6Macro(Extent,
int);
366 vtkGetMacro(HasTime,
bool);
367 vtkGetMacro(Time,
double);
376 vtkGetVector2Macro(TimeRange,
double);
377 vtkGetMacro(TimeLabel, std::string);
378 const std::set<double>&
GetTimeSteps()
const {
return this->TimeSteps; }
381 return static_cast<unsigned int>(this->TimeSteps.size());
389 bool IsDataStructured()
const;
395 bool HasStructuredData()
const;
401 bool HasUnstructuredData()
const;
408 bool IsAttributeValid(
int fieldAssociation)
const;
413 static int GetExtentType(
int dataType);
423 vtkDataAssembly* GetHierarchy()
const;
424 vtkDataAssembly* GetDataAssembly()
const;
425 vtkDataAssembly* GetDataAssembly(
const char* assemblyName)
const;
434 vtkGetMacro(FirstLeafCompositeIndex, vtkTypeUInt64);
449 std::string GetBlockName(vtkTypeUInt64 cid)
const;
454 std::vector<std::string> GetBlockNames(
455 const std::vector<std::string>& selectors,
const char* assemblyName)
const;
463 unsigned int ComputeCompositeIndexForAMR(
unsigned int level,
unsigned int index)
const;
475 friend class vtkPVDataInformationHelper;
494 char* SubsetSelector =
nullptr;
495 char* SubsetAssemblyName =
nullptr;
497 int DataSetType = -1;
498 int CompositeDataSetType = -1;
499 vtkTypeUInt64 FirstLeafCompositeIndex = 0;
500 vtkTypeInt64 NumberOfTrees = 0;
501 vtkTypeInt64 NumberOfLeaves = 0;
502 vtkTypeInt64 NumberOfAMRLevels = 0;
503 vtkTypeInt64 NumberOfDataSets = 0;
504 vtkTypeInt64 MemorySize = 0;
506 VTK_DOUBLE_MAX, -VTK_DOUBLE_MAX };
509 bool HasTime =
false;
511 double TimeRange[2] = { VTK_DOUBLE_MAX, -VTK_DOUBLE_MAX };
512 std::set<double> TimeSteps;
513 std::string TimeLabel;
514 std::vector<vtkTypeInt64> AMRNumberOfDataSets;
516 std::vector<int> UniqueBlockTypes;
525 friend class vtkPVDataInformationAccumulator;
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
NUMBER_OF_ATTRIBUTE_TYPES
Store messages for the interpreter.
#define VTKREMOTINGCORE_EXPORT