AxisModelBase Class Reference

#include <AxisModelBase.h>

Inheritance diagram for AxisModelBase:

Inheritance graph
AxisModelLinearAxisModelLog
[legend]
Collaboration diagram for AxisModelBase:

Collaboration graph
Range
[legend]

List of all members.


Detailed Description

The AxisModelBase class maintains the Range and scaling of an axis.

Author:
Stephane Bonneaud <gandalf@slac.stanford.edu>

Kaustuv <kaustuv@stanford.edu>

Paul F. Kunz <Paul_Kunz@slac.stanford.edu>

Sanket Malde <sanket@stanford.edu>

Oded Wurman <owurman@stanford.edu>

Definition at line 33 of file AxisModelBase.h.


Public Member Functions

virtual const RangeadjustLogValues ()=0
 Adjust the range for nice logging.
void adjustTicks ()
 Adjust ticks in non_auto_tick mode.
virtual const RangeadjustValues (const Range &limit)=0
 Adjusts the range on the axis to nice values within the Range limit.
 AxisModelBase (const AxisModelBase &axis_model)
 The copy constructor.
 AxisModelBase (AxisLoc label, AxisLoc scale)
 The constructor sets the location of the ticks, labels, and scale.
virtual Range calcHigh (int parm, bool dragging=false)=0
 Sets the high end of the Range and returns the new Range.
virtual Range calcLow (int parm, bool dragging=false)=0
 Sets the low end of the Range and returns the new Range.
virtual AxisModelBaseclone () const =0
 Returns a copy of the object.
double getFirstTick () const
 Returns the value for the first tick step.
AxisLoc getLabelLocation () const
double getMaxTicks () const
 Returns the value for maximum number of ticks.
double getPMag () const
 Returns the magnitude of the power of ten for the tick labels.
const RangegetRange (bool scaled) const
 Returns the range represented by this AxisModel.
double getRMag () const
 Sets the magnitude of the range.
double getScaleFactor () const
 Returns the scale factor.
AxisLoc getScaleLocation () const
const std::vector
< AxisTick > & 
getTicks () const
 Returns a reference of generated ticks.
double getTickStep () const
 Returns the tick step in the true coordinate system.
bool isAutoRanging () const
 Returns true if auto-ranging is enabled; otherwise, returns false.
bool isAutoTicks () const
 Returns true if position of the ticks should be automatically generated.
virtual bool isLog () const =0
 Returns a boolean describing the type of the scale of the axis.
bool isScaling () const
 Returns true if the axis is being scaled.
virtual bool needPMag () const
 The following functions are used by the AxisRepBase * object.
void setAutoRanging (bool flag)
 Sets the auto-ranging flag to flag.
void setAutoTicks (bool yes)
 Sets flag to determine if tick positions should be automatically generated or not.
void setEmpty ()
 Sets the range to empty.
void setFirstTick (const double &first_tick)
 Sets the value for first tick step.
void setIntersectRange (const Range &, const Range &)
 Sets the Range to overlap of the two ranges.
void setPMag (const double &pmag)
 Sets the magnitude of the power of ten for the tick labels.
void setRange (const Range &, bool scaled=false)
 The function which changes the m_range member.
void setRange (double low, double high, double pos)
 Sets the Range to the low and high values.
void setRangePos (double)
 The function which changes the pos member of m_range.
void setRMag (const double &rmag)
 Sets the magnitude of the range.
void setScaleFactor (double)
 Sets the value of the scale factor.
void setScaling (bool on=true)
 Sets axis scaling on if on is true.
void setTicks (const std::vector< AxisTick > &ticks)
 Sets the ticks for plotting.
void setTickStep (const double &t_step)
 Sets the tick step.
void setUnionRange (const Range &range)
 Sets the range to be the union of the existing range and range.
virtual void setUsePMag (const bool &use_p_mag)
 Use to set the value of the member variable m_use_pmag.
virtual ~AxisModelBase ()
 The virtual destructor.

Protected Member Functions

void startDragging (bool dragging)
 Sets the member m_start_dragging to the current range if dragging is starting.

Protected Attributes

bool m_auto_range
 The auto-range flag.
bool m_auto_ticks
 A flag set to true if ticks are being automatically generated.
bool m_empty
 A flag to indicate whether the range is empty.
double m_first_tick
 The position of the first tick.
bool m_is_dragging
 The current dragging state.
AxisLoc m_label_location
const int m_max_ticks
 The maximum number of ticks.
int m_num_minor_ticks
double m_pmag
 The value of the power of ten to be used to multiply the tick labels.
Range m_range
 The current range of the axis.
double m_rmag
 The value of the power of ten of the range to be used to determine how many decimal places are needed.
double m_scale_factor
 The scale factor.
AxisLoc m_scale_location
Range m_scaled_range
 The scaled range.
bool m_scaling_on
 If true, the axis is being scaled.
Range m_start_range
 The starting range before start of dragging events.
double m_tick_step
 The distance between two consecutive ticks.
std::vector< AxisTickm_ticks
 The list of generated ticks.
std::vector< AxisTickm_ticks_in_range
 Only work for non auto_ticks.
bool m_use_pmag
 A flag to indicate that one will using scientific notation.

Constructor & Destructor Documentation

AxisModelBase ( AxisLoc  label,
AxisLoc  scale 
)

The constructor sets the location of the ticks, labels, and scale.

Definition at line 29 of file AxisModelBase.cxx.

AxisModelBase ( const AxisModelBase axis_model  ) 

The copy constructor.

Definition at line 50 of file AxisModelBase.cxx.

~AxisModelBase (  )  [virtual]

The virtual destructor.

Definition at line 72 of file AxisModelBase.cxx.


Member Function Documentation

virtual const Range& adjustLogValues (  )  [pure virtual]

Adjust the range for nice logging.

Implemented in AxisModelLinear, and AxisModelLog.

Referenced by AxisModelBase::setRange().

void adjustTicks (  ) 

Adjust ticks in non_auto_tick mode.

This method should be called whenever m_range or m_ticks is changed AND m_auto_tick is false.

Definition at line 174 of file AxisModelBase.cxx.

References Range::high(), Range::low(), AxisModelBase::m_range, AxisModelBase::m_ticks, AxisModelBase::m_ticks_in_range, and num_util::size().

Referenced by AxisModelBase::setAutoTicks(), AxisModelBase::setRange(), and AxisModelBase::setTicks().

virtual const Range& adjustValues ( const Range limit  )  [pure virtual]

Adjusts the range on the axis to nice values within the Range limit.

Implemented in AxisModelLinear, and AxisModelLog.

virtual Range calcHigh ( int  parm,
bool  dragging = false 
) [pure virtual]

Sets the high end of the Range and returns the new Range.

The parameter parm should be in the range 0 to 100. A value of 0 will high end of the range to the low end, while a value of 100 will leave the value unchanged. A derived class will interpret the values in between so that the appearance is linear.

Implemented in AxisModelLinear, and AxisModelLog.

Referenced by CompositePlotter::setHighRange().

virtual Range calcLow ( int  parm,
bool  dragging = false 
) [pure virtual]

Sets the low end of the Range and returns the new Range.

The parameter parm should be in the range 0 to 100. A value of 0 will leave the low end of the range unchanged, while a value of 100 will set it to value of the high. A derived class will interpret the values in between so that the appearance is linear.

Implemented in AxisModelLinear, and AxisModelLog.

Referenced by CompositePlotter::setLowRange().

virtual AxisModelBase* clone (  )  const [pure virtual]

Returns a copy of the object.

Implemented in AxisModelLinear, and AxisModelLog.

Referenced by CompositePlotter::CompositePlotter().

double getFirstTick (  )  const

Returns the value for the first tick step.

Definition at line 91 of file AxisModelBase.cxx.

References AxisModelBase::m_first_tick.

Referenced by PeriodicBinaryTransform::genTicks(), LogTransform::genTicks(), and LinearTransform::genTicks().

AxisLoc getLabelLocation (  )  const

Definition at line 131 of file AxisModelBase.cxx.

References AxisModelBase::m_label_location.

Referenced by PlotterBaseXML::createAxisModels(), AxisRepBase::drawXLabels(), AxisRepBase::drawXTickLines(), AxisRepBase::drawYLabels(), AxisRepBase::drawYTickLines(), AxisRepColor::drawZTickLines(), and AxisRepBase::setYFontSize().

double getMaxTicks (  )  const

Returns the value for maximum number of ticks.

Definition at line 96 of file AxisModelBase.cxx.

References AxisModelBase::m_max_ticks.

Referenced by LogTransform::genTicks(), and LinearTransform::genTicks().

double getPMag (  )  const

Returns the magnitude of the power of ten for the tick labels.

Definition at line 116 of file AxisModelBase.cxx.

References AxisModelBase::m_pmag.

Referenced by LogTransform::adjustValues(), AxisRepBase::drawXLabels(), AxisRepBase::drawXMag(), AxisRepBase::drawYLabels(), AxisRepBase::drawYMag(), AxisRepColor::drawZTickLabels(), PeriodicBinaryTransform::genTicks(), LinearTransform::genTicks(), and LogTransform::setFirstTick().

const Range & getRange ( bool  scaled  )  const

Returns the range represented by this AxisModel.

The range is multiplied by the scale factor if scaled is true.

Todo:
Really should have separate function, getScaledRange, so at the calling point it would be clear.

Definition at line 265 of file AxisModelBase.cxx.

References Range::high(), Range::low(), AxisModelBase::m_range, AxisModelBase::m_scale_factor, and AxisModelBase::m_scaled_range.

Referenced by LogTransform::adjustLogValues(), AxisModelLog::adjustLogValues(), AxisModelLinear::adjustLogValues(), LogTransform::adjustValues(), LinearTransform::adjustValues(), AxisModelLog::adjustValues(), AxisModelLinear::adjustValues(), AxisRepBase::drawGridLines(), AxisRepBase::drawXTickLabels(), AxisRepBase::drawXTickLines(), AxisRepBase::drawYTickLabels(), AxisRepBase::drawYTickLines(), PeriodicBinaryTransform::genTicks(), LogTransform::genTicks(), LinearTransform::genTicks(), DyHist1DProjector::getAverage(), ProjectorBase::getRange(), CompositePlotter::getRange(), Map3Projector::getZValue(), NTupleProjector::inRange(), Map1Projector::inRange(), MapMatrixProjector::inRangeWithZ(), CompositePlotter::prepareToDraw(), CompositePlotter::processReturnValue(), AxisModelXML::setAttributes(), PeriodicBinaryTransform::setFirstTick(), LogTransform::setFirstTick(), LinearTransform::setFirstTick(), ProfileProjector::setRange(), Profile2DProjector::setRange(), Hist2DProjImp::setRange(), Hist1DProjImp::setRange(), CompositePlotter::setRangePrivate(), PeriodicBinaryTransform::setTickStep(), LogTransform::setTickStep(), LinearTransform::setTickStep(), and AxisModelLog::setTickStep().

double getRMag (  )  const

Sets the magnitude of the range.

Definition at line 106 of file AxisModelBase.cxx.

References AxisModelBase::m_rmag.

Referenced by PeriodicBinaryTransform::genTicks(), and LinearTransform::genTicks().

double getScaleFactor (  )  const

Returns the scale factor.

Returns the scale factor if isScaling returns true, otherwise returns 1.0.

See also:
m_scale_factor.

Definition at line 296 of file AxisModelBase.cxx.

References AxisModelBase::m_scale_factor, and AxisModelBase::m_scaling_on.

Referenced by LogTransform::adjustValues(), PeriodicBinaryTransform::genTicks(), LogTransform::genTicks(), LinearTransform::genTicks(), StHist1DProjector::getAverage(), CompositePlotter::processReturnValue(), AxisModelXML::setAttributes(), ContourPointRep::setContourValues(), PeriodicBinaryTransform::setTickStep(), and LinearTransform::setTickStep().

AxisLoc getScaleLocation (  )  const

Definition at line 136 of file AxisModelBase.cxx.

References AxisModelBase::m_scale_location.

Referenced by PlotterBaseXML::createAxisModels(), AxisRepBase::drawReferencePoint(), AxisRepBase::drawXTickLabels(), AxisRepBase::drawYMag(), AxisRepBase::setXFontSize(), AxisRepBase::setYFontSize(), and AxisRepBase::setZFontSize().

const vector< AxisTick > & getTicks (  )  const

Returns a reference of generated ticks.

If in non_auto_ticks mode, return only ticks in range.

Definition at line 165 of file AxisModelBase.cxx.

References AxisModelBase::m_auto_ticks, AxisModelBase::m_ticks, and AxisModelBase::m_ticks_in_range.

Referenced by AxisModelXML::createChildren(), AxisRepBase::drawGridLines(), AxisRepBase::drawXLabels(), AxisRepBase::drawXTickLabels(), AxisRepBase::drawXTickLines(), AxisRepBase::drawYLabels(), AxisRepBase::drawYTickLabels(), AxisRepBase::drawYTickLines(), AxisRepColor::drawZTickLabels(), AxisRepColor::drawZTickLines(), and AxisRepBase::setYFontSize().

double getTickStep (  )  const

Returns the tick step in the true coordinate system.

It may be scaled internally.

Definition at line 81 of file AxisModelBase.cxx.

References AxisModelBase::m_tick_step.

Referenced by PeriodicBinaryTransform::genTicks(), LogTransform::genTicks(), LinearTransform::genTicks(), LogTransform::nextStep(), AxisModelLog::nextStep(), LogTransform::prevStep(), AxisModelLog::prevStep(), and LinearTransform::setFirstTick().

bool isAutoRanging (  )  const

Returns true if auto-ranging is enabled; otherwise, returns false.

Definition at line 285 of file AxisModelBase.cxx.

References AxisModelBase::m_auto_range.

Referenced by CompositePlotter::autoScale(), CompositePlotter::isAutoRanging(), and AxisModelXML::setAttributes().

bool isAutoTicks (  )  const

Returns true if position of the ticks should be automatically generated.

Definition at line 151 of file AxisModelBase.cxx.

References AxisModelBase::m_auto_ticks.

Referenced by AxisModelXML::setAttributes().

virtual bool isLog (  )  const [pure virtual]

Returns a boolean describing the type of the scale of the axis.

False for the linear scale and true for the logarithmic one.

Implemented in AxisModelLinear, and AxisModelLog.

Referenced by CompositePlotter::autoScaleZ(), AxisRepBase::drawXTickLabels(), AxisRepBase::drawYTickLabels(), AxisRepColor::drawZTickLabels(), AxisModelXML::setAttributes(), DisplayController::setAxisModel(), DisplayController::setAxisModelWithoutSetBin(), DisplayController::setBinner(), ProfileProjector::setRange(), Profile2DProjector::setRange(), Hist2DProjImp::setRange(), Hist1DProjImp::setRange(), and AxisModelBase::setRange().

bool isScaling (  )  const

Returns true if the axis is being scaled.

Use this member instead of testing against 1.0 since 1.0 is a valid scale factor.

Definition at line 303 of file AxisModelBase.cxx.

References AxisModelBase::m_scaling_on.

Referenced by DyHist1DProjector::getYLabel(), and Hist2DProjImp::getZLabel().

bool needPMag (  )  const [virtual]

The following functions are used by the AxisRepBase * object.

They enable the user to access the member fields needed to do the actual drawing. What they are doing is pretty obvious, so no (or very little) documentation is added. Returns true if the labels generated for the ticks assume that the magnitude of the exponent will be displayed. The base class implementation returns false.

Reimplemented in AxisModelLinear.

Definition at line 121 of file AxisModelBase.cxx.

References AxisModelBase::m_use_pmag.

Referenced by AxisRepBase::drawXLabels(), AxisRepBase::drawXTickLabels(), AxisRepBase::drawYLabels(), AxisRepBase::drawYTickLabels(), and AxisRepColor::drawZTickLabels().

void setAutoRanging ( bool  flag  ) 

Sets the auto-ranging flag to flag.

Definition at line 280 of file AxisModelBase.cxx.

References AxisModelBase::m_auto_range.

Referenced by AxisModelXML::setAttributes(), CompositePlotter::setAutoRanging(), and CompositePlotter::setRangePrivate().

void setAutoTicks ( bool  yes  ) 

Sets flag to determine if tick positions should be automatically generated or not.

Definition at line 143 of file AxisModelBase.cxx.

References AxisModelBase::adjustTicks(), and AxisModelBase::m_auto_ticks.

void setEmpty (  ) 

Sets the range to empty.

Definition at line 260 of file AxisModelBase.cxx.

References AxisModelBase::m_empty.

Referenced by CompositePlotter::autoScaleZ(), and CompositePlotter::setAutoRanging().

void setFirstTick ( const double &  first_tick  ) 

Sets the value for first tick step.

Definition at line 86 of file AxisModelBase.cxx.

References AxisModelBase::m_first_tick.

Referenced by PeriodicBinaryTransform::setFirstTick(), LogTransform::setFirstTick(), and LinearTransform::setFirstTick().

void setIntersectRange ( const Range r1,
const Range r2 
)

Sets the Range to overlap of the two ranges.

Definition at line 234 of file AxisModelBase.cxx.

References AxisModelBase::m_range, and Range::setIntersect().

Referenced by LogTransform::adjustValues(), LinearTransform::adjustValues(), AxisModelLog::adjustValues(), AxisModelLinear::adjustValues(), and CompositePlotter::setRangePrivate().

void setPMag ( const double &  pmag  ) 

Sets the magnitude of the power of ten for the tick labels.

Definition at line 111 of file AxisModelBase.cxx.

References AxisModelBase::m_pmag.

Referenced by PeriodicBinaryTransform::setTickStep(), LogTransform::setTickStep(), and LinearTransform::setTickStep().

void setRange ( const Range range,
bool  scaled = false 
)

The function which changes the m_range member.

The only possible user is the plotter object. It sets the range equal to the range of the projector object.

Definition at line 199 of file AxisModelBase.cxx.

References AxisModelBase::adjustLogValues(), AxisModelBase::adjustTicks(), Range::high(), AxisModelBase::isLog(), Range::low(), AxisModelBase::m_auto_ticks, AxisModelBase::m_empty, AxisModelBase::m_range, AxisModelBase::m_scale_factor, and Range::pos().

void setRange ( double  low,
double  high,
double  pos 
)

Sets the Range to the low and high values.

Definition at line 191 of file AxisModelBase.cxx.

References AxisModelBase::adjustTicks(), AxisModelBase::m_auto_ticks, AxisModelBase::m_range, and Range::setRange().

Referenced by LogTransform::adjustLogValues(), AxisModelLog::adjustLogValues(), LinearTransform::adjustValues(), AxisModelLinear::adjustValues(), CompositePlotter::autoScaleZ(), CompositePlotter::prepareToDraw(), AxisModelXML::setAttributes(), Profile2DProjector::setOffset(), Hist2DProjImp::setOffset(), BinningProjector::setOffset(), ProfileProjector::setRange(), Profile2DProjector::setRange(), Hist2DProjImp::setRange(), Hist1DProjImp::setRange(), and CompositePlotter::setRangePrivate().

void setRangePos ( double  pos  ) 

The function which changes the pos member of m_range.

Definition at line 242 of file AxisModelBase.cxx.

References AxisModelBase::m_range, and Range::setPos().

Referenced by DisplayController::setAxisModel(), and DisplayController::setAxisModelWithoutSetBin().

void setRMag ( const double &  rmag  ) 

Sets the magnitude of the range.

Definition at line 101 of file AxisModelBase.cxx.

References AxisModelBase::m_rmag.

Referenced by PeriodicBinaryTransform::setTickStep(), LogTransform::setTickStep(), and LinearTransform::setTickStep().

void setScaleFactor ( double  sf  ) 

Sets the value of the scale factor.

Definition at line 290 of file AxisModelBase.cxx.

References AxisModelBase::m_scale_factor, and AxisModelBase::m_scaling_on.

Referenced by Hist2DProjImp::checkScaling(), Hist1DProjImp::checkScaling(), AxisModelXML::setAttributes(), and CompositePlotter::setScaleFactor().

void setScaling ( bool  on = true  ) 

Sets axis scaling on if on is true.

Definition at line 308 of file AxisModelBase.cxx.

References AxisModelBase::m_scale_factor, and AxisModelBase::m_scaling_on.

Referenced by Hist2DProjImp::checkScaling(), Hist1DProjImp::checkScaling(), and CompositePlotter::setScaling().

void setTicks ( const std::vector< AxisTick > &  ticks  ) 

Sets the ticks for plotting.

Definition at line 158 of file AxisModelBase.cxx.

References AxisModelBase::adjustTicks(), AxisModelBase::m_auto_ticks, and AxisModelBase::m_ticks.

void setTickStep ( const double &  t_step  ) 

Sets the tick step.

Definition at line 76 of file AxisModelBase.cxx.

References AxisModelBase::m_tick_step.

Referenced by PeriodicBinaryTransform::setTickStep(), LogTransform::setTickStep(), and LinearTransform::setTickStep().

void setUnionRange ( const Range range  ) 

Sets the range to be the union of the existing range and range.

If the current range is empty, then set the range to range.

Definition at line 248 of file AxisModelBase.cxx.

References AxisModelBase::m_empty, AxisModelBase::m_range, Range::setEmpty(), and Range::setUnion().

Referenced by CompositePlotter::autoScale(), and CompositePlotter::autoScaleZ().

void setUsePMag ( const bool &  use_p_mag  )  [virtual]

Use to set the value of the member variable m_use_pmag.

Definition at line 126 of file AxisModelBase.cxx.

References AxisModelBase::m_use_pmag.

Referenced by PeriodicBinaryTransform::genTicks(), and LinearTransform::genTicks().

void startDragging ( bool  dragging  )  [protected]

Sets the member m_start_dragging to the current range if dragging is starting.

Definition at line 314 of file AxisModelBase.cxx.

References AxisModelBase::m_is_dragging, AxisModelBase::m_range, and AxisModelBase::m_start_range.

Referenced by AxisModelLog::calcHigh(), AxisModelLinear::calcHigh(), AxisModelLog::calcLow(), and AxisModelLinear::calcLow().


Member Data Documentation

bool m_auto_range [protected]

The auto-range flag.

When set true, the range of the axis is set to include all projected values.

Definition at line 53 of file AxisModelBase.h.

Referenced by AxisModelBase::isAutoRanging(), and AxisModelBase::setAutoRanging().

bool m_auto_ticks [protected]

A flag set to true if ticks are being automatically generated.

Definition at line 108 of file AxisModelBase.h.

Referenced by AxisModelBase::getTicks(), AxisModelBase::isAutoTicks(), AxisModelBase::setAutoTicks(), AxisModelBase::setRange(), and AxisModelBase::setTicks().

bool m_empty [protected]

A flag to indicate whether the range is empty.

Definition at line 56 of file AxisModelBase.h.

Referenced by AxisModelBase::setEmpty(), AxisModelBase::setRange(), and AxisModelBase::setUnionRange().

double m_first_tick [protected]

The position of the first tick.

Todo:
Maybe it is not needed.

Definition at line 70 of file AxisModelBase.h.

Referenced by AxisModelBase::getFirstTick(), and AxisModelBase::setFirstTick().

bool m_is_dragging [protected]

The current dragging state.

Definition at line 49 of file AxisModelBase.h.

Referenced by AxisModelBase::startDragging().

AxisLoc m_label_location [protected]

Definition at line 83 of file AxisModelBase.h.

Referenced by AxisModelBase::getLabelLocation().

const int m_max_ticks [protected]

The maximum number of ticks.

Definition at line 77 of file AxisModelBase.h.

Referenced by AxisModelBase::getMaxTicks().

int m_num_minor_ticks [protected]

Definition at line 81 of file AxisModelBase.h.

double m_pmag [protected]

The value of the power of ten to be used to multiply the tick labels.

It has been scaled by the scale factor.

Definition at line 88 of file AxisModelBase.h.

Referenced by AxisModelLog::adjustValues(), AxisModelBase::getPMag(), AxisModelBase::setPMag(), and AxisModelLog::setTickStep().

Range m_range [protected]

The current range of the axis.

Definition at line 38 of file AxisModelBase.h.

Referenced by AxisModelLog::adjustLogValues(), AxisModelBase::adjustTicks(), AxisModelLog::adjustValues(), AxisModelLinear::adjustValues(), AxisModelLog::calcHigh(), AxisModelLinear::calcHigh(), AxisModelLog::calcLow(), AxisModelLinear::calcLow(), AxisModelBase::getRange(), AxisModelBase::setIntersectRange(), AxisModelBase::setRange(), AxisModelBase::setRangePos(), AxisModelBase::setUnionRange(), and AxisModelBase::startDragging().

double m_rmag [protected]

The value of the power of ten of the range to be used to determine how many decimal places are needed.

Definition at line 97 of file AxisModelBase.h.

Referenced by AxisModelBase::getRMag(), AxisModelBase::setRMag(), and AxisModelLog::setTickStep().

double m_scale_factor [protected]

The scale factor.

For normal displays, the value is 1.0. However, for something like histogram displays, the value will be the bin width. This is done so that instead of displaying the density ,the number of entries will be displayed.

Definition at line 62 of file AxisModelBase.h.

Referenced by AxisModelLog::adjustValues(), AxisModelBase::getRange(), AxisModelBase::getScaleFactor(), AxisModelBase::setRange(), AxisModelBase::setScaleFactor(), and AxisModelBase::setScaling().

AxisLoc m_scale_location [protected]

Definition at line 84 of file AxisModelBase.h.

Referenced by AxisModelBase::getScaleLocation().

Range m_scaled_range [mutable, protected]

The scaled range.

Definition at line 41 of file AxisModelBase.h.

Referenced by AxisModelBase::getRange().

bool m_scaling_on [protected]

If true, the axis is being scaled.

Definition at line 65 of file AxisModelBase.h.

Referenced by AxisModelBase::getScaleFactor(), AxisModelBase::isScaling(), AxisModelBase::setScaleFactor(), and AxisModelBase::setScaling().

Range m_start_range [protected]

The starting range before start of dragging events.

While dragging, the setLow or setHigh member functions use this Range value rather than the current value to set the new range.

Definition at line 46 of file AxisModelBase.h.

Referenced by AxisModelLog::calcHigh(), AxisModelLinear::calcHigh(), AxisModelLog::calcLow(), AxisModelLinear::calcLow(), and AxisModelBase::startDragging().

double m_tick_step [protected]

The distance between two consecutive ticks.

It has been scaled by the scale factor.

Definition at line 74 of file AxisModelBase.h.

Referenced by AxisModelBase::getTickStep(), AxisModelLog::setTickStep(), and AxisModelBase::setTickStep().

std::vector<AxisTick> m_ticks [protected]

The list of generated ticks.

Definition at line 100 of file AxisModelBase.h.

Referenced by AxisModelBase::adjustTicks(), AxisModelBase::getTicks(), and AxisModelBase::setTicks().

std::vector<AxisTick> m_ticks_in_range [protected]

Only work for non auto_ticks.

Return the ticks in range.

Definition at line 103 of file AxisModelBase.h.

Referenced by AxisModelBase::adjustTicks(), and AxisModelBase::getTicks().

bool m_use_pmag [protected]

A flag to indicate that one will using scientific notation.

That is the member m_pmag becomes significant in the display of the tick labels.

Definition at line 93 of file AxisModelBase.h.

Referenced by AxisModelLinear::needPMag(), AxisModelBase::needPMag(), and AxisModelBase::setUsePMag().


The documentation for this class was generated from the following files:
Generated for HippoDraw Class Library by doxygen