GNU Octave  4.2.1
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 986 of file graphics.h.

Constructor & Destructor Documentation

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

Definition at line 989 of file graphics.h.

References b, validate(), and xrgb.

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

Definition at line 999 of file graphics.h.

References error(), and str2rgb().

color_values::color_values ( const color_values c)
inline

Definition at line 1006 of file graphics.h.

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

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

References b, validate(), and xrgb.

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

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

References error(), and str2rgb().

color_values::color_values ( const color_values c)
inline

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

Member Function Documentation

color_values::operator octave_value ( void  ) const
inline

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

References xrgb.

color_values::operator octave_value ( void  ) const
inline

Definition at line 1030 of file graphics.h.

References xrgb.

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

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

References c.

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

Definition at line 1025 of file graphics.h.

References c.

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

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

References xrgb.

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

Definition at line 1010 of file graphics.h.

References xrgb.

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

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

References xrgb.

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

Definition at line 1018 of file graphics.h.

References xrgb.

Matrix color_values::rgb ( void  ) const
inline

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

References xrgb.

Matrix color_values::rgb ( void  ) const
inline

Definition at line 1028 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 1254 of file graphics.cc.

References retval, str, string, transform(), and xrgb.

Referenced by color_values().

void color_values::validate ( void  ) const
inline

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

References error(), and xrgb.

void color_values::validate ( void  ) const
inline

Definition at line 1032 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: