44 case VTKFieldType::SCALAR:
47 case VTKFieldType::VECTOR:
50 case VTKFieldType::TENSOR:
54 throw std::runtime_error(
"Unable to identify the number of components of field type " + std::to_string(
static_cast<int>(fieldType)));
253 allData &=
m_name !=
"undefined" ;
254 allData &=
m_dataType != VTKDataType::UNDEFINED ;
255 allData &=
m_location != VTKLocation::UNDEFINED ;
257 allData &=
m_fieldType != VTKFieldType::UNDEFINED ;
280void VTKField::read( std::fstream &str, uint64_t entries, uint8_t components )
const{
The base class to be used to derive VTK streamers form.
virtual void flushData(std::fstream &, const std::string &, VTKFormat)
virtual void absorbData(std::fstream &, const std::string &, VTKFormat, uint64_t, uint8_t, VTKDataType)
VTKField handles geometry and data field information for the VTK format.
const std::string & getName() const
VTKFormat getCodification() const
std::fstream::pos_type getPosition() const
const VTKBaseStreamer & getStreamer() const
uint64_t getOffset() const
void setDataType(VTKDataType)
VTKBaseStreamer * m_streamer
VTKFieldType getFieldType() const
VTKLocation getLocation() const
unsigned getComponentCount() const
void setStreamer(VTKBaseStreamer &)
void setCodification(VTKFormat)
void write(std::fstream &) const
void setFieldType(VTKFieldType)
bool hasAllMetaData() const
void read(std::fstream &, uint64_t, uint8_t) const
VTKDataType getDataType() const
std::fstream::pos_type m_position
void setName(const std::string &)
void setPosition(std::fstream::pos_type)
void setLocation(VTKLocation)