GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
color_values Class Reference

#include "graphics.in.h"

Collaboration diagram for color_values:

Public Member Functions

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

Private Member Functions

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

Private Attributes

Matrix xrgb
 

Detailed Description

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

Constructor & Destructor Documentation

◆ color_values() [1/3]

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

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

References b, validate(), and xrgb.

◆ color_values() [2/3]

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

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

References error(), str, and str2rgb().

◆ color_values() [3/3]

color_values::color_values ( const color_values c)
inline

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

Member Function Documentation

◆ operator octave_value()

color_values::operator octave_value ( void  ) const
inline

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

References xrgb.

◆ operator!=()

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

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

References c.

◆ operator=()

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

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

References c, and xrgb.

◆ operator==()

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

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

References c, and xrgb.

◆ rgb()

Matrix color_values::rgb ( void  ) const
inline

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

References xrgb.

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

◆ str2rgb()

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

Definition at line 1263 of file graphics.cc.

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

Referenced by color_values().

◆ validate()

void color_values::validate ( void  ) const
inline

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

References error(), i, and xrgb.

Referenced by color_values().

Member Data Documentation

◆ xrgb

Matrix color_values::xrgb
private

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