Antiprism 0.23
Public Member Functions

color_map_range_rgb Class Reference

A colour map using values in an RGBA range. More...

#include <col_map.h>

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

List of all members.

Public Member Functions

 ~color_map_range_rgb ()
 Destructor.
virtual bool init (const char *map_name, char *errmsg=0)
 Initialise from a string.
color_mapclone () const
 Get a copy of the map.

Detailed Description

A colour map using values in an RGBA range.


Member Function Documentation

color_map* color_map_range_rgb::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.

bool color_map_range_rgb::init ( const char *  map_name,
char *  errmsg = 0 
) [virtual]

Initialise from a string.

Parameters:
map_namethe map name.
errmsgan array at least MSG_SZ chars long to return any error message.
Returns:
true if the file could be read, otherwise false and the error is detailed in errmsg.

Reimplemented from color_map_range.


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