DisplayController Class Reference

#include <DisplayController.h>

Collaboration diagram for DisplayController:

Collaboration graph
[legend]

List of all members.


Detailed Description

A singleton class that is the interface between GUI and the displays.

It frequently implements the application logic which should neither be in the GUI nor in the display objects.

Todo:
DisplayController shouldn't need to know about the DataRepFactory. Should probably move methods that use it to DataRepController.
Todo:
Shouldn't const_cast<BinToColor *> the return value from getValueRep() of the plotter object in the setValueBrkPt member function. A member function returning a non const pointer to a BinToColor object should be implemented in the PlotterBase class and that should be used in the setValueBrkPt member function.
Author:
Paul F. Kunz <Paul_Kunz@slac.stanford.edu>

Sanket B. Malde <sanket@slac.stanford.edu>

Matan Shacham <matan@slac.stanford.edu>

Oded Wurman <owurman@stanford.edu>

Definition at line 63 of file DisplayController.h.


Public Member Functions

hippodraw::DataRepactiveDataRep (const PlotterBase *plotter) const
 Returns the active DataRep object for the DataRep objects contained in the plotter.
int activeDataRepIndex (const PlotterBase *plotter) const
 Returns the active DataRep index for the DataRep objects contained in the plotter.
hippodraw::DataRepaddDataRep (PlotterBase *plotter, const std::string &name, const DataSource *source, const std::vector< std::string > &bindings) const
 Creates a new DataRep object with class name name and adds it to the existing plotter.
void addDataRep (PlotterBase *, hippodraw::DataRep *) const
 Adds the DataRep to the PlotterBase object by including it.
hippodraw::DataRepaddDataRepStacked (PlotterBase *plotter, const std::string &name, const DataSource *source, const std::vector< std::string > &bindings) const
 Creates a new DataRep object with class name name and adds it to the existing plotter by stacking it.
LineDataRepaddLineRep (PlotterBase *, Axes::Type, double value)
 Adds a LineRep to the Plotter object.
LineDataRepaddLineRep (PlotterBase *, const std::string &axis, double value)
 Adds a LineDataRep to the Plotter object.
void addTextViewToList (std::vector< const ViewBase * > &destination, const std::vector< const ViewBase * > &source)
 Adds views from source to destination if they contain TextRep whose target is contained in destination.
void addValueTransform (const std::string &name, const std::vector< double > &ctrl_points)
 Creates and adds to the factory a new value transform.
bool areDataSourcesSaved (const PlotterBase *)
 Returns true if all the NTuple Objects used by the plotter are save to or read from a file.
const std::vector
< std::string > & 
axisBindings (const PlotterBase *plotter, int index) const
 Returns the axis bindings for the indexed projector, if any, otherwise returns an empty vector.
const std::vector
< std::string > & 
axisBindings (const PlotterBase *plotter) const
 Returns the axis bindings, if any, otherwise returns an empty vector.
const std::vector
< std::string > & 
bindingOptions (const PlotterBase *plottter, int index)
 Returns the axis bindings options for the DataRep contained by the plotter at index index.
const std::vector
< std::string > & 
bindingOptions (const std::string &type)
 Returns the axis binding options for a DataRep of type type.
PlotterBasecreateDifferenceDisplay (PlotterBase *plotter)
 Returns difference display.
PlotterBasecreateDisplay (const std::string &name, const DataSource &tuple, const std::vector< std::string > &bindings) const
 Creates a display object.
PlotterBasecreateDisplay (hippodraw::DataRep *rep)
 Creates a display object.
PlotterBasecreateDisplay (const std::string &name)
 Creates a display object.
void createNTuple (const PlotterBase *plotter)
 Creates a NTuple from the plotter.
NTuplecreateNTupleDiff (PlotterBase *plotter)
hippodraw::DataRepcreateTextDataRep (const std::string &type, const std::string &text=std::string())
 Creates an object of a class derived from DataRep which is textual data representation of type type.
PlotterBasecreateTextPlotter (hippodraw::DataRep *datarep, const std::string &name, const std::string &text=std::string())
 Creates a plotter object for the DataRep with text representation of type name.
ViewBasecreateTextView (const ViewFactory *factory, PlotterBase *plotter, const std::string &name, const std::string &text=0)
 Creates an object which is a derived class of ViewBase.
ViewBasecreateTextView (const ViewFactory *factory, hippodraw::DataRep *rep, const std::string &name, const std::string &text=std::string())
 Creates an object which is a derived class of ViewBase.
double getAverage (const PlotterBase *plotter, Axes::Type axis, int index=0) const
 Returns the average value.
double getAverage (const PlotterBase *plotter, const std::string &axis, int index=0) const
 Returns the average value.
DataSourcegetDataSource (const PlotterBase *, int index)
 Returns the DataSource for the DataRep indexed by index.
DataSourcegetDataSource (const PlotterBase *plotter)
 Returns the Datasource for the plotter's selected DataRep or the DataSource used by all the DataRep objects contrained by the plotter.
const std::vector
< std::string > & 
getDataSourceLabels (const PlotterBase *plotter, int index)
 Returns the labels of the DataSource columns for the DataRep contained in the plotter at index index.
const std::string & getDataSourceName (const PlotterBase *plotter, int index)
 Returns the name of the DataSource for the DataRep contained in the plotter at index index.
const std::vector
< std::string > & 
getDisplayTypes () const
 Returns the types of displays available.
bool getLog (const PlotterBase *plotter, Axes::Type axis) const
 Returns true if the designated axis is on a logarithm scale.
bool getLog (const PlotterBase *plotter, const std::string &axis) const
 Returns true if the designated axis is on a logarithmic scale.
int getNumberOfEntries (const PlotterBase *plotter, int index=0) const
 Returns the number of entries.
int getOverflow (const PlotterBase *plotter, int index=0) const
 Returns the number of overflow.
unsigned int getRepStyle (const PlotterBase *plotter) const
 Returns the style of the point representation.
double getRMS (const PlotterBase *plotter, Axes::Type axis, int index=0) const
 Returns the root mean square along the specified axis for DataRep indexed by index.
double getRMS (const PlotterBase *plotter, const std::string &axis, int index=0) const
 Returns the root mean square along the specified axis for DataRep indexed by index.
const std::vector
< std::string > & 
getTextTypes () const
 Returns the types of text displays.
const std::string & getType (const PlotterBase *plotter, int index) const
 Returns the type of DataRep contained in the plotter at index index.
int getUnderflow (const PlotterBase *plotter, int index=0) const
 Returns the number of underflow.
const std::vector
< double > & 
getValueCtrlPts (const PlotterBase *plotter)
 Returns the control points of the value to color transform model.
