Color for visualization.
More...
#include <Color.h>
|
|
float | b |
| | Blue component.
|
| |
|
bool | bFill |
| | Fill the shape or not.
|
| |
|
float | g |
| | Green component.
|
| |
|
float | r |
| | Red component.
|
| |
|
float | width |
| | Line width.
|
| |
This class represents a color for Postscript and PDF visualization used together with Visualizer2.
- See also
- Visualizer2
◆ Color() [1/3]
| GEOM_FADE25D::Color::Color |
( |
double |
r, |
|
|
double |
g, |
|
|
double |
b, |
|
|
double |
width, |
|
|
bool |
bFill = false |
|
) |
| |
- Parameters
-
| [in] | r,g,b | Red, green, blue components of the color (0.0 to 1.0). |
| width | Line width for visualization (default: 0.001). |
| bFill | If true, objects with an area (e.g., Triangle2, Circle2, VoroCell2) will be filled with the specified color while x-marks will be placed at the endpoints of line segments. If false, the objects will not be filled, and line segments will have x-marks at their endpoints. |
◆ Color() [2/3]
| GEOM_FADE25D::Color::Color |
( |
Colorname |
c, |
|
|
float |
width = 0.001, |
|
|
bool |
bFill = false |
|
) |
| |
|
explicit |
- Parameters
-
| [in] | c | Predefined color name |
| width | Line width for visualization (default: 0.001). |
| bFill | If true, objects with an area (e.g., Triangle2, Circle2, VoroCell2) will be filled with the specified color while x-marks will be placed at the endpoints of line segments. If false, the objects will not be filled, and line segments will have x-marks at their endpoints. |
◆ Color() [3/3]
| GEOM_FADE25D::Color::Color |
( |
| ) |
|
Default constructor for black color (no fill).
◆ getNextColorName()
| static Colorname GEOM_FADE25D::Color::getNextColorName |
( |
| ) |
|
|
static |
This function returns the next color name in the enumeration.
◆ operator<<
| std::ostream& operator<< |
( |
std::ostream & |
stream, |
|
|
const Color & |
c |
|
) |
| |
|
friend |
This function outputs the color information (red, green, blue, linewidth, and fill status) of a Color object to the provided output stream.
- Parameters
-
| [in] | stream | The output stream to which the color information will be printed. |
| [in] | c | The Color object whose details are to be printed. |
- Returns
- The output stream with the color information appended.
The documentation for this class was generated from the following file: