Jive reference manual
List of all members | Public Member Functions | Static Public Attributes | Protected Member Functions
jem::gl::CustomPalette Class Reference

#include <jem/gl/CustomPalette.h>

Inheritance diagram for jem::gl::CustomPalette:
Inheritance graph

Public Member Functions

 CustomPalette ()
 
 CustomPalette (const GLfloatMatrix &colors, const Array< double > &ranges)
 
virtual void getColor (Color &col, double val) const
 
virtual double findValue (double &val, double prec, const Color &col) const
 
virtual double getMinValue () const
 
virtual double getMaxValue () const
 
virtual GLfloat getMinAlpha () const
 
virtual void configure (const Properties &props)
 
virtual void getConfig (const Properties &props) const
 
virtual void listProps (const Properties &props) const
 
void setColorRanges (const GLfloatMatrix &colors, const Array< double > &ranges)
 
GLfloatMatrix getColors () const
 
Array< double > getRanges () const
 
void setOptions (int options)
 
int getOptions () const
 
virtual void fillRectangle (GfxContext &gtx, GLint width, GLint height) const
 
virtual void drawTickMarks (GfxContext &gtx, TextPainter &txp, GLint width, GLint height, GLint xtick, Alignment align, double scale, double bias) const
 
- Public Member Functions inherited from jem::gl::Palette
virtual void makeColorMap (ColorMap &cmap) const
 
void render (GfxContext &gtx, const Rect &rect, const String &title, Alignment align, double scale=1.0, double bias=0.0) const
 
- Public Member Functions inherited from jem::Object
virtual ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
virtual String toString () const
 Returns a short textual description of this object. More...
 
virtual long hashValue () const
 Returns a hash value for this object. More...
 
virtual bool equals (const Ref< Object > &obj) const
 Tests whether two objects are equal. More...
 
Ref< Objectclone () const
 Returns a copy of this object. More...
 

Static Public Attributes

static const int HIDE_MIN_MAX
 

Protected Member Functions

virtual ~CustomPalette ()
 
- Protected Member Functions inherited from jem::gl::Palette
virtual ~Palette ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 
- Public Attributes inherited from jem::gl::Palette
util::Event< Self & > changeEvent
 

Constructor & Destructor Documentation

jem::gl::CustomPalette::CustomPalette ( )
jem::gl::CustomPalette::CustomPalette ( const GLfloatMatrix colors,
const Array< double > &  ranges 
)
virtual jem::gl::CustomPalette::~CustomPalette ( )
protectedvirtual

Member Function Documentation

virtual void jem::gl::CustomPalette::getColor ( Color col,
double  val 
) const
virtual

Implements jem::gl::Palette.

virtual double jem::gl::CustomPalette::findValue ( double &  val,
double  prec,
const Color col 
) const
virtual

Reimplemented from jem::gl::Palette.

virtual double jem::gl::CustomPalette::getMinValue ( ) const
virtual

Implements jem::gl::Palette.

virtual double jem::gl::CustomPalette::getMaxValue ( ) const
virtual

Implements jem::gl::Palette.

virtual GLfloat jem::gl::CustomPalette::getMinAlpha ( ) const
virtual

Implements jem::gl::Palette.

virtual void jem::gl::CustomPalette::configure ( const Properties props)
virtual

Reimplemented from jem::gl::Palette.

virtual void jem::gl::CustomPalette::getConfig ( const Properties props) const
virtual

Reimplemented from jem::gl::Palette.

virtual void jem::gl::CustomPalette::listProps ( const Properties props) const
virtual

Reimplemented from jem::gl::Palette.

void jem::gl::CustomPalette::setColorRanges ( const GLfloatMatrix colors,
const Array< double > &  ranges 
)
GLfloatMatrix jem::gl::CustomPalette::getColors ( ) const
Array< double > jem::gl::CustomPalette::getRanges ( ) const
void jem::gl::CustomPalette::setOptions ( int  options)
int jem::gl::CustomPalette::getOptions ( ) const
virtual void jem::gl::CustomPalette::fillRectangle ( GfxContext gtx,
GLint  width,
GLint  height 
) const
virtual

Reimplemented from jem::gl::Palette.

virtual void jem::gl::CustomPalette::drawTickMarks ( GfxContext gtx,
TextPainter txp,
GLint  width,
GLint  height,
GLint  xtick,
Alignment  align,
double  scale,
double  bias 
) const
virtual

Reimplemented from jem::gl::Palette.

Member Data Documentation

const int jem::gl::CustomPalette::HIDE_MIN_MAX
static