| Diploma Thesis Percolation Simulation C++ Sourcecode Documentation |
#include <svg.h>
Inheritance diagram for graphics::shape:


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 |
|
|
Definition at line 51 of file svg.h.
00051 {};
|
|
||||||||||||||||
|
Definition at line 52 of file svg.h.
00053 : fillcolor(fillcolor_), strokecolor(strokecolor_), opacity(opacity_){}; |
|
||||||||||||||||
|
Reimplemented in graphics::circle, and graphics::rect. Definition at line 55 of file svg.h. Referenced by graphics::svg::append2Body().
00055 {return "";} ;
|
|
||||||||||||||||
|
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 }
|
|
|
Definition at line 47 of file svg.h. Referenced by svgstyle(). |
|
|
|
|
|
Definition at line 48 of file svg.h. Referenced by svgstyle(). |
| Diploma Thesis Sourcecode
Documentation check out the text and the executable binaries |