SpherePackingScenarioGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
SpherePrinter.h
Go to the documentation of this file.
00001 /*
00002  * SpherePrinter.h
00003  *
00004  *  Created on: 2011-4-4
00005  *      Author: asu
00006  */
00007 
00008 #ifndef SpherePrinter_H_
00009 #define SpherePrinter_H_
00010 #include <iomanip>
00011 #include <iostream>
00012 #include <cstdio>
00013 #include <fstream>
00014 #include <vector>
00015 #include <string>
00016 #include <sstream>
00017 #include "algorithms/AbstractSpherePacking.h"
00018 
00019 namespace xml {
00020   namespace threeD {
00021     class SpherePrinter;
00022   }}
00023 
00024 
00025 class xml::threeD:: SpherePrinter {
00026 public:
00027   SpherePrinter();
00028   virtual ~SpherePrinter();
00029 
00030   void printP1Spherepack(
00031       algorithms::AbstractSpherePacking& spherePack,
00032       const std::string maxMeshWidth,
00033       const std::string minMeshWidth,
00034       const double scaling = 1.0) const;
00035 
00036   void printP1Spherepack(
00037       algorithms::AbstractSpherePacking& spherePack,
00038       const std::string maxMeshWidth,
00039       const std::string minMeshWidth,
00040       const std::string& filename,
00041       const double scaling = 1.0) const;
00042 
00043   void printP2Spherepack(
00044       algorithms::AbstractSpherePacking& spherePack) const;
00045 
00046   void printP2Spherepack(
00047       algorithms::AbstractSpherePacking& spherePack,
00048       const std::string& filename,
00049       const double scaling = 1.0
00050       ) const;
00051 
00052   void printMGSpherepack(
00053       algorithms::AbstractSpherePacking& spherePack,
00054       const std::string& filename,
00055       const double scaling = 1.0
00056       ) const;
00057   std::string double2string(const double& number) const;
00058 };
00059 
00060 #endif /* SpherePrinter_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines