Go to the documentation of this file.
46 #ifndef foamVtkTools_H
47 #define foamVtkTools_H
55 #include "vtkCellArray.h"
56 #include "vtkFloatArray.h"
57 #include "vtkDoubleArray.h"
58 #include "vtkIdTypeArray.h"
59 #include "vtkSmartPointer.h"
60 #include "vtkUnsignedCharArray.h"
61 #include "vtkPoints.h"
62 #include "vtkPolyData.h"
86 template<
class DataType>
132 void set(vtkSmartPointer<dataType> geom)
144 vtkgeom->PrintSelf(std::cout, vtkIndent(2));
155 dataset->PrintSelf(std::cout, vtkIndent(2));
175 vtkUnsignedCharArray* array,
182 vtkIdTypeArray* array,
187 inline vtkSmartPointer<vtkPoints>
Points
193 inline vtkSmartPointer<vtkPoints>
Points
204 inline vtkSmartPointer<vtkPolyData>
Vertices
210 inline vtkSmartPointer<vtkPolyData>
Vertices
224 template<
class PatchType>
225 static vtkSmartPointer<vtkPoints>
points(
const PatchType&
p);
228 template<
class PatchType>
229 static vtkSmartPointer<vtkCellArray>
faces(
const PatchType&
p);
232 template<
class PatchType>
233 static vtkSmartPointer<vtkPolyData>
mesh(
const PatchType&
p);
236 template<
class PatchType>
237 static vtkSmartPointer<vtkFloatArray>
faceNormals(
const PatchType&
p);
240 template<
class PatchType>
241 static vtkSmartPointer<vtkPoints>
faceCentres(
const PatchType&
p);
245 static vtkSmartPointer<vtkPolyData>
mesh
299 vtkFloatArray* array,
340 void Foam::vtk::Tools::remapTuple<Foam::symmTensor>(
float data[])
342 std::swap(data[1], data[3]);
343 std::swap(data[2], data[5]);
349 void Foam::vtk::Tools::remapTuple<Foam::symmTensor>(
double data[])
351 std::swap(data[1], data[3]);
352 std::swap(data[2], data[5]);
uint64_t nPoints() const
Number of points associated with the geometry.
A class for handling words, derived from Foam::string.
void PrintSelf(std::ostream &os) const
Report basic information to output.
void clearGeom()
Clear geometry and dataset.
vtkSmartPointer< dataType > vtkgeom
The geometry, without any cell/point data.
word name(const complex &c)
Return string representation of complex.
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))
vtkSmartPointer< dataType > getCopy() const
Return a shallow copy of vtkgeom for manipulation.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void reuse()
Make a shallow copy of vtkgeom into dataset.
vtkSmartPointer< dataType > dataset
The shallow-copy of geometry, plus additional data.
void set(vtkSmartPointer< dataType > geom)
Set the geometry and make a shallow copy to dataset.
Database for solution data, solver performance and other reduced data.
Bookkeeping for internal caching.