|
dune-vtk 2.12
|
Loading...
Searching...
No Matches
vtkwriterbase.impl.hh
Go to the documentation of this file.
87 << " NumberOfComponents=\"" << fct.numComponents() << "\" format=\"" << (format_ == Vtk::FormatTypes::ASCII ? "ascii\"" : "appended\"");
104}
113 << " NumberOfComponents=\"3\" format=\"" << (format_ == Vtk::FormatTypes::ASCII ? "ascii\"" : "appended\"");
139 blocks.push_back(this->template writeValuesAppended<H>(out, dataCollector_->template pointData<F>(v)));
194 assert(is_a(format_, Vtk::FormatTypes::ASCII) && "Function should by called only in ascii mode!\n");
254}
256inline std::uint64_t compressBuffer_lz4 (unsigned char const* /* buffer */, unsigned char* /* buffer_out */,
270inline std::uint64_t compressBuffer_lzma (unsigned char const* /* buffer */, unsigned char* /* buffer_out */,
291 assert(is_a(format_, Vtk::FormatTypes::APPENDED) && "Function should by called only in appended mode!\n");
322 HeaderType bs = Impl::writeValuesToBuffer<FloatType>(num_values, buffer.data(), values, i*num_values);
329 cbs[i] = Impl::compressBuffer_zlib(buffer.data(), buffer_out.data(), bs, compressed_block_size, compression_level);
333 cbs[i] = Impl::compressBuffer_zlib(buffer.data(), buffer_out.data(), bs, compressed_block_size, compression_level);
337 cbs[i] = Impl::compressBuffer_zlib(buffer.data(), buffer_out.data(), bs, compressed_block_size, compression_level);
358 auto scalar = std::find_if(data.begin(), data.end(), [](auto const& v) { return v.rangeType() == Vtk::RangeTypes::SCALAR; });
359 auto vector = std::find_if(data.begin(), data.end(), [](auto const& v) { return v.rangeType() == Vtk::RangeTypes::VECTOR; });
360 auto tensor = std::find_if(data.begin(), data.end(), [](auto const& v) { return v.rangeType() == Vtk::RangeTypes::TENSOR; });
Macro for wrapping error checks and throwing exceptions.
Definition writer.hh:16
Path relative(Path const &a, Path const &b)
Find the path of a relative to directory of b
Definition filesystem.cc:172
@ APPENDED
@ FLOAT32
const char * name()
int size() const
A Vtk::GridFunction is a function-like object that can be bound to a grid element an that provides an...
Definition gridfunction.hh:85
int numComponents() const
Return the number of components of the Range as it is written to the file.
Definition gridfunction.hh:178
std::string const & name() const
Return a name associated with the function.
Definition gridfunction.hh:166
Vtk::DataTypes dataType() const
Return the VTK Datatype associated with the functions range type.
Definition gridfunction.hh:204
Definition filesystem.hh:13
std::string string() const
Return the path as string.
Definition filesystem.cc:26
Base class for file writers for the Vtk XML file formats.
Definition vtkwriterbase.hh:26
typename std::ostream::pos_type pos_type
Definition vtkwriterbase.hh:39
T abort(T... args)
T classic(T... args)
T data(T... args)
T endl(T... args)
T find_if(T... args)
T imbue(T... args)
T is_open(T... args)
T memcpy(T... args)
T min(T... args)
T push_back(T... args)
T resize(T... args)
T seekp(T... args)
T setprecision(T... args)
T size(T... args)
T tellp(T... args)
T to_string(T... args)
T write(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8