functionObjectCloud.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::functionObjectCloud
26 
27 Description
28 
29 SourceFiles
30  functionObjectCloud.C
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef functionObjectCloud_H
35 #define functionObjectCloud_H
36 
37 #include "pointData.H"
38 #include "fieldVisualisationBase.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class functionObjectCloud Declaration
47 \*---------------------------------------------------------------------------*/
48 
50 :
51  public pointData,
53 {
54 private:
55 
56  // Private Member Functions
57 
58  //- Disallow default bitwise copy construct
60 
61  //- Disallow default bitwise assignment
62  void operator=(const functionObjectCloud&);
63 
64 
65 protected:
66 
67  // Protected data
68 
69  //- Name of cloud
71 
72  //- Name of cloud function object result to render
74 
75  //- Name of field to colour by
77 
78  //- Actor
79  vtkSmartPointer<vtkActor> actor_;
80 
81 
82 public:
83 
84  //- Run-time type information
85  TypeName("functionObjectCloud");
86 
87 
88  // Constructors
89 
90  //- Construct from dictionary
92  (
93  const runTimePostProcessing& parent,
94  const dictionary& dict,
96  );
97 
98 
99  //- Destructor
100  virtual ~functionObjectCloud();
101 
102 
103  // Member Functions
104 
105  //- Add tube(s) to scene
106  virtual void addGeometryToScene
107  (
108  const scalar position,
109  vtkRenderer* renderer
110  );
111 
112  //- Update actors
113  virtual void updateActors(const scalar position);
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace Foam
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 #endif
124 
125 // ************************************************************************* //
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::functionObjectCloud::functionObject_
word functionObject_
Name of cloud function object result to render.
Definition: functionObjectCloud.H:72
Foam::pointData
Variant of pointEdgePoint with some transported additional data. WIP - should be templated on data li...
Definition: pointData.H:53
pointData.H
Foam::functionObjectCloud
Definition: functionObjectCloud.H:48
Foam::functionObjectCloud::~functionObjectCloud
virtual ~functionObjectCloud()
Destructor.
Definition: functionObjectCloud.C:70
Foam::runTimePostProcessing
Function object to generate images during run-time.
Definition: runTimePostProcessing.H:83
Foam::functionObjectCloud::colourFieldName_
word colourFieldName_
Name of field to colour by.
Definition: functionObjectCloud.H:75
Foam::fieldVisualisationBase::colours
const HashPtrTable< DataEntry< vector >, word > & colours() const
Return the colours.
Definition: fieldVisualisationBase.C:493
Foam::functionObjectCloud::cloudName_
word cloudName_
Name of cloud.
Definition: functionObjectCloud.H:69
Foam::functionObjectCloud::functionObjectCloud
functionObjectCloud(const functionObjectCloud &)
Disallow default bitwise copy construct.
Foam::functionObjectCloud::actor_
vtkSmartPointer< vtkActor > actor_
Actor.
Definition: functionObjectCloud.H:78
Foam::functionObjectCloud::updateActors
virtual void updateActors(const scalar position)
Update actors.
Definition: functionObjectCloud.C:141
Foam::fieldVisualisationBase
Definition: fieldVisualisationBase.H:65
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::functionObjectCloud::TypeName
TypeName("functionObjectCloud")
Run-time type information.
Foam::functionObjectCloud::addGeometryToScene
virtual void addGeometryToScene(const scalar position, vtkRenderer *renderer)
Add tube(s) to scene.
Definition: functionObjectCloud.C:77
fieldVisualisationBase.H
Foam::HashPtrTable
A HashTable specialization for hashing pointers.
Definition: HashPtrTable.H:50
Foam::functionObjectCloud::operator=
void operator=(const functionObjectCloud &)
Disallow default bitwise assignment.
Foam::DataEntry
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
Definition: DataEntry.H:52