Diploma Thesis Percolation Simulation
C++ Sourcecode Documentation

www.AndreasKrueger.de/thesis/code

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

graphics::svg Class Reference

#include <svg.h>

Collaboration diagram for graphics::svg:

Collaboration graph
[legend]
List of all members.

Public Methods

 svg ()
void setBody (string svgBody_)
void append2Body (string element)
void append2Body (shape element, bool fill, bool stroke, bool opac)
void append2Body (std::list< shape * > &listofelements, bool fill, bool stroke, bool opac)
void choose_header (int number)
void choose_parameters (int number)
void svg::write2file (string filename_)

Private Attributes

string filename
string xmlHeader
string svgParameter
string svgBody

Constructor & Destructor Documentation

graphics::svg::svg  
 

Definition at line 138 of file svg.h.

References svgBody.

00138 {svgBody="";};


Member Function Documentation

void graphics::svg::append2Body std::list< shape * > &    listofelements,
bool    fill,
bool    stroke,
bool    opac
 

Definition at line 154 of file svg.h.

References svgBody.

00154                                                                                         {
00155         std::list<shape*>::iterator e;
00156         string svgobject;
00157         for (e=listofelements.begin();e!=listofelements.end();e++){
00158                 svgBody+= (*e)->svg(fill, stroke, opac);
00159                 svgBody+="\n";
00160         }
00161 }

void graphics::svg::append2Body shape    element,
bool    fill,
bool    stroke,
bool    opac
 

Definition at line 149 of file svg.h.

References graphics::shape::svg(), and svgBody.

00149                                                                      {
00150         svgBody+="\n";
00151         svgBody+=element.svg(fill, stroke, opac);
00152 }

void graphics::svg::append2Body string    element
 

Definition at line 144 of file svg.h.

References svgBody.

Referenced by graphics::svg_circles(), and graphics::svg_test().

00144                                    {
00145         svgBody+="\n";
00146         svgBody+=element;
00147 }

void graphics::svg::choose_header int    number
 

Definition at line 172 of file svg.h.

References graphics::XML_HEADER_1, and xmlHeader.

Referenced by graphics::svg_circles(), and graphics::svg_test().

00172                                  {
00173         switch(number){
00174         case 1:
00175                 xmlHeader=XML_HEADER_1;
00176         break;
00177         }
00178 }

void graphics::svg::choose_parameters int    number
 

Definition at line 184 of file svg.h.

References graphics::SVG_PARAMETER_0, graphics::SVG_PARAMETER_1, graphics::SVG_PARAMETER_2, and svgParameter.

Referenced by graphics::svg_circles(), and graphics::svg_test().

00184                                      {
00185         switch(number){
00186         case 0:
00187                 svgParameter=SVG_PARAMETER_0;
00188         break;
00189         case 1:
00190                 svgParameter=SVG_PARAMETER_1;
00191         break;
00192         case 2:
00193                 svgParameter=SVG_PARAMETER_2;
00194         break;
00195         }
00196 }

void graphics::svg::setBody string    svgBody_
 

Definition at line 140 of file svg.h.

References svgBody.

Referenced by graphics::svg_circles(), and graphics::svg_test().

00140                                 {
00141         svgBody=svgBody_;
00142 }

void graphics::svg::svg::write2file string    filename_
 


Member Data Documentation

string graphics::svg::filename [private]
 

Definition at line 123 of file svg.h.

string graphics::svg::svgBody [private]
 

Definition at line 126 of file svg.h.

Referenced by append2Body(), setBody(), and svg().

string graphics::svg::svgParameter [private]
 

Definition at line 125 of file svg.h.

Referenced by choose_parameters().

string graphics::svg::xmlHeader [private]
 

Definition at line 124 of file svg.h.

Referenced by choose_header().


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




Diploma Thesis Sourcecode Documentation
check out the text and the executable binaries

www.AndreasKrueger.de/thesis/code