#include <CutPlotter.h>
Inheritance diagram for CutPlotter:
This class is an Observer of its target plots.
Definition at line 47 of file CutPlotter.h.
Public Types | |
typedef void(hippodraw::Observer::* | Action )(const Observable *) |
The member function of the Observer that is called. | |
typedef std::list< hippodraw::Observer * > | ObserverList_t |
The type of STL container to maintain list of Observer objects. | |
Public Member Functions | |
virtual int | activePlotIndex () const |
Returns the index of the active DataRep object. | |
virtual ProjectorBase * | activeProjector () const |
Returns the active projector. | |
void | addCutTarget (DataRep *) |
Adds a DataRep to the list of targeted. | |
virtual void | addDataRep (DataRep *rep) |
Adds the DataRep object to the plotter. | |
virtual void | addDataRepStacked (DataRep *rep) |
Adds the DataRep object to the plotter. | |
void | addObserver (hippodraw::Observer *) |
Adds an Observer to the Observer list. | |
virtual void | addValues (const std::vector< double > &v) |
Adds data values to the plot. | |
virtual void | autoScale () |
Sets the Range on each axis that has the auto range flag set to include all the data. | |
virtual void | checkAxisScaling () |
Check if Axis needs to be scaled or not. | |
void | clearCutTargets () |
Removes all cut targets. | |
PlotterBase * | clone () |
The clone function returns an object of its own kind which is a copy of this object at this moment. | |
virtual NTuple * | createNTuple () const |
Creates an NTuple representation of the plotted data. | |
virtual NTuple * | createPickTuple () |
Creates a NTuple for a PickTable. | |
int | currentView () const |
Return the current view index. | |
CutPlotter (const CutPlotter &plotter) | |
The copy constructor. | |
CutPlotter () | |
This default constructor. | |
void | deleteView (int index) |
Delete a view by index. | |
virtual void | drawCrossHairs (ViewBase *view) |
Draws cross-hairs. | |
virtual void | drawIn (ViewBase *view) |
Starts the drawing in view view . | |
virtual void | drawProjValues (ViewBase *view) |
Draws the projected values. | |
virtual bool | errorDisplay (hippodraw::Axes::Type axis) const |
Returns the state of error bar display on specified axis. | |
void | fillCutList (std::vector< const TupleCut * > &cuts) const |
Fills the cuts vector with the TupleCuts contained by the DataRep objects. | |
virtual void | fillPickedPoint (double mx, double my, std::vector< double > &picked) const |
Fills the picked data point. | |
virtual double | getAspectRatio () const |
Returns the aspect ratio. | |
virtual AxisModelBase * | getAxisModel (hippodraw::Axes::Type axis) const |
Returns the AxisModelBase derived class for the specified axis. | |
double | getBinWidth (const std::string &axis) const |
Returns the bin width. | |
virtual double | getBinWidth (hippodraw::Axes::Type) const |
Returns the bins with of the target DataRep object. | |
virtual bool | getCurrentRangeSaved () |
Returns current_range_saved member t. | |
const Color & | getCutColor () const |
Get the color of the accepted region. | |
const std::vector< TupleCut > & | getCuts () const |
Returns the list of TupleCut objects used by this plotter. | |
const std::list< DataRep * > & | getCutTargets () const |
Get the list of targets. | |
virtual DataRep * | getDataRep (int index) const |
Returns the DataRep object at index. | |
virtual double | getHighRangeOnX () const |
Returns the high end of the X axis range. | |
virtual const std::string & | getInternalLabel (hippodraw::Axes::Type axis) const |
Returns the internal label. | |
virtual const std::string & | getInternalTitle () const |
Returns the internal title. | |
virtual const std::string & | getLabel (hippodraw::Axes::Type) const |
Returns the label for the specified axis. | |
virtual double | getLowRangeOnX () const |
Returns the low end of the X axis range. | |
HippoRectangle | getMarginRect () const |
Returns the margin space where drawing takes place. | |
virtual int | getNumberOfEntries () const |
Returns the number of entries in the contained DataRep. | |
virtual int | getNumDataReps () const |
Returns the number of DataRep objects contained by the plotter. | |
int | getNumOfEntries () const |
Returns the number of entries in the contained DataRep. | |
const ObserverList_t & | getObservers () const |
Returns the list of observers. | |
double | getOffset (const std::string &axis) const |
Returns the offset on designated axis, similarly to getBinWidth. | |
virtual double | getOffset (hippodraw::Axes::Type axis) const |
Returns the offset on designated axis, similarly to getBinWidth. | |
virtual int | getParentDataRepIndex () const |
Returns the index of the parent DataRep. | |
virtual PlotterBase * | getParentPlotter () const |
Returns the parent plotter. | |
virtual double | getPosRange (hippodraw::Axes::Type axis) const |
Returns the smallest positive number from the data. | |
virtual ProjectorBase * | getProjector (int i) const |
Returns the i-th projector. | |
virtual const Range & | getRange (hippodraw::Axes::Type axis, bool scaled) const |
Returns the range on the specified axis. | |
virtual DataRep * | getTarget () const |
Returns the selected DataRep. | |
const std::string & | getTitle () const |
Gets the title to be displayed. | |
virtual TransformBase * | getTransform () const |
Returns the transform object used by the plotter. | |
const HippoRectangle & | getUserRect () const |
Returns the data space rectangle. | |
virtual const BinToColor * | getValueRep () const |
Returns the value to color representation. | |
virtual double | getZValue (double x, double y, bool scaled=true) const |
Get the z value at the specified point (x,y). | |
bool | hasAutoScaled () const |
Returns true if the axes have already been auto-scaled. | |
virtual bool | hasAxis (hippodraw::Axes::Type axis) const |
Returns true if the plotter has an axis of specified type. | |
virtual bool | hasNTupleBindings () const |
Returns true as a CutPlotter always has ntuple bindings. | |
virtual bool | hasZoomY () const |
Returns true if the plotter has zoom feature on the Y axis otherwise it returns false. | |
virtual int | indexOf (const DataRep *) const |
Returns the index of the selected DataRep object. | |
virtual bool | isAutoRanging (hippodraw::Axes::Type axis) const |
Returns true if auto-ranging is enabled, otherwise returns false . | |
bool | isTarget (DataRep *) const |
Returns true if specified DataRep is a target of this cut. | |
bool | isTargetable () const |
Returns true if receiving object is target-able. | |
FontBase * | labelFont (hippodraw::Axes::Type axes) const |
What font is being used to override the default while drawing axis label. | |
virtual double | marginToInvertedUserY (double y) const |
Converts from inverted view coordinate to data coordinate, without taking into account transforms or scaling. | |
virtual double | marginToUserX (double x) const |
Converts from view coordinate to data coordinate, without taking into account transforms or scaling. | |
virtual void | marginToUserXY (double mx, double my, bool scaled, double &ux, double &uy) const |
Converts from the drawing space to the data space. | |
virtual double | marginToUserY (double y) const |
Converts from view coordinate to data coordinate, without taking into account transforms or scaling. | |
virtual void | matrixTranspose (bool yes) |
Transpose the X and Y axis of matrix representation. | |
const std::string & | name () const |
Returns the name of the plotter. | |
int | nextView (bool stepForward=true) |
Cycle through each set of plot ranges, thereby changing the view with each call. | |
virtual void | notifyObservers () const |
Notifies Observer objects of a change. | |
int | numViews () const |
Return the number of stored views. | |
virtual int | plotterId () const |
The unique ID number of this plotter. | |
void | prepareMarginRect (ViewBase *view) |
Prepares the margin rectangle. | |
virtual void | removeDataRep (DataRep *rep) |
Removes the DataRep object from the plotter. | |
void | removeFromTarget (DataRep *rep) |
Remove this cut from one of its target rep. | |
void | removeObserver (hippodraw::Observer *) |
Removes an Observer from the Observer list. | |
virtual const Color & | repColor () const |
Returns the color used for the representation. | |
virtual RepBase * | representation () const |
Returns the representation used by the plotter. | |
virtual void | reset () |
Resets the bins. | |
int | saveView (const std::vector< double > &range_values) |
Save the current set of plot ranges which define a "view" for this plot. | |
int | saveViewAtIndex (const std::vector< double > &range_values, unsigned int i) |
Save the current set of plot ranges which define a "view" for this plot.at the position i. | |
virtual DataRep * | selectedDataRep () const |
Returns the selected DataRep. | |
void | setActive (bool yes) |
Sets the cut as active. | |
virtual void | setActivePlot (int index, bool redraw) |
Sets the active plot. | |
void | setAspectRatio (double ratio) |
Sets the aspect ratio. | |
virtual void | setAutoRanging (const std::string &axis, bool flag) |
Sets the auto-ranging. | |
virtual void | setAutoRanging (hippodraw::Axes::Type axis, bool flag) |
Sets the auto-ranging. | |
virtual void | setAutoRanging (bool flag) |
Sets the auto-ranging status for all axes to flag. | |
virtual void | setAutoTicks (const std::string &, bool on) |
Sets automatic ticks on or off. | |
virtual void | setAutoTicks (hippodraw::Axes::Type axis, bool yes) |
Sets automatic generation of axis ticks. | |
virtual void | setAutoTicksOnX (bool yes) |
Sets automatic generation of axis ticks on X axis. | |
virtual void | setAxisBinding (const std::string &axis, const std::string &label) |
Sets the axis binding of both the Cut and its DataRep. | |
virtual void | setAxisModel (AxisModelBase *, hippodraw::Axes::Type) |
Sets the AxisModel on the specified axis. | |
virtual void | setBinWidth (const std::string &axis, double width) |
Sets the bin width. | |
virtual void | setBinWidth (hippodraw::Axes::Type axis, double width) |
Sets the bin width. | |
void | setCrossX (double val) |
Set the crossX value. | |
void | setCrossY (double val) |
Set the crossY value. | |
virtual void | setCurrentRangeSaved (bool flag) |
Sets current_range_saved member to flag. | |
void | setCutColor (const Color &) |
Sets the color of the cut acceptance region. | |
virtual void | setCutEnabled (unsigned int i, bool yes=true) |
Sets the TupleCut object index by i to be enabled. | |
virtual void | setCutInverted (unsigned int i, bool yes=true) |
Sets the TupleCut object indexed by i to be inverted. | |
virtual void | setCutRange (double low, double high) |
Sets the Range on the X axis. | |
virtual void | setCutRangeAt (const Range &range, unsigned int index) |
Sets the Range of the cut. | |
virtual void | setCutRangeFull ()=0 |
Sets the cut Range to include the full range of data. | |
void | setCutRepresentation (RepBase *rep) |
Sets the cut representation. | |
void | setCuts (const std::vector< const TupleCut * > &cuts) |
Sets the TupleCut objects to be used by this plotter. | |
void | setEnabled (bool yes=true) |
Sets the state of the cut's enabled status. | |
virtual void | setEnableZ (bool yes=true) |
Sets the display of the Z axis on. | |
virtual void | setErrorDisplay (hippodraw::Axes::Type axis, bool) |
Sets the display of the error bars on or off. | |
virtual void | setHighRange (hippodraw::Axes::Type axis, int parm, bool dragging) |
Sets the high end of the Range of data displayed. | |
virtual void | setLabel (const std::string &axis, const std::string &label) |
Sets the label of specified axis to label. | |
virtual void | setLabel (hippodraw::Axes::Type, const std::string &value) |
Sets the label of the specified axis to value. | |
void | setLabelFont (FontBase *font, hippodraw::Axes::Type axes) |
Set the font to be used to override the default while drawing axis label. | |
virtual void | setLowRange (hippodraw::Axes::Type axis, int parm, bool dragging) |
Sets the low end of the Range of data displayed. | |
void | setNTuple (const DataSource *ntuple) |
Sets the ntuple for the Cut and its DataRep object. | |
virtual void | setNumberOfBins (const std::string &axis, unsigned int number) |
Sets the number of bins. | |
virtual void | setNumberOfBins (hippodraw::Axes::Type axis, unsigned int number) |
Sets the number of bins. | |
virtual void | setOffset (const std::string &axis, double offset) |
Sets the bin offset. | |
virtual void | setOffset (hippodraw::Axes::Type axis, double offset) |
Sets the offset. | |
virtual void | setOffsets (double xoffset, double yoffset) |
Sets the offsets on the x and y axis. | |
virtual void | setParentDataRepIndex (int index) |
Sets the index of the parent DataRep. | |
virtual void | setParentPlotter (PlotterBase *plotter) |
Sets the parent plotter. | |
void | setRange (const std::string &axis, double low, double high) |
Sets the range on the specified axis. | |
virtual void | setRange (hippodraw::Axes::Type axis, const Range &range, bool scaled=false, bool adjust_width=true) |
Sets the range on the specified axis. | |
virtual void | setRepColor (const Color &) |
Sets the representation's color. | |
virtual void | setRepresentation (RepBase *pointrep) |
Sets the representation. | |
virtual void | setScaling (hippodraw::Axes::Type axis, bool on=true) |
Sets the scaling attribute of the AxisModelBase object. | |
virtual void | setTicks (const std::string &axis, const std::vector< double > &values, const std::vector< std::string > &labels) |
Sets the ticks on specified axis. | |
virtual void | setTicks (hippodraw::Axes::Type axis, const std::vector< AxisTick > &ticks) |
Sets the ticks for the specified axis. | |
virtual void | setTicksOnX (const std::vector< double > &values, const std::vector< std::string > &labels) |
Sets the ticks for the X axis. | |
void | setTitle (const std::string &title) |
Sets the title to be displayed. | |
void | setTitleFont (FontBase *font) |
Set the font to be used to override the default while drawing title. | |
virtual void | setTransform (TransformBase *) |
Sets the transform object and redraws. | |
virtual void | setValueRep (BinToColor *rep) |
Sets the object that will do the value to color transform, if any. | |
void | setView (int index) |
Set the view by index. | |
const FontBase * | titleFont () const |
What font is being used to override the default while drawing title of plot. | |
void | toggleActivePlot () |
Toggles the active DataRep, if 2 or more are contained by the plotter. | |
virtual void | toggleInverted ()=0 |
Reverse the meaning of the cut Range on the give axis. | |
virtual void | update () |
Updates the plotter. | |
virtual void | update (const Observable *object) |
Responds to the update message from one of its Observable objects. | |
virtual float | userToInvertedMarginY (double y) const |
Converts the user Y coordinate into the top-left based margin Y coordinate. | |
virtual float | userToMarginColor (double c) const |
Converts the user Z coordinate into the margin color (X) coordinate. | |
virtual float | userToMarginX (double x) const |
Converts the user X coordinate into the margin X coordinate. | |
virtual float | userToMarginY (double y) const |
Converts the user Y coordinate into the margin Y coordinate. | |
virtual bool | wantsPixmap () const |
Returns true . | |
virtual void | willDelete (const Observable *observable) |
Responds to willDelete message emitted from one of the Observers. | |
virtual | ~CutPlotter () |
The destructor. | |
Protected Types | |
typedef std::list< DataRep * > | TargetList_t |
The STL container type used for targets of the cut. | |
Protected Member Functions | |
void | calcAxisRatios (const CompositePlotter *) |
Calculates the ratio of view and data scales. | |
CutPlotter (const std::string &name) | |
The constructor. | |
TupleCut * | getCutAt (unsigned int i) |
Returns the TupleCut object at position i. | |
void | notifyObservers (Action action) const |
An internal method to iterate over all observers and to send the message action. | |
void | removeFromTargets () |
Removes this cut from all of its targets. | |
void | updateTargets () |
Update the target DataRep when a change has been made in the TupleCut. | |
Protected Attributes | |
bool | current_range_saved |
Returns true if the current range on the axes have been saved. | |
double | m_aspect_ratio |
The aspect ratio. | |
AxisRepBase * | m_axis_rep |
The axes model graphical representation. | |
double | m_crossX |
The x position of the cross hair. | |
double | m_crossY |
The y position of the cross hair. | |
int | m_currentView |
Index of the current view. | |
DataRep * | m_datarep |
A pointer to the data representation that holds the cuts. | |
HippoRectangle | m_margin_rect |
The rectangle area in which the projected points are plotted. | |
std::string | m_name |
The name of the type of plotter. | |
int | m_parent_datarep_index |
Parent DataRep index. | |
PlotterBase * | m_parent_plotter |
Parent plotter. | |
CompositePlotter * | m_plotter |
The currently active plotter that draws the data points. | |
int | m_plotterId |
A unique plotter id. | |
TargetList_t | m_targets |
A list of DataRep objects which have this cut applied. | |
std::string | m_title |
The main label; the title of the plot. | |
HippoRectangle | m_user_rect |
The abstract data space. | |
std::vector< std::vector< double > > | m_views |
A vector of x and y ranges to be used as a circular buffer allowing one to cycle through the saved plot "views". | |
double | m_z_ratio |
The conversion ratio from the user coordinate system to the view's coordinate system along the color axis. | |
Static Protected Attributes | |
static int | s_plotters |
Reference count for creating plotter ids. |
|
The member function of the Observer that is called.
Definition at line 83 of file Observable.h. |
|
The type of STL container to maintain list of Observer objects.
Definition at line 46 of file Observable.h. |
|
The STL container type used for targets of the cut.
Definition at line 58 of file CutPlotter.h. |
|
The constructor.
Definition at line 49 of file CutPlotter.cxx. |
|
This default constructor.
|
|
The copy constructor.
Definition at line 54 of file CutPlotter.cxx. |
|
The destructor.
Definition at line 59 of file CutPlotter.cxx. References removeFromTargets(). |
|
Returns the index of the active DataRep object.
Reimplemented from PlotterBase. Definition at line 303 of file XyPlotter.cxx. References XyPlotter::m_active_index. |
|
Returns the active projector.
Reimplemented from PlotterBase. Definition at line 649 of file XyPlotter.cxx. References XyPlotter::m_plotter. Referenced by XyPlotter::createNTuple(). |
|
Adds a DataRep to the list of targeted.
Definition at line 215 of file CutPlotter.cxx. References Observable::addObserver(), and m_targets. Referenced by CutController::connectDataRep(), PlotterBaseXML::getCutTargets(), and CutController::linkCutAndRep(). |
|
Adds the DataRep object to the plotter. Adds the DataRep object to the plotter by sharing the current X and Y axes. Reimplemented from PlotterBase. Reimplemented in Cut1DPlotter, and Cut2DPlotter. Definition at line 310 of file XyPlotter.cxx. References Observable::addObserver(), XyPlotter::getNumDataReps(), XyPlotter::m_active_index, XyPlotter::m_plotter, and Observable::notifyObservers(). Referenced by Cut2DPlotter::addDataRep(), Cut1DPlotter::addDataRep(), and XyPlotter::addDataRepStacked(). |
|
Adds the DataRep object to the plotter. Adds the DataRep object to the plotter by sharing the current X axis, but with its own Y axis. Definition at line 324 of file XyPlotter.cxx. References XyPlotter::addDataRep(), XyPlotter::getAxisModel(), XyPlotter::m_active_index, XyPlotter::m_plotter, XyPlotter::m_plotters, Observable::notifyObservers(), XyPlotter::setAxisModel(), and hippodraw::Axes::X. |
|
Adds an Observer to the Observer list.
Definition at line 49 of file Observable.cxx. References Observable::m_list. Referenced by addCutTarget(), XyPlotter::addDataRep(), FunctionRep::FunctionRep(), BinningProjector::normalizeTo(), DataRepController::setAxisBindings(), DisplayController::setNTuple(), setNTuple(), and TextPlotter::setParentDataRep(). |
|
Adds data values to the plot. This method is provided as a convenience when the plotter contains a single DataRep that responds to addValues. For example a static histogram would respond to it. Reimplemented from PlotterBase. Definition at line 817 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Sets the Range on each axis that has the auto range flag set to include all the data. This function scrolls through all the points plotters, asking for their preferred ranges. It then sets the range to be the union of all of those. Reimplemented from PlotterBase. Definition at line 349 of file XyPlotter.cxx. References XyPlotter::m_plotter, and Observable::notifyObservers(). Referenced by XyPlotter::checkAutoScale(), and setAxisBinding(). |
|
Calculates the ratio of view and data scales. Calculates and set the appropriate data members the ratio of the view and data scales. Definition at line 580 of file XyPlotter.cxx. References HippoRectangle::getDepth(), HippoRectangle::getHeight(), HippoRectangle::getWidth(), XyPlotter::hasAxis(), PlotterBase::m_margin_rect, XyPlotter::m_plotter, PlotterBase::m_user_rect, XyPlotter::m_x_ratio, XyPlotter::m_y_ratio, XyPlotter::m_z_ratio, and hippodraw::Axes::Z. Referenced by XyPlotter::drawIn(), and XyPlotter::drawProjValues(). |
|
Check if Axis needs to be scaled or not.
Reimplemented from PlotterBase. Definition at line 633 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Removes all cut targets.
Definition at line 210 of file CutPlotter.cxx. References m_targets. |
|
The clone function returns an object of its own kind which is a copy of this object at this moment.
Implements PlotterBase. Reimplemented in Cut1DPlotter, and Cut2DPlotter. Definition at line 74 of file XyPlotter.cxx. References XyPlotter::XyPlotter(). Referenced by XyPlotter::XyPlotter(). |
|
Creates an NTuple representation of the plotted data. Derived classes should create a representation appropriate for their plotting. The NTuple should contain the coordinates, the error on the coordinates, the values and the error on the values. Implements PlotterBase. Definition at line 191 of file XyPlotter.cxx. References XyPlotter::activeProjector(), XyPlotter::getLabel(), XyPlotter::hasAxis(), XyPlotter::m_plotter, hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z. |
|
Creates a NTuple for a PickTable. Creates an NTuple appropriate for a PickTable for this plotter. For plotters derived from this class the first three column labels and subsequent labels are as follows
Reimplemented from PlotterBase. Definition at line 444 of file XyPlotter.cxx. References PlotterBase::getTitle(), XyPlotter::m_plotter, PlotterBase::name(), and PlotterBase::setTitle(). |
|
Return the current view index.
Definition at line 829 of file PlotterBase.cxx. References PlotterBase::m_currentView. Referenced by QtDisplay::currentView(). |
|
Delete a view by index.
Definition at line 812 of file PlotterBase.cxx. References PlotterBase::m_views, and PlotterBase::setView(). Referenced by QtDisplay::deleteView(). |
|
Draws cross-hairs. Draws cross-hairs at the mouse hot spot. The drawing is done at the X and Y position set by setCrossX and setCrossY. Reimplemented from PlotterBase. Definition at line 177 of file XyPlotter.cxx. References AxisRepBase::drawCrossHairs(), XyPlotter::getTransform(), XyPlotter::m_axis_rep, PlotterBase::m_crossX, and PlotterBase::m_crossY. |
|
Starts the drawing in view This is the initial method that is called. Implements PlotterBase. Definition at line 155 of file XyPlotter.cxx. References AxisRepBase::beginPlot(), XyPlotter::calcAxisRatios(), XyPlotter::checkAutoScale(), XyPlotter::drawProjValues(), AxisRepBase::drawTitle(), PlotterBase::getTitle(), XyPlotter::m_active_index, XyPlotter::m_axis_rep, XyPlotter::m_plotter, XyPlotter::m_plotters, PlotterBase::m_title, PlotterBase::m_user_rect, XyPlotter::prepareMarginRect(), and XyPlotter::prepareToDraw(). |
|
Draws the projected values.
This implementation invokes Definition at line 593 of file XyPlotter.cxx. References XyPlotter::calcAxisRatios(), and XyPlotter::m_plotters. Referenced by XyPlotter::drawIn(). |
|
Returns the state of error bar display on specified axis.
Implements PlotterBase. Definition at line 559 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Fills the cuts vector with the TupleCuts contained by the DataRep objects.
Reimplemented from PlotterBase. Definition at line 931 of file XyPlotter.cxx. References XyPlotter::m_plotters. Referenced by XyPlotter::getCutAt(). |
|
Fills the picked data point. Fills the vector picked with the picked data set. The vector will be cleared before insertion of coordinates. The resulting size of the vector depends on the type of DataRep in use and the contents is as follows.
Reimplemented from PlotterBase. Definition at line 459 of file XyPlotter.cxx. References XyPlotter::m_plotter, XyPlotter::marginToInvertedUserY(), and XyPlotter::marginToUserX(). |
|
Returns the aspect ratio. The aspect ratio is the ratio of the width to the height that should be used when drawing the plotter. If the aspect ratio has been set to a non-zero value, the return that ratio. Otherwise, return the aspect ratio preferred by the contained TransformBase object. Reimplemented from PlotterBase. Definition at line 496 of file XyPlotter.cxx. References PlotterBase::m_aspect_ratio, XyPlotter::m_plotters, and num_util::size(). Referenced by XyPlotter::prepareMarginRect(). |
|
Returns the AxisModelBase derived class for the specified axis.
Reimplemented from PlotterBase. Definition at line 538 of file XyPlotter.cxx. References XyPlotter::m_plotter. Referenced by XyPlotter::addDataRepStacked(), and XyPlotter::checkAutoScale(). |
|
Returns the bin width. The implementation in the base class converts the string to an hippodraw::Axes::Type and calls the virtual function getBinWidth ( hippodraw::Axes::Type );. It is declared as a convenience to the developer since bin width is a common attribute. Definition at line 428 of file PlotterBase.cxx. References hippodraw::Axes::convert(), PlotterBase::getBinWidth(), and num_util::type(). |
|
Returns the bins with of the target DataRep object.
Reimplemented from PlotterBase. Definition at line 766 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Returns current_range_saved member t.
Definition at line 857 of file PlotterBase.cxx. References PlotterBase::current_range_saved. |
|
Returns the TupleCut object at position i.
Definition at line 942 of file XyPlotter.cxx. References XyPlotter::fillCutList(). Referenced by XyPlotter::setCutEnabled(), XyPlotter::setCutInverted(), and XyPlotter::setCutRangeAt(). |
|
Get the color of the accepted region.
Definition at line 257 of file CutPlotter.cxx. References m_datarep. |
|
Returns the list of TupleCut objects used by this plotter.
Definition at line 185 of file CutPlotter.cxx. References m_datarep. Referenced by Cut2DPlotter::addDataRep(), Cut1DPlotter::addDataRep(), PlotterBaseXML::createCutChildren(), Cut1DPlotter::getCutLabel(), removeFromTarget(), setAxisBinding(), setCuts(), and setEnabled(). |
|
Get the list of targets.
Definition at line 221 of file CutPlotter.cxx. References m_targets. Referenced by PlotterBaseXML::createCutChildren(). |
|
Returns the DataRep object at index.
Reimplemented from PlotterBase. Definition at line 656 of file XyPlotter.cxx. References XyPlotter::getNumDataReps(), and XyPlotter::m_plotters. Referenced by XyPlotter::getProjector(), XyPlotter::getTarget(), XyPlotter::isTargetable(), XyPlotter::setCutEnabled(), XyPlotter::setCutInverted(), and XyPlotter::setCutRangeAt(). |
|
Returns the high end of the X axis range.
Definition at line 654 of file PlotterBase.cxx. References PlotterBase::getRange(), Range::high(), and hippodraw::Axes::X. |
|
Returns the internal label. The internal label is either the label set by a client, or one of %x, %y, or %z for the corresponding axis. The later ones mean that the object should return the corresponding label of the DataSource. The implementation in this base class returns an empty string. Reimplemented from PlotterBase. Definition at line 824 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Returns the internal title. The internal title is either the title set by a client, or %t. The later ones mean that the object should return the corresponding title of the DataSource, if bound to one. Definition at line 289 of file PlotterBase.cxx. References PlotterBase::m_title. Referenced by PlotterBaseXML::createElement(). |
|
Returns the label for the specified axis.
Reimplemented from PlotterBase. Definition at line 831 of file XyPlotter.cxx. References XyPlotter::m_plotter. Referenced by XyPlotter::createNTuple(). |
|
Returns the low end of the X axis range.
Definition at line 645 of file PlotterBase.cxx. References PlotterBase::getRange(), Range::low(), and hippodraw::Axes::X. |
|
Returns the margin space where drawing takes place.
Definition at line 405 of file PlotterBase.cxx. References PlotterBase::m_margin_rect. Referenced by ViewBase::getMarginRect(), QtViewImp::getMarginRect(), OpenGLView::toViewY(), and EpsView::toViewY(). |
|
Returns the number of entries in the contained DataRep.
Reimplemented from PlotterBase. Definition at line 846 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Returns the number of DataRep objects contained by the plotter.
Reimplemented from PlotterBase. Definition at line 703 of file XyPlotter.cxx. References XyPlotter::m_plotters. Referenced by XyPlotter::addDataRep(), XyPlotter::getDataRep(), XyPlotter::getTarget(), XyPlotter::indexOf(), XyPlotter::isTargetable(), and XyPlotter::setActivePlot(). |
|
Returns the number of entries in the contained DataRep.
Definition at line 467 of file PlotterBase.cxx. References PlotterBase::getNumberOfEntries(). |
|
Returns the list of observers.
Definition at line 57 of file Observable.cxx. References Observable::m_list. |
|
Returns the offset on designated axis, similarly to getBinWidth.
Definition at line 451 of file PlotterBase.cxx. References hippodraw::Axes::convert(), PlotterBase::getOffset(), and num_util::type(). |
|
Returns the offset on designated axis, similarly to getBinWidth.
Reimplemented from PlotterBase. Definition at line 803 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Returns the index of the parent DataRep. Returns -1 if there exist none Definition at line 554 of file PlotterBase.cxx. References PlotterBase::m_parent_datarep_index. Referenced by PlotterBaseXML::createElement(). |
|
Returns the parent plotter. Returns 0 if there exist none Definition at line 564 of file PlotterBase.cxx. References PlotterBase::m_parent_plotter. Referenced by PlotterBaseXML::createElement(), and FunctionController::refreshEllipsoidDisplay(). |
|
Returns the smallest positive number from the data.
Reimplemented from PlotterBase. Definition at line 853 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Returns the i-th projector.
Reimplemented from PlotterBase. Definition at line 640 of file XyPlotter.cxx. References XyPlotter::getDataRep(). |
|
Returns the range on the specified axis.
Returns the range of the data being plotted on the axis axis. If scaled is
Reimplemented from PlotterBase. Definition at line 788 of file XyPlotter.cxx. References XyPlotter::m_plotter. Referenced by Cut2DPlotter::setCutRangeFull(), and Cut1DPlotter::setCutRangeFull(). |
|
Returns the selected DataRep.
Reimplemented from PlotterBase. Definition at line 675 of file XyPlotter.cxx. References XyPlotter::getDataRep(), XyPlotter::getNumDataReps(), XyPlotter::isTargetable(), XyPlotter::m_active_index, and XyPlotter::m_plotters. |
|
Gets the title to be displayed.
Definition at line 251 of file PlotterBase.cxx. References PlotterBase::activePlotIndex(), PlotterBase::getDataRep(), and PlotterBase::m_title. Referenced by XyPlotter::createPickTuple(), XyPlotter::drawIn(), QtDisplay::getTitle(), PlotTable::initialize(), and Inspector::updatePlotTab(). |
|
Returns the transform object used by the plotter.
Reimplemented from PlotterBase. Definition at line 810 of file XyPlotter.cxx. References XyPlotter::m_plotter. Referenced by XyPlotter::drawCrossHairs(). |
|
Returns the data space rectangle.
Definition at line 400 of file PlotterBase.cxx. References PlotterBase::m_user_rect. Referenced by ViewBase::getUserRect(). |
|
Returns the value to color representation. If the Z value is represented graphically, then return the object that controls the binary value to graphic attribute. Reimplemented from PlotterBase. Definition at line 875 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Get the z value at the specified point (x,y).
Returns Definition at line 484 of file PlotterBase.cxx. |
|
Returns true if the axes have already been auto-scaled.
Reimplemented from PlotterBase. Definition at line 606 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Returns
Reimplemented from PlotterBase. Definition at line 860 of file XyPlotter.cxx. References XyPlotter::m_plotters. Referenced by XyPlotter::calcAxisRatios(), XyPlotter::checkAutoScale(), XyPlotter::createNTuple(), XyPlotter::prepareMarginRect(), and XyPlotter::wantsPixmap(). |
|
Returns
Reimplemented from XyPlotter. Definition at line 205 of file CutPlotter.cxx. |
|
Returns
Reimplemented from PlotterBase. Definition at line 613 of file XyPlotter.cxx. References XyPlotter::m_plotters. |
|
Returns the index of the selected DataRep object.
Reimplemented from PlotterBase. Definition at line 746 of file XyPlotter.cxx. References XyPlotter::getNumDataReps(), and XyPlotter::m_plotters. Referenced by setAxisBinding(). |
|
Returns
Reimplemented from PlotterBase. Definition at line 882 of file XyPlotter.cxx. References XyPlotter::m_plotter. Referenced by XyPlotter::checkAutoScale(). |
|
Returns
Definition at line 227 of file CutPlotter.cxx. References std::find(), and m_targets. |
|
Returns
Reimplemented from PlotterBase. Definition at line 718 of file XyPlotter.cxx. References std::count(), XyPlotter::getDataRep(), XyPlotter::getNumDataReps(), XyPlotter::m_active_index, and XyPlotter::m_plotters. Referenced by XyPlotter::getTarget(). |
|
What font is being used to override the default while drawing axis label. If return value is null pointer the default is being used. Definition at line 243 of file XyPlotter.cxx. References XyPlotter::m_axis_rep, hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z. Referenced by PlotterBaseXML::createFontElement(). |
|
Converts from inverted view coordinate to data coordinate, without taking into account transforms or scaling.
Definition at line 426 of file XyPlotter.cxx. References HippoRectangle::getHeight(), HippoRectangle::getY(), PlotterBase::m_margin_rect, PlotterBase::m_user_rect, and XyPlotter::m_y_ratio. Referenced by XyPlotter::fillPickedPoint(). |
|
Converts from view coordinate to data coordinate, without taking into account transforms or scaling.
Definition at line 412 of file XyPlotter.cxx. References HippoRectangle::getX(), PlotterBase::m_margin_rect, PlotterBase::m_user_rect, and XyPlotter::m_x_ratio. Referenced by XyPlotter::fillPickedPoint(), and XyPlotter::marginToUserXY(). |
|
Converts from the drawing space to the data space. Converts the drawing space coordinates mx and my, to the data space. The results are return via ux and uy. Applies the scale factor of an axis if scaled is true. Implements PlotterBase. Definition at line 434 of file XyPlotter.cxx. References XyPlotter::m_plotter, XyPlotter::marginToUserX(), and XyPlotter::marginToUserY(). |
|
Converts from view coordinate to data coordinate, without taking into account transforms or scaling.
Definition at line 419 of file XyPlotter.cxx. References HippoRectangle::getY(), PlotterBase::m_margin_rect, PlotterBase::m_user_rect, and XyPlotter::m_y_ratio. Referenced by XyPlotter::marginToUserXY(). |
|
Transpose the X and Y axis of matrix representation. If X-Y representation of is matrix represented as a vector with shape, then transpose the X and Y axis. Otherwise, do nothing. Reimplemented from PlotterBase. Definition at line 889 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Returns the name of the plotter.
Definition at line 82 of file PlotterBase.cxx. References PlotterBase::m_name. Referenced by PlotterBaseXML::createElement(), and XyPlotter::createPickTuple(). |
|
Cycle through each set of plot ranges, thereby changing the view with each call.
Definition at line 765 of file PlotterBase.cxx. References PlotterBase::m_currentView, PlotterBase::m_views, and PlotterBase::setView(). Referenced by QtDisplay::nextView(). |
|
An internal method to iterate over all observers and to send the message action.
Definition at line 69 of file Observable.cxx. References std::bind2nd(), std::for_each(), Observable::m_list, and std::mem_fun(). |
|
|
Return the number of stored views.
Definition at line 805 of file PlotterBase.cxx. References PlotterBase::m_views. Referenced by QtDisplay::numViews(). |
|
The unique ID number of this plotter.
Definition at line 718 of file PlotterBase.cxx. References PlotterBase::m_plotterId. Referenced by QtDisplay::plotterId(). |
|
Prepares the margin rectangle.
Definition at line 111 of file XyPlotter.cxx. References XyPlotter::getAspectRatio(), ViewBase::getDrawRect(), HippoRectangle::getHeight(), HippoRectangle::getWidth(), XyPlotter::hasAxis(), PlotterBase::m_margin_rect, HippoRectangle::setRect(), and hippodraw::Axes::Z. Referenced by XyPlotter::drawIn(). |
|
Removes the DataRep object from the plotter.
Reimplemented from PlotterBase. Definition at line 341 of file XyPlotter.cxx. References XyPlotter::m_plotter, and Observable::notifyObservers(). |
|
Remove this cut from one of its target rep.
Definition at line 111 of file CutPlotter.cxx. References std::find(), getCuts(), DataRep::getProjector(), m_datarep, m_targets, and Observable::removeObserver(). Referenced by removeFromTargets(). |
|
Removes this cut from all of its targets.
Definition at line 136 of file CutPlotter.cxx. References m_targets, and removeFromTarget(). Referenced by ~CutPlotter(). |
|
Removes an Observer from the Observer list.
Definition at line 63 of file Observable.cxx. References Observable::m_list. Referenced by BinningProjector::normalizeTo(), removeFromTarget(), DisplayController::removeTextObservers(), NTupleProjector::setNTuple(), FunctionRep::willDelete(), FunctionRep::~FunctionRep(), and NTupleProjector::~NTupleProjector(). |
|
Returns the color used for the representation.
Implements PlotterBase. Definition at line 573 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Returns the representation used by the plotter.
Implements PlotterBase. Definition at line 531 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Resets the bins.
Reimplemented from PlotterBase. Definition at line 780 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Save the current set of plot ranges which define a "view" for this plot.
Definition at line 725 of file PlotterBase.cxx. References PlotterBase::m_currentView, and PlotterBase::m_views. Referenced by QtDisplay::saveView(). |
|
Save the current set of plot ranges which define a "view" for this plot.at the position i. The views from position i onwards are deleted
Definition at line 740 of file PlotterBase.cxx. References PlotterBase::m_currentView, and PlotterBase::m_views. |
|
Returns the selected DataRep. That is, the one that should receive commands to it. If multiple DataRep objects are selected, return a null pointer. Reimplemented from PlotterBase. Definition at line 896 of file XyPlotter.cxx. References XyPlotter::m_plotter. Referenced by setAxisBinding(), and setNTuple(). |
|
Sets the cut as active. Sets the cut as active or not depending on value of yes. An active cut displays its cut range in normal color, while an inactive displays it in light gray. Definition at line 306 of file CutPlotter.cxx. References m_datarep, and Observable::notifyObservers(). |
|
Sets the active plot.
If index is non-negative, sets the active plot, to the one indexed by index, while setting the others, if any, to inactive state. If index is negative, set all plots to be active. If redraw is Reimplemented from PlotterBase. Definition at line 273 of file XyPlotter.cxx. References XyPlotter::getNumDataReps(), XyPlotter::m_active_index, XyPlotter::m_plotter, and XyPlotter::m_plotters. |
|
Sets the aspect ratio. Set the ratio of the width to the height that should be used when drawing the plotter. A value of 0.0 indicates that any ratio is acceptable. Definition at line 522 of file PlotterBase.cxx. References PlotterBase::m_aspect_ratio. Referenced by FitsController::checkForImage(), and QtDisplay::setAspectRatio(). |
|
Sets the auto-ranging. Sets auto-ranging status for the axis to flag and auto-ranges all axis which has that status set. Definition at line 201 of file PlotterBase.cxx. References PlotterBase::autoScale(), and hippodraw::Axes::convert(). Referenced by Inspector::axisZoomPanCheckBox_clicked(), QtDisplay::resize(), QtDisplay::setAutoRanging(), DisplayController::setAxisBindings(), DisplayController::setBinWidth(), Inspector::setHighRange(), Inspector::setLowRange(), DisplayController::setOffset(), and DisplayController::setRange(). |
|
Sets the auto-ranging. Sets auto-ranging status for the axis to flag and auto-ranges all axis which has that status set. Redraws the plot. Reimplemented from PlotterBase. Definition at line 373 of file XyPlotter.cxx. References XyPlotter::m_plotter, Observable::notifyObservers(), and XyPlotter::setAutoRanging(). |
|
Sets the auto-ranging status for all axes to flag. Sets the auto-ranging status for all axes to flag and re-draws. Reimplemented from PlotterBase. Definition at line 365 of file XyPlotter.cxx. References XyPlotter::m_plotter, and Observable::notifyObservers(). Referenced by XyPlotter::setAutoRanging(). |
|
Sets automatic ticks on or off.
Definition at line 603 of file PlotterBase.cxx. References hippodraw::Axes::convert(), PlotterBase::setAutoTicks(), and num_util::type(). |
|
Sets automatic generation of axis ticks.
Reimplemented from PlotterBase. Definition at line 903 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Sets automatic generation of axis ticks on X axis. This base class does nothing. Derived classes may interpret this function.
Definition at line 596 of file PlotterBase.cxx. References PlotterBase::setAutoTicks(), and hippodraw::Axes::X. |
|
Sets the axis binding of both the Cut and its DataRep.
Reimplemented in Cut1DPlotter, and Cut2DPlotter. Definition at line 69 of file CutPlotter.cxx. References XyPlotter::autoScale(), hippodraw::Axes::convert(), getCuts(), DataRep::getProjector(), XyPlotter::indexOf(), m_datarep, XyPlotter::selectedDataRep(), NTupleProjector::setAxisBinding(), TupleCut::setColumn(), TupleCut::setLabel(), and updateTargets(). Referenced by Cut2DPlotter::setAxisBinding(), and Cut1DPlotter::setAxisBinding(). |
|
Sets the AxisModel on the specified axis. Also, sets the same AxisModel to all of the contained plotters. Implements PlotterBase. Definition at line 545 of file XyPlotter.cxx. References XyPlotter::m_plotter. Referenced by XyPlotter::addDataRepStacked(). |
|
Sets the bin width. Sets the bin width parameter of the plot. Not all plots have a bin width parameter. Since histogram-ming plots are commonly used, this method has been declared as a convenience to script writers. The implementation is this base class does nothing. Definition at line 369 of file PlotterBase.cxx. References hippodraw::Axes::convert(), and PlotterBase::setBinWidth(). |
|
Sets the bin width. Sets the bin width of the contained ProjectorBase objects to width along axis axis. Reimplemented from PlotterBase. Definition at line 773 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Set the crossX value.
Definition at line 489 of file PlotterBase.cxx. References PlotterBase::m_crossX. Referenced by QtViewImp::setCrossX(). |
|
Set the crossY value.
Definition at line 494 of file PlotterBase.cxx. References PlotterBase::m_crossY. Referenced by QtViewImp::setCrossY(). |
|
Sets current_range_saved member to flag.
Definition at line 850 of file PlotterBase.cxx. References PlotterBase::current_range_saved. Referenced by CanvasView::contentsMouseReleaseEvent(). |
|
Sets the color of the cut acceptance region.
Definition at line 247 of file CutPlotter.cxx. References m_datarep, Observable::notifyObservers(), and XyPlotter::update(). |
|
Sets the TupleCut object index by i to be enabled.
Definition at line 979 of file XyPlotter.cxx. References XyPlotter::getCutAt(), XyPlotter::getDataRep(), and Observable::notifyObservers(). |
|
Sets the TupleCut object indexed by i to be inverted.
Definition at line 966 of file XyPlotter.cxx. References XyPlotter::getCutAt(), XyPlotter::getDataRep(), and Observable::notifyObservers(). |
|
Sets the Range on the X axis.
Definition at line 103 of file CutPlotter.cxx. References setCutRangeAt(). |
|
Sets the Range of the cut.
Reimplemented from XyPlotter. Definition at line 94 of file CutPlotter.cxx. References m_datarep, and updateTargets(). Referenced by setCutRange(), Cut2DPlotter::setCutRangeFull(), and Cut1DPlotter::setCutRangeFull(). |
|
Sets the cut Range to include the full range of data.
Implemented in Cut1DPlotter, and Cut2DPlotter. |
|
Sets the cut representation. The receiver becomes owner of the representation object. For backward compatibility, if rep is a ColorBoxPointRep object, it will be converted to a CutRangeRep.
Definition at line 232 of file CutPlotter.cxx. References m_datarep. |
|
Sets the TupleCut objects to be used by this plotter.
Definition at line 191 of file CutPlotter.cxx. References getCuts(), m_datarep, and num_util::size(). Referenced by PlotterBaseXML::handleCutPlotter(). |
|
Sets the state of the cut's enabled status.
Definition at line 277 of file CutPlotter.cxx. References getCuts(), m_datarep, and updateTargets(). |
|
Sets the display of the Z axis on.
Reimplemented from PlotterBase. Definition at line 220 of file XyPlotter.cxx. References XyPlotter::m_axis_rep, and XyPlotter::m_plotter. Referenced by Cut2DPlotter::Cut2DPlotter(). |
|
Sets the display of the error bars on or off.
Implements PlotterBase. Definition at line 552 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Sets the high end of the Range of data displayed.
Reimplemented from PlotterBase. Definition at line 479 of file XyPlotter.cxx. References XyPlotter::m_plotter, and Observable::notifyObservers(). |
|
Sets the label of specified axis to label. The default is to take the label from bound NTuple column. Invoking this member function overrides that. To return to taking the label from the NTuple column, label should be set to "%l".
Definition at line 263 of file PlotterBase.cxx. References hippodraw::Axes::convert(), Observable::notifyObservers(), and num_util::type(). Referenced by QtDisplay::setLabel(). |
|
Sets the label of the specified axis to value.
Reimplemented from PlotterBase. Definition at line 838 of file XyPlotter.cxx. References XyPlotter::m_plotter, and Observable::notifyObservers(). |
|
Set the font to be used to override the default while drawing axis label.
Definition at line 231 of file XyPlotter.cxx. References XyPlotter::m_axis_rep, hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z. |
|
Sets the low end of the Range of data displayed.
Reimplemented from PlotterBase. Definition at line 470 of file XyPlotter.cxx. References XyPlotter::m_plotter, and Observable::notifyObservers(). |
|
Sets the ntuple for the Cut and its DataRep object.
Definition at line 264 of file CutPlotter.cxx. References Observable::addObserver(), DataRep::getProjector(), XyPlotter::selectedDataRep(), and NTupleProjector::setNTuple(). |
|
Sets the number of bins. Sets the number of bins of the plot. Not all plots have a bin attribute. Since histogram-ming plots are commonly used, this method has been declared as a convenience to script writers. Definition at line 385 of file PlotterBase.cxx. References hippodraw::Axes::convert(). Referenced by QtDisplay::setNumberOfBins(). |
|
Sets the number of bins. Sets the number of bins of the contained ProjectorBase objects to number along the axis axis. Reimplemented from PlotterBase. Definition at line 917 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Sets the bin offset. Sets the bin offset parameter of the plot. Not all plots have a bin parameter. Since histogram-ming plots are commonly used, this method has been declared as a convenience to script writers. The implementation is this base class does nothing. Definition at line 377 of file PlotterBase.cxx. References hippodraw::Axes::convert(), and PlotterBase::setOffset(). |
|
Sets the offset. Sets the edges of the bins to be offset from its current value by the amount offset along the axis axis. Reimplemented from PlotterBase. Definition at line 924 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Sets the offsets on the x and y axis.
Definition at line 548 of file PlotterBase.cxx. References PlotterBase::setOffset(), hippodraw::Axes::X, and hippodraw::Axes::Y. |
|
Sets the index of the parent DataRep.
Definition at line 559 of file PlotterBase.cxx. References PlotterBase::m_parent_datarep_index. |
|
Sets the parent plotter.
Definition at line 569 of file PlotterBase.cxx. References PlotterBase::m_parent_plotter. |
|
Sets the range on the specified axis.
Creates a Range object from the low and high arguments. The Range is the scaled range. It calls setRange ( hippodraw::Axes::Type, Range, bool ) with third argument Definition at line 310 of file PlotterBase.cxx. References hippodraw::Axes::convert(), PlotterBase::setRange(), and num_util::type(). |
|
Sets the range on the specified axis.
Sets the Range on the axis axis to range. The TransformBase object contained by this object may adjust the range to fall within its limits. If scaled is Reimplemented from PlotterBase. Definition at line 795 of file XyPlotter.cxx. References XyPlotter::m_plotter. Referenced by XyPlotter::setCutRangeAt(). |
|
Sets the representation's color.
Implements PlotterBase. Definition at line 566 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Sets the representation. The representation of the active plotter is changed. Implements PlotterBase. Definition at line 524 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Sets the scaling attribute of the AxisModelBase object.
Reimplemented from PlotterBase. Definition at line 488 of file XyPlotter.cxx. References XyPlotter::m_plotter, and Observable::notifyObservers(). |
|
Sets the ticks on specified axis.
Definition at line 627 of file PlotterBase.cxx. References hippodraw::Axes::convert(), PlotterBase::setTicks(), num_util::size(), and num_util::type(). |
|
Sets the ticks for the specified axis.
Reimplemented from PlotterBase. Definition at line 910 of file XyPlotter.cxx. References XyPlotter::m_plotter. |
|
Sets the ticks for the X axis.
Definition at line 611 of file PlotterBase.cxx. References PlotterBase::setTicks(), num_util::size(), and hippodraw::Axes::X. |
|
Sets the title to be displayed. The implementation is to pass the title parameter to the axes representation. Definition at line 234 of file PlotterBase.cxx. References PlotterBase::activePlotIndex(), PlotterBase::getDataRep(), PlotterBase::m_title, and Observable::notifyObservers(). Referenced by XyPlotter::createPickTuple(), QtDisplay::setTitle(), and Inspector::titleText_returnPressed(). |
|
Set the font to be used to override the default while drawing title.
Definition at line 258 of file XyPlotter.cxx. References XyPlotter::m_axis_rep. |
|
Sets the transform object and redraws.
Reimplemented from PlotterBase. Definition at line 381 of file XyPlotter.cxx. References XyPlotter::m_plotter, and Observable::notifyObservers(). |
|
Sets the object that will do the value to color transform, if any. Sets the object that will be used to do the value to color transform, if any, and redraws. Reimplemented from PlotterBase. Definition at line 357 of file XyPlotter.cxx. References XyPlotter::m_plotter, and Observable::notifyObservers(). |
|
Set the view by index.
Definition at line 789 of file PlotterBase.cxx. References PlotterBase::m_currentView, PlotterBase::m_views, and PlotterBase::setRange(). Referenced by PlotterBase::deleteView(), PlotterBase::nextView(), and QtDisplay::setView(). |
|
What font is being used to override the default while drawing title of plot. If return value is null pointer the default is being used. Definition at line 266 of file XyPlotter.cxx. References XyPlotter::m_axis_rep. Referenced by PlotterBaseXML::createFontElements(). |
|
Toggles the active DataRep, if 2 or more are contained by the plotter. Toggles the active plot. With each call, the current active plot is deselected and the next one becomes the active plot. When the end of the list of plots is reached, all plots become active. If all plots are active then only the first becomes active. Definition at line 691 of file PlotterBase.cxx. References PlotterBase::activePlotIndex(), PlotterBase::checkAxisScaling(), PlotterBase::getNumDataReps(), and PlotterBase::setActivePlot(). |
|
Reverse the meaning of the cut Range on the give axis.
Implemented in Cut1DPlotter, and Cut2DPlotter. |
|
Updates the plotter. Updates the plotter by informing contained DataRep that an update is needed. Does not notify its Observer objects. Implements PlotterBase. Definition at line 517 of file XyPlotter.cxx. References XyPlotter::m_plotter. Referenced by setCutColor(). |
|
Responds to the update message from one of its Observable objects. If the update comes from one of its m_target objects does nothing, otherwise notifies its Observer objects. Reimplemented from PlotterBase. Definition at line 294 of file CutPlotter.cxx. References std::find(), m_targets, and Observable::notifyObservers(). |
|
Update the target DataRep when a change has been made in the TupleCut.
Definition at line 162 of file CutPlotter.cxx. References std::bind2nd(), std::for_each(), m_targets, std::mem_fun(), Observable::notifyObservers(), and DataRep::setDirty(). Referenced by setAxisBinding(), setCutRangeAt(), Cut2DPlotter::setCutRangeFull(), Cut1DPlotter::setCutRangeFull(), setEnabled(), Cut2DPlotter::toggleInverted(), and Cut1DPlotter::toggleInverted(). |
|
Converts the user Y coordinate into the top-left based margin Y coordinate.
Implements PlotterBase. Definition at line 403 of file XyPlotter.cxx. References HippoRectangle::getHeight(), HippoRectangle::getY(), PlotterBase::m_margin_rect, PlotterBase::m_user_rect, and XyPlotter::m_y_ratio. |
|
Converts the user Z coordinate into the margin color (X) coordinate.
Reimplemented from PlotterBase. Definition at line 184 of file XyPlotter.cxx. References HippoRectangle::getX(), HippoRectangle::getZ(), PlotterBase::m_margin_rect, PlotterBase::m_user_rect, and XyPlotter::m_z_ratio. |
|
Converts the user X coordinate into the margin X coordinate.
Implements PlotterBase. Definition at line 389 of file XyPlotter.cxx. References HippoRectangle::getX(), PlotterBase::m_margin_rect, PlotterBase::m_user_rect, and XyPlotter::m_x_ratio. |
|
Converts the user Y coordinate into the margin Y coordinate.
Implements PlotterBase. Definition at line 396 of file XyPlotter.cxx. References HippoRectangle::getY(), PlotterBase::m_margin_rect, PlotterBase::m_user_rect, and XyPlotter::m_y_ratio. |
|
Returns Since the data area will be filled, an off screen pixmap would be more efficient. Reimplemented from PlotterBase. Definition at line 213 of file XyPlotter.cxx. References XyPlotter::hasAxis(), XyPlotter::m_plotter, and hippodraw::Axes::Z. |
|
Responds to willDelete message emitted from one of the Observers.
Responds to message emitted from one of Reimplemented from hippodraw::Observer. Definition at line 149 of file CutPlotter.cxx. References std::find(), and m_targets. |
|
Returns true if the current range on the axes have been saved.
Definition at line 130 of file PlotterBase.h. Referenced by PlotterBase::getCurrentRangeSaved(), PlotterBase::PlotterBase(), and PlotterBase::setCurrentRangeSaved(). |
|
The aspect ratio. The ratio of the width to the height that the should be used when drawing the plotter. A ratio of zero, the default, indicates that any ratio is acceptable. Definition at line 81 of file PlotterBase.h. Referenced by XyPlotter::getAspectRatio(), and PlotterBase::setAspectRatio(). |
|
The axes model graphical representation. If another plotter in a composite is controlling the axis, then the pointer may be null. Definition at line 90 of file XyPlotter.h. Referenced by XyPlotter::drawCrossHairs(), XyPlotter::drawIn(), XyPlotter::labelFont(), XyPlotter::setEnableZ(), XyPlotter::setLabelFont(), XyPlotter::setTitleFont(), XyPlotter::titleFont(), XyPlotter::XyPlotter(), and XyPlotter::~XyPlotter(). |
|
The x position of the cross hair.
Definition at line 96 of file PlotterBase.h. Referenced by XyPlotter::drawCrossHairs(), and PlotterBase::setCrossX(). |
|
The y position of the cross hair.
Definition at line 99 of file PlotterBase.h. Referenced by XyPlotter::drawCrossHairs(), and PlotterBase::setCrossY(). |
|
Index of the current view.
Definition at line 142 of file PlotterBase.h. Referenced by PlotterBase::currentView(), PlotterBase::nextView(), PlotterBase::saveView(), PlotterBase::saveViewAtIndex(), and PlotterBase::setView(). |
|
A pointer to the data representation that holds the cuts.
Definition at line 66 of file CutPlotter.h. Referenced by Cut2DPlotter::addDataRep(), Cut1DPlotter::addDataRep(), getCutColor(), Cut1DPlotter::getCutLabel(), getCuts(), removeFromTarget(), setActive(), setAxisBinding(), setCutColor(), setCutRangeAt(), Cut2DPlotter::setCutRangeFull(), Cut1DPlotter::setCutRangeFull(), setCutRepresentation(), setCuts(), setEnabled(), Cut2DPlotter::toggleInverted(), and Cut1DPlotter::toggleInverted(). |
|
The rectangle area in which the projected points are plotted.
Definition at line 104 of file PlotterBase.h. Referenced by XyPlotter::calcAxisRatios(), PlotterBase::getMarginRect(), XyPlotter::marginToInvertedUserY(), XyPlotter::marginToUserX(), XyPlotter::marginToUserY(), XyPlotter::prepareMarginRect(), XyPlotter::userToInvertedMarginY(), XyPlotter::userToMarginColor(), XyPlotter::userToMarginX(), and XyPlotter::userToMarginY(). |
|
The name of the type of plotter. Used to lookup the plotter in a factory. Definition at line 85 of file PlotterBase.h. Referenced by PlotterBase::name(). |
|
Parent DataRep index.
Definition at line 114 of file PlotterBase.h. Referenced by PlotterBase::getParentDataRepIndex(), and PlotterBase::setParentDataRepIndex(). |
|
Parent plotter.
Definition at line 111 of file PlotterBase.h. Referenced by PlotterBase::getParentPlotter(), and PlotterBase::setParentPlotter(). |
|
|
A unique plotter id.
Definition at line 134 of file PlotterBase.h. Referenced by PlotterBase::plotterId(), and PlotterBase::setPlotterId(). |
|
A list of DataRep objects which have this cut applied.
Definition at line 62 of file CutPlotter.h. Referenced by addCutTarget(), clearCutTargets(), getCutTargets(), isTarget(), removeFromTarget(), removeFromTargets(), update(), updateTargets(), and willDelete(). |
|
The main label; the title of the plot.
Definition at line 93 of file PlotterBase.h. Referenced by XyPlotter::drawIn(), PlotterBase::getInternalTitle(), PlotterBase::getTitle(), PlotterBase::setTitle(), and TextPlotter::TextPlotter(). |
|
The abstract data space. In the user space X increases to the right and Y increases upward. Definition at line 108 of file PlotterBase.h. Referenced by XyPlotter::calcAxisRatios(), XyPlotter::drawIn(), PlotterBase::getUserRect(), XyPlotter::marginToInvertedUserY(), XyPlotter::marginToUserX(), XyPlotter::marginToUserY(), XyPlotter::userToInvertedMarginY(), XyPlotter::userToMarginColor(), XyPlotter::userToMarginX(), and XyPlotter::userToMarginY(). |
|
A vector of x and y ranges to be used as a circular buffer allowing one to cycle through the saved plot "views".
Definition at line 139 of file PlotterBase.h. Referenced by PlotterBase::deleteView(), PlotterBase::nextView(), PlotterBase::numViews(), PlotterBase::saveView(), PlotterBase::saveViewAtIndex(), and PlotterBase::setView(). |
|
The conversion ratio from the user coordinate system to the view's coordinate system along the color axis.
Definition at line 94 of file XyPlotter.h. Referenced by XyPlotter::calcAxisRatios(), and XyPlotter::userToMarginColor(). |
|
Reference count for creating plotter ids.
Referenced by PlotterBase::setPlotterId(). |