class DVcolor_by_data

A class which allows an object to be colored based upon a color map and values of its data

Public Methods

[more] DVcolor_by_data()
Default constructor
[more] ~DVcolor_by_data()
Destructor
[more] DVcolor_by_data(const DVcolor_by_data &data)
Copy constructor
[more]const DVcolor_by_data& operator=(const DVcolor_by_data &data)
Assignement operator
[more]int operator==(const DVcolor_by_data &data) const
Check for equality
[more]int operator!=(const DVcolor_by_data &data) const
Check for inequality
[more]int min_set() const
Check to see is the minimum has been explicitly set
[more]int max_set() const
Check to see is the maximum has been explicitly set
[more]void set_min(const float)
Explicitly set the minimum
[more]void set_max(const float)
Explicitly set the maximum
[more]void unset_min()
Unset the minimum.
[more]void unset_max()
Unset the maximum.
[more]void set_color_map_function(color_map_function_pointer)
Set the colormap function to use to change data values into RGB values.
[more]void set_color_map(DVcolor_map &)
Explicitly set the colormap
[more]void print(ostream &) const
Print function
[more]void get_color(const float, DVcolor&)
Given a floating point value return its color.
[more]void get_color(const float, const float, const float, DVcolor&)
Given a minimum, maximum, and value, return its color.

Protected Fields

[more]float min
[more]float max
[more]int min_set_flag
1 if min has been explicitly set
[more]int max_set_flag
1 if max has been explicitly set
[more]color_map_function_pointer color_map_function
Ppointer to function to call to compute the R,G,B values-- Function needs to take as arguments: min, max, val, DVcolor
[more]DVcolor_map* color_map


Documentation

A class which allows an object to be colored based upon a color map and values of its data
ofloat min

ofloat max

oint min_set_flag
1 if min has been explicitly set

oint max_set_flag
1 if max has been explicitly set

ocolor_map_function_pointer color_map_function
Ppointer to function to call to compute the R,G,B values-- Function needs to take as arguments: min, max, val, DVcolor

oDVcolor_map* color_map

o DVcolor_by_data()
Default constructor

o ~DVcolor_by_data()
Destructor

o DVcolor_by_data(const DVcolor_by_data &data)
Copy constructor

oconst DVcolor_by_data& operator=(const DVcolor_by_data &data)
Assignement operator

oint operator==(const DVcolor_by_data &data) const
Check for equality

oint operator!=(const DVcolor_by_data &data) const
Check for inequality

oint min_set() const
Check to see is the minimum has been explicitly set

oint max_set() const
Check to see is the maximum has been explicitly set

ovoid set_min(const float)
Explicitly set the minimum

ovoid set_max(const float)
Explicitly set the maximum

ovoid unset_min()
Unset the minimum. This allows the minimum to computed from the data

ovoid unset_max()
Unset the maximum. This allows the maximum to computed from the data

ovoid set_color_map_function(color_map_function_pointer)
Set the colormap function to use to change data values into RGB values.

ovoid set_color_map(DVcolor_map &)
Explicitly set the colormap

ovoid print(ostream &) const
Print function

ovoid get_color(const float, DVcolor&)
Given a floating point value return its color.

ovoid get_color(const float, const float, const float, DVcolor&)
Given a minimum, maximum, and value, return its color.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.