functionObjectLine.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::functionObjectLine
26 
27 Description
28 
29 SourceFiles
30  functionObjectLine.C
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef functionObjectLine_H
35 #define functionObjectLine_H
36 
37 #include "pathline.H"
38 #include "fieldVisualisationBase.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class functionObjectLine Declaration
47 \*---------------------------------------------------------------------------*/
48 
50 :
51  public pathline,
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 functionObjectLine&);
63 
64 
65 protected:
66 
67  // Protected data
68 
69  //- Name of function object result to render
71 
72  //- Actor
73  vtkSmartPointer<vtkActor> actor_;
74 
75 
76 public:
77 
78  //- Run-time type information
79  TypeName("line");
80 
81 
82  // Constructors
83 
84  //- Construct from dictionary
86  (
88  const dictionary& dict,
90  );
91 
92 
93  //- Destructor
94  virtual ~functionObjectLine();
95 
96 
97  // Member Functions
98 
99  //- Add tube(s) to scene
100  virtual void addGeometryToScene
101  (
102  const scalar position,
103  vtkRenderer* renderer
104  );
105 
106  //- Update actors
107  virtual void updateActors(const scalar position);
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #endif
118 
119 // ************************************************************************* //
Foam::functionObjectLine::functionObjectLine
functionObjectLine(const functionObjectLine &)
Disallow default bitwise copy construct.
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
pathline.H
Foam::functionObjectLine::functionObject_
word functionObject_
Name of function object result to render.
Definition: functionObjectLine.H:69
Foam::runTimePostProcessing
Function object to generate images during run-time.
Definition: runTimePostProcessing.H:83
Foam::pathline
Definition: pathline.H:53
Foam::fieldVisualisationBase::colours
const HashPtrTable< DataEntry< vector >, word > & colours() const
Return the colours.
Definition: fieldVisualisationBase.C:493
Foam::functionObjectLine::updateActors
virtual void updateActors(const scalar position)
Update actors.
Definition: functionObjectLine.C:124
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::functionObjectLine::operator=
void operator=(const functionObjectLine &)
Disallow default bitwise assignment.
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::geometryBase::parent
const runTimePostProcessing & parent() const
Return the reference to the parent function object.
Definition: geometryBase.C:118
fieldVisualisationBase.H
Foam::functionObjectLine
Definition: functionObjectLine.H:48
Foam::HashPtrTable
A HashTable specialization for hashing pointers.
Definition: HashPtrTable.H:50
Foam::functionObjectLine::actor_
vtkSmartPointer< vtkActor > actor_
Actor.
Definition: functionObjectLine.H:72
Foam::functionObjectLine::TypeName
TypeName("line")
Run-time type information.
Foam::functionObjectLine::~functionObjectLine
virtual ~functionObjectLine()
Destructor.
Definition: functionObjectLine.C:68
Foam::functionObjectLine::addGeometryToScene
virtual void addGeometryToScene(const scalar position, vtkRenderer *renderer)
Add tube(s) to scene.
Definition: functionObjectLine.C:75
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