GNU Octave  6.2.0
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 (const color_values &c)
 
 color_values (const std::string &str)
 
 color_values (double r=0, double g=0, double b=1)
 
 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 1000 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 1003 of file graphics.in.h.

References r, validate(), and xrgb.

◆ color_values() [2/3]

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

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

References error(), and str2rgb().

◆ color_values() [3/3]

color_values::color_values ( const color_values c)
inline

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

Member Function Documentation

◆ operator octave_value()

color_values::operator octave_value ( void  ) const
inline

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

References xrgb.

◆ operator!=()

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

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

◆ operator=()

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

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

References xrgb.

◆ operator==()

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

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

References xrgb.

◆ rgb()

Matrix color_values::rgb ( void  ) const
inline

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

References len, retval, transform(), and xrgb.

Referenced by color_values().

◆ validate()

void color_values::validate ( void  ) const
inline

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

References error(), 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: