Go to the documentation of this file.
52 #ifndef functionObjects_runTimePostPro_surface_H
53 #define functionObjects_runTimePostPro_surface_H
60 #include "vtkSmartPointer.h"
61 #include "vtkMultiPieceDataSet.h"
69 class vtkCompositeDataGeometryFilter;
70 class vtkFeatureEdges;
78 class polySurfaceGeoMesh;
79 class polySurfacePointGeoMesh;
103 vtkCellData*
operator()(vtkDataSet* dataset)
const
116 vtkPointData*
operator()(vtkDataSet* dataset)
const
132 namespace functionObjects
134 namespace runTimePostPro
203 vtkRenderer* renderer,
204 vtkFeatureEdges* featureEdges
210 vtkRenderer* renderer,
217 vtkRenderer* renderer,
218 vtkCompositeDataGeometryFilter* input
245 template<
class Type,
class GeoMeshType>
250 const word& fieldName
256 template<
class Type,
class GeoMeshType>
261 const word& fieldName
266 template<
class GeoMeshType>
271 const word& fieldName
279 template<
class Type,
class GeoMeshType>
282 vtkMultiPieceDataSet* multiPiece,
284 const word& fieldName
290 template<
class Type,
class GeoMeshType>
293 vtkMultiPieceDataSet* multiPiece,
295 const word& fieldName
300 template<
class GeoMeshType>
303 vtkMultiPieceDataSet* multiPiece,
305 const word& fieldName
309 template<
class GeoMeshType>
312 vtkMultiPieceDataSet* multiPiece,
314 const word& fieldName
366 const word& surfaceName
surface(const surface &)=delete
No copy construct.
A class for handling words, derived from Foam::string.
vtkSmartPointer< vtkMultiPieceDataSet > gatherFaceCentres(const polySurface *surf) const
bool addDimField(vtkDataSet *piece, const regIOobject *ioptr, const word &fieldName) const
autoPtr< Function1< vector > > edgeColour_
Edge colour.
void addFeatureEdges(vtkRenderer *renderer, vtkFeatureEdges *featureEdges) const
Add feature edges to scene.
bool featureEdges_
Activate feature edges.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
representationType
Surface representation types.
A surface mesh consisting of general polygon faces and capable of holding fields.
Generic templated field type.
Generate images during run-time.
scalar maxGlyphLength_
Max glyph length for representation type rtGlyph.
Visualisation of surface data with additional routines for handling parallel distributed data.
virtual void updateActors(const scalar position)
Update the actors.
const runTimePostProcessing & parent() const
Return the reference to the parent function object.
autoPtr< Function1< vector > > surfaceColour_
Surface colour.
static autoPtr< surface > New(const runTimePostProcessing &parent, const dictionary &dict, const HashPtrTable< Function1< vector >> &colours, const word &surfaceName)
Return selected surface.
bool backFaceCulling_
Back face culling option; default = off.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
vtkSmartPointer< vtkActor > surfaceActor_
Surface actor.
vtkSmartPointer< vtkMultiPieceDataSet > gatherSurfacePieces(const polySurface *surf) const
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
static const Enum< representationType > representationTypeNames
Names for surface representation types.
Base class for surface, text handling etc.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
TypeNameNoDebug("surface")
Run-time type information.
A HashTable of pointers to objects of type <T>.
Macros to ease declaration of run-time selection tables.
representationType representation_
Representation type.
bool addField(vtkDataSet *piece, const Field< Type > &fld, const word &fieldName) const
Add field of Type to piece as VTK field data in GeoMeshType slot.
virtual ~surface()
Destructor.
The polySurface GeoMesh (for holding point fields).
const HashPtrTable< Function1< vector > > & colours() const
Return reference to the colours.
bool frontFaceCulling_
Front face culling option; default = on.
void operator=(const surface &)=delete
No copy assignment.
declareRunTimeSelectionTable(autoPtr, surface, dictionary,(const runTimePostProcessing &parent, const dictionary &dict, const HashPtrTable< Function1< vector >> &colours),(parent, dict, colours))
void setRepresentation(vtkActor *actor) const
Set the representation.
Database for solution data, solver performance and other reduced data.
vtkSmartPointer< vtkActor > edgeActor_
Edge actor.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...