InventorVoronoiWriter Class Reference

#include <InventorVoronoiWriter.hpp>

Collaboration diagram for InventorVoronoiWriter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 InventorVoronoiWriter (const std::string &rDirectory, const std::string &rBaseName, const bool clearOutputDir=true)
 ~InventorVoronoiWriter ()
void Write (const VoronoiTessellation< 3 > &rTessellation)
void ScaleAndWrite (VoronoiTessellation< 3 > &rTessellation, double scaleFactor)

Protected Attributes

OutputFileHandlermpOutputFileHandler
std::string mBaseName


Detailed Description

A concrete InventorVoronoiWriter class. Used to write VoronoiTessellations to file.

Definition at line 122 of file InventorVoronoiWriter.hpp.


Constructor & Destructor Documentation

InventorVoronoiWriter::InventorVoronoiWriter ( const std::string &  rDirectory,
const std::string &  rBaseName,
const bool  clearOutputDir = true 
)

Constructor.

Parameters:
rDirectory the directory in which to write the mesh to file
rBaseName the base name of the files in which to write the mesh data
clearOutputDir whether to clean the directory (defaults to true)

Definition at line 171 of file InventorVoronoiWriter.hpp.

References mpOutputFileHandler.

InventorVoronoiWriter::~InventorVoronoiWriter (  ) 

Destructor.

Definition at line 179 of file InventorVoronoiWriter.hpp.

References mpOutputFileHandler.


Member Function Documentation

void InventorVoronoiWriter::Write ( const VoronoiTessellation< 3 > &  rTessellation  ) 

void InventorVoronoiWriter::ScaleAndWrite ( VoronoiTessellation< 3 > &  rTessellation,
double  scaleFactor 
)

Scale the vertex of each cell toward the centre of that cell by the given scaleFactor and write.

Parameters:
rTessellation the Voronoi tessellation
scaleFactor the scale factor

Definition at line 223 of file InventorVoronoiWriter.hpp.

References VoronoiCell::FaceIsOrientatedClockwise(), VoronoiCell::GetNumFaces(), Face< DIM >::GetNumVertices(), mBaseName, mpOutputFileHandler, VoronoiTessellation< DIM >::mVoronoiCells, OutputFileHandler::OpenOutputFile(), VoronoiTessellation< DIM >::rGetCell(), VoronoiCell::rGetFace(), and Face< DIM >::rGetVertex().


Member Data Documentation

Output file handler

Definition at line 126 of file InventorVoronoiWriter.hpp.

Referenced by InventorVoronoiWriter(), ScaleAndWrite(), Write(), and ~InventorVoronoiWriter().

std::string InventorVoronoiWriter::mBaseName [protected]

Base name for the input files

Definition at line 127 of file InventorVoronoiWriter.hpp.

Referenced by ScaleAndWrite(), and Write().


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

Generated on Tue Aug 4 16:11:20 2009 for Chaste by  doxygen 1.5.5