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::shape Class Reference

#include <svg.h>

Inheritance diagram for graphics::shape:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 shape ()
 shape (RGBcolor fillcolor_, RGBcolor strokecolor_, REAL opacity_)
string svgstyle (bool fill, bool stroke, bool opac)
virtual string svg (bool fill, bool stroke, bool opac)

Protected Attributes

RGBcolor fillcolor
RGBcolor strokecolor
REAL opacity

Constructor & Destructor Documentation

graphics::shape::shape   [inline]
 

Definition at line 51 of file svg.h.

00051 {};

graphics::shape::shape RGBcolor    fillcolor_,
RGBcolor    strokecolor_,
REAL    opacity_
[inline]
 

Definition at line 52 of file svg.h.

References opacity, and REAL.

00053                 : fillcolor(fillcolor_), strokecolor(strokecolor_), opacity(opacity_){};


Member Function Documentation

virtual string graphics::shape::svg bool    fill,
bool    stroke,
bool    opac
[inline, virtual]
 

Reimplemented in graphics::circle, and graphics::rect.

Definition at line 55 of file svg.h.

Referenced by graphics::svg::append2Body().

00055 {return "";} ;

string graphics::shape::svgstyle bool    fill,
bool    stroke,
bool    opac
 

Definition at line 59 of file svg.h.

References fillcolor, opacity, strokecolor, and graphics::RGBcolor::svg().

Referenced by graphics::rect::svg(), and graphics::circle::svg().

00059                                                        {
00060         ostrstream temp;
00061         if (fill||stroke||opac) {
00062                 if (fill)   temp<<"fill=\""<<fillcolor.svg()<<"\" ";
00063                 if (stroke) temp<<"stroke=\""<<strokecolor.svg()<<"\" ";
00064                 if (opac)   temp<<"opacity=\""<<opacity<<"\" ";
00065         }
00066         temp <<'\0';
00067         return temp.str();
00068 }


Member Data Documentation

RGBcolor graphics::shape::fillcolor [protected]
 

Definition at line 47 of file svg.h.

Referenced by svgstyle().

REAL graphics::shape::opacity [protected]
 

Definition at line 49 of file svg.h.

Referenced by shape(), and svgstyle().

RGBcolor graphics::shape::strokecolor [protected]
 

Definition at line 48 of file svg.h.

Referenced by svgstyle().


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