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

#include <svg.h>

Inheritance diagram for graphics::rect:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 rect (COORDFLOAT x_, COORDFLOAT y_, COORDFLOAT width_, COORDFLOAT height_)
 rect (COORDFLOAT x_, COORDFLOAT y_, COORDFLOAT width_, COORDFLOAT height_, RGBcolor fillcolor_, RGBcolor strokecolor_, REAL opacity_)
string svg (bool fill, bool stroke, bool opac)

Private Attributes

COORDFLOAT x
COORDFLOAT y
COORDFLOAT width
COORDFLOAT height

Constructor & Destructor Documentation

graphics::rect::rect COORDFLOAT    x_,
COORDFLOAT    y_,
COORDFLOAT    width_,
COORDFLOAT    height_
[inline]
 

Definition at line 104 of file svg.h.

References COORDFLOAT, height, width, x, and y.

00105                 : x(x_), y(y_), width(width_), height(height_) {};

graphics::rect::rect COORDFLOAT    x_,
COORDFLOAT    y_,
COORDFLOAT    width_,
COORDFLOAT    height_,
RGBcolor    fillcolor_,
RGBcolor    strokecolor_,
REAL    opacity_
[inline]
 

Definition at line 106 of file svg.h.

References COORDFLOAT, height, REAL, width, x, and y.

00108                 : x(x_), y(y_), width(width_), height(height_), shape (fillcolor_, strokecolor_, opacity_) {};


Member Function Documentation

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

Reimplemented from graphics::shape.

Definition at line 112 of file svg.h.

References height, graphics::shape::svgstyle(), width, x, and y.

00112                                                  {
00113         ostrstream temp;
00114         temp<<"<rect x=\""<<x<<"\" y=\""<<y<<"\" width=\""<<width<<"\" height=\""<<height<<"\" ";
00115         temp<<svgstyle(fill, stroke, opac) << "/>";
00116         temp <<'\0';
00117         return temp.str();
00118 }


Member Data Documentation

COORDFLOAT graphics::rect::height [private]
 

Definition at line 102 of file svg.h.

Referenced by rect(), and svg().

COORDFLOAT graphics::rect::width [private]
 

Definition at line 101 of file svg.h.

Referenced by rect(), and svg().

COORDFLOAT graphics::rect::x [private]
 

Definition at line 99 of file svg.h.

Referenced by rect(), and svg().

COORDFLOAT graphics::rect::y [private]
 

Definition at line 100 of file svg.h.

Referenced by rect(), 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