GNU Octave  3.8.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 | Protected Member Functions | Private Types | Private Attributes | List of all members
color_property Class Reference

#include "graphics.h"

Inheritance diagram for color_property:
Inheritance graph
[legend]
Collaboration diagram for color_property:
Collaboration graph
[legend]

Public Member Functions

 color_property (const color_values &c, const radio_values &v)
 color_property (const color_values &c, const radio_values &v)
 color_property (const radio_values &v, const color_values &c)
 color_property (const radio_values &v, const color_values &c)
 color_property (const std::string &nm, const graphics_handle &h, const color_values &c=color_values(), const radio_values &v=radio_values())
 color_property (const std::string &nm, const graphics_handle &h, const color_values &c=color_values(), const radio_values &v=radio_values())
 color_property (const std::string &nm, const graphics_handle &h, const radio_values &v)
 color_property (const std::string &nm, const graphics_handle &h, const radio_values &v)
 color_property (const std::string &nm, const graphics_handle &h, const std::string &v)
 color_property (const std::string &nm, const graphics_handle &h, const std::string &v)
 color_property (const std::string &nm, const graphics_handle &h, const color_property &v)
 color_property (const std::string &nm, const graphics_handle &h, const color_property &v)
 color_property (const color_property &p)
 color_property (const color_property &p)
void add_listener (const octave_value &v, listener_mode mode=POSTSET)
void add_listener (const octave_value &v, listener_mode mode=POSTSET)
base_propertyclone (void) const
base_propertyclone (void) const
const std::string & current_value (void) const
const std::string & current_value (void) const
void delete_listener (const octave_value &v=octave_value(), listener_mode mode=POSTSET)
void delete_listener (const octave_value &v=octave_value(), listener_mode mode=POSTSET)
octave_value get (void) const
octave_value get (void) const
int get_id (void) const
int get_id (void) const
std::string get_name (void) const
std::string get_name (void) const
graphics_handle get_parent (void) const
graphics_handle get_parent (void) const
bool is (const std::string &v) const
bool is (const std::string &v) const
bool is_hidden (void) const
bool is_hidden (void) const
bool is_radio (void) const
bool is_radio (void) const
bool is_rgb (void) const
bool is_rgb (void) const
bool ok (void) const
bool ok (void) const
 operator octave_value (void) const
 operator octave_value (void) const
color_propertyoperator= (const octave_value &val)
color_propertyoperator= (const octave_value &val)
Matrix rgb (void) const
Matrix rgb (void) const
OCTINTERP_API void run_listeners (listener_mode mode=POSTSET)
OCTINTERP_API void run_listeners (listener_mode mode=POSTSET)
OCTINTERP_API bool set (const octave_value &v, bool do_run=true, bool do_notify_toolkit=true)
OCTINTERP_API bool set (const octave_value &v, bool do_run=true, bool do_notify_toolkit=true)
void set_hidden (bool flag)
void set_hidden (bool flag)
void set_id (int d)
void set_id (int d)
void set_name (const std::string &s)
void set_name (const std::string &s)
void set_parent (const graphics_handle &h)
void set_parent (const graphics_handle &h)
Cell values_as_cell (void) const
Cell values_as_cell (void) const
std::string values_as_string (void) const
std::string values_as_string (void) const

Protected Member Functions

OCTINTERP_API bool do_set (const octave_value &newval)
OCTINTERP_API bool do_set (const octave_value &newval)

Private Types

enum  current_enum { color_t, radio_t, color_t, radio_t }
enum  current_enum { color_t, radio_t, color_t, radio_t }

Private Attributes

color_values color_val
enum color_property::current_enum current_type
std::string current_val
radio_values radio_val

Detailed Description

Definition at line 1084 of file graphics.h.

Member Enumeration Documentation

Enumerator:
color_t 
radio_t 
color_t 
radio_t 

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

Enumerator:
color_t 
radio_t 
color_t 
radio_t 

Definition at line 1183 of file graphics.h.

Constructor & Destructor Documentation

color_property::color_property ( const color_values c,
const radio_values v 
)
inline

Definition at line 1087 of file graphics.h.

Referenced by clone().

