CLAM::RulerTicks Class Reference

#include <RulerTicks.hxx>

List of all members.

Public Member Functions

 RulerTicks ()
void setRange (double min, double max)
 Sets the domain value range.
void setWidth (double width)
 Sets the width in pixels to be mapped the range into.
void setMinGap (double minGap)
 Sets the minimum phisical space in pixels between between marks.
double markOffset () const
double markGap () const
void update () const
double tickValue (unsigned i) const
 Returns the domain value corresponding to tick i.
double pixelTickPos (unsigned i) const
 Returns the pixel position of tick i.
double toPixel (double value) const
unsigned nTicks () const

Detailed Description

Definition at line 23 of file RulerTicks.hxx.


Constructor & Destructor Documentation

CLAM::RulerTicks::RulerTicks (  )  [inline]

Definition at line 35 of file RulerTicks.hxx.


Member Function Documentation

double CLAM::RulerTicks::markGap (  )  const [inline]

Definition at line 71 of file RulerTicks.hxx.

References update().

double CLAM::RulerTicks::markOffset (  )  const [inline]

Definition at line 66 of file RulerTicks.hxx.

References update().

unsigned CLAM::RulerTicks::nTicks (  )  const [inline]

Definition at line 123 of file RulerTicks.hxx.

References update().

double CLAM::RulerTicks::pixelTickPos ( unsigned  i  )  const [inline]

Returns the pixel position of tick i.

Definition at line 113 of file RulerTicks.hxx.

References tickValue(), and toPixel().

void CLAM::RulerTicks::setMinGap ( double  minGap  )  [inline]

Sets the minimum phisical space in pixels between between marks.

Definition at line 61 of file RulerTicks.hxx.

void CLAM::RulerTicks::setRange ( double  min,
double  max 
) [inline]

Sets the domain value range.

Definition at line 46 of file RulerTicks.hxx.

References CLAM_ASSERT.

void CLAM::RulerTicks::setWidth ( double  width  )  [inline]

Sets the width in pixels to be mapped the range into.

Definition at line 54 of file RulerTicks.hxx.

References CLAM_ASSERT.

double CLAM::RulerTicks::tickValue ( unsigned  i  )  const [inline]

Returns the domain value corresponding to tick i.

Definition at line 107 of file RulerTicks.hxx.

References update().

Referenced by pixelTickPos().

double CLAM::RulerTicks::toPixel ( double  value  )  const [inline]

Definition at line 118 of file RulerTicks.hxx.

Referenced by pixelTickPos().

void CLAM::RulerTicks::update (  )  const [inline]

Definition at line 76 of file RulerTicks.hxx.

Referenced by markGap(), markOffset(), nTicks(), and tickValue().


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.3