Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

AxisModelLinear Class Reference

#include <AxisModelLinear.h>

Inheritance diagram for AxisModelLinear:

Inheritance graph
[legend]
Collaboration diagram for AxisModelLinear:

Collaboration graph
[legend]
List of all members.

Detailed Description

Given a range, calculates a model for an axis with a linear scale.

Requests:
On log scale, the labels should be 10^1, 10^2, etc.

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

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

Oded Wurman <oded@slac.stanford.edu>

Definition at line 27 of file AxisModelLinear.h.

Public Member Functions

virtual const RangeadjustLogValues ()
 Adjusts the range for nice logging.
virtual const RangeadjustValues (const Range &)
 Sets the number of minor ticks that are between the major ones.
 AxisModelLinear (const AxisModelBase &axis_model)
 The copy-like constructor allows conversion from the log axis model.
 AxisModelLinear (AxisLoc label, AxisLoc scale)
 The constructor sets the location of the ticks, labels, and scale.
virtual Range calcHigh (int parm, bool dragging=false)
virtual Range calcLow (int parm, bool dragging=false)
virtual AxisModelBaseclone () const
 The clone function returns an object of its own kind which is a copy of this object at this moment.
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 to the 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
 Returns false because this class represents a linear scale.
bool isScaling () const
 Returns true if the axis is being scaled.
virtual bool needPMag () const
 Returns true if the labels generated for the ticks assume that the magnitude of the exponent will be displayed.
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.
 ~AxisModelLinear ()
 The 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.
bool m_use_pmag
 A flag to indicate that one will using scientific notation.


Constructor & Destructor Documentation

AxisModelLinear::AxisModelLinear AxisLoc  label,
AxisLoc  scale
 

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

Definition at line 40 of file AxisModelLinear.cxx.

Referenced by clone().

AxisModelLinear::AxisModelLinear const AxisModelBase axis_model  ) 
 

The copy-like constructor allows conversion from the log axis model.

Definition at line 46 of file AxisModelLinear.cxx.

AxisModelLinear::~AxisModelLinear  ) 
 

The destructor.

Definition at line 51 of file AxisModelLinear.cxx.


Member Function Documentation

const Range & AxisModelLinear::adjustLogValues  )  [virtual]
 

Adjusts the range for nice logging.

Implements AxisModelBase.

Definition at line 170 of file AxisModelLinear.cxx.

References AxisModelBase::getRange().

Referenced by adjustValues().

const Range & AxisModelLinear::adjustValues const Range  )  [virtual]
 

Sets the number of minor ticks that are between the major ones.

Implements AxisModelBase.

Definition at line 77 of file AxisModelLinear.cxx.

References std::abs(), adjustLogValues(), AxisModelBase::getRange(), Range::high(), std::log10(), Range::low(), AxisModelBase::m_range, Range::pos(), std::pow(), AxisModelBase::setIntersectRange(), and AxisModelBase::setRange().

Range AxisModelLinear::calcHigh int  parm,
bool  dragging = false
[virtual]
 

Todo:
We will have to put a check here to keep it from hitting a length of 0.

Implements AxisModelBase.

Definition at line 196 of file AxisModelLinear.cxx.

References Range::high(), Range::length(), Range::low(), AxisModelBase::m_range, AxisModelBase::m_start_range, std::max(), Range::pos(), and AxisModelBase::startDragging().

Range AxisModelLinear::calcLow int  parm,
bool  dragging = false
[virtual]
 

Todo:
We will have to put a check here to keep it from hitting a length of 0.

Implements AxisModelBase.

Definition at line 178 of file AxisModelLinear.cxx.

References Range::high(), Range::length(), Range::low(), AxisModelBase::m_range, AxisModelBase::m_start_range, std::min(), Range::pos(), and AxisModelBase::startDragging().

AxisModelBase * AxisModelLinear::clone  )  const [virtual]
 

The clone function returns an object of its own kind which is a copy of this object at this moment.

Implements AxisModelBase.

Definition at line 56 of file AxisModelLinear.cxx.

References AxisModelLinear().

double AxisModelBase::getFirstTick  )  const [inherited]
 

Returns the value for the first tick step.

Definition at line 87 of file AxisModelBase.cxx.

References AxisModelBase::m_first_tick.

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

AxisLoc AxisModelBase::getLabelLocation  )  const [inherited]
 

Definition at line 127 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 AxisModelBase::getMaxTicks  )  const [inherited]
 

Returns the value for maximum number of ticks.

Definition at line 92 of file AxisModelBase.cxx.

References AxisModelBase::m_max_ticks.

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

double AxisModelBase::getPMag  )  const [inherited]
 

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

Definition at line 112 of file AxisModelBase.cxx.

References AxisModelBase::m_pmag.

Referenced by LogTransform::adjustValues(), AxisRepBase::drawXTickLabels(), AxisRepBase::drawYMag(), AxisRepColor::drawZTickLabels(), LinearTransform::genTicks(), Lambert::genTicks(), HammerAito::genTicks(), and LogTransform::setFirstTick().

const Range & AxisModelBase::getRange bool  scaled  )  const [inherited]
 

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 231 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(), adjustLogValues(), LogTransform::adjustValues(), LinearTransform::adjustValues(), AxisModelLog::adjustValues(), adjustValues(), FunctionProjector::dataRangeOn(), AxisRepBase::drawGridLines(), AxisRepBase::drawXTickLabels(), AxisRepBase::drawXTickLines(), AxisRepBase::drawYTickLabels(), AxisRepBase::drawYTickLines(), LogTransform::genTicks(), LinearTransform::genTicks(), Lambert::genTicks(), HammerAito::genTicks(), DyHist1DProjector::getAverage(), ProjectorBase::getRange(), CompositePlotter::getRange(), Map3Projector::getZValue(), NTupleProjector::inRange(), MapMatrixProjector::inRange(), Map1Projector::inRange(), FunctionProjector::prepareAxis(), CompositePlotter::prepareToDraw(), CompositePlotter::processReturnValue(), AxisModelXML::setAttributes(), FunctionProjector::setAxisModel(), LogTransform::setFirstTick(), LinearTransform::setFirstTick(), Lambert::setFirstTick(), HammerAito::setFirstTick(), ProfileProjector::setRange(), Profile2DProjector::setRange(), Hist2DProjImp::setRange(), Hist1DProjImp::setRange(), FunctionProjector::setRange(), CompositePlotter::setRangePrivate(), LogTransform::setTickStep(), LinearTransform::setTickStep(), Lambert::setTickStep(), HammerAito::setTickStep(), and AxisModelLog::setTickStep().

double AxisModelBase::getRMag  )  const [inherited]
 

Sets the magnitude of the range.

Definition at line 102 of file AxisModelBase.cxx.

References AxisModelBase::m_rmag.

Referenced by LinearTransform::genTicks(), Lambert::genTicks(), and HammerAito::genTicks().

double AxisModelBase::getScaleFactor  )  const [inherited]
 

Returns the scale factor.

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

See also:
m_scale_factor.

Definition at line 262 of file AxisModelBase.cxx.

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

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

AxisLoc AxisModelBase::getScaleLocation  )  const [inherited]
 

Definition at line 132 of file AxisModelBase.cxx.

References AxisModelBase::m_scale_location.

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

const vector< AxisTick > & AxisModelBase::getTicks  )  const [inherited]
 

Returns a reference to the generated ticks.

Definition at line 159 of file AxisModelBase.cxx.

References AxisModelBase::m_ticks.

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

double AxisModelBase::getTickStep  )  const [inherited]
 

Returns the tick step in the true coordinate system.

It may be scaled internally.

Definition at line 77 of file AxisModelBase.cxx.

References AxisModelBase::m_tick_step.

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

bool AxisModelBase::isAutoRanging  )  const [inherited]
 

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

Definition at line 251 of file AxisModelBase.cxx.

References AxisModelBase::m_auto_range.

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

bool AxisModelBase::isAutoTicks  )  const [inherited]
 

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

Definition at line 146 of file AxisModelBase.cxx.

References AxisModelBase::m_auto_ticks.

Referenced by AxisModelXML::setAttributes().

bool AxisModelLinear::isLog  )  const [virtual]
 

Returns false because this class represents a linear scale.

Implements AxisModelBase.

Definition at line 66 of file AxisModelLinear.cxx.

bool AxisModelBase::isScaling  )  const [inherited]
 

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 269 of file AxisModelBase.cxx.

References AxisModelBase::m_scaling_on.

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

bool AxisModelLinear::needPMag  )  const [virtual]
 

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 from AxisModelBase.

Definition at line 71 of file AxisModelLinear.cxx.

References AxisModelBase::m_use_pmag.

void AxisModelBase::setAutoRanging bool  flag  )  [inherited]
 

Sets the auto-ranging flag to flag.

Definition at line 246 of file AxisModelBase.cxx.

References AxisModelBase::m_auto_range.

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

void AxisModelBase::setAutoTicks bool  yes  )  [inherited]
 

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

Definition at line 139 of file AxisModelBase.cxx.

References AxisModelBase::m_auto_ticks.

void AxisModelBase::setEmpty  )  [inherited]
 

Sets the range to empty.

Definition at line 226 of file AxisModelBase.cxx.

References AxisModelBase::m_empty.

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

void AxisModelBase::setFirstTick const double &  first_tick  )  [inherited]
 

Sets the value for first tick step.

Definition at line 82 of file AxisModelBase.cxx.

References AxisModelBase::m_first_tick.

Referenced by LogTransform::setFirstTick(), LinearTransform::setFirstTick(), Lambert::setFirstTick(), and HammerAito::setFirstTick().

void AxisModelBase::setIntersectRange const Range ,
const Range
[inherited]
 

Sets the Range to overlap of the two ranges.

Definition at line 200 of file AxisModelBase.cxx.

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

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

void AxisModelBase::setPMag const double &  pmag  )  [inherited]
 

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

Definition at line 107 of file AxisModelBase.cxx.

References AxisModelBase::m_pmag.

Referenced by LogTransform::setTickStep(), LinearTransform::setTickStep(), Lambert::setTickStep(), and HammerAito::setTickStep().

void AxisModelBase::setRange const Range ,
bool  scaled = false
[inherited]
 

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 171 of file AxisModelBase.cxx.

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

void AxisModelBase::setRange double  low,
double  high,
double  pos
[inherited]
 

Sets the Range to the low and high values.

Definition at line 165 of file AxisModelBase.cxx.

References AxisModelBase::m_range, Range::setRange(), and std::swap().

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

void AxisModelBase::setRangePos double   )  [inherited]
 

The function which changes the pos member of m_range.

Definition at line 208 of file AxisModelBase.cxx.

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

Referenced by DisplayController::setAxisModel().

void AxisModelBase::setRMag const double &  rmag  )  [inherited]
 

Sets the magnitude of the range.

Definition at line 97 of file AxisModelBase.cxx.

References AxisModelBase::m_rmag.

Referenced by LogTransform::setTickStep(), LinearTransform::setTickStep(), Lambert::setTickStep(), and HammerAito::setTickStep().

void AxisModelBase::setScaleFactor double   )  [inherited]
 

Sets the value of the scale factor.

Definition at line 256 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 AxisModelBase::setScaling bool  on = true  )  [inherited]
 

Sets axis scaling on if on is true.

Definition at line 274 of file AxisModelBase.cxx.

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

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

void AxisModelBase::setTicks const std::vector< AxisTick > &  ticks  )  [inherited]
 

Sets the ticks for plotting.

Definition at line 153 of file AxisModelBase.cxx.

References AxisModelBase::m_ticks.

void AxisModelBase::setTickStep const double &  t_step  )  [inherited]
 

Sets the tick step.

Definition at line 72 of file AxisModelBase.cxx.

References AxisModelBase::m_tick_step.

Referenced by LogTransform::setTickStep(), LinearTransform::setTickStep(), Lambert::setTickStep(), and HammerAito::setTickStep().

void AxisModelBase::setUnionRange const Range range  )  [inherited]
 

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 214 of file AxisModelBase.cxx.

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

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

void AxisModelBase::setUsePMag const bool &  use_p_mag  )  [virtual, inherited]
 

Use to set the value of the member variable m_use_pmag.

Definition at line 122 of file AxisModelBase.cxx.

References AxisModelBase::m_use_pmag.

Referenced by LinearTransform::genTicks(), Lambert::genTicks(), and HammerAito::genTicks().

void AxisModelBase::startDragging bool  dragging  )  [protected, inherited]
 

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

Definition at line 280 of file AxisModelBase.cxx.

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

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


Member Data Documentation

bool AxisModelBase::m_auto_range [protected, inherited]
 

The auto-range flag.

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

Definition at line 51 of file AxisModelBase.h.

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

bool AxisModelBase::m_auto_ticks [protected, inherited]
 

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

Definition at line 103 of file AxisModelBase.h.

Referenced by AxisModelBase::isAutoTicks(), and AxisModelBase::setAutoTicks().

bool AxisModelBase::m_empty [protected, inherited]
 

A flag to indicate whether the range is empty.

Definition at line 54 of file AxisModelBase.h.

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

double AxisModelBase::m_first_tick [protected, inherited]
 

The position of the first tick.

Todo:
Maybe it is not needed.

Definition at line 68 of file AxisModelBase.h.

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

bool AxisModelBase::m_is_dragging [protected, inherited]
 

The current dragging state.

Definition at line 47 of file AxisModelBase.h.

Referenced by AxisModelBase::startDragging().

AxisLoc AxisModelBase::m_label_location [protected, inherited]
 

Definition at line 81 of file AxisModelBase.h.

Referenced by AxisModelBase::getLabelLocation().

const int AxisModelBase::m_max_ticks [protected, inherited]
 

The maximum number of ticks.

Definition at line 75 of file AxisModelBase.h.

Referenced by AxisModelBase::getMaxTicks().

int AxisModelBase::m_num_minor_ticks [protected, inherited]
 

Definition at line 79 of file AxisModelBase.h.

double AxisModelBase::m_pmag [protected, inherited]
 

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 86 of file AxisModelBase.h.

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

Range AxisModelBase::m_range [protected, inherited]
 

The current range of the axis.

Definition at line 36 of file AxisModelBase.h.

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

double AxisModelBase::m_rmag [protected, inherited]
 

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

Definition at line 95 of file AxisModelBase.h.

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

double AxisModelBase::m_scale_factor [protected, inherited]
 

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 60 of file AxisModelBase.h.

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

AxisLoc AxisModelBase::m_scale_location [protected, inherited]
 

Definition at line 82 of file AxisModelBase.h.

Referenced by AxisModelBase::getScaleLocation().

Range AxisModelBase::m_scaled_range [mutable, protected, inherited]
 

The scaled range.

Definition at line 39 of file AxisModelBase.h.

Referenced by AxisModelBase::getRange().

bool AxisModelBase::m_scaling_on [protected, inherited]
 

If true, the axis is being scaled.

Definition at line 63 of file AxisModelBase.h.

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

Range AxisModelBase::m_start_range [protected, inherited]
 

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 44 of file AxisModelBase.h.

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

double AxisModelBase::m_tick_step [protected, inherited]
 

The distance between two consecutive ticks.

It has been scaled by the scale factor.

Definition at line 72 of file AxisModelBase.h.

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

std::vector<AxisTick> AxisModelBase::m_ticks [protected, inherited]
 

The list of generated ticks.

Definition at line 98 of file AxisModelBase.h.

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

bool AxisModelBase::m_use_pmag [protected, inherited]
 

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 91 of file AxisModelBase.h.

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


The documentation for this class was generated from the following files:
Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3