Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
graphics::VtkGraphics Class Reference

#include <vtkGraphics.hh>

Inheritance diagram for graphics::VtkGraphics:
Inheritance graph
[legend]
Collaboration diagram for graphics::VtkGraphics:
Collaboration graph
[legend]

List of all members.

Public Member Functions

template<class G >
void clearMapping (std::map< std::string, concepts::DenseMatrix< G > * > &dense_ptr_)
 A delete function for the mapping.
template<class F , class G >
 VtkGraphics (const concepts::Space< G > &spc, const std::string filename, const concepts::ElementFormula< F, G > &frm, const uint dim=2)
 Constructor for output of an element formula.
template<class F , class G >
 VtkGraphics (const concepts::Space< G > &spc, const std::string filename, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, G > *fun=0, const uint dim=2)
 Constructor for output of solutions and functions of it.
 VtkGraphics (concepts::Mesh &msh, const std::string filename, const uint dim=2, const uint points=5)
template<class G >
 VtkGraphics (const concepts::Space< G > &spc, const std::string filename, const uint dim=2)
 Constructor for output of solutions and functions of it.
 VtkGraphics ()
virtual ~VtkGraphics ()

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.

Protected Attributes

std::auto_ptr< std::ofstream > ofs_
 Stream for output file.

Private Member Functions

template<class G >
void createMatrices_ (bool data, uint count[], std::map< std::string, concepts::DenseMatrix< G > * > &dense_ptr_)
 create the matrices with the needed size
template<class G , class F >
void storeData_ (bool data, std::string filename, std::map< std::string, concepts::DenseMatrix< G > * > &dense_ptr_, concepts::DenseMatrix< F > *functionValue=0)
std::string vtkEnding_ (const std::string &filename)
 vtkEnding_
template<class G >
void writeEdgeMesh_ (std::ostringstream &stream, std::map< std::string, concepts::DenseMatrix< G > * > &dense_ptr_)
void writeHead_ (std::string &, std::ostringstream &stream)
template<class G >
void writeMesh_ (std::ostringstream &stream, std::map< std::string, concepts::DenseMatrix< G > * > &dense_ptr_)
template<class G , class F >
void writePoints_ (std::ostringstream &stream, std::map< std::string, concepts::DenseMatrix< G > * > &dense_ptr_, concepts::DenseMatrix< F > *functionValue=0)
template<class F >
void writeValues_ (std::ostringstream &stream, concepts::DenseMatrix< F > *functionValue=0)
template<class G >
void writeWeightsAndAttr_ (std::ostringstream &stream, std::map< std::string, concepts::DenseMatrix< G > * > &dense_ptr_)

Private Attributes

uint data_
uint dim_
bool isComplex_
uint outputDimension_

Detailed Description

Definition at line 16 of file vtkGraphics.hh.


Constructor & Destructor Documentation

graphics::VtkGraphics::VtkGraphics ( )
template<class F , class G >
graphics::VtkGraphics::VtkGraphics ( const concepts::Space< G > &  spc,
const std::string  filename,
const concepts::Vector< F > &  sol,
const concepts::ElementFunction< F, G > *  fun = 0,
const uint  dim = 2 
)

Constructor for output of solutions and functions of it.

Parameters:
spcSpace on which the data should be plotted
filenameName base for the files to be written
solThe first solution set which should be plotted
dimSpatial dimension of the cells
funFunction of the FE function, e.g. itself.

Definition at line 152 of file vtkGraphics.hh.

Here is the call graph for this function:

template<class F , class G >
graphics::VtkGraphics::VtkGraphics ( const concepts::Space< G > &  spc,
const std::string  filename,
const concepts::ElementFormula< F, G > &  frm,
const uint  dim = 2 
)

Constructor for output of an element formula.

Parameters:
spcSpace on which the data should be plotted
filenameName base for the files to be written
dimSpatial dimension of the cells
frmElement formula

Definition at line 210 of file vtkGraphics.hh.

Here is the call graph for this function:

