Go to the documentation of this file.
37 #include "vtkPolyDataMapper.h"
38 #include "vtkRenderer.h"
39 #include "vtkRenderWindow.h"
40 #include "vtkSmartPointer.h"
59 const bool loadFromFiles
85 Info<<
type() <<
" " << name_ <<
": reading post-processing data" <<
endl;
91 outputDict.
lookup(
"width") >> output_.width_;
92 outputDict.
lookup(
"height") >> output_.height_;
103 if (!iter().isDict())
106 <<
"text must be specified in dictionary format"
110 text_.append(
new text(*
this, iter().
dict(), scene_.colours()));
140 Info<<
type() <<
" " << name_ <<
" output:" <<
nl
141 <<
" Constructing scene" <<
endl;
148 vtkSmartPointer<vtkRenderWindow> renderWindow =
150 renderWindow->OffScreenRenderingOn();
151 renderWindow->SetSize(output_.width_, output_.height_);
152 renderWindow->SetAAFrames(10);
153 renderWindow->SetAlphaBitPlanes(
true);
154 renderWindow->SetMultiSamples(0);
158 scene_.initialise(renderer, output_.name_);
160 renderWindow->AddRenderer(renderer);
165 points_[i].addGeometryToScene(0, renderer);
171 lines_[i].addGeometryToScene(0, renderer);
177 surfaces_[i].addGeometryToScene(0, renderer);
180 while (scene_.loop(renderer))
182 scalar position = scene_.position();
187 text_[i].addGeometryToScene(position, renderer);
193 points_[i].updateActors(position);
199 lines_[i].updateActors(position);
205 surfaces_[i].updateActors(position);
static void set(const bool verbose)
Activate SIGFPE signal handler when FOAM_SIGFPE is set.
A class for handling words, derived from string.
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
Base class for function objects, adding functionality to read/write state information (data required ...
#define forAll(list, i)
Loop across all elements in list.
bool read(const char *, int32_t &)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual ~runTimePostProcessing()
Desructor.
Ostream & endl(Ostream &os)
Add newline and flush stream.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Registry of regIOobjects.
virtual void execute()
Execute, currently does nothing.
virtual void write()
Write.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
virtual void end()
Execute at the final time-loop, currently does nothing.
errorManipArg< error, int > exit(error &err, const int errNo=1)
static bool master(const label communicator=0)
Am I the master process.
fileName name_
Name of ITstream.
runTimePostProcessing(const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false)
Construct from dictionary.
dictionary subOrEmptyDict(const word &, const bool mustRead=false) const
Find and return a sub-dictionary as a copy, or.
virtual void read(const dictionary &)
Read the field min/max data.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
static void unset(const bool verbose)
Deactivate SIGFPE signal handler and NaN memory initialisation.