VTK  9.4.20241117
Public Member Functions | Public Attributes | List of all members
vtx::types::DataArray Class Reference

#include <VTXDataArray.h>

Collaboration diagram for vtx::types::DataArray:
[legend]

Public Member Functions

 DataArray ()=default
 
 ~DataArray ()=default
 
bool IsScalar () const noexcept
 
void ConvertTo3DVTK (const std::vector< double > &fillValues=std::vector< double >())
 Convert internal vtkDataArray to a 3D VTK conforming array number of components = 3 filling the values of absent coordinates with the input fillValues (default = 0)
 

Public Attributes

std::vector< std::string > VectorVariables
 
vtkSmartPointer< vtkDataArrayData
 
adios2::Dims Shape
 
adios2::Dims Start
 
adios2::Dims Count
 
std::map< size_t, adios2::Dims > BlockCounts
 key: blockID, value: block count
 
bool IsIdType = false
 true : uses the special vtkIdType for indexing false : uses other VTK supported type
 
bool HasTuples = false
 true: tuples > 1, false: tuples = 1
 
bool IsUpdated = true
 true: new value is found and read, false: not updated
 
bool IsSOA = false
 true: is struct of arrays (*x, *y, *z) or (XXXX, YYYY, ZZZZ) false (default): is array of structs (xyz, xyz, xyz) common case
 

Detailed Description

Definition at line 28 of file VTXDataArray.h.

Constructor & Destructor Documentation

◆ DataArray()

vtx::types::DataArray::DataArray ( )
default

◆ ~DataArray()

vtx::types::DataArray::~DataArray ( )
default

Member Function Documentation

◆ IsScalar()

bool vtx::types::DataArray::IsScalar ( ) const
noexcept

◆ ConvertTo3DVTK()

void vtx::types::DataArray::ConvertTo3DVTK ( const std::vector< double > &  fillValues = std::vector< double >())

Convert internal vtkDataArray to a 3D VTK conforming array number of components = 3 filling the values of absent coordinates with the input fillValues (default = 0)

Parameters
fillValuesvalues to fill for missing coordinates

Member Data Documentation

◆ VectorVariables

std::vector<std::string> vtx::types::DataArray::VectorVariables

Definition at line 31 of file VTXDataArray.h.

◆ Data

vtkSmartPointer<vtkDataArray> vtx::types::DataArray::Data

Definition at line 32 of file VTXDataArray.h.

◆ Shape

adios2::Dims vtx::types::DataArray::Shape

Definition at line 35 of file VTXDataArray.h.

◆ Start

adios2::Dims vtx::types::DataArray::Start

Definition at line 36 of file VTXDataArray.h.

◆ Count

adios2::Dims vtx::types::DataArray::Count

Definition at line 37 of file VTXDataArray.h.

◆ BlockCounts

std::map<size_t, adios2::Dims> vtx::types::DataArray::BlockCounts

key: blockID, value: block count

Definition at line 41 of file VTXDataArray.h.

◆ IsIdType

bool vtx::types::DataArray::IsIdType = false

true : uses the special vtkIdType for indexing false : uses other VTK supported type

Definition at line 45 of file VTXDataArray.h.

◆ HasTuples

bool vtx::types::DataArray::HasTuples = false

true: tuples > 1, false: tuples = 1

Definition at line 48 of file VTXDataArray.h.

◆ IsUpdated

bool vtx::types::DataArray::IsUpdated = true

true: new value is found and read, false: not updated

Definition at line 51 of file VTXDataArray.h.

◆ IsSOA

bool vtx::types::DataArray::IsSOA = false

true: is struct of arrays (*x, *y, *z) or (XXXX, YYYY, ZZZZ) false (default): is array of structs (xyz, xyz, xyz) common case

Definition at line 57 of file VTXDataArray.h.


The documentation for this class was generated from the following file: