#include <color.H>
Inheritance diagram for COLOR:
Public Types | |
typedef double | value_type |
Public Member Functions | |
COLOR () | |
COLOR (double x, double y, double z) | |
COLOR (const double col[4]) | |
COLOR (CHSVCOLOR &c) | |
double | luminance () const |
COLOR | blend (CCOLOR &dest, double amount) const |
Point3 () | |
Point3 (double s) | |
Point3 (double x, double y, double z) | |
void | set (double x, double y, double z) |
const double * | data () const |
double | operator[] (int index) const |
double & | operator[] (int index) |
COLOR | operator * (double s) const |
COLOR | operator/ (double s) const |
COLOR | operator+ (const COLOR &p) const |
Adds a point to a point. | |
COLOR | operator+ (const COLVEC &v) const |
COLVEC | operator- (const COLOR &p) const |
COLOR | operator- (const COLVEC &v) const |
COLOR | operator- () const |
void | operator+= (const COLOR &p) |
Adds a point to a point. | |
void | operator+= (const COLVEC &v) |
void | operator-= (const COLVEC &v) |
void | operator *= (double s) |
void | operator/= (double s) |
double | dist_sqrd (const COLOR &p) const |
Computes the distance squared between two points. | |
double | dist (const COLOR &p) const |
Computes the distance between two points. | |
bool | operator== (const COLOR &p) const |
Are the two points exactly equal (component wise)? | |
bool | operator!= (const COLOR &p) const |
Are the two points not equal (component wise)? | |
bool | is_equal (const COLOR &p, double epsSqrd=epsAbsSqrdMath()) const |
Is the distance squared between the two points essentially zero? | |
Static Public Member Functions | |
static COLOR | any () |
static COLOR | random () |
static int | dim () |
Static Public Attributes | |
static CCOLOR | black |
static CCOLOR | white |
static CCOLOR | red |
static CCOLOR | green |
static CCOLOR | blue |
Protected Attributes | |
double | _x |
double | _y |
double | _z |
Definition at line 21 of file color.H.
|
|
|
|
|
|
|
|
|
Definition at line 15 of file color.C. References mlib::Point3< COLOR, COLVEC >::_x, mlib::Point3< COLOR, COLVEC >::_y, mlib::Point3< COLOR, COLVEC >::_z, and int(). |
|
Definition at line 31 of file color.H. References COLOR(). |
|
Definition at line 40 of file color.H. References mlib::Point3< COLOR, COLVEC >::_x, mlib::Point3< COLOR, COLVEC >::_y, mlib::Point3< COLOR, COLVEC >::_z, and COLOR(). |
|
|
|
|
|
Computes the distance between two points.
|
|
Computes the distance squared between two points.
|
|
Is the distance squared between the two points essentially zero?
|
|
Definition at line 36 of file color.H. References mlib::Point3< COLOR, COLVEC >::_x, mlib::Point3< COLOR, COLVEC >::_y, and mlib::Point3< COLOR, COLVEC >::_z. |
|
|
|
|
|
Are the two points not equal (component wise)?
|
|
|
|
Adds a point to a point.
|
|
|
|
Adds a point to a point.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Are the two points exactly equal (component wise)?
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 34 of file color.H. References COLOR(). |
|
|
|
Definition at line 46 of file point3.H. Referenced by blend(), COLOR(), and luminance(). |
|
Definition at line 46 of file point3.H. Referenced by blend(), COLOR(), and luminance(). |
|
Definition at line 46 of file point3.H. Referenced by blend(), COLOR(), and luminance(). |
|
Definition at line 48 of file color.H. Referenced by LINE3D::draw_vis_ref(), and GRIDwidget_anchor::GRIDwidget_anchor(). |
|
Definition at line 53 of file color.H. Referenced by VertUVTexture::draw(), DEBUG_ELLIPSE::draw(), and REF_CLASS(). |
|
Definition at line 52 of file color.H. Referenced by VertUVTexture::draw(). |
|
Definition at line 51 of file color.H. Referenced by VertNormalsTexture::draw(), and GLUT_WINSYS::draw(). |
|
Definition at line 49 of file color.H. Referenced by APPEAR::color(), GEOM::draw(), KeyLineTexture::draw_hidden(), ZcrossFrameTexture::set_color(), SilFrameTexture::set_color(), and APPEAR::specular_color(). |