GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
color_values Class Reference

#include "graphics.h"

Collaboration diagram for color_values:
Collaboration graph
[legend]

Public Member Functions

 color_values (double r=0, double g=0, double b=1)
 
 color_values (double r=0, double g=0, double b=1)
 
 color_values (const std::string &str)
 
 color_values (const std::string &str)
 
 color_values (const color_values &c)
 
 color_values (const color_values &c)
 
 operator octave_value (void) const
 
 operator octave_value (void) const
 
bool operator!= (const color_values &c) const
 
bool operator!= (const color_values &c) const
 
color_valuesoperator= (const color_values &c)
 
color_valuesoperator= (const color_values &c)
 
bool operator== (const color_values &c) const
 
bool operator== (const color_values &c) const
 
Matrix rgb (void) const
 
Matrix rgb (void) const
 
void validate (void) const
 
void validate (void) const
 

Private Member Functions

OCTINTERP_API bool str2rgb (const std::string &str)
 
OCTINTERP_API bool str2rgb (const std::string &str)
 

Private Attributes

Matrix xrgb
 

Detailed Description

Definition at line 1020 of file graphics.h.

Constructor & Destructor Documentation

color_values::color_values ( double  r = 0,
double  g = 0,
double  b = 1 
)
inline

Definition at line 1023 of file graphics.h.

References validate(), and xrgb.

color_values::color_values ( const std::string &  str)
inline

Definition at line 1033 of file graphics.h.

References error(), and str2rgb().

color_values::color_values ( const color_values c)
inline

Definition at line 1040 of file graphics.h.

color_values::color_values ( double  r = 0,
double  g = 0,
double  b = 1 
)
inline

Definition at line 1021 of file graphics.in.h.

References validate(), and xrgb.

color_values::color_values ( const std::string &  str)
inline

Definition at line 1031 of file graphics.in.h.

References error(), and str2rgb().

color_values::color_values ( const color_values c)
inline

Definition at line 1038 of file graphics.in.h.

Member Function Documentation

color_values::operator octave_value ( void  ) const
inline

Definition at line 1062 of file graphics.in.h.

References xrgb.

color_values::operator octave_value ( void  ) const
inline

Definition at line 1064 of file graphics.h.

References xrgb.

bool color_values::operator!= ( const color_values c) const
inline

Definition at line 1057 of file graphics.in.h.

bool color_values::operator!= ( const color_values c) const
inline

Definition at line 1059 of file graphics.h.

color_values& color_values::operator= ( const color_values c)
inline

Definition at line 1042 of file graphics.in.h.

References xrgb.

color_values& color_values::operator= ( const color_values c)
inline

Definition at line 1044 of file graphics.h.

References xrgb.

bool color_values::operator== ( const color_values c) const
inline

Definition at line 1050 of file graphics.in.h.

References xrgb.

bool color_values::operator== ( const color_values c) const
inline

Definition at line 1052 of file graphics.h.

References xrgb.

Matrix color_values::rgb ( void  ) const
inline

Definition at line 1060 of file graphics.in.h.

References xrgb.

Matrix color_values::rgb ( void  ) const
inline

Definition at line 1062 of file graphics.h.

References xrgb.

Referenced by color_property::get(), and color_property::rgb().

OCTINTERP_API bool color_values::str2rgb ( const std::string &  str)
private
bool color_values::str2rgb ( const std::string &  str)
private

Definition at line 1159 of file graphics.cc.

References transform(), and xrgb.

Referenced by color_values().

void color_values::validate ( void  ) const
inline

Definition at line 1064 of file graphics.in.h.

References error(), and xrgb.

void color_values::validate ( void  ) const
inline

Definition at line 1066 of file graphics.h.

References error(), and xrgb.

Referenced by color_values().

Member Data Documentation

Matrix color_values::xrgb
private

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