A surfaceWriter for VTK legacy format. More...
Public Member Functions | |
TypeName ("vtk") | |
Runtime type information. More... | |
vtkSurfaceWriter () | |
Construct null. More... | |
virtual | ~vtkSurfaceWriter () |
Destructor. More... | |
virtual void | write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const bool verbose=false) const |
Write single surface geometry to file. More... | |
virtual void | write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const word &fieldName, const Field< scalar > &values, const bool isNodeValues, const bool verbose=false) const |
Write scalarField for a single surface to file. More... | |
virtual void | write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const word &fieldName, const Field< vector > &values, const bool isNodeValues, const bool verbose=false) const |
Write vectorField for a single surface to file. More... | |
virtual void | write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const word &fieldName, const Field< sphericalTensor > &values, const bool isNodeValues, const bool verbose=false) const |
Write sphericalTensorField for a single surface to file. More... | |
virtual void | write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const word &fieldName, const Field< symmTensor > &values, const bool isNodeValues, const bool verbose=false) const |
Write symmTensorField for a single surface to file. More... | |
virtual void | write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const word &fieldName, const Field< tensor > &values, const bool isNodeValues, const bool verbose=false) const |
Write tensorField for a single surface to file. More... | |
template<> | |
void | writeData (Ostream &os, const Field< scalar > &values) |
template<> | |
void | writeData (Ostream &os, const Field< vector > &values) |
template<> | |
void | writeData (Ostream &os, const Field< sphericalTensor > &values) |
template<> | |
void | writeData (Ostream &os, const Field< symmTensor > &values) |
template<> | |
void | writeData (Ostream &os, const Field< tensor > &values) |
![]() | |
TypeName ("surfaceWriter") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, surfaceWriter, word,(),()) | |
declareRunTimeSelectionTable (autoPtr, surfaceWriter, wordDict,(const dictionary &optDict),(optDict)) | |
surfaceWriter () | |
Construct null. More... | |
virtual | ~surfaceWriter () |
Destructor. More... | |
virtual bool | separateGeometry () |
True if the surface format supports geometry in a separate file. More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< surfaceWriter > | New (const word &writeType) |
Return a reference to the selected surfaceWriter. More... | |
static autoPtr< surfaceWriter > | New (const word &writeType, const dictionary &writeOptions) |
Return a reference to the selected surfaceWriter. More... | |
A surfaceWriter for VTK legacy format.
Definition at line 48 of file vtkSurfaceWriter.H.
vtkSurfaceWriter | ( | ) |
Construct null.
Definition at line 268 of file vtkSurfaceWriter.C.
|
virtual |
Destructor.
Definition at line 276 of file vtkSurfaceWriter.C.
References vtkSurfaceWriter::write().
TypeName | ( | "vtk" | ) |
Runtime type information.
|
virtual |
Write single surface geometry to file.
Implements surfaceWriter.
Definition at line 283 of file vtkSurfaceWriter.C.
References Foam::defineSurfaceWriterWriteFields(), Foam::endl(), Foam::Info, Foam::isDir(), Foam::mkDir(), and OFstream::name().
Referenced by vtkSurfaceWriter::~vtkSurfaceWriter().
|
virtual |
Write scalarField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Implements surfaceWriter.
|
virtual |
Write vectorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Implements surfaceWriter.
|
virtual |
Write sphericalTensorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Implements surfaceWriter.
|
virtual |
Write symmTensorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Implements surfaceWriter.
|
virtual |
Write tensorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Implements surfaceWriter.
Definition at line 96 of file vtkSurfaceWriter.C.
References forAll, Foam::nl, and List< T >::size().
Definition at line 125 of file vtkSurfaceWriter.C.
References forAll, Foam::nl, and List< T >::size().
void writeData | ( | Ostream & | os, |
const Field< sphericalTensor > & | values | ||
) |
Definition at line 143 of file vtkSurfaceWriter.C.
References forAll, Foam::nl, and List< Type >::size().
void writeData | ( | Ostream & | os, |
const Field< symmTensor > & | values | ||
) |
Definition at line 160 of file vtkSurfaceWriter.C.
References forAll, Foam::nl, and List< T >::size().
Definition at line 181 of file vtkSurfaceWriter.C.
References Foam::endl(), forAll, Foam::Info, Foam::isDir(), Foam::mkDir(), OFstream::name(), Foam::nl, List< Type >::size(), List< T >::size(), and writeData().