9 template <
typename TDataType>
17 DataArray(std::string name,
int numComponents, std::vector<TDataType>&& data);
48 std::vector<TDataType> mData;
void WriteCommonHeader(std::ostream &file) const
writes the header for both ascii and binary format including "name", "NumberOfComponents" and "type" ...
Definition: DataArray.cpp:58
int Offset() const
Definition: DataArray.cpp:52
void WriteBinaryData(std::ofstream &file) const
writes the data in uncompressed raw binary
Definition: DataArray.cpp:99
std::string VtkTypeString() const
DataArray(std::string name, int numComponents, std::vector< TDataType > &&data)
Definition: DataArray.cpp:9
void WriteAscii(std::ostream &file) const
writes to ascii including the common header, "type" and the actual data
Definition: DataArray.cpp:68
collects data for a vtk <DataArray> and writes it in ascii or raw binary appended format ...
Definition: DataArray.h:11
Definition: Exception.h:6
void WriteBinaryHeader(std::ostream &file, int *offset) const
writes the binary header including the common header, "type", "offset" and calculates the new offset ...
Definition: DataArray.cpp:87
def Visualize(structure, file)
Definition: Truss1D2N.py:63