pgplot::ColourMap Class Reference

Convenience interface to a bunch of regularly used colour maps. More...

#include <ColourMap.h>

Inheritance diagram for pgplot::ColourMap:

Reference::Able Reference::HeapTracked List of all members.

Public Types

 GreyScale
 Inverse
 Heat
 Cold
 Plasma
 Forest
 AlienGlow
 Test
enum  Name {
  GreyScale, Inverse, Heat, Cold,
  Plasma, Forest, AlienGlow, Test
}
 Available colour map names.

Public Member Functions

 ColourMap ()
 Default constructor.
 ColourMap (const Name _name)
void set_name (Name name)
 Set the colour map name.
Name get_name () const
void set_contrast (float contrast)
 Set the contrast (0 to 1; normally 1).
float get_contrast () const
void set_brightness (float brightness)
 Set the brightness (0 to 1; normally 5).
float get_brightness () const
void set_logarithmic (bool log)
 Set the image transfer function to logarithmic.
bool get_logarithmic () const
void apply ()
 Apply the current attributes.

Protected Attributes

Name name
 Colour map name.
float contrast
 Contrast.
float brightness
 Brightness.
bool logarithmic
 Logarithmic image transfer function.

Detailed Description

Convenience interface to a bunch of regularly used colour maps.


The documentation for this class was generated from the following files:
Generated using doxygen 1.4.7