template<class G >
graphics::VtkGraphics::VtkGraphics ( const concepts::Space< G > &  spc,
const std::string  filename,
const uint  dim = 2 
)

Constructor for output of solutions and functions of it.

Parameters:
spcSpace on which the data should be plotted
filenameName base for the files to be written
dimSpatial dimension of the cells

Definition at line 265 of file vtkGraphics.hh.

Here is the call graph for this function:

graphics::VtkGraphics::VtkGraphics ( concepts::Mesh msh,
const std::string  filename,
const uint  dim = 2,
const uint  points = 5 
)
virtual graphics::VtkGraphics::~VtkGraphics ( ) [virtual]

Member Function Documentation

template<class G >
void graphics::VtkGraphics::clearMapping ( std::map< std::string, concepts::DenseMatrix< G > * > &  dense_ptr_) [inline]

A delete function for the mapping.

Deletes all dense matrices and gives their memory back.

Parameters:
dense_ptr_Mapping that will be delete

Definition at line 62 of file vtkGraphics.hh.

template<class G >
void graphics::VtkGraphics::createMatrices_ ( bool  data,
uint  count[],
std::map< std::string, concepts::DenseMatrix< G > * > &  dense_ptr_ 
) [private]

create the matrices with the needed size

Definition at line 306 of file vtkGraphics.hh.

virtual std::ostream& graphics::OutputBase::info ( std::ostream &  os) const [protected, virtual, inherited]

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Reimplemented in graphics::MatlabGraphics, and graphics::TecplotGraphics.

template<class G , class F >
void graphics::VtkGraphics::storeData_ ( bool  data,
std::string  filename,
std::map< std::string, concepts::DenseMatrix< G > * > &  dense_ptr_,
concepts::DenseMatrix< F > *  functionValue = 0 
) [private]

Definition at line 360 of file vtkGraphics.hh.

Here is the call graph for this function:

std::string graphics::VtkGraphics::vtkEnding_ ( const std::string &  filename) [inline, private]

vtkEnding_

Definition at line 131 of file vtkGraphics.hh.

template<class G >
void graphics::VtkGraphics::writeEdgeMesh_ ( std::ostringstream &  stream,
std::map< std::string, concepts::DenseMatrix< G > * > &  dense_ptr_ 
) [private]

Definition at line 404 of file vtkGraphics.hh.

void graphics::VtkGraphics::writeHead_ ( std::string &  ,
std::ostringstream &  stream 
) [private]
template<class G >
void graphics::VtkGraphics::writeMesh_ ( std::ostringstream &  stream,
std::map< std::string, concepts::DenseMatrix< G > * > &  dense_ptr_ 
) [private]

Definition at line 391 of file vtkGraphics.hh.

template<class G , class F >
void graphics::VtkGraphics::writePoints_ ( std::ostringstream &  stream,
std::map< std::string, concepts::DenseMatrix< G > * > &  dense_ptr_,
concepts::DenseMatrix< F > *  functionValue = 0 
) [private]

Definition at line 456 of file vtkGraphics.hh.

template<class F >
void graphics::VtkGraphics::writeValues_ ( std::ostringstream &  stream,
concepts::DenseMatrix< F > *  functionValue = 0 
) [private]

Definition at line 415 of file vtkGraphics.hh.

Here is the call graph for this function:

template<class G >
void graphics::VtkGraphics::writeWeightsAndAttr_ ( std::ostringstream &  stream,
std::map< std::string, concepts::DenseMatrix< G > * > &  dense_ptr_ 
) [private]

Definition at line 441 of file vtkGraphics.hh.


Member Data Documentation

Definition at line 139 of file vtkGraphics.hh.

Definition at line 142 of file vtkGraphics.hh.

Definition at line 144 of file vtkGraphics.hh.

std::auto_ptr<std::ofstream> graphics::OutputBase::ofs_ [protected, inherited]

Stream for output file.

Definition at line 85 of file basis.hh.

Definition at line 147 of file vtkGraphics.hh.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)