| 
    Graphite Version 3
    
   An experimental 3D geometry processing program 
   | 
 
A generic color type. More...
#include <geogram/image/color.h>
  
Public Types | |
| typedef vecng< 4, T > | superclass | 
| The superclass type.   | |
  Public Types inherited from GEO::vecng< 4, T > | |
| typedef vecng< dim, T > | vector_type | 
| This vector type.     | |
| typedef T | value_type | 
| The type of the vector coordinates.     | |
Public Member Functions | |
| GenColor (const superclass &rhs) | |
| GenColor copy constructor.   | |
| GenColor (const T *rhs) | |
| GenColor constructor from T array.   | |
| GenColor (T r=0, T g=0, T b=0, T a=1) | |
| GenColor constructor from 4 parameters.   | |
| GenColor & | operator= (const superclass &rhs) | 
| assignment operator.   | |
| T | r () const | 
| Gets the red component.   | |
| T | g () const | 
| Gets the green component.   | |
| T | b () const | 
| Gets the blue component.   | |
| T | a () const | 
| Gets the alpha component (transparency).   | |
| void | set_r (T r) | 
| Sets the red component.   | |
| void | set_g (T g) | 
| Sets the green component.   | |
| void | set_b (T b) | 
| Sets the blue component.   | |
| void | set_a (T a) | 
| Sets the alpha component (transparency).   | |
  Public Member Functions inherited from GEO::vecng< 4, T > | |
| vecng () | |
| Default vector constructor.     | |
| vecng (T x_in, T y_in, T z_in, T w_in) | |
| Constructs a vector from coordinates.   | |
| template<class T2 > | |
| vecng (const vecng< dim, T2 > &v) | |
| Constructs a vector by copy.     | |
| template<class T2 > | |
| vecng (const T2 *v) | |
| Constructs a vector from an array.     | |
| vecng (const std::initializer_list< T > &Vi) | |
| T | length2 () const | 
| Gets the squared length of the vector.     | |
| T | length () const | 
| Gets the length of the vector.     | |
| T | distance2 (const vector_type &v) const | 
| T | distance (const vector_type &v) const | 
| index_t | dimension () const | 
| Gets the vector dimension.     | |
| vector_type & | operator+= (const vector_type &v) | 
| vector_type & | operator-= (const vector_type &v) | 
| template<class T2 > | |
| vector_type & | operator*= (T2 s) | 
| Multiplies by a scalar in place.     | |
| template<class T2 > | |
| vector_type & | operator/= (T2 s) | 
| Divides by a scalar in place.     | |
| vector_type | operator+ (const vector_type &v) const | 
| vector_type | operator- (const vector_type &v) const | 
| template<class T2 > | |
| vector_type | operator* (T2 s) const | 
| Multiplies a vector by a scalar.     | |
| template<class T2 > | |
| vector_type | operator/ (T2 s) const | 
| Divides a vector by a scalar.     | |
| vector_type | operator- () const | 
| Negates a vector.     | |
| T * | data () | 
| Gets modifiable vector data.     | |
| const T * | data () const | 
| Gets non-modifiable vector data.     | |
| T & | operator[] (index_t i) | 
| Gets a modifiable vector coordinate.     | |
| const T & | operator[] (index_t i) const | 
| Gets a non-modifiable vector coordinate.     | |
Additional Inherited Members | |
  Public Attributes inherited from GEO::vecng< 4, T > | |
| T | x | 
| Vector x coordinate.   | |
| T | y | 
| Vector y coordinate.   | |
| T | z | 
| Vector z coordinate.   | |
| T | w | 
| Vector w coordinate.   | |
  Static Public Attributes inherited from GEO::vecng< 4, T > | |
| static constexpr index_t | dim = 4 | 
| The dimension of the vector.     | |
A generic color type.
| T | type of the components | 
| typedef vecng<4,T> GEO::GenColor< T >::superclass | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline |