ColormapInfo.h

Classes

ColormapInfo -- ColormapInfo stores information about the dynamic mapping of a Colormap. (full description)

class ColormapInfo

Interface

Public Members
ColormapInfo()
ColormapInfo(const Colormap *colormap, const Float &weight, const uInt &offset, const uInt &size)
const Colormap *colormap() const
Float weight() const
uInt offset() const
uInt size() const
void setWeight(const Float &weight)
void setOffset(const uInt &offset)
void setSize(const uInt &size)
void ref()
void unref()
uInt refCount() const

Description

Synopsis

Motivation

Example

Member Description

ColormapInfo()

(Required) default constructor.

ColormapInfo(const Colormap *colormap, const Float &weight, const uInt &offset, const uInt &size)

Constructor taking a pointer to a Colormap, and the initial weight, offset and size of the Colormap.

const Colormap *colormap() const

Yield a pointer to the Colormap about which this stores information.

Float weight() const

Return the current weight for this mapping.

uInt offset() const

Return the current offset for this mapping.

uInt size() const

Return the current size for this mapping.

void setWeight(const Float &weight)

Set the weight for this mapping.

void setOffset(const uInt &offset)

Set the offset for this mapping.

void setSize(const uInt &size)

Set the size for this mapping.

void ref()
void unref()

Increment and decrement the reference count for this mapping.

uInt refCount() const

Return the current reference count.