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 41 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 88 of file InventorVoronoiWriter.cpp.

References mpOutputFileHandler.

InventorVoronoiWriter::~InventorVoronoiWriter (  ) 

Destructor.

Definition at line 96 of file InventorVoronoiWriter.cpp.

References mpOutputFileHandler.


Member Function Documentation

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 140 of file InventorVoronoiWriter.cpp.

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

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

Member Data Documentation

std::string InventorVoronoiWriter::mBaseName [protected]

Base name for the input files

Definition at line 46 of file InventorVoronoiWriter.hpp.

Referenced by ScaleAndWrite(), and Write().

Output file handler

Definition at line 45 of file InventorVoronoiWriter.hpp.

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


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

Generated by  doxygen 1.6.2