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"
88 template<
class DataType>
146 vtkgeom->PrintSelf(std::cout, vtkIndent(2));
157 dataset->PrintSelf(std::cout, vtkIndent(2));
177 vtkUnsignedCharArray* array,
184 vtkIdTypeArray* array,
235 template<
class PatchType>
239 template<
class PatchType>
243 template<
class PatchType>
247 template<
class PatchType>
251 template<
class PatchType>
310 vtkFloatArray* array,
351 void Foam::vtk::Tools::remapTuple<Foam::symmTensor>(
float data[])
353 std::swap(data[1], data[3]);
354 std::swap(data[2], data[5]);
360 void Foam::vtk::Tools::remapTuple<Foam::symmTensor>(
double data[])
362 std::swap(data[1], data[3]);
363 std::swap(data[2], data[5]);
uint64_t nPoints() const
Number of points associated with the geometry.
label ListType::const_reference val
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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.
label ListType::const_reference const label start
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.