Fade2D Documentation pages v2.12
Delaunay Features
GEOM_FADE2D::Color Class Reference

Color for visualization. More...

#include <Color.h>

Public Member Functions

 Color (Colorname c, float width_=0.001, bool bFill_=false)
 
 Color (double r_, double g_, double b_, double width_, bool bFill_=false)
 
bool operator!= (const Color &other) const
 
bool operator< (const Color &other) const
 
bool operator== (const Color &other) const
 

Static Public Member Functions

static Colorname getNextColorName ()
 

Public Attributes

float b
 Blue.
 
bool bFill
 Fill the shape or not.
 
float g
 Green.
 
float r
 Red.
 
float width
 Linewidth.
 

Friends

std::ostream & operator<< (std::ostream &stream, const Color &c)
 

Detailed Description

See also
Visualizer2

Constructor & Destructor Documentation

◆ Color() [1/2]

GEOM_FADE2D::Color::Color ( double  r_,
double  g_,
double  b_,
double  width_,
bool  bFill_ = false 
)
Parameters
r_red
g_green
b_blue
width_linewidth
bFill_fill (default: false)
Note
bFill_=true has two meanings: Objects that can be filled (Triangle2, Circle2) are filled with the rgb-color but line segments get x-marks at their endpoints.

◆ Color() [2/2]

GEOM_FADE2D::Color::Color ( Colorname  c,
float  width_ = 0.001,
bool  bFill_ = false 
)
explicit

For convenience predefined colors can be used.

Parameters
cis a predefined color name
width_linewidth (default: 0.001)
bFill_fill (default: false)
Note
bFill_=true has two meanings: Objects that can be filled (Triangle2, Circle2) are filled with the rgb-color but line segments get x-marks at their endpoints.

The documentation for this class was generated from the following file: