Public Member Functions | List of all members
vtkSetWriter< Type > Class Template Reference
Inheritance diagram for vtkSetWriter< Type >:
Inheritance graph
[legend]
Collaboration diagram for vtkSetWriter< Type >:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("vtk")
 Runtime type information. More...
 
 vtkSetWriter ()
 Construct null. More...
 
virtual ~vtkSetWriter ()
 Destructor. More...
 
virtual fileName getFileName (const coordSet &, const wordList &) const
 Generate file name with correct extension. More...
 
virtual void write (const coordSet &, const wordList &, const List< const Field< Type > *> &, Ostream &) const
 General entry point for writing. More...
 
virtual void write (const bool writeTracks, const PtrList< coordSet > &, const wordList &valueSetNames, const List< List< Field< Type >>> &, Ostream &) const
 General entry point for writing of multiple coordSets. More...
 
- Public Member Functions inherited from writer< Type >
 TypeName ("writer")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, writer, word,(),())
 
 writer ()
 Construct null. More...
 
virtual ~writer ()=0
 Destructor. More...
 
virtual void write (const coordSet &, const wordList &, const List< Field< Type >> &, Ostream &) const
 General entry point for writing. More...
 
virtual Ostreamwrite (const scalar, Ostream &) const
 Write scalar as ascii. More...
 
template<class VSType >
OstreamwriteVS (const VSType &, Ostream &) const
 
virtual Ostreamwrite (const vector &, Ostream &) const
 Write vector. Tab separated ascii. More...
 
virtual Ostreamwrite (const sphericalTensor &, Ostream &) const
 Write sphericalTensor. Tab separated ascii. More...
 
virtual Ostreamwrite (const symmTensor &, Ostream &) const
 Write symmTensor. Tab separated ascii. More...
 
virtual Ostreamwrite (const tensor &, Ostream &) const
 Write tensor. Tab separated ascii. More...
 
template<class VSType >
Foam::OstreamwriteVS (const VSType &value, Ostream &os) const
 

Additional Inherited Members

- Static Public Member Functions inherited from writer< Type >
static autoPtr< writerNew (const word &writeFormat)
 Return a reference to the selected writer. More...
 
- Protected Member Functions inherited from writer< Type >
fileName getBaseName (const coordSet &, const wordList &) const
 Generates filename from coordSet and sampled fields. More...
 
void writeCoord (const coordSet &, const label sampleI, Ostream &) const
 
void writeTable (const coordSet &, const List< Type > &, Ostream &) const
 Writes single-column ascii write. Column 1 is coordSet coordinate,. More...
 
void writeTable (const coordSet &, const List< const List< Type > *> &, Ostream &os) const
 Writes multi-column ascii write. Column 1 is coordSet coordinate,. More...
 
virtual void writeSeparator (Ostream &os) const
 Writes a separator. Used by write functions. More...
 

Detailed Description

template<class Type>
class Foam::vtkSetWriter< Type >

Source files

Definition at line 48 of file vtkSetWriter.H.

Constructor & Destructor Documentation

◆ vtkSetWriter()

Construct null.

Definition at line 36 of file vtkSetWriter.C.

◆ ~vtkSetWriter()

~vtkSetWriter ( )
virtual

Destructor.

Definition at line 44 of file vtkSetWriter.C.

References vtkSetWriter< Type >::getFileName().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "vtk"  )

Runtime type information.

◆ getFileName()

Foam::fileName getFileName ( const coordSet ,
const wordList  
) const
virtual

Generate file name with correct extension.

Implements writer< Type >.

Definition at line 52 of file vtkSetWriter.C.

References writer< Type >::getBaseName(), and vtkSetWriter< Type >::write().

Referenced by vtkSetWriter< Type >::~vtkSetWriter().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write() [1/2]

void write ( const coordSet ,
const wordList ,
const List< const Field< Type > *> &  ,
Ostream  
) const
virtual

General entry point for writing.

The data is organized in a set of point with one or more values per point

Implements writer< Type >.

Definition at line 63 of file vtkSetWriter.C.

References fld(), forAll, coordSet::name(), Foam::nl, List< T >::size(), writer< Type >::write(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Referenced by vtkSetWriter< Type >::getFileName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write() [2/2]

void write ( const bool  writeTracks,
const PtrList< coordSet > &  ,
const wordList valueSetNames,
const List< List< Field< Type >>> &  ,
Ostream  
) const
virtual

General entry point for writing of multiple coordSets.

Each coordSet (track) has same data variables. The data is per variable, per track, per point of track. If writeTracks adds connecting lines (wherever applicable)

Implements writer< Type >.

Definition at line 108 of file vtkSetWriter.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::nl, nPoints, UPtrList< T >::size(), List< T >::size(), writer< Type >::write(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Here is the call graph for this function:

The documentation for this class was generated from the following files: