OpenLB 1.7
|
BlockGifWriter writes given functor data to image file of format .ppm. More...
#include <blockGifWriter.h>
Public Member Functions | |
BlockGifWriter (std::string const &map="leeloo") | |
void | write (BlockF2D< T > &f, T minValue, T maxValue, int iT=0, std::string const &name="emptyName") |
writes functor values normed to interval [0,1]. | |
void | write (BlockF2D< T > &f, int iT=0, std::string const &name="emptyName") |
writes functor data and determines its util::min-/maxValue | |
void | write (int iT=0) |
writes functors stored at pointerVec | |
void | addFunctor (BlockF2D< T > &f, std::string const &name="emptyName") |
put functor to _pointerVec, to simplify writing process of several functors | |
void | addFunctor (BlockF2D< T > &f, T minValue, T maxValue, std::string const &name="emptyName") |
BlockGifWriter writes given functor data to image file of format .ppm.
There are two different modes
map | determines the color of the graphics |
Definition at line 48 of file blockGifWriter.h.
olb::BlockGifWriter< T >::BlockGifWriter | ( | std::string const & | map = "leeloo" | ) |
Definition at line 41 of file blockGifWriter.hh.
void olb::BlockGifWriter< T >::addFunctor | ( | BlockF2D< T > & | f, |
std::string const & | name = "emptyName" ) |
put functor to _pointerVec, to simplify writing process of several functors
Definition at line 153 of file blockGifWriter.hh.
References olb::GenericF< T, S >::getName().
void olb::BlockGifWriter< T >::addFunctor | ( | BlockF2D< T > & | f, |
T | minValue, | ||
T | maxValue, | ||
std::string const & | name = "emptyName" ) |
Definition at line 168 of file blockGifWriter.hh.
References olb::GenericF< T, S >::getName().
void olb::BlockGifWriter< T >::write | ( | BlockF2D< T > & | f, |
int | iT = 0, | ||
std::string const & | name = "emptyName" ) |
writes functor data and determines its util::min-/maxValue
Definition at line 101 of file blockGifWriter.hh.
References olb::BlockF2D< T >::getBlockStructure().
void olb::BlockGifWriter< T >::write | ( | BlockF2D< T > & | f, |
T | minValue, | ||
T | maxValue, | ||
int | iT = 0, | ||
std::string const & | name = "emptyName" ) |
writes functor values normed to interval [0,1].
imageValue is computed according to : if functorValue >= maxValue then the imageValue is clipped to 1 else imageValue = (minValue - functorValue) / (minValue - maxValue)
Definition at line 48 of file blockGifWriter.hh.
References olb::graphics::rgb< T >::b, olb::createFileName(), olb::singleton::directories(), olb::graphics::rgb< T >::g, olb::BlockF2D< T >::getBlockStructure(), olb::GenericF< T, S >::getName(), olb::BlockStructureD< D >::getNx(), olb::BlockStructureD< D >::getNy(), olb::GenericF< T, S >::getTargetDim(), olb::singleton::mpi(), and olb::graphics::rgb< T >::r.
void olb::BlockGifWriter< T >::write | ( | int | iT = 0 | ) |
writes functors stored at pointerVec
Definition at line 133 of file blockGifWriter.hh.