color_property::color_property ( const radio_values v,
const color_values c 
)
inline

Definition at line 1093 of file graphics.h.

color_property::color_property ( const std::string &  nm,
const graphics_handle h,
const color_values c = color_values (),
const radio_values v = radio_values () 
)
inline

Definition at line 1099 of file graphics.h.

color_property::color_property ( const std::string &  nm,
const graphics_handle h,
const radio_values v 
)
inline

Definition at line 1107 of file graphics.h.

color_property::color_property ( const std::string &  nm,
const graphics_handle h,
const std::string &  v 
)
inline

Definition at line 1114 of file graphics.h.

color_property::color_property ( const std::string &  nm,
const graphics_handle h,
const color_property v 
)
inline

Definition at line 1121 of file graphics.h.

color_property::color_property ( const color_property p)
inline

Definition at line 1128 of file graphics.h.

color_property::color_property ( const color_values c,
const radio_values v 
)
inline

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

color_property::color_property ( const radio_values v,
const color_values c 
)
inline

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

color_property::color_property ( const std::string &  nm,
const graphics_handle h,
const color_values c = color_values (),
const radio_values v = radio_values () 
)
inline

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

color_property::color_property ( const std::string &  nm,
const graphics_handle h,
const radio_values v 
)
inline

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

color_property::color_property ( const std::string &  nm,
const graphics_handle h,
const std::string &  v 
)
inline

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

color_property::color_property ( const std::string &  nm,
const graphics_handle h,
const color_property v 
)
inline

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

color_property::color_property ( const color_property p)
inline

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

Member Function Documentation

void base_property::add_listener ( const octave_value v,
listener_mode  mode = POSTSET 
)
inlineinherited
void base_property::add_listener ( const octave_value v,
listener_mode  mode = POSTSET 
)
inlineinherited
base_property* color_property::clone ( void  ) const
inlinevirtual

Reimplemented from base_property.

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

References color_property().

base_property* color_property::clone ( void  ) const
inlinevirtual

Reimplemented from base_property.

Definition at line 1172 of file graphics.h.

References color_property().

const std::string& color_property::current_value ( void  ) const
inline

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

References current_type, current_val, error(), and radio_t.

const std::string& color_property::current_value ( void  ) const
inline

Definition at line 1156 of file graphics.h.

References current_type, current_val, error(), and radio_t.

void base_property::delete_listener ( const octave_value v = octave_value (),
listener_mode  mode = POSTSET 
)
inlineinherited
void base_property::delete_listener ( const octave_value v = octave_value (),
listener_mode  mode = POSTSET 
)
inlineinherited
OCTINTERP_API bool color_property::do_set ( const octave_value newval)
protectedvirtual

Reimplemented from base_property.

bool color_property::do_set ( const octave_value newval)
protectedvirtual
octave_value color_property::get ( void  ) const
inlinevirtual

Reimplemented from base_property.

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

References color_t, color_val, current_type, current_val, and color_values::rgb().

octave_value color_property::get ( void  ) const
inlinevirtual

Reimplemented from base_property.

Definition at line 1133 of file graphics.h.

References color_t, color_val, current_type, current_val, and color_values::rgb().

int base_property::get_id ( void  ) const
inlineinherited

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

References base_property::id.

int base_property::get_id ( void  ) const
inlineinherited

Definition at line 309 of file graphics.h.

References base_property::id.

Referenced by property::get_id().

std::string base_property::get_name ( void  ) const
inlineinherited

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

References base_property::name.

std::string base_property::get_name ( void  ) const
inlineinherited
graphics_handle base_property::get_parent ( void  ) const
inlineinherited

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

References base_property::parent.

graphics_handle base_property::get_parent ( void  ) const
inlineinherited

Definition at line 299 of file graphics.h.

References base_property::parent.

Referenced by callback_property::execute(), and property::get_parent().

bool color_property::is ( const std::string &  v) const
inline

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

References current_val, and is_radio().

bool color_property::is ( const std::string &  v) const
inline

Definition at line 1145 of file graphics.h.

References current_val, and is_radio().

bool base_property::is_hidden ( void  ) const
inlineinherited

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

References base_property::hidden.

bool base_property::is_hidden ( void  ) const
inlineinherited

Definition at line 303 of file graphics.h.

References base_property::hidden.

Referenced by property::is_hidden().

bool color_property::is_radio ( void  ) const
inlinevirtual

Reimplemented from base_property.

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

References current_type, and radio_t.

bool color_property::is_radio ( void  ) const
inlinevirtual

Reimplemented from base_property.

Definition at line 1143 of file graphics.h.

References current_type, and radio_t.

Referenced by is().

bool color_property::is_rgb ( void  ) const
inline

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

References color_t, and current_type.

bool color_property::is_rgb ( void  ) const
inline

Definition at line 1141 of file graphics.h.

References color_t, and current_type.

bool base_property::ok ( void  ) const
inlineinherited

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

References octave_handle::ok(), and base_property::parent.

bool base_property::ok ( void  ) const
inlineinherited

Definition at line 293 of file graphics.h.

References octave_handle::ok(), and base_property::parent.

Referenced by property::ok().

color_property::operator octave_value ( void  ) const
inline

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

color_property::operator octave_value ( void  ) const
inline

Definition at line 1170 of file graphics.h.

color_property& color_property::operator= ( const octave_value val)
inline

Reimplemented from base_property.

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

color_property& color_property::operator= ( const octave_value val)
inline

Reimplemented from base_property.

Definition at line 1164 of file graphics.h.

Matrix color_property::rgb ( void  ) const
inline

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

References color_t, color_val, current_type, error(), and color_values::rgb().

Matrix color_property::rgb ( void  ) const
inline

Definition at line 1148 of file graphics.h.

References color_t, color_val, current_type, error(), and color_values::rgb().

OCTINTERP_API void base_property::run_listeners ( listener_mode  mode = POSTSET)
inherited
void base_property::run_listeners ( listener_mode  mode = POSTSET)
inherited
OCTINTERP_API bool base_property::set ( const octave_value v,
bool  do_run = true,
bool  do_notify_toolkit = true 
)
inherited
bool base_property::set ( const octave_value v,
bool  do_run = true,
bool  do_notify_toolkit = true 
)
inherited
void base_property::set_hidden ( bool  flag)
inlineinherited

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

References base_property::hidden.

void base_property::set_hidden ( bool  flag)
inlineinherited
void base_property::set_id ( int  d)
inlineinherited

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

References d.

void base_property::set_id ( int  d)
inlineinherited
void base_property::set_name ( const std::string &  s)
inlineinherited

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

References base_property::name.

void base_property::set_name ( const std::string &  s)
inlineinherited

Definition at line 297 of file graphics.h.

References base_property::name.

Referenced by property::set_name().

void base_property::set_parent ( const graphics_handle h)
inlineinherited

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

References base_property::parent.

void base_property::set_parent ( const graphics_handle h)
inlineinherited

Definition at line 301 of file graphics.h.

References base_property::parent.

Referenced by property::set_parent().

Cell color_property::values_as_cell ( void  ) const
inlinevirtual

Reimplemented from base_property.

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

References radio_val, and radio_values::values_as_cell().

Cell color_property::values_as_cell ( void  ) const
inlinevirtual

Reimplemented from base_property.

Definition at line 1177 of file graphics.h.

References radio_val, and radio_values::values_as_cell().

std::string color_property::values_as_string ( void  ) const
inlinevirtual

Reimplemented from base_property.

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

References radio_val, and radio_values::values_as_string().

std::string color_property::values_as_string ( void  ) const
inlinevirtual

Reimplemented from base_property.

Definition at line 1174 of file graphics.h.

References radio_val, and radio_values::values_as_string().

Member Data Documentation

color_values color_property::color_val
private

Definition at line 1184 of file graphics.h.

Referenced by do_set(), get(), and rgb().

enum color_property::current_enum color_property::current_type
private
std::string color_property::current_val
private

Definition at line 1186 of file graphics.h.

Referenced by current_value(), do_set(), get(), and is().

radio_values color_property::radio_val
private

Definition at line 1185 of file graphics.h.

Referenced by do_set(), values_as_cell(), and values_as_string().


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