|
dune-vtk 2.12
|
Loading...
Searching...
No Matches
vtkwriterbase.impl.hh
Go to the documentation of this file.
89 << " NumberOfComponents=\"" << fct.numComponents() << "\" format=\"" << (format_ == Vtk::FormatTypes::ASCII ? "ascii\"" : "appended\"");
106}
115 << " NumberOfComponents=\"3\" format=\"" << (format_ == Vtk::FormatTypes::ASCII ? "ascii\"" : "appended\"");
141 blocks.push_back(this->template writeValuesAppended<H>(out, dataCollector_->template pointData<F>(v)));
196 assert(is_a(format_, Vtk::FormatTypes::ASCII) && "Function should by called only in ascii mode!\n");
256}
258inline std::uint64_t compressBuffer_lz4 (unsigned char const* /* buffer */, unsigned char* /* buffer_out */,
272inline std::uint64_t compressBuffer_lzma (unsigned char const* /* buffer */, unsigned char* /* buffer_out */,
293 assert(is_a(format_, Vtk::FormatTypes::APPENDED) && "Function should by called only in appended mode!\n");
324 HeaderType bs = Impl::writeValuesToBuffer<FloatType>(num_values, buffer.data(), values, i*num_values);
331 cbs[i] = Impl::compressBuffer_zlib(buffer.data(), buffer_out.data(), bs, compressed_block_size, compression_level);
335 cbs[i] = Impl::compressBuffer_zlib(buffer.data(), buffer_out.data(), bs, compressed_block_size, compression_level);
339 cbs[i] = Impl::compressBuffer_zlib(buffer.data(), buffer_out.data(), bs, compressed_block_size, compression_level);
360 auto scalar = std::find_if(data.begin(), data.end(), [](auto const& v) { return v.rangeType() == Vtk::RangeTypes::SCALAR; });
361 auto vector = std::find_if(data.begin(), data.end(), [](auto const& v) { return v.rangeType() == Vtk::RangeTypes::VECTOR; });
362 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 datacollector.hh:19
Path relative(Path const &a, Path const &b)
Find the path of a relative to directory of b
Definition filesystem.cc:174
@ APPENDED
@ FLOAT32
const char * name()
int size() const
Implementation of DataCollector for cells, with continuous data.
Definition celltypedatacollector.hh:20
A Vtk::GridFunction is a function-like object that can be bound to a grid element an that provides an...
Definition gridfunction.hh:89
Definition filesystem.hh:15
Base class for file writers for the Vtk XML file formats.
Definition vtkwriterbase.hh:28
typename std::ostream::pos_type pos_type
Definition vtkwriterbase.hh:41
T abort(T... args)
T classic(T... args)
T endl(T... args)
T find_if(T... args)
T memcpy(T... args)
T min(T... args)
T push_back(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