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

#include <svg.h>

Collaboration diagram for graphics::RGBcolor:

Collaboration graph
[legend]
List of all members.

Public Methods

 RGBcolor ()
 RGBcolor (REAL, REAL, REAL)
string svg ()

Private Attributes

REAL R
REAL G
REAL B

Constructor & Destructor Documentation

graphics::RGBcolor::RGBcolor  
 

Definition at line 34 of file svg.h.

References B, G, and R.

00034 {R=0; G=0; B=0;}

graphics::RGBcolor::RGBcolor REAL   ,
REAL   ,
REAL   
 

Definition at line 35 of file svg.h.

References REAL.

00035 : R(R_), G(G_), B(B_) {};


Member Function Documentation

string graphics::RGBcolor::svg  
 

Definition at line 37 of file svg.h.

References B, G, and R.

Referenced by graphics::svg_circles(), and graphics::shape::svgstyle().

00037                     {   
00038         ostrstream temp;
00039         temp<<"rgb("<<R<<"%,"<<G<<"%,"<<B<<"%)";
00040         temp <<'\0';
00041         return temp.str();
00042 }


Member Data Documentation

REAL graphics::RGBcolor::B [private]
 

Definition at line 27 of file svg.h.

Referenced by RGBcolor(), and svg().

REAL graphics::RGBcolor::G [private]
 

Definition at line 26 of file svg.h.

Referenced by RGBcolor(), and svg().

REAL graphics::RGBcolor::R [private]
 

Definition at line 25 of file svg.h.

Referenced by RGBcolor(), and svg().


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