Loading...
Searching...
No Matches
Public Member Functions | List of all members
bitpit::VTKBaseStreamer Interface Reference

The base class to be used to derive VTK streamers form. More...

Inheritance diagram for bitpit::VTKBaseStreamer:
Inheritance graph
[legend]

Public Member Functions

virtual void absorbData (std::fstream &, const std::string &, VTKFormat, uint64_t, uint8_t, VTKDataType)
 
virtual void flushData (std::fstream &, const std::string &, VTKFormat)
 
template<typename T >
void flushValue (std::fstream &, VTKFormat, const T &value) const
 
template<typename T >
void flushValue (std::fstream &, VTKFormat, const T *values, int nValues) const
 

Detailed Description

The base class to be used to derive VTK streamers form.

Examples
voloctree_adaptation_example_00001.cpp.

Definition at line 209 of file VTK.hpp.

Member Function Documentation

◆ absorbData()

void bitpit::VTKBaseStreamer::absorbData ( std::fstream & str,
const std::string & name,
VTKFormat format,
uint64_t entries,
uint8_t components,
VTKDataType datatype )
virtual

Reads data from stream

Parameters
[in]strfile stream for writing
[in]namename of field
[in]formatASCII or BINARY format
[in]entriestotal number of entries to be read
[in]componentssize of grouping (e.g. =3 for vectors)
[in]datatypetype of data of your current field

Implemented in bitpit::VTKNativeStreamer.

Definition at line 71 of file VTKStreamer.cpp.

◆ flushData()

void bitpit::VTKBaseStreamer::flushData ( std::fstream & str,
const std::string & name,
VTKFormat format )
virtual

Reads data from stream

Parameters
[in]strfile stream for writing
[in]namename of field
[in]formatASCII or BINARY format

Implemented in bitpit::VTKNativeStreamer, bitpit::LevelSetObject, FieldStreamer, and bitpit::PatchKernel.

Definition at line 54 of file VTKStreamer.cpp.

◆ flushValue() [1/2]

template<class T >
void bitpit::VTKBaseStreamer::flushValue ( std::fstream & str,
VTKFormat format,
const T & value ) const

Writes value to file stream

Template Parameters
Ttype of std::vector<>
Parameters
[in]strfile stream
[in]formatVTKFormat::ASCII or VTKFormat::APPENDED
[in]valueis the value that will be written
Examples
voloctree_adaptation_example_00001.cpp.

Definition at line 60 of file VTKStreamer.tpp.

◆ flushValue() [2/2]

template<class T >
void bitpit::VTKBaseStreamer::flushValue ( std::fstream & str,
VTKFormat format,
const T * values,
int nValues ) const

Writes value to file stream

Template Parameters
Ttype of std::vector<>
Parameters
[in]strfile stream
[in]formatVTKFormat::ASCII or VTKFormat::APPENDED
[in]valuesis a pointer to the values that will be written
[in]sizeis the number of values that will be writtend

Definition at line 81 of file VTKStreamer.tpp.


The documentation for this interface was generated from the following files:
--- layout: doxygen_footer ---