int getValueTransformIndex (PlotterBase *plotter)
 Returns the index to list of value to color transform names of the plotter.
const std::vector
< std::string > & 
getValueTransformTypes () const
 Returns the types of value to color transforms available.
bool hasControlPoints (const PlotterBase *plotter) const
 Returns true if value to color transform has control points.
bool hasLineRep (const PlotterBase *plotter) const
 Returns true if active DataRep uses LinePointRep, otherwise returns false.
bool hasNTupleBindings (const PlotterBase *plotter, int index)
 Returns true if the DataRep contained by the plotter at index index has NTuple bindings.
bool hasSymbolRep (const PlotterBase *plotter) const
 Returns true if active DataRep uses SymbolPointRep, otherwise returns false.
bool isAxisBinned (PlotterBase *display, const std::string &axis)
 Tests if specified axis is binned.
bool isDataValid (const hippodraw::DataRep *) const
 Returns true only if all the data in a bound DataSource are valid.
bool isDataValid (const PlotterBase *) const
 Returns true only if all the data in a bound DataSource are valid.
bool isUserDefinedValueTransform (const PlotterBase *plotter) const
 Returns true if value to color transform is user defined.
float pointSize (const PlotterBase *) const
 Returns the size of the representation.
void remove (PlotterBase *)
 Deletes a PlotterBase object.
void removeTextObservers (const std::vector< const ViewBase * > &views)
 Removes TextRep Observer objects, if any, from its target.
bool removeValueTransform (const std::string &name)
 Removes the value to color transform model.
void saveValueCtrlPts (PlotterBase *plotter, const std::vector< double > &sv)
 Save the updated control points of a BinToColor transform.
void setActiveDataRepIndex (PlotterBase *plotter, int index)
 Sets the active DataRep index.
void setAllIntervalEnabled (const PlotterBase *plotter, bool yes)
 Sets the interval counting to yes of all the NTuple used by the plotter.
void setAxisBinding (PlotterBase *, const std::string &axis, const std::string &label)
 Sets the axis binding, if any, otherwise does nothing.
void setAxisBindings (PlotterBase *plotter, const std::vector< std::string > &labels) const
 Sets all the axis bindings, if any, otherwise does nothing.
void setBinWidth (DataRep *datarep, Axes::Type axis, double width)
 Sets the bin width of the DataRep object.
void setBinWidth (PlotterBase *plotter, const std::string &axis, double width)
 Sets the bin width parameter.
void setErrorDisplayed (const PlotterBase *, Axes::Type axis, bool state) const
 Set the error display.
void setIntervalCount (const PlotterBase *plotter, unsigned int count)
 Sets the interval count on the the NTuple of the active DataRep of the plotter.
void setIntervalEnabled (const PlotterBase *plotter, bool yes)
 Sets the interval counting to yes on the NTuple of the active DataRep of the plotter.
void setLog (PlotterBase *plotter, Axes::Type axis, bool flag, XYTransform *transform)
 Sets a log scale on or off for the specified axis in special case that the transform object is a XYTransform.
void setLog (PlotterBase *plotter, Axes::Type axis, bool flag)
 Sets the log scale on or off for the specified axis for the plotter.
void setLog (PlotterBase *plotter, const std::string &axis, bool flag)
 Sets a log scale on or off for the specified axis for the plotter.
void setNTuple (PlotterBase *, const NTuple *) const
 Sets the ntuple on the selected DataRep, if it has ntuple bindings, otherwise does nothing.
void setOffset (PlotterBase *plotter, Axes::Type axis, double offset)
 Sets the offset parameter.
void setOffset (PlotterBase *plotter, const std::string &axis, int parm, bool dragging)
 Sets the offset from dragging slider.
void setPointRep (PlotterBase *plotter, const std::string &point_rep)
 Sets the type of RepBase object to be used by the selected DataRep.
void setRange (PlotterBase *plotter, Axes::Type axis, const Range &range)
 Sets the Range on specified axis.
void setRepSize (PlotterBase *plotter, float size)
 Sets the size of the representation.
void setTransform (PlotterBase *plotter, const std::string &x, const std::string &y, const std::string &z)
 Creates and sets the new XYZ transform for the display.
void setTransform (PlotterBase *plotter, const std::string &x, const std::string &y)
 Creates and sets the new XY transform for the display.
void setTransform (PlotterBase *plotter, const std::string &name)
 Creates and sets a new transform for the display.
void setTransformAxis (PlotterBase *plotter, const std::string &x, const std::string &y)
 Set both X and Y axis to log or linear, without resetting the bin width.
void setValueCtrlPts (PlotterBase *plotter, const std::vector< double > &sv)
 Sets the control points for the value to color transform model.
void setValueTransform (PlotterBase *plotter, int index)
 Sets a new value transform for the plotter.
void setValueTransform (PlotterBase *plotter, const std::string &name)
 Sets the value to color transform model.
void stackDataRep (PlotterBase *, hippodraw::DataRep *) const
 Adds the DataRep to the PlotterBase object by stacking it.
 ~DisplayController ()
 The destructor.

Static Public Member Functions

static
DisplayController
instance ()
 Returns the pointer to the singleton instance.

Private Member Functions

PlotterBasecreatePlotter (const hippodraw::DataRep *rep) const
 Returns a newly created PlotterBase object.
 DisplayController ()
 A default constructor for avoiding creation except by itself or with derived classes.
 DisplayController (const DisplayController &)
 A private copy constructor in order to avoid copying.
void fixLogIfBinned (const PlotterBase *, hippodraw::DataRep *rep) const
 Fixes the rep so it displays well on plotter.
NTupleProjectorgetBindingProjector (const PlotterBase *) const
 Returns projector that supports binding, if display has one, otherwise returns null pointer.
ProjectorBasegetProjector (const PlotterBase *display) const
 Returns the currently selected projector in the plot.
hippodraw::DataRepgetUniqueWithNTupleBindings (const PlotterBase *plotter)
 Returns the unique DataRep.
bool isCompatible (const PlotterBase *plotter, const std::string &type) const
 Returns true if adding a DataRep of type type to the PlotterBase @ plotter is compatible, otherwise returns false.
void setAxisModel (PlotterBase *plotter, Axes::Type axis, const std::string &type)
 Sets the axis model to type.
void setAxisModelWithoutSetBin (PlotterBase *plotter, Axes::Type axis, const std::string &type)
 set the axis to log or linear, without reseting the bin width.
void setBinner (PlotterBase *plotter, Axes::Type axis)
 Sets the binner of of any Binning projectors to agree with AxisModel.
void setBinner (const PlotterBase *plotter, DataRep *rep, Axes::Type axis) const
 Sets the binner on the DataRep.
void setBinWidth (PlotterBase *plotter, Axes::Type axis, double width)
 Sets the bin width parameter.

Private Attributes

std::string m_null_string
 A null string that is returned when reference to a valid string can not be found.
std::vector
< std::string > 
m_null_vector
 A empty vector of strings.

Static Private Attributes

static
DisplayController
s_instance = 0
 The pointer to the singleton object.

Constructor & Destructor Documentation

DisplayController ( const DisplayController  )  [private]

A private copy constructor in order to avoid copying.

DisplayController (  )  [private]

A default constructor for avoiding creation except by itself or with derived classes.

Definition at line 91 of file DisplayController.cxx.

Referenced by DisplayController::instance().

~DisplayController (  ) 

The destructor.

Definition at line 95 of file DisplayController.cxx.

References DataRepController::instance().


Member Function Documentation

DataRep * activeDataRep ( const PlotterBase plotter  )  const

Returns the active DataRep object for the DataRep objects contained in the plotter.

If multiple DataRep objects are active, then returns an object that is not a FunctionRep if there is only one, otherwise returns null pointer.

Definition at line 732 of file DisplayController.cxx.

References DisplayController::activeDataRepIndex().

int activeDataRepIndex ( const PlotterBase plotter  )  const

Returns the active DataRep index for the DataRep objects contained in the plotter.

If multiple DataRep are active, then returns the index of non FunctionRep if there is only one, otherwise returns -1.

Definition at line 720 of file DisplayController.cxx.

References PlotterBase::activePlotIndex(), FunctionController::getUniqueNonFunctionIndex(), and FunctionController::instance().

Referenced by DisplayController::activeDataRep(), Inspector::contourLevelsTextBox_returnPressed(), Inspector::contourSlider_valueChanged(), Inspector::contourTextBox_returnPressed(), DisplayController::createTextView(), Inspector::cutNew(), Inspector::cutRemovePushButton_clicked(), DisplayController::getDataSource(), DisplayController::setErrorDisplayed(), DisplayController::setIntervalCount(), DisplayController::setIntervalEnabled(), DisplayController::setPointRep(), Inspector::summaryNew(), Inspector::updateAxisTab(), and Inspector::updateDataCutsTab().

DataRep * addDataRep ( PlotterBase plotter,
const std::string &  type,
const DataSource tuple,
const std::vector< std::string > &  bindings 
) const

Creates a new DataRep object with class name name and adds it to the existing plotter.

Connects the newly created DataRep to source and sets the bindings to bindings. Returns DataRep if successful, otherwise returns a null pointer if the class name could not be found.

Note:
This method is used by the Inspector.
Todo:
If new DataRep is incompatible with exiting Plotter, one could create new plotter type.

Definition at line 465 of file DisplayController.cxx.

References DisplayController::addDataRep(), DataRepController::createDataRep(), DataRepController::instance(), and DisplayController::isCompatible().

void addDataRep ( PlotterBase plotter,
hippodraw::DataRep rep 
) const

Adds the DataRep to the PlotterBase object by including it.

Bug:
Shouldn't need to call checkAxisScaling here since the CompositePlotter has already done it. Remove call and test.

Definition at line 538 of file DisplayController.cxx.

References PlotterBase::addDataRep(), PlotterBase::checkAxisScaling(), DisplayController::fixLogIfBinned(), and DataRep::hasZeroRows().

Referenced by QtDisplay::addDataRep(), DisplayController::addDataRep(), QtDisplay::addFunction(), DisplayController::addLineRep(), and DisplayController::createDisplay().

DataRep * addDataRepStacked ( PlotterBase plotter,
const std::string &  name,
const DataSource source,
const std::vector< std::string > &  bindings 
) const

Creates a new DataRep object with class name name and adds it to the existing plotter by stacking it.

Connects the newly created DataRep to source and sets the bindings to bindings. Returns DataRep if successful, otherwise returns a null pointer if the class name could not be found.

Note:
This method is used by the Inspector.

Definition at line 490 of file DisplayController.cxx.

References DataRepController::createDataRep(), DataRepController::instance(), DisplayController::isCompatible(), and DisplayController::stackDataRep().

Referenced by QtDisplay::addDataRepStacked(), and DisplayController::stackDataRep().

LineDataRep * addLineRep ( PlotterBase plotter,
Axes::Type  axis,
double  value 
)

Adds a LineRep to the Plotter object.

Definition at line 508 of file DisplayController.cxx.

References DisplayController::addDataRep().

LineDataRep * addLineRep ( PlotterBase plotter,
const std::string &  axis,
double  value 
)

Adds a LineDataRep to the Plotter object.

Definition at line 518 of file DisplayController.cxx.

References hippodraw::String::convert(), and num_util::type().

void addTextViewToList ( std::vector< const ViewBase * > &  destination,
const std::vector< const ViewBase * > &  source 
)

Adds views from source to destination if they contain TextRep whose target is contained in destination.

Definition at line 603 of file DisplayController.cxx.

References PlotterBase::getDataRep(), PlotterBase::getNumDataReps(), TextPlotter::getParentDataRep(), and ViewBase::getPlotter().

void addValueTransform ( const std::string &  name,
const std::vector< double > &  ctrl_points 
)

Creates and adds to the factory a new value transform.

Definition at line 141 of file DisplayController.cxx.

References BinToColorFactory::instance().

Referenced by DisplayController::saveValueCtrlPts().

bool areDataSourcesSaved ( const PlotterBase plotter  ) 

Returns true if all the NTuple Objects used by the plotter are save to or read from a file.

Definition at line 1019 of file DisplayController.cxx.

References DisplayController::getDataSource(), PlotterBase::getNumDataReps(), and DataSourceController::instance().

Referenced by PlotterBaseXML::areDataSourcesSaved().

const vector< string > & axisBindings ( const PlotterBase plotter,
int  index 
) const

Returns the axis bindings for the indexed projector, if any, otherwise returns an empty vector.

Definition at line 786 of file DisplayController.cxx.

References NTupleProjector::getAxisBindings(), PlotterBase::getProjector(), and DisplayController::m_null_vector.

const vector< string > & axisBindings ( const PlotterBase plotter  )  const

Returns the axis bindings, if any, otherwise returns an empty vector.

Definition at line 752 of file DisplayController.cxx.

References PlotterBase::activeProjector(), NTupleProjector::getAxisBindings(), and DisplayController::m_null_vector.

const vector< string > & bindingOptions ( const PlotterBase plottter,
int  index 
)

Returns the axis bindings options for the DataRep contained by the plotter at index index.

Definition at line 764 of file DisplayController.cxx.

