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 functionObject_(
dict.lookup(
"functionObject")),
76 const scalar position,
97 <<
"Unable to find function object " << functionObject_
98 <<
" output for field " << fieldName_
99 <<
". Line will not be processed"
104 if (fName.
ext() ==
"vtk")
106 vtkSmartPointer<vtkPolyDataReader> lines =
108 lines->SetFileName(fName.c_str());
111 vtkSmartPointer<vtkPolyDataMapper> mapper =
113 setField(position, fieldName_, mapper, renderer);
115 actor_->SetMapper(mapper);
117 addLines(position, actor_, lines->GetOutput());
119 renderer->AddActor(actor_);
126 actor_->GetProperty()->SetLineWidth(2);
127 actor_->GetProperty()->SetOpacity(opacity(position));
const runTimePostProcessing & parent_
Reference to the parent function object.
functionObjectLine(const functionObjectLine &)
Disallow default bitwise copy construct.
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)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Function object to generate images during run-time.
virtual void updateActors(const scalar position)
Update actors.
surfacesMesh setField(triSurfaceToAgglom)
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.
word ext() const
Return file name extension (part after last .)
A HashTable specialization for hashing pointers.
Type getObjectProperty(const word &objectName, const word &entryName, const Type &defaultValue=pTraits< Type >::zero) const
Retrieve generic property from named object.
virtual ~functionObjectLine()
Destructor.
virtual void addGeometryToScene(const scalar position, vtkRenderer *renderer)
Add tube(s) to scene.
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.
static const dictionary null
Null dictionary.