VTKField handles geometry and data field information for the VTK format.
More...
VTKField handles geometry and data field information for the VTK format.
Definition at line 247 of file VTK.hpp.
◆ VTKField() [1/2]
bitpit::VTKField::VTKField |
( |
| ) |
|
◆ VTKField() [2/2]
bitpit::VTKField::VTKField |
( |
const std::string & | name | ) |
|
Constructor
- Parameters
-
[in] | name | name of data field |
Definition at line 81 of file VTKField.cpp.
◆ disable()
void bitpit::VTKField::disable |
( |
| ) |
|
Disables the field for writing/reading
Definition at line 159 of file VTKField.cpp.
◆ enable()
void bitpit::VTKField::enable |
( |
| ) |
|
Enables the field for writing/reading
Definition at line 152 of file VTKField.cpp.
◆ getCodification()
VTKFormat bitpit::VTKField::getCodification |
( |
| ) |
const |
get codification of data field
- Returns
- codification [VTKFormat::APPENDED/VTKFormatASCII]
Definition at line 208 of file VTKField.cpp.
◆ getComponentCount() [1/2]
unsigned bitpit::VTKField::getComponentCount |
( |
| ) |
const |
get the number of field components
- Returns
- number of field components
Definition at line 183 of file VTKField.cpp.
◆ getComponentCount() [2/2]
unsigned bitpit::VTKField::getComponentCount |
( |
VTKFieldType | fieldType | ) |
|
|
static |
get the number of field components
- Returns
- number of field components
Definition at line 40 of file VTKField.cpp.
◆ getDataType()
get type of data field
- Returns
- type of data field [ VTKDataType ]
Definition at line 192 of file VTKField.cpp.
◆ getFieldType()
get type of field
- Returns
- type of data field [ VTKFieldType ]
Definition at line 175 of file VTKField.cpp.
◆ getLocation()
get location of data field
- Returns
- location [VTKLocation::CELL/VTKLocationPOINT]
Definition at line 200 of file VTKField.cpp.
◆ getName()
const std::string & bitpit::VTKField::getName |
( |
| ) |
const |
get name of data field
- Returns
- name of data field
Definition at line 167 of file VTKField.cpp.
◆ getOffset()
uint64_t bitpit::VTKField::getOffset |
( |
| ) |
const |
get offset in appended section
- Returns
- offset from "_" character in appended section
Definition at line 216 of file VTKField.cpp.
◆ getPosition()
std::fstream::pos_type bitpit::VTKField::getPosition |
( |
| ) |
const |
get position of data field in VTK file. This information is available after VTK::ReadMetaData() has been called.
- Returns
- position in VTK file.
Definition at line 225 of file VTKField.cpp.
◆ getStreamer()
get streamer of data field
- Returns
- streamer of data field
Definition at line 233 of file VTKField.cpp.
◆ hasAllMetaData()
bool bitpit::VTKField::hasAllMetaData |
( |
| ) |
const |
Check if all information of field has been set
- Returns
- true if all information regarding field is available
Definition at line 249 of file VTKField.cpp.
◆ isEnabled()
bool bitpit::VTKField::isEnabled |
( |
| ) |
const |
Returns if field is enabled for readind/writing
- Returns
- true if enabled
Definition at line 241 of file VTKField.cpp.
◆ read()
void bitpit::VTKField::read |
( |
std::fstream & | str, |
|
|
uint64_t | entries, |
|
|
uint8_t | components ) const |
Reads the field through its streamer from file
- Parameters
-
[in] | str | file stream |
[in] | entries | total number of entries to be read |
[in] | components | size of subgroup |
Definition at line 280 of file VTKField.cpp.
◆ setCodification()
void bitpit::VTKField::setCodification |
( |
VTKFormat | cod | ) |
|
set codification of data field
- Parameters
-
[in] | cod | codification [VTKFormat::APPENDED/VTKFormatASCII] |
Definition at line 113 of file VTKField.cpp.
◆ setDataType()
set type of data field
- Parameters
-
[in] | type | type of data [ VTKDataType::[[U]Int[8/16/32/64] / Float[32/64] ] ] |
Definition at line 97 of file VTKField.cpp.
◆ setFieldType()
set type of data field
- Parameters
-
[in] | type | type of data field [ VTKFieldType::SCALAR/VECTOR/TENSOR ] |
Definition at line 121 of file VTKField.cpp.
◆ setLocation()
set location of data field
- Parameters
-
[in] | loc | location of data field [VTKLocation::CELL/VTKLocationPOINT] |
Definition at line 105 of file VTKField.cpp.
◆ setName()
void bitpit::VTKField::setName |
( |
const std::string & | name | ) |
|
set name of data field
- Parameters
-
[in] | name | name of data field |
Definition at line 89 of file VTKField.cpp.
◆ setOffset()
void bitpit::VTKField::setOffset |
( |
uint64_t | off | ) |
|
set offset of data field for appended output
- Parameters
-
[in] | off | offset from "_" character of appended section |
Definition at line 137 of file VTKField.cpp.
◆ setPosition()
void bitpit::VTKField::setPosition |
( |
std::fstream::pos_type | pos | ) |
|
set position of data field
- Parameters
-
[in] | pos | position of data field [VTKLocation::CELL/VTKLocationPOINT] |
Definition at line 129 of file VTKField.cpp.
◆ setStreamer()
set streamer for reading and writing
- Parameters
-
Definition at line 145 of file VTKField.cpp.
◆ write()
void bitpit::VTKField::write |
( |
std::fstream & | str | ) |
const |
Writes the field through its streamer to file
- Parameters
-
Definition at line 268 of file VTKField.cpp.
◆ m_codification
Type of codification [VTKFormat::ASCII, VTKFormat::APPENDED]
Definition at line 255 of file VTK.hpp.
◆ m_dataType
type of data [ VTKDataType::[[U]Int[8/16/32/64] / Float[32/64] ]]
Definition at line 253 of file VTK.hpp.
◆ m_enabled
bool bitpit::VTKField::m_enabled |
|
protected |
if field is enabled for read/write
Definition at line 259 of file VTK.hpp.
◆ m_fieldType
type of field [ VTKFieldType::SCALAR/VECTOR/TENSOR ]
Definition at line 252 of file VTK.hpp.
◆ m_location
cell or point data [ VTKLocation::CELL/VTKLocationPOINT]
Definition at line 254 of file VTK.hpp.
◆ m_name
std::string bitpit::VTKField::m_name |
|
protected |
name of the field
Definition at line 251 of file VTK.hpp.
◆ m_offset
uint64_t bitpit::VTKField::m_offset |
|
protected |
offset in the appended section
Definition at line 256 of file VTK.hpp.
◆ m_position
std::fstream::pos_type bitpit::VTKField::m_position |
|
protected |
position in file
Definition at line 257 of file VTK.hpp.
◆ m_streamer
pointer to streamer
Definition at line 258 of file VTK.hpp.
The documentation for this class was generated from the following files:
---
layout: doxygen_footer
---