25 #if GEOM_PSEUDO3D==GEOM_TRUE
26 namespace GEOM_FADE25D {
27 #elif GEOM_PSEUDO3D==GEOM_FALSE
28 namespace GEOM_FADE2D {
30 #error GEOM_PSEUDO3D is not defined
73 Color(
double r,
double g,
double b,
double width,
bool bFill=
false);
86 bool operator<(
const Color& other)
const;
87 bool operator!=(
const Color& other)
const;
88 bool operator==(
const Color& other)
const;
116 stream<<
"Color (r,g,b): "<<c.
r<<
","<<c.
g<<
","<<c.
b<<
", linewidth="<<c.
width<<
", fill="<<c.
bFill;
std::ostream & operator<<(std::ostream &stream, const Bbox2 &pC)
Prints the bounding box to a stream.
Definition: Bbox2.h:605
Colorname
Predefined colors for convenience.
Definition: Color.h:36
@ CLAWNGREEN
Definition: Color.h:51
@ CPINK
Definition: Color.h:42
@ CDARKBROWN
Definition: Color.h:48
@ CCYAN
Definition: Color.h:53
@ CPURPLE
Definition: Color.h:49
@ COLIVE
Definition: Color.h:50
@ CRED
Definition: Color.h:37
@ CGREEN
Definition: Color.h:38
@ CYELLOW
Definition: Color.h:41
@ CWHITE
Definition: Color.h:44
@ CTRANSPARENT
Definition: Color.h:54
@ CBLUE
Definition: Color.h:39
@ CLIGHTBLUE
Definition: Color.h:46
@ CGRAY
Definition: Color.h:43
@ CPALEGREEN
Definition: Color.h:52
@ CBLACK
Definition: Color.h:40
@ CORANGE
Definition: Color.h:45
@ CLIGHTBROWN
Definition: Color.h:47
Color for visualization.
Definition: Color.h:65
float g
Green component.
Definition: Color.h:90
Color(double r, double g, double b, double width, bool bFill=false)
float r
Red component.
Definition: Color.h:89
float b
Blue component.
Definition: Color.h:91
bool bFill
Fill the shape or not.
Definition: Color.h:93
static Colorname getNextColorName()
Get the next available predefined color name.
float width
Line width.
Definition: Color.h:92
Color(Colorname c, float width=0.001, bool bFill=false)