Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

HSVCOLOR Class Reference

#include <color.H>

Inheritance diagram for HSVCOLOR:

Inheritance graph
[legend]
Collaboration diagram for HSVCOLOR:

Collaboration graph
[legend]
List of all members.

Public Types

typedef double value_type

Public Member Functions

 HSVCOLOR ()
 HSVCOLOR (double h, double s, double v)
 HSVCOLOR (const double col[4])
 HSVCOLOR (CCOLOR &c)
 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)
HSVCOLOR operator * (double s) const
HSVCOLOR operator/ (double s) const
HSVCOLOR operator+ (const HSVCOLOR &p) const
 Adds a point to a point.
HSVCOLOR operator+ (const HSVCOLVEC &v) const
HSVCOLVEC operator- (const HSVCOLOR &p) const
HSVCOLOR operator- (const HSVCOLVEC &v) const
HSVCOLOR operator- () const
void operator+= (const HSVCOLOR &p)
 Adds a point to a point.
void operator+= (const HSVCOLVEC &v)
void operator-= (const HSVCOLVEC &v)
void operator *= (double s)
void operator/= (double s)
double dist_sqrd (const HSVCOLOR &p) const
 Computes the distance squared between two points.
double dist (const HSVCOLOR &p) const
 Computes the distance between two points.
bool operator== (const HSVCOLOR &p) const
 Are the two points exactly equal (component wise)?
bool operator!= (const HSVCOLOR &p) const
 Are the two points not equal (component wise)?
bool is_equal (const HSVCOLOR &p, double epsSqrd=epsAbsSqrdMath()) const
 Is the distance squared between the two points essentially zero?

Static Public Member Functions

static int dim ()

Protected Attributes

double _x
double _y
double _z

Detailed Description

Definition at line 73 of file color.H.


Member Typedef Documentation

typedef double mlib::Point3< HSVCOLOR , HSVCOLVEC >::value_type [inherited]
 

Definition at line 62 of file point3.H.


Constructor & Destructor Documentation

HSVCOLOR::HSVCOLOR  )  [inline]
 

Definition at line 75 of file color.H.

HSVCOLOR::HSVCOLOR double  h,
double  s,
double  v
[inline]
 

Definition at line 76 of file color.H.

HSVCOLOR::HSVCOLOR const double  col[4]  )  [inline]
 

Definition at line 78 of file color.H.

HSVCOLOR::HSVCOLOR CCOLOR c  ) 
 

Definition at line 50 of file color.C.

References mlib::Point3< HSVCOLOR, HSVCOLVEC >::_x, mlib::Point3< HSVCOLOR, HSVCOLVEC >::_y, mlib::Point3< HSVCOLOR, HSVCOLVEC >::_z, max(), and min().


Member Function Documentation

const double* mlib::Point3< HSVCOLOR , HSVCOLVEC >::data  )  const [inline, inherited]
 

Definition at line 71 of file point3.H.

static int mlib::Point3< HSVCOLOR , HSVCOLVEC >::dim  )  [inline, static, inherited]
 

Definition at line 63 of file point3.H.

double mlib::Point3< HSVCOLOR , HSVCOLVEC >::dist const HSVCOLOR p  )  const [inline, inherited]
 

Computes the distance between two points.

Definition at line 111 of file point3.H.

double mlib::Point3< HSVCOLOR , HSVCOLVEC >::dist_sqrd const HSVCOLOR p  )  const [inline, inherited]
 

Computes the distance squared between two points.

Definition at line 107 of file point3.H.

bool mlib::Point3< HSVCOLOR , HSVCOLVEC >::is_equal const HSVCOLOR p,
double  epsSqrd = epsAbsSqrdMath()
const [inline, inherited]
 

Is the distance squared between the two points essentially zero?

Definition at line 129 of file point3.H.

HSVCOLOR mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator * double  s  )  const [inline, inherited]
 

Definition at line 81 of file point3.H.

void mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator *= double  s  )  [inline, inherited]
 

Definition at line 98 of file point3.H.

bool mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator!= const HSVCOLOR p  )  const [inline, inherited]
 

Are the two points not equal (component wise)?

Definition at line 121 of file point3.H.

HSVCOLOR mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator+ const HSVCOLVEC v  )  const [inline, inherited]
 

Definition at line 87 of file point3.H.

HSVCOLOR mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator+ const HSVCOLOR p  )  const [inline, inherited]
 

Adds a point to a point.

Warning:
This should only be used to add points that have already been pre-weighted by coefficients that add up to 1.

Definition at line 86 of file point3.H.

void mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator+= const HSVCOLVEC v  )  [inline, inherited]
 

Definition at line 96 of file point3.H.

void mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator+= const HSVCOLOR p  )  [inline, inherited]
 

Adds a point to a point.

Warning:
This should only be used to add points that have already been pre-weighted by coefficients that add up to 1.

Definition at line 95 of file point3.H.

HSVCOLOR mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator-  )  const [inline, inherited]
 

Definition at line 90 of file point3.H.

HSVCOLOR mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator- const HSVCOLVEC v  )  const [inline, inherited]
 

Definition at line 89 of file point3.H.

HSVCOLVEC mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator- const HSVCOLOR p  )  const [inline, inherited]
 

Definition at line 88 of file point3.H.

void mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator-= const HSVCOLVEC v  )  [inline, inherited]
 

Definition at line 97 of file point3.H.

HSVCOLOR mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator/ double  s  )  const [inline, inherited]
 

Definition at line 82 of file point3.H.

void mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator/= double  s  )  [inline, inherited]
 

Definition at line 99 of file point3.H.

bool mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator== const HSVCOLOR p  )  const [inline, inherited]
 

Are the two points exactly equal (component wise)?

Definition at line 119 of file point3.H.

double& mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator[] int  index  )  [inline, inherited]
 

Definition at line 74 of file point3.H.

double mlib::Point3< HSVCOLOR , HSVCOLVEC >::operator[] int  index  )  const [inline, inherited]
 

Definition at line 73 of file point3.H.

mlib::Point3< HSVCOLOR , HSVCOLVEC >::Point3 double  x,
double  y,
double  z
[inline, inherited]
 

Definition at line 55 of file point3.H.

mlib::Point3< HSVCOLOR , HSVCOLVEC >::Point3 double  s  )  [inline, explicit, inherited]
 

Definition at line 54 of file point3.H.

mlib::Point3< HSVCOLOR , HSVCOLVEC >::Point3  )  [inline, inherited]
 

Definition at line 53 of file point3.H.

void mlib::Point3< HSVCOLOR , HSVCOLVEC >::set double  x,
double  y,
double  z
[inline, inherited]
 

Definition at line 70 of file point3.H.


Member Data Documentation

double mlib::Point3< HSVCOLOR , HSVCOLVEC >::_x [protected, inherited]
 

Definition at line 46 of file point3.H.

Referenced by HSVCOLOR().

double mlib::Point3< HSVCOLOR , HSVCOLVEC >::_y [protected, inherited]
 

Definition at line 46 of file point3.H.

Referenced by HSVCOLOR().

double mlib::Point3< HSVCOLOR , HSVCOLVEC >::_z [protected, inherited]
 

Definition at line 46 of file point3.H.

Referenced by HSVCOLOR().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:46:02 2006 for jot by  doxygen 1.4.4