Go to the documentation of this file.
33 #include "vtkRenderer.h"
34 #include "vtkSmartPointer.h"
35 #include "vtkPolyDataMapper.h"
36 #include "vtkPolyDataReader.h"
37 #include "vtkProperty.h"
59 cloudName_(
dict.lookup(
"cloudName")),
60 functionObject_(
dict.lookup(
"functionObject")),
61 colourFieldName_(
dict.lookup(
"colourFieldName")),
78 const scalar position,
90 cloudName_ +
"OutputProperties"
94 if (cloudDict.
found(
"cloudFunctionObject"))
97 if (foDict.
found(functionObject_))
106 <<
"Unable to find function object " << functionObject_
107 <<
" output for field " << fieldName_
108 <<
". Line will not be processed"
113 if (fName.ext() ==
"vtk")
115 vtkSmartPointer<vtkPolyDataReader>
points =
117 points->SetFileName(fName.c_str());
120 vtkSmartPointer<vtkPolyDataMapper> mapper =
123 actor_->SetMapper(mapper);
136 renderer->AddActor(actor_);
143 actor_->GetProperty()->SetOpacity(opacity(position));
145 vector pc = pointColour_->value(position);
146 actor_->GetProperty()->SetColor(pc[0], pc[1], pc[2]);
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
const runTimePostProcessing & parent_
Reference to the parent function object.
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)
A class for handling file names.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
Variant of pointEdgePoint with some transported additional data. WIP - should be templated on data li...
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~functionObjectCloud()
Destructor.
Function object to generate images during run-time.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
functionObjectCloud(const functionObjectCloud &)
Disallow default bitwise copy construct.
virtual void updateActors(const scalar position)
Update actors.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
virtual const objectRegistry & obr() const
virtual void addGeometryToScene(const scalar position, vtkRenderer *renderer)
Add tube(s) to scene.
A HashTable specialization for hashing pointers.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.