References DataRepController::bindingOptions(), PlotterBase::getDataRep(), and DataRepController::instance().

const vector< string > & bindingOptions ( const std::string &  type  ) 

Returns the axis binding options for a DataRep of type type.

Definition at line 775 of file DisplayController.cxx.

References DataRepController::instance(), and DataRepFactory::instance().

PlotterBase * createDifferenceDisplay ( PlotterBase plotter  ) 

Returns difference display.

Creates and returns a PlotterBase object displaying the difference of two histogram.

Definition at line 417 of file DisplayController.cxx.

References DisplayController::createDisplay(), DisplayController::createNTupleDiff(), DisplayController::getLog(), DisplayController::instance(), DataSourceController::instance(), NTuple::rows(), DisplayController::setLog(), and num_util::size().

PlotterBase * createDisplay ( const std::string &  name,
const DataSource tuple,
const std::vector< std::string > &  bindings 
) const

Creates a display object.

A DataRep of class name is created. The data rep is bound to NTuple tuple and the binding set by bindings. Returns a derived class of PlotterBase appropriate for the newly created data rep. If the class name could not be found, an exception is thrown.

Bug:
If Image DataRep comes from file other than FITS file, then it is not being handled.

Definition at line 291 of file DisplayController.cxx.

References DisplayController::addDataRep(), DisplayController::createPlotter(), DataSource::expandIfNeeded(), FitsController::instance(), DataRepFactory::instance(), and Factory::prototype().

PlotterBase * createDisplay ( hippodraw::DataRep rep  ) 

Creates a display object.

A Display of class rep is used. It should be a class that is not bound to an NTuple. Returns a derived class of PlotterBase appropriate for the newly created data rep. If the class name could not be found, an exception is thrown.

Definition at line 268 of file DisplayController.cxx.

References DisplayController::addDataRep(), DisplayController::createPlotter(), and DisplayController::hasNTupleBindings().

PlotterBase * createDisplay ( const std::string &  name  ) 

Creates a display object.

A Display of class name is created. It should be a class that is not bound to an NTuple. Returns a derived class of PlotterBase appropriate for the newly created data rep. If the class name could not be found, an exception is thrown.

Definition at line 258 of file DisplayController.cxx.

References DataRepController::instance().

Referenced by DisplayController::createDifferenceDisplay(), and QtDisplay::createDisplay().

void createNTuple ( const PlotterBase plotter  ) 

Creates a NTuple from the plotter.

Creates a NTuple from the contents of DataRep in the plotter. The plotter must have a single active DataRep, otherwise nothing is created. The created NTuple is registered with the NTupleController.

Definition at line 1622 of file DisplayController.cxx.

References DataSourceController::instance().

Referenced by DisplayController::createNTupleDiff().

NTuple * createNTupleDiff ( PlotterBase plotter  ) 

Definition at line 318 of file DisplayController.cxx.

References NTuple::addColumn(), DisplayController::createNTuple(), and num_util::size().

Referenced by DisplayController::createDifferenceDisplay().

PlotterBase * createPlotter ( const hippodraw::DataRep rep  )  const [private]

Returns a newly created PlotterBase object.

The DataRep prototype, rep, is used to selected the kind of plotter required by the rep.

Definition at line 445 of file DisplayController.cxx.

References PlotterFactory::instance(), and hippodraw::Axes::Z.

Referenced by DisplayController::createDisplay().

DataRep * createTextDataRep ( const std::string &  type,
const std::string &  text = std::string() 
)

Creates an object of a class derived from DataRep which is textual data representation of type type.

Definition at line 683 of file DisplayController.cxx.

References Factory::create(), TextRepFactory::instance(), and RepBase::setText().

Referenced by DisplayController::createTextPlotter().

PlotterBase * createTextPlotter ( hippodraw::DataRep datarep,
const std::string &  name,
const std::string &  text = std::string() 
)

Creates a plotter object for the DataRep with text representation of type name.

Uses the optional text if needed by the text representation.

Definition at line 697 of file DisplayController.cxx.

References TextPlotter::addDataRep(), DisplayController::createTextDataRep(), and TextPlotter::setParentDataRep().

Referenced by DisplayController::createTextView().

ViewBase * createTextView ( const ViewFactory factory,
PlotterBase plotter,
const std::string &  name,
const std::string &  text = 0 
)

Creates an object which is a derived class of ViewBase.

The ViewFactory factory is used for its creation. A TextRepBase object corresponding to name is created for use by the view. The view is made an observer of plotter. The text is displayed if not null.

Definition at line 658 of file DisplayController.cxx.

References DisplayController::activeDataRepIndex(), DisplayController::createTextView(), PlotterBase::getDataRep(), ViewBase::getPlotter(), and PlotterBase::setParentPlotter().

ViewBase * createTextView ( const ViewFactory factory,
hippodraw::DataRep rep,
const std::string &  name,
const std::string &  text = std::string () 
)

Creates an object which is a derived class of ViewBase.

The ViewFactory factory is used for its creation. A TextRepBase object corresponding to name is created for use by the view. The target of the TextRepBase object is rep. The text is displayed if not null.

Definition at line 709 of file DisplayController.cxx.

References DisplayController::createTextPlotter(), and ViewFactory::createView().

Referenced by CanvasView::addTextDisplay(), CanvasView::addTextDisplayAt(), FunctionController::createFuncView(), and DisplayController::createTextView().

void fixLogIfBinned ( const PlotterBase plotter,
hippodraw::DataRep rep 
) const [private]

Fixes the rep so it displays well on plotter.

If the Plotter has an axis on the log scale, and if the corresponding axis of the DataRep is binned, then fix the DataRep so that binning is on a log scale.

Definition at line 527 of file DisplayController.cxx.

References DisplayController::setBinner(), hippodraw::Axes::X, and hippodraw::Axes::Y.

Referenced by DisplayController::addDataRep().

double getAverage ( const PlotterBase plotter,
Axes::Type  axis,
int  index = 0 
) const

Returns the average value.

Returns the average value for the DataRep indexed by index contained in the plotter. The average is taken along the axis axis. If index is out of range, raises an assertion.

Definition at line 841 of file DisplayController.cxx.

References DisplayController::getAverage(), and DisplayController::getProjector().

double getAverage ( const PlotterBase plotter,
const std::string &  axis,
int  index = 0 
) const

Returns the average value.

Returns the average value for the DataRep indexed by index contained in the plotter. The average is taken along the axis axis. If index is out of range, raises an assertion.

Definition at line 831 of file DisplayController.cxx.

References hippodraw::String::convert().

Referenced by DisplayController::getAverage().

NTupleProjector * getBindingProjector ( const PlotterBase plotter  )  const [private]

Returns projector that supports binding, if display has one, otherwise returns null pointer.

Todo:
Can replace much of this code by calling getUniqueWithNTupleBindings member function.

Definition at line 897 of file DisplayController.cxx.

References PlotterBase::getDataRep(), PlotterBase::getNumDataReps(), DataRep::getProjector(), and DisplayController::getProjector().

Referenced by DisplayController::setAxisBindings(), and DisplayController::setNTuple().

DataSource * getDataSource ( const PlotterBase plotter,
int  index 
)

Returns the DataSource for the DataRep indexed by index.

Returns null pointer if DataRep does not have DataSource bindings.

Definition at line 965 of file DisplayController.cxx.

References PlotterBase::getDataRep(), DataRep::getProjector(), and DataRep::hasNTupleBindings().

DataSource * getDataSource ( const PlotterBase plotter  ) 

Returns the Datasource for the plotter's selected DataRep or the DataSource used by all the DataRep objects contrained by the plotter.

Definition at line 942 of file DisplayController.cxx.

References DisplayController::activeDataRepIndex().

Referenced by CutController::addCut(), DisplayController::areDataSourcesSaved(), CutController::getCutList(), DisplayController::getDataSourceName(), DisplayController::setAllIntervalEnabled(), DisplayController::setIntervalCount(), DisplayController::setIntervalEnabled(), and Inspector::updateFunctionsTab().

const vector< string > & getDataSourceLabels ( const PlotterBase plotter,
int  index 
)

Returns the labels of the DataSource columns for the DataRep contained in the plotter at index index.

Definition at line 1056 of file DisplayController.cxx.

References PlotterBase::getDataRep(), DataSource::getLabels(), NTupleProjector::getNTuple(), DataRep::getProjector(), and DisplayController::m_null_vector.

const string & getDataSourceName ( const PlotterBase plotter,
int  index 
)

Returns the name of the DataSource for the DataRep contained in the plotter at index index.

Definition at line 1047 of file DisplayController.cxx.

References DisplayController::getDataSource().

const vector< string > & getDisplayTypes (  )  const

Returns the types of displays available.

Definition at line 249 of file DisplayController.cxx.

References DataRepFactory::instance().

bool getLog ( const PlotterBase plotter,
Axes::Type  axis 
) const

Returns true if the designated axis is on a logarithm scale.

Todo:
un-hard code this when we have XYZ transform?

Definition at line 1170 of file DisplayController.cxx.

References PlotterBase::getTransform(), TransformBase::name(), hippodraw::Axes::X, XYTransform::xTransform(), hippodraw::Axes::Y, XYTransform::yTransform(), hippodraw::Axes::Z, and BinaryTransform::zTransform().

bool getLog ( const PlotterBase plotter,
const std::string &  axis 
) const

Returns true if the designated axis is on a logarithmic scale.

Definition at line 1160 of file DisplayController.cxx.

References hippodraw::String::convert().

Referenced by DisplayController::createDifferenceDisplay(), QtDisplay::getLog(), and QtDisplay::resize().

int getNumberOfEntries ( const PlotterBase plotter,
int  index = 0 
) const

Returns the number of entries.

Returns the number of entries of the Data Rep indexed by index contain in the plotter. If the index is out of range, an assertion is raised.

Definition at line 802 of file DisplayController.cxx.

References DisplayController::getProjector().

int getOverflow ( const PlotterBase plotter,
int  index = 0 
) const

Returns the number of overflow.

If the index is out of range, an assertion is raised.

Definition at line 822 of file DisplayController.cxx.

References DisplayController::getProjector().

ProjectorBase * getProjector ( const PlotterBase display  )  const [private]

Returns the currently selected projector in the plot.

Definition at line 884 of file DisplayController.cxx.

References DataRep::getProjector(), and PlotterBase::selectedDataRep().

Referenced by DisplayController::getAverage(), DisplayController::getBindingProjector(), DisplayController::getNumberOfEntries(), DisplayController::getOverflow(), DisplayController::getRMS(), DisplayController::getUnderflow(), and DisplayController::isDataValid().

unsigned int getRepStyle ( const PlotterBase plotter  )  const

Returns the style of the point representation.

Definition at line 1465 of file DisplayController.cxx.

Referenced by Inspector::updatePlotTab().

double getRMS ( const PlotterBase plotter,
Axes::Type  axis,
int  index = 0 
) const

Returns the root mean square along the specified axis for DataRep indexed by index.

Bug:
Only works for the X axis.

Definition at line 864 of file DisplayController.cxx.

References DisplayController::getProjector(), and DisplayController::getRMS().

double getRMS ( const PlotterBase plotter,
const std::string &  axis,
int  index = 0 
) const

Returns the root mean square along the specified axis for DataRep indexed by index.

Bug:
Only works for the X axis.

Definition at line 854 of file DisplayController.cxx.

References hippodraw::String::convert().

Referenced by DisplayController::getRMS().

const vector< string > & getTextTypes (  )  const

Returns the types of text displays.

Definition at line 676 of file DisplayController.cxx.

References TextRepFactory::instance(), and Factory::names().

const string & getType ( const PlotterBase plotter,
int  index 
) const

Returns the type of DataRep contained in the plotter at index index.

Definition at line 875 of file DisplayController.cxx.

References PlotterBase::getDataRep(), and DataRep::name().

int getUnderflow ( const PlotterBase plotter,
int  index = 0 
) const

Returns the number of underflow.

If the index is out of range, an assertion is raised.

Definition at line 813 of file DisplayController.cxx.

References DisplayController::getProjector().

DataRep * getUniqueWithNTupleBindings ( const PlotterBase plotter  )  [private]

Returns the unique DataRep.

Returns a DataRep if only one of contained by the plotter has NTuple bindings or if only one is active, otherwise returns a null pointer.

Definition at line 1071 of file DisplayController.cxx.

References PlotterBase::getDataRep(), and DisplayController::hasNTupleBindings().

const vector< double > & getValueCtrlPts ( const PlotterBase plotter  ) 

Returns the control points of the value to color transform model.

Definition at line 167 of file DisplayController.cxx.

References PlotterBase::getValueRep().

int getValueTransformIndex ( PlotterBase plotter  ) 

Returns the index to list of value to color transform names of the plotter.

Definition at line 202 of file DisplayController.cxx.

References DisplayController::getValueTransformTypes(), and num_util::size().

const vector< string > & getValueTransformTypes (  )  const

Returns the types of value to color transforms available.

Definition at line 111 of file DisplayController.cxx.

References BinToColorFactory::instance().

Referenced by DisplayController::getValueTransformIndex().

bool hasControlPoints ( const PlotterBase plotter  )  const

Returns true if value to color transform has control points.

If PointRepBase object is one that transforms value to color and if the value to color transform can be varied, then returns true, otherwise returns false.

Definition at line 223 of file DisplayController.cxx.

bool hasLineRep ( const PlotterBase plotter  )  const

Returns true if active DataRep uses LinePointRep, otherwise returns false.

Definition at line 1445 of file DisplayController.cxx.

bool hasNTupleBindings ( const PlotterBase plotter,
int  index 
)

Returns true if the DataRep contained by the plotter at index index has NTuple bindings.

Definition at line 1036 of file DisplayController.cxx.

References PlotterBase::getDataRep(), and DataRep::hasNTupleBindings().

Referenced by DisplayController::createDisplay(), DisplayController::getUniqueWithNTupleBindings(), and Inspector::updateAxisTab().

bool hasSymbolRep ( const PlotterBase plotter  )  const

Returns true if active DataRep uses SymbolPointRep, otherwise returns false.

Definition at line 1435 of file DisplayController.cxx.

DisplayController * instance (  )  [static]

Returns the pointer to the singleton instance.

Definition at line 101 of file DisplayController.cxx.

References DisplayController::DisplayController(), and DisplayController::s_instance.

Referenced by CutController::addCut(), QtDisplay::addDataRep(), PickTable::addDataRep(), FunctionController::addDataRep(), Inspector::addDataRepButton_clicked(), QtDisplay::addDataRepStacked(), QtDisplay::addFunction(), CanvasView::addTextDisplay(), CanvasView::addTextDisplayAt(), PlotterBaseXML::areDataSourcesSaved(), Inspector::availPlotTypesActivated(), Inspector::axisLabelChanged(), CanvasView::contentsMouseMoveEvent(), Inspector::contourLevelsTextBox_returnPressed(), Inspector::contourSlider_valueChanged(), Inspector::contourTextBox_returnPressed(), DisplayController::createDifferenceDisplay(), QtDisplay::createDisplay(), FunctionController::createFuncView(), FunctionController::createNewEllipsoidDisplay(), FunctionController::createResidualsDisplay(), Inspector::cutNew(), Inspector::cutRemovePushButton_clicked(), Inspector::deleteColorModel(), CanvasView::deleteSelected(), Inspector::diffDataRep(), Inspector::editColorModel(), Inspector::errorBars_toggled(), CanvasView::fillSelectedWithObservers(), Inspector::functionAdd(), Inspector::functionsFitToDataButton_clicked(), Inspector::functionsResetButton_clicked(), Inspector::getCutList(), CutController::getCutList(), Inspector::getDataCutList(), QtDisplay::getLog(), PyCanvas::getTextRepTypes(), Inspector::intervalStateChanged(), Inspector::intervalTextChanged(), Inspector::lineStyleButtonGroup_clicked(), Inspector::loadAllUserModels(), Inspector::logScale_clicked(), Inspector::newColorModel(), Inspector::newPlotButton_clicked(), Inspector::pointRepComboBox_activated(), QtDisplay::QtDisplay(), QtDisplay::resize(), PyDataRep::setBinWidth(), CanvasView::setIntervalEnabled(), QtDisplay::setLog(), QtDisplay::setOffset(), Inspector::setOffset(), Inspector::setOffsetText(), QtDisplay::setTransform(), Inspector::setWidthText(), Inspector::sliderChanged(), Inspector::summaryNew(), Inspector::symbolPointSize_returnPressed(), Inspector::symbolTypeButtonGroup_clicked(), Inspector::transform_button_group_clicked(), Inspector::updateAxisTab(), Inspector::updateColorMapCtrls(), Inspector::updateCutVarGroupBox(), Inspector::updateDataCutsTab(), Inspector::updateFunctionsTab(), Inspector::updateLogBox(), Inspector::updatePlotTab(), Inspector::updatePlotTypes(), Inspector::updateSelectedPlotData(), Inspector::updateSelectedPlotType(), Inspector::updateSummaryTab(), Inspector::updateTransformTab(), Inspector::updateValueCombo(), Inspector::valueChanged(), and Inspector::~Inspector().

bool isAxisBinned ( PlotterBase display,
const std::string &  axis 
)

Tests if specified axis is binned.

Returns true if only one DataRep is selected and it is binned on specified axis.

Definition at line 640 of file DisplayController.cxx.

References PlotterBase::activePlotIndex(), PlotterBase::activeProjector(), FunctionController::getUniqueNonFunctionIndex(), FunctionController::instance(), and ProjectorBase::isAxisBinned().

bool isCompatible ( const PlotterBase plotter,
const std::string &  datarep 
) const [private]

Returns true if adding a DataRep of type type to the PlotterBase @ plotter is compatible, otherwise returns false.

Bug:
Part of being compatible is same aspect ratio or none.

Definition at line 556 of file DisplayController.cxx.

References PlotterBase::hasAxis(), DataRepFactory::instance(), Factory::prototype(), and hippodraw::Axes::Z.

Referenced by DisplayController::addDataRep(), and DisplayController::addDataRepStacked().

bool isDataValid ( const hippodraw::DataRep rep  )  const

Returns true only if all the data in a bound DataSource are valid.

Definition at line 1145 of file DisplayController.cxx.

References DisplayController::getProjector(), and DisplayController::isDataValid().

bool isDataValid ( const PlotterBase plotter  )  const

Returns true only if all the data in a bound DataSource are valid.

Definition at line 1132 of file DisplayController.cxx.

Referenced by DisplayController::isDataValid().

bool isUserDefinedValueTransform ( const PlotterBase plotter  )  const

Returns true if value to color transform is user defined.

Definition at line 236 of file DisplayController.cxx.

float pointSize ( const PlotterBase plotter  )  const

Returns the size of the representation.

Definition at line 1426 of file DisplayController.cxx.

References PlotterBase::representation(), and RepBase::size().

void remove ( PlotterBase plotter  ) 

Deletes a PlotterBase object.

Definition at line 1421 of file DisplayController.cxx.

void removeTextObservers ( const std::vector< const ViewBase * > &  views  ) 

Removes TextRep Observer objects, if any, from its target.

Definition at line 573 of file DisplayController.cxx.

References TextPlotter::getParentDataRep(), ViewBase::getPlotter(), and Observable::removeObserver().

Referenced by CanvasView::deleteSelected().

bool removeValueTransform ( const std::string &  name  ) 

Removes the value to color transform model.

If the named value to color transform model is of typed user defined, then remove it from the corresponding factory. Returns @ true if it was removed, otherwise returns false.

Definition at line 153 of file DisplayController.cxx.

References BinToColorFactory::instance().

Referenced by DisplayController::saveValueCtrlPts().

void saveValueCtrlPts ( PlotterBase plotter,
const std::vector< double > &  sv 
)

Save the updated control points of a BinToColor transform.

In this method, we remove and then add the updated transform. This will make the changes effective immediatly.

Definition at line 188 of file DisplayController.cxx.

References DisplayController::addValueTransform(), PlotterBase::getValueRep(), BinToColor::name(), and DisplayController::removeValueTransform().

void setActiveDataRepIndex ( PlotterBase plotter,
int  index 
)

Sets the active DataRep index.

Sets the active DataRep index and redraws the plot. If index is negative, sets all the contained DataRep objects to be active.

Definition at line 745 of file DisplayController.cxx.

void setAllIntervalEnabled ( const PlotterBase plotter,
bool  yes 
)

Sets the interval counting to yes of all the NTuple used by the plotter.

Definition at line 1007 of file DisplayController.cxx.

References DisplayController::getDataSource(), PlotterBase::getNumDataReps(), and NTuple::setIntervalEnabled().

void setAxisBinding ( PlotterBase plotter,
const std::string &  axis,
const std::string &  label 
)

Sets the axis binding, if any, otherwise does nothing.

After setting the axis binding, set the plotter to auto-ranging and auto-ranges the data representations.

Definition at line 1103 of file DisplayController.cxx.

References hippodraw::Axes::X, and hippodraw::Axes::Y.

void setAxisBindings ( PlotterBase plotter,
const std::vector< std::string > &  labels 
) const

Sets all the axis bindings, if any, otherwise does nothing.

Definition at line 1119 of file DisplayController.cxx.

References DisplayController::getBindingProjector(), PlotterBase::setAutoRanging(), and NTupleProjector::setAxisBindings().

void setAxisModel ( PlotterBase plotter,
Axes::Type  axis,
const std::string &  type 
) [private]

Sets the axis model to type.

The string type should be "Linear" or "Log", otherwise an assertion is raised. If plotter doesn't have a axis model for axis, nothing is done.

Definition at line 1246 of file DisplayController.cxx.

References PlotterBase::getAxisModel(), PlotterBase::getPosRange(), Range::high(), AxisModelBase::isLog(), PlotterBase::setAxisModel(), DisplayController::setBinner(), and AxisModelBase::setRangePos().

Referenced by DisplayController::setLog().

void setAxisModelWithoutSetBin ( PlotterBase plotter,
Axes::Type  axis,
const std::string &  type 
) [private]

set the axis to log or linear, without reseting the bin width.

Definition at line 1644 of file DisplayController.cxx.

References PlotterBase::getAxisModel(), PlotterBase::getPosRange(), Range::high(), AxisModelBase::isLog(), PlotterBase::setAxisModel(), and AxisModelBase::setRangePos().

Referenced by DisplayController::setTransformAxis().

void setBinner ( PlotterBase plotter,
Axes::Type  axis 
) [private]

Sets the binner of of any Binning projectors to agree with AxisModel.

Todo:
Remove this function when GUI has separate controls for displaying Log and binning log.

Definition at line 1233 of file DisplayController.cxx.

References PlotterBase::getDataRep(), PlotterBase::getNumDataReps(), and DisplayController::setBinner().

void setBinner ( const PlotterBase plotter,
DataRep rep,
Axes::Type  axis 
) const [private]

Sets the binner on the DataRep.

Sets the binner on the DataRep rep to agree with the axis scaling on plotter with respect to linear or logarithmic scale. If the rep is not using a binning projector, or if the rep is not binned on axis, then this member function does nothing.

Definition at line 1199 of file DisplayController.cxx.

References DataRep::getProjector(), BinnerAxisFactory::instance(), ProjectorBase::isAxisBinned(), AxisModelBase::isLog(), BinningProjector::setBinnerOn(), BinnerAxis::setRange(), and hippodraw::Axes::Y.

Referenced by DisplayController::fixLogIfBinned(), DisplayController::setAxisModel(), and DisplayController::setBinner().

void setBinWidth ( DataRep datarep,
Axes::Type  axis,
double  width 
)

Sets the bin width of the DataRep object.

Sets the bin width of the DataRep object and informs its plotter.

Definition at line 1517 of file DisplayController.cxx.

References DisplayController::setBinWidth().

void setBinWidth ( PlotterBase plotter,
const std::string &  axis,
double  width 
)

Sets the bin width parameter.

If a single DataRep is on the display, or if a single DataRep on a multiple DataRep display is active, the bin width for that DataRep is set. If multiple DataRep objects are active, then each one has its bin width set. In the case of multiple DataRep objects width different bin widths, the default Y or Z axis label is set to "density", otherwise set to "entries / bin".

Definition at line 1506 of file DisplayController.cxx.

References hippodraw::String::convert(), and DisplayController::setBinWidth().

void setBinWidth ( PlotterBase plotter,
Axes::Type  axis,
double  width 
) [private]

Sets the bin width parameter.

If a single DataRep is on the display, or if a single DataRep on a multiple DataRep display is active, the bin width for that DataRep is set. If multiple DataRep objects are active, then each one has its bin width set. In the case of multiple DataRep objects width different bin widths, the default Y or Z axis label is set to "density", otherwise set to "entries / bin".

Definition at line 1537 of file DisplayController.cxx.

References PlotterBase::setAutoRanging().

Referenced by DisplayController::setBinWidth().

void setErrorDisplayed ( const PlotterBase plotter,
Axes::Type  axis,
bool  state 
) const

Set the error display.

For the active DataRep contained by plotter, sets its error display on the axis axis to on, if state is true, otherwise turns it off.

Definition at line 1609 of file DisplayController.cxx.

References DisplayController::activeDataRepIndex().

void setIntervalCount ( const PlotterBase plotter,
unsigned int  count 
)

Sets the interval count on the the NTuple of the active DataRep of the plotter.

Definition at line 983 of file DisplayController.cxx.

References DisplayController::activeDataRepIndex(), DisplayController::getDataSource(), and NTuple::setIntervalCount().

Referenced by Inspector::intervalTextChanged().

void setIntervalEnabled ( const PlotterBase plotter,
bool  yes 
)

Sets the interval counting to yes on the NTuple of the active DataRep of the plotter.

Definition at line 995 of file DisplayController.cxx.

References DisplayController::activeDataRepIndex(), DisplayController::getDataSource(), and NTuple::setIntervalEnabled().

Referenced by Inspector::intervalStateChanged().

void setLog ( PlotterBase plotter,
Axes::Type  axis,
bool  flag,
XYTransform transform 
)

Sets a log scale on or off for the specified axis in special case that the transform object is a XYTransform.

See also:
setLog(PlotterBase *, hippodraw::Axes::Type, bool )

Definition at line 1335 of file DisplayController.cxx.

References TransformFactory::createTransform(), TransformFactory::instance(), TransformBase::name(), DisplayController::setAxisModel(), PlotterBase::setTransform(), hippodraw::Axes::X, XYTransform::xTransform(), hippodraw::Axes::Y, XYTransform::yTransform(), hippodraw::Axes::Z, and BinaryTransform::zTransform().

void setLog ( PlotterBase plotter,
Axes::Type  axis,
bool  flag 
)

Sets the log scale on or off for the specified axis for the plotter.

If flag is true, then the log scale is set on, otherwise a linear scale is set on. An XYTransform object is created and sent to the display.

Todo:
This function should go away in favor of one taking string for axis argument.
Todo:
Check that display can do it.

Definition at line 1303 of file DisplayController.cxx.

References PlotterBase::getTransform(), TransformFactory::instance(), DisplayController::setAxisModel(), DisplayController::setLog(), DisplayController::setTransform(), num_util::type(), hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z.

void setLog ( PlotterBase plotter,
const std::string &  axis,
bool  flag 
)

Sets a log scale on or off for the specified axis for the plotter.

If flag is true, then the log scale is set on, otherwise a linear scale is set on. An XYTransform object is created and sent to the display.

Definition at line 1292 of file DisplayController.cxx.

References hippodraw::String::convert().

Referenced by DisplayController::createDifferenceDisplay(), FunctionController::createResidualsDisplay(), QtDisplay::setLog(), and DisplayController::setLog().

void setNTuple ( PlotterBase plotter,
const NTuple ntuple 
) const

Sets the ntuple on the selected DataRep, if it has ntuple bindings, otherwise does nothing.

Definition at line 927 of file DisplayController.cxx.

References Observable::addObserver(), DisplayController::getBindingProjector(), Observable::notifyObservers(), PlotterBase::selectedDataRep(), and NTupleProjector::setNTuple().

void setOffset ( PlotterBase plotter,
Axes::Type  axis,
double  offset 
)

Sets the offset parameter.

Definition at line 1583 of file DisplayController.cxx.

References PlotterBase::activePlotIndex(), PlotterBase::getNumDataReps(), PlotterBase::getProjector(), and ProjectorBase::setOffset().

void setOffset ( PlotterBase plotter,
const std::string &  axis,
int  parm,
bool  dragging 
)

Sets the offset from dragging slider.

Todo:
Use Axes::convert.
Todo:
Remove duplicated code compared to DisplayController::setBinWidth.

Definition at line 1551 of file DisplayController.cxx.

References PlotterBase::activePlotIndex(), PlotterBase::getNumDataReps(), PlotterBase::getProjector(), PlotterBase::setAutoRanging(), ProjectorBase::setOffset(), hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z.

Referenced by QtDisplay::setOffset().

void setPointRep ( PlotterBase plotter,
const std::string &  point_rep 
)

Sets the type of RepBase object to be used by the selected DataRep.

Sets the type of RepBase object to be used by the selected DataRep. The type is specified by the string point_rep which should be one of the types available from the PointRepFactory. If point_rep is not found, the factory will throw an FactoryException. Preserves the Color of the previous point representation on the new one.

Definition at line 1481 of file DisplayController.cxx.

References DisplayController::activeDataRepIndex(), and PointRepFactory::instance().

void setRange ( PlotterBase plotter,
Axes::Type  axis,
const Range range 
)

Sets the Range on specified axis.

Also sets auto Ranging to off.

Definition at line 1495 of file DisplayController.cxx.

References PlotterBase::setAutoRanging(), and PlotterBase::setRange().

void setRepSize ( PlotterBase plotter,
float  size 
)

Sets the size of the representation.

Definition at line 1472 of file DisplayController.cxx.

References PlotterBase::selectedDataRep(), and DataRep::setRepSize().

void setTransform ( PlotterBase plotter,
const std::string &  x,
const std::string &  y,
const std::string &  z 
)

Creates and sets the new XYZ transform for the display.

void setTransform ( PlotterBase plotter,
const std::string &  x,
const std::string &  y 
)

Creates and sets the new XY transform for the display.

Definition at line 1408 of file DisplayController.cxx.

References TransformFactory::createTransform(), TransformFactory::instance(), and PlotterBase::setTransform().

void setTransform ( PlotterBase plotter,
const std::string &  name 
)

Creates and sets a new transform for the display.

Definition at line 1393 of file DisplayController.cxx.

References TransformFactory::createTransform(), TransformFactory::instance(), and PlotterBase::setTransform().

Referenced by DisplayController::setLog(), and QtDisplay::setTransform().

void setTransformAxis ( PlotterBase plotter,
const std::string &  x,
const std::string &  y 
)

Set both X and Y axis to log or linear, without resetting the bin width.

Definition at line 1633 of file DisplayController.cxx.

References DisplayController::setAxisModelWithoutSetBin(), hippodraw::Axes::X, and hippodraw::Axes::Y.

void setValueCtrlPts ( PlotterBase plotter,
const std::vector< double > &  sv 
)

Sets the control points for the value to color transform model.

Definition at line 175 of file DisplayController.cxx.

References PlotterBase::getValueRep().

void setValueTransform ( PlotterBase plotter,
int  index 
)

Sets a new value transform for the plotter.

Definition at line 130 of file DisplayController.cxx.

References BinToColorFactory::instance().

void setValueTransform ( PlotterBase plotter,
const std::string &  name 
)

Sets the value to color transform model.

Definition at line 120 of file DisplayController.cxx.

References BinToColorFactory::instance().

void stackDataRep ( PlotterBase plotter,
hippodraw::DataRep rep 
) const

Adds the DataRep to the PlotterBase object by stacking it.

Definition at line 482 of file DisplayController.cxx.

References DisplayController::addDataRepStacked().

Referenced by DisplayController::addDataRepStacked().


Member Data Documentation

std::string m_null_string [private]

A null string that is returned when reference to a valid string can not be found.

Definition at line 74 of file DisplayController.h.

std::vector< std::string > m_null_vector [private]

A empty vector of strings.

This vector is returned by member functions that can not obtain a reference from a display.

Definition at line 78 of file DisplayController.h.

Referenced by DisplayController::axisBindings(), and DisplayController::getDataSourceLabels().

DisplayController * s_instance = 0 [static, private]

The pointer to the singleton object.

Definition at line 69 of file DisplayController.h.

Referenced by DisplayController::instance().


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