Antiprism 0.23
Public Member Functions

color_map_range_rand Class Reference

A colour map using random values in a range. More...

#include <col_map.h>

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

List of all members.

Public Member Functions

virtual col_val get_col (int idx) const
 Get the colour value for an index number.
color_mapclone () const
 Get a copy of the map.

Detailed Description

A colour map using random values in a range.


Member Function Documentation

color_map* color_map_range_rand::clone ( ) const [inline, virtual]

Get a copy of the map.

Returns:
a pointer to the dynamically allocated copy, which must be freed by the caller with delete, 0 indicates that the clone failed.

Reimplemented from color_map_range.

Reimplemented in color_map_range_rand_hsv, and color_map_range_rand_rgb.

col_val color_map_range_rand::get_col ( int  idx) const [virtual]

Get the colour value for an index number.

Parameters:
idxthe index.
Returns:
The colour.

Reimplemented from color_map_range.


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