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

#include <ColourMap.h>

Inheritance diagram for pgplot::ColourMap:
Reference::Able Reference::HeapTracked

Public Types

enum  Name {
  GreyScale, Inverse, Heat, Cold,
  Plasma, Forest, AlienGlow, CubeHelix,
  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.
 
- Public Member Functions inherited from Reference::Able
 Able (const Able &)
 
Ableoperator= (const Able &)
 
unsigned get_reference_count () const
 
- Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
 
HeapTrackedoperator= (const HeapTracked &)
 
bool __is_on_heap () const
 

Static Public Attributes

static Pulsar::Option< std::string > default_colour_map
 

Protected Attributes

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

Additional Inherited Members

- Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 
- Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 
static void operator delete (void *location, void *ptr)
 
static void operator delete (void *location)
 
static size_t get_heap_queue_size ()
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 

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.8.17