Go to the documentation of this file.
32 #include "vtkPolyDataMapper.h"
33 #include "vtkProperty.h"
34 #include "vtkRenderer.h"
35 #include "vtkSmartPointer.h"
36 #include "vtkTubeFilter.h"
37 #include "vtkLookupTable.h"
69 geometryBase::initialiseActor(actor);
71 vector colour = lineColour_->value(frameI);
72 actor->GetProperty()->SetColor(colour[0], colour[1], colour[2]);
74 vtkPolyDataMapper* mapper =
75 vtkPolyDataMapper::SafeDownCast(actor->GetMapper());
77 switch (representation_)
81 actor->VisibilityOff();
86 mapper->SetInputData(
data);
93 vtkSmartPointer<vtkTubeFilter> tubes =
95 tubes->SetInputData(
data);
96 tubes->SetRadius(tubeRadius_);
97 tubes->SetNumberOfSides(20);
101 mapper->SetInputConnection(tubes->GetOutputPort());
127 representationTypeNames.read(
dict.lookup(
"representation"))
132 if (
dict.found(
"lineColour"))
138 lineColour_.reset(colours[
"line"]->clone().ptr());
141 switch (representation_)
153 dict.lookup(
"tubeRadius") >> tubeRadius_;
172 const word& pathlineType
177 Info<<
"Selecting pathline " << pathlineType <<
endl;
180 dictionaryConstructorTable::iterator cstrIter =
181 dictionaryConstructorTablePtr_->find(pathlineType);
183 if (cstrIter == dictionaryConstructorTablePtr_->end())
186 <<
"Unknown pathline type "
187 << pathlineType <<
nl <<
nl
188 <<
"Valid pathline types are:" <<
endl
189 << dictionaryConstructorTablePtr_->sortedToc()
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)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
void addLines(const label frameI, vtkActor *actor, vtkPolyData *data) const
Add the pathlines to the renderer.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< pathline > New(const runTimePostProcessing &parent, const dictionary &dict, const HashPtrTable< DataEntry< vector >, word > &colours, const word &pathlineName)
Return a reference to the selected RAS model.
static const NamedEnum< representationType, 4 > representationTypeNames
pathline(const pathline &)
Disallow default bitwise copy construct.
Function object to generate images during run-time.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual ~pathline()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e....
errorManipArg< error, int > exit(error &err, const int errNo=1)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A HashTable specialization for hashing pointers.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
defineTypeNameAndDebug(combustionModel, 0)
Database for solution data, solver performance and other reduced data.
Initialise the NamedEnum HashTable from the static list of names.