#include <QtCut.h>
Inheritance diagram for QtCut:
It locks the QApplication object before forwarding messages to the contained CutDisplay object. It unlocks the QApplication object upon return.
Definition at line 42 of file QtCut.h.
Public Member Functions | |
void | addDataRep (PyFunctionRep *pyFuncRep) |
Adds a Function (as PyFunctionRep). | |
void | addDataRep (PyDataRep *pyRep) |
Adds a DataRep created within Python. | |
void | addDataRep (const std::string &type, const DataSource *ntuple, const std::vector< std::string > &bindings) |
Creates and adds a DataRep to the display. | |
void | addDataRepStacked (const std::string &type, const DataSource *ntuple, const std::vector< std::string > &bindings) |
Adds a DataRep to the display by stacking, i.e. | |
void | addFunction (FunctionBase *function) |
Adds a Function (as a FunctionBase object). | |
void | addObserver (hippodraw::Observer *observer) |
Adds an observer to PlotterBase object. | |
void | addTarget (QtDisplay *) |
Adds a display as a target of the cut. | |
void | addTargets (const std::vector< QtDisplay * > &targets) |
Adds the displays as targets of the cut. | |
void | addValues (const std::vector< double > &v) |
Adds the values to the display. | |
void | applyCut (QtDisplay *cut) |
Applies a cut to the wrapped PlotterBase. | |
void | applyCuts (const std::vector< QtDisplay * > &cuts) |
Applies a cuts to the wrapped PlotterBase. | |
PyDataSource * | createDataArray () const |
Creates a data array wrapper for the contents of the display. | |
PyNTuple * | createNTuple () const |
Creates and returns an PyNTuple representing the display. | |
int | currentView () |
Return the current view index. | |
std::vector< double > | cutRange () |
Return the range of the cut. | |
void | deleteView (int index) |
Delete a view by index. | |
PlotterBase * | display () |
Returns the wrapped display object. | |
double | getBinWidth (const std::string &axis) const |
Returns the bin width on the specified axis. | |
PyDataRep * | getDataRep () |
Returns the selected DataRep in the plotter. | |
const std::vector< PyDataRep * > & | getDataReps () const |
Returns a vector of all DataReps in the plotter. | |
const std::string & | getLabel (const std::string &axis) const |
Returns the label on the specified axis. | |
int | getLog (const std::string &axis) |
Return 1 if the specified axis is logarithmically scaled. | |
std::vector< double > | getRange (const std::string &axis) |
Get the Range of the specified axis. | |
const std::string & | getTitle () const |
Returns the title of the display. | |
int | nextView (bool stepForward=true) |
Cycle through each set of plot ranges, thereby changing the view with each call. | |
double | numberOfEntries () const |
Return the number of entries in the display. | |
int | numViews () |
Return the number of stored views. | |
int | plotterId () const |
Return the Id to the plotter object. | |
QtCut (PlotterBase *plotter) | |
Create a cut object from a Cut[1/2]DPlotter object. | |
QtCut (PyDataSource &source, const std::string &label, boost::python::numeric::array array, QtDisplay *target) | |
Constructor for creating a CutPlotter using a numarray as a mask to the target display. | |
QtCut (const PyDataSource &nt, const std::vector< std::string > &binding, QtDisplay *target, double low, double high) | |
Constructor for creating a CutPlotter with axis binding to PyDataSource nt, applying the TupleCut to target, and setting the range to low and high. | |
QtCut (const DataSource &source, const std::vector< std::string > &binding, QtDisplay *target, double low, double high) | |
Constructor for creating a CutPlotter with axis binding to DataSource source, applying the TupleCut to target, and setting the range to low and high. | |
QtCut (const PyDataSource &nt, const std::vector< std::string > &binding) | |
Create a cut. | |
QtCut (const DataSource &nt, const std::vector< std::string > &binding) | |
Create a cut. | |
void | reset () |
Resets all bins. | |
void | resize () |
Restore the X and Y dimensions of the display to their saved values. | |
int | saveView () |
Save the current set of plot ranges which define a "view" for this plot. | |
void | setAspectRatio (double ratio) |
Sets the aspect ratio. | |
void | setAutoRanging (const std::string &axis, bool flag) |
Sets the auto ranging flag on specified axis. | |
void | setAutoTicks (const std::string &axis, bool yes) |
Sets the ticks to be automatic or manual. | |
void | setBinWidth (const std::string &axis, double width) |
Sets the bin width on the specified axis. | |
void | setBinWidth (const std::string &axis, double width, bool save=false) |
Sets the bin width on the specified axis. | |
void | setColorMap (const std::string &name) |
Set the color map by name. | |
void | setContourLevels (const std::vector< double > &levels) |
Set the contour levels if a ContourPointRep. | |
void | setCutRange (double low, double high, const std::string &axis="x") |
Sets the range of the cut on the chosen axis. | |
void | setEnabled (bool yes) |
Sets the enabled status. | |
void | setLabel (const std::string &axis, const std::string &label) |
Sets the label on the corresponding axis. | |
void | setLog (const std::string &axis, int flag) |
Sets the specified axis to Logarithmic binning (if applicable ) and display. | |
void | setNumberOfBins (const std::string &axis, unsigned int number) |
Sets the number of bins. | |
void | setOffset (const std::string &axis, double offset) |
Sets the offset of the bins on the specified axis. | |
void | setPointRep (RepBase *rep) |
Sets the PointRep for the display. | |
void | setRange (const std::string &axis, double low, double high) |
Sets the Range on the specified axis. | |
void | setRange (const std::string &axis, double low, double high, bool save=false) |
Sets the Range on the specified axis. | |
void | setTicks (const std::string &axis, const std::vector< double > &values, const std::vector< std::string > &labels) |
Sets the axis ticks to specified points and values. | |
void | setTitle (const std::string &title) |
Sets the title of the display. | |
void | setTransform (const std::string &name) |
Sets the Transform. | |
void | setView (int index) |
Set the view by index. | |
void | toggleInverted () |
Toggles the inversion status. | |
void | unlock () |
Unlock the QApplication in case of exception. | |
void | update () |
Updates the display. | |
Static Public Member Functions | |
static void | createFits (const std::vector< std::string > &column_list, const std::vector< QtCut * > &cut_list, DataSource *ds, const std::string &filename, const std::string &dsname) |
Static method. | |
static NTuple * | createNTuple (const std::vector< std::string > &column_list, const std::vector< QtCut * > &cut_list, DataSource *ds) |
Static method. | |
static void | createTnt (const std::vector< std::string > &column_list, const std::vector< QtCut * > &cut_list, DataSource *ds, const std::string &filename, const std::string &dsname) |
Static method. | |
static void | fillCutList (std::vector< const TupleCut * > &tuple_cut_list, const std::vector< QtCut * > &cut_list) |
Protected Attributes | |
PlotterBase * | m_plotter |
The contained PlotterBase object. | |
Private Member Functions | |
void | createCut (const DataSource &ds, const std::vector< std::string > &binding) |
Creates an uninitialized cut. |
QtCut | ( | const DataSource & | nt, | |
const std::vector< std::string > & | binding | |||
) |
Create a cut.
Definition at line 104 of file QtCut.cxx.
References QtCut::createCut(), PyApp::lock(), and PyApp::unlock().
QtCut | ( | const PyDataSource & | nt, | |
const std::vector< std::string > & | binding | |||
) |
Create a cut.
Definition at line 114 of file QtCut.cxx.
References QtCut::createCut(), PyDataSource::dataSource(), PyApp::lock(), and PyApp::unlock().
QtCut | ( | const DataSource & | source, | |
const std::vector< std::string > & | binding, | |||
QtDisplay * | target, | |||
double | low, | |||
double | high | |||
) |
Constructor for creating a CutPlotter with axis binding to DataSource source, applying the TupleCut to target, and setting the range to low and high.
Definition at line 51 of file QtCut.cxx.
References QtCut::addTarget(), QtCut::createCut(), PyApp::lock(), QtCut::setCutRange(), and PyApp::unlock().
QtCut | ( | const PyDataSource & | nt, | |
const std::vector< std::string > & | binding, | |||
QtDisplay * | target, | |||
double | low, | |||
double | high | |||
) |
Constructor for creating a CutPlotter with axis binding to PyDataSource nt, applying the TupleCut to target, and setting the range to low and high.
Definition at line 65 of file QtCut.cxx.
References QtCut::addTarget(), QtCut::createCut(), PyDataSource::dataSource(), PyApp::lock(), QtCut::setCutRange(), and PyApp::unlock().
QtCut | ( | PyDataSource & | source, | |
const std::string & | label, | |||
boost::python::numeric::array | array, | |||
QtDisplay * | target | |||
) |
Constructor for creating a CutPlotter using a numarray as a mask to the target display.
Definition at line 79 of file QtCut.cxx.
References QtCut::addTarget(), QtCut::createCut(), PyDataSource::dataSource(), PyApp::lock(), PyDataSource::saveColumnFromNumArray(), QtCut::setCutRange(), and PyApp::unlock().
QtCut | ( | PlotterBase * | plotter | ) |
Create a cut object from a Cut[1/2]DPlotter object.
If the plotter is neither then an assert is raised.
Definition at line 123 of file QtCut.cxx.
References PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
void addDataRep | ( | PyFunctionRep * | pyFuncRep | ) | [inherited] |
Adds a Function (as PyFunctionRep).
Definition at line 766 of file QtDisplay.cxx.
References DisplayController::addDataRep(), PyFunctionRep::getRep(), DisplayController::instance(), PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
void addDataRep | ( | PyDataRep * | pyRep | ) | [inherited] |
Adds a DataRep created within Python.
Definition at line 756 of file QtDisplay.cxx.
References DisplayController::addDataRep(), PyDataRep::getDataRep(), DisplayController::instance(), PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
void addDataRep | ( | const std::string & | type, | |
const DataSource * | ntuple, | |||
const std::vector< std::string > & | bindings | |||
) | [inherited] |
Creates and adds a DataRep to the display.
type | The type of DataRep. Will be used to search for the type in the DataRepFactory. If the type doesn't exist, nothing is created. No checks are made that the new DataRep is consistent for viewing with existing ones. | |
ntuple | A pointer to the DataSource to be used. | |
bindings | The labels of the columns in the DataSource to be used. |
Definition at line 730 of file QtDisplay.cxx.
References DisplayController::addDataRep(), DisplayController::instance(), PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void addDataRepStacked | ( | const std::string & | type, | |
const DataSource * | ntuple, | |||
const std::vector< std::string > & | bindings | |||
) | [inherited] |
Adds a DataRep to the display by stacking, i.e.
sharing X axis but not the Y axis.
Definition at line 744 of file QtDisplay.cxx.
References DisplayController::addDataRepStacked(), DisplayController::instance(), PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void addFunction | ( | FunctionBase * | function | ) | [inherited] |
Adds a Function (as a FunctionBase object).
Definition at line 780 of file QtDisplay.cxx.
References DisplayController::addDataRep(), FunctionController::createFunctionRep(), PlotterBase::getDataRep(), DisplayController::instance(), FunctionController::instance(), PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void addObserver | ( | hippodraw::Observer * | observer | ) | [inherited] |
Adds an observer to PlotterBase object.
Definition at line 1261 of file QtDisplay.cxx.
References QtDisplay::m_plotter.
Referenced by hippodraw::Python::export_QtDisplay().
void addTarget | ( | QtDisplay * | ) |
Adds a display as a target of the cut.
Definition at line 136 of file QtCut.cxx.
References QtDisplay::display(), CutController::instance(), PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtCut(), and QtCut::QtCut().
void addTargets | ( | const std::vector< QtDisplay * > & | targets | ) |
Adds the displays as targets of the cut.
Definition at line 147 of file QtCut.cxx.
References QtDisplay::display(), CutController::instance(), PyApp::lock(), QtDisplay::m_plotter, num_util::size(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtCut().
void addValues | ( | const std::vector< double > & | v | ) | [inherited] |
Adds the values to the display.
Definition at line 1137 of file QtDisplay.cxx.
References PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void applyCut | ( | QtDisplay * | cut | ) | [inherited] |
Applies a cut to the wrapped PlotterBase.
If cut is a wrapper for a CutPlotter, then applies the cut to the wrapped PlotterBase object, otherwise an exception is thrown.
Definition at line 1309 of file QtDisplay.cxx.
References QtDisplay::display(), CutController::instance(), PyApp::lock(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void applyCuts | ( | const std::vector< QtDisplay * > & | cuts | ) | [inherited] |
Applies a cuts to the wrapped PlotterBase.
If the cuts are rappers for a CutPlotter, then applies the cuts to the wrapped PlotterBase object. If any of the cuts is not wrapper for a cut, an exception will be thrown.
Definition at line 1324 of file QtDisplay.cxx.
References QtDisplay::display(), CutController::instance(), PyApp::lock(), num_util::size(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void createCut | ( | const DataSource & | ds, | |
const std::vector< std::string > & | binding | |||
) | [private] |
Creates an uninitialized cut.
Definition at line 42 of file QtCut.cxx.
References CutController::instance(), QtDisplay::m_plotter, and Color::yellow.
Referenced by QtCut::QtCut().
PyDataSource * createDataArray | ( | ) | const [inherited] |
Creates a data array wrapper for the contents of the display.
Definition at line 1288 of file QtDisplay.cxx.
References QtDisplay::createNTuple(), FunctionController::instance(), PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void createFits | ( | const std::vector< std::string > & | column_list, | |
const std::vector< QtCut * > & | cut_list, | |||
DataSource * | ds, | |||
const std::string & | filename, | |||
const std::string & | dsname | |||
) | [static] |
Static method.
Create a new NTuple using the column_list (labels) and cut_list (QtCut/CutPlotter). Then save it to a FITS file.
Definition at line 288 of file QtCut.cxx.
References QtCut::fillCutList(), FitsController::instance(), PyApp::lock(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtCut().
PyNTuple * createNTuple | ( | ) | const [inherited] |
Creates and returns an PyNTuple representing the display.
Definition at line 1146 of file QtDisplay.cxx.
References FunctionController::instance(), PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by QtDisplay::createDataArray(), hippodraw::Python::export_QtCut(), and hippodraw::Python::export_QtDisplay().
NTuple * createNTuple | ( | const std::vector< std::string > & | column_list, | |
const std::vector< QtCut * > & | cut_list, | |||
DataSource * | ds | |||
) | [static] |
Static method.
Create a new NTuple using the column_list (labels) and cut_list (QtCut/CutPlotter). The returned NTuple is managed by Python.
Definition at line 229 of file QtCut.cxx.
References NTupleController::createNTuple(), QtCut::fillCutList(), NTupleController::instance(), PyApp::lock(), and PyApp::unlock().
void createTnt | ( | const std::vector< std::string > & | column_list, | |
const std::vector< QtCut * > & | cut_list, | |||
DataSource * | ds, | |||
const std::string & | filename, | |||
const std::string & | dsname | |||
) | [static] |
Static method.
Create a new NTuple using the column_list (labels) and cut_list (QtCut/CutPlotter). Then save it to a TNT file.
Definition at line 257 of file QtCut.cxx.
References NTupleController::createNTupleToFile(), QtCut::fillCutList(), NTupleController::instance(), PyApp::lock(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtCut().
int currentView | ( | ) | [inherited] |
Return the current view index.
Definition at line 906 of file QtDisplay.cxx.
References PlotterBase::currentView(), and QtDisplay::m_plotter.
Referenced by hippodraw::Python::export_QtDisplay().
std::vector< double > cutRange | ( | ) |
Return the range of the cut.
For a 1 D CutPlotter the range is returned as [Xlow, Xhi] while for a 2 D CutPlotter the range is returned as [Xlow, Xhi, Ylow, Yhi]
Definition at line 188 of file QtCut.cxx.
References QtCut::fillCutList(), QtDisplay::getRange(), Range::high(), PyApp::lock(), Range::low(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtCut().
void deleteView | ( | int | index | ) | [inherited] |
Delete a view by index.
Definition at line 895 of file QtDisplay.cxx.
References PlotterBase::deleteView(), PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
PlotterBase * display | ( | ) | [inherited] |
Returns the wrapped display object.
Definition at line 723 of file QtDisplay.cxx.
References QtDisplay::m_plotter.
Referenced by PyCanvas::addDisplay(), QtCut::addTarget(), QtCut::addTargets(), PyCanvas::addText(), PyCanvas::addTextAt(), PyCanvas::addTextAtAbs(), PyFunctionRep::addTo(), QtDisplay::applyCut(), QtDisplay::applyCuts(), PyCanvas::findSelectedView(), PyCanvas::getPickTable(), and PyCanvas::removeDisplay().
void fillCutList | ( | std::vector< const TupleCut * > & | tuple_cut_list, | |
const std::vector< QtCut * > & | cut_list | |||
) | [static] |
Definition at line 324 of file QtCut.cxx.
References QtDisplay::m_plotter.
Referenced by QtCut::createFits(), QtCut::createNTuple(), QtCut::createTnt(), QtCut::cutRange(), and PyFitsController::writeToFile().
double getBinWidth | ( | const std::string & | axis | ) | const [inherited] |
Returns the bin width on the specified axis.
Definition at line 1018 of file QtDisplay.cxx.
References PlotterBase::getBinWidth(), and QtDisplay::m_plotter.
Referenced by hippodraw::Python::export_QtDisplay().
PyDataRep * getDataRep | ( | ) | [inherited] |
Returns the selected DataRep in the plotter.
Definition at line 1096 of file QtDisplay.cxx.
References PlotterBase::activePlotIndex(), PlotterBase::getDataRep(), PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
const std::vector< PyDataRep * > & getDataReps | ( | ) | const [inherited] |
Returns a vector of all DataReps in the plotter.
Definition at line 1112 of file QtDisplay.cxx.
References PlotterBase::getDataRep(), PlotterBase::getNumDataReps(), PyApp::lock(), QtDisplay::m_plotter, QtDisplay::m_pyDataReps, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
const std::string & getLabel | ( | const std::string & | axis | ) | const [inherited] |
Returns the label on the specified axis.
Definition at line 971 of file QtDisplay.cxx.
References hippodraw::String::convert(), PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
int getLog | ( | const std::string & | axis | ) | [inherited] |
Return 1 if the specified axis is logarithmically scaled.
Definition at line 1076 of file QtDisplay.cxx.
References DisplayController::getLog(), DisplayController::instance(), and QtDisplay::m_plotter.
Referenced by hippodraw::Python::export_QtDisplay().
std::vector< double > getRange | ( | const std::string & | axis | ) | [inherited] |
Get the Range of the specified axis.
Definition at line 828 of file QtDisplay.cxx.
References hippodraw::String::convert(), PlotterBase::getRange(), Range::high(), PyApp::lock(), Range::low(), QtDisplay::m_plotter, num_util::type(), and PyApp::unlock().
Referenced by QtCut::cutRange(), hippodraw::Python::export_QtDisplay(), and QtDisplay::saveView().
const std::string & getTitle | ( | ) | const [inherited] |
Returns the title of the display.
Definition at line 917 of file QtDisplay.cxx.
References PlotterBase::getTitle(), and QtDisplay::m_plotter.
Referenced by hippodraw::Python::export_QtDisplay().
int nextView | ( | bool | stepForward = true |
) | [inherited] |
Cycle through each set of plot ranges, thereby changing the view with each call.
stepForward | Direction to step through the views. |
Definition at line 877 of file QtDisplay.cxx.
References PyApp::lock(), QtDisplay::m_plotter, PlotterBase::nextView(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
double numberOfEntries | ( | ) | const [inherited] |
Return the number of entries in the display.
Definition at line 1163 of file QtDisplay.cxx.
References PlotterBase::activeProjector(), ProjectorBase::getNumberOfEntries(), and QtDisplay::m_plotter.
Referenced by hippodraw::Python::export_QtDisplay().
int numViews | ( | ) | [inherited] |
Return the number of stored views.
Definition at line 891 of file QtDisplay.cxx.
References QtDisplay::m_plotter, and PlotterBase::numViews().
Referenced by hippodraw::Python::export_QtDisplay().
int plotterId | ( | ) | const [inherited] |
Return the Id to the plotter object.
Definition at line 1218 of file QtDisplay.cxx.
References QtDisplay::m_plotter, and PlotterBase::plotterId().
Referenced by hippodraw::Python::export_QtDisplay().
void reset | ( | ) | [inherited] |
Resets all bins.
Definition at line 992 of file QtDisplay.cxx.
References PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void resize | ( | ) | [inherited] |
Restore the X and Y dimensions of the display to their saved values.
Definition at line 1171 of file QtDisplay.cxx.
References DisplayController::getLog(), DisplayController::instance(), PyApp::lock(), QtDisplay::m_binWidths, QtDisplay::m_plotter, QtDisplay::m_ranges, PlotterBase::setAutoRanging(), PlotterBase::setBinWidth(), QtDisplay::setLog(), PlotterBase::setRange(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
int saveView | ( | ) | [inherited] |
Save the current set of plot ranges which define a "view" for this plot.
Definition at line 849 of file QtDisplay.cxx.
References QtDisplay::getRange(), QtDisplay::m_plotter, QtDisplay::m_ranges, and PlotterBase::saveView().
Referenced by hippodraw::Python::export_QtDisplay().
void setAspectRatio | ( | double | ratio | ) | [inherited] |
Sets the aspect ratio.
Definition at line 1128 of file QtDisplay.cxx.
References PyApp::lock(), QtDisplay::m_plotter, PlotterBase::setAspectRatio(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void setAutoRanging | ( | const std::string & | axis, | |
bool | flag | |||
) | [inherited] |
Sets the auto ranging flag on specified axis.
Definition at line 1086 of file QtDisplay.cxx.
References hippodraw::String::convert(), PyApp::lock(), QtDisplay::m_plotter, PlotterBase::setAutoRanging(), num_util::type(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void setAutoTicks | ( | const std::string & | axis, | |
bool | yes | |||
) | [inherited] |
Sets the ticks to be automatic or manual.
Definition at line 1279 of file QtDisplay.cxx.
References PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void setBinWidth | ( | const std::string & | axis, | |
double | width | |||
) | [inherited] |
Sets the bin width on the specified axis.
This version is needed since Boost.Python cannot accommodate default arguments directly.
Definition at line 1025 of file QtDisplay.cxx.
References PyApp::lock(), QtDisplay::setBinWidth(), and PyApp::unlock().
void setBinWidth | ( | const std::string & | axis, | |
double | width, | |||
bool | save = false | |||
) | [inherited] |
Sets the bin width on the specified axis.
Definition at line 999 of file QtDisplay.cxx.
References PyApp::lock(), QtDisplay::m_binWidths, QtDisplay::m_plotter, PlotterBase::setBinWidth(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay(), and QtDisplay::setBinWidth().
void setColorMap | ( | const std::string & | name | ) | [inherited] |
Set the color map by name.
Definition at line 1227 of file QtDisplay.cxx.
References BinToColorFactory::instance(), PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void setContourLevels | ( | const std::vector< double > & | levels | ) | [inherited] |
Set the contour levels if a ContourPointRep.
Definition at line 937 of file QtDisplay.cxx.
References PlotterBase::activePlotIndex(), PlotterBase::getDataRep(), PyApp::lock(), QtDisplay::m_plotter, RepBase::name(), Observable::notifyObservers(), PlotterBase::representation(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void setCutRange | ( | double | low, | |
double | high, | |||
const std::string & | axis = "x" | |||
) |
Sets the range of the cut on the chosen axis.
The choice of axis matters only when a 2D cut is being talked about
Definition at line 164 of file QtCut.cxx.
References hippodraw::Axes::convert(), PyApp::lock(), QtDisplay::m_plotter, num_util::type(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtCut(), and QtCut::QtCut().
void setEnabled | ( | bool | yes | ) |
Sets the enabled status.
Sets the enabled status of the CutPlotter. A plotter that is disabled keeps its target but does not apply the cut.
Definition at line 209 of file QtCut.cxx.
References PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtCut().
void setLabel | ( | const std::string & | axis, | |
const std::string & | label | |||
) | [inherited] |
Sets the label on the corresponding axis.
Definition at line 958 of file QtDisplay.cxx.
References hippodraw::String::convert(), PyApp::lock(), QtDisplay::m_plotter, PlotterBase::setLabel(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void setLog | ( | const std::string & | axis, | |
int | flag | |||
) | [inherited] |
Sets the specified axis to Logarithmic binning (if applicable ) and display.
Definition at line 1065 of file QtDisplay.cxx.
References hippodraw::String::convert(), DisplayController::instance(), PyApp::lock(), QtDisplay::m_plotter, DisplayController::setLog(), num_util::type(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay(), and QtDisplay::resize().
void setNumberOfBins | ( | const std::string & | axis, | |
unsigned int | number | |||
) | [inherited] |
Sets the number of bins.
Definition at line 983 of file QtDisplay.cxx.
References PyApp::lock(), QtDisplay::m_plotter, PlotterBase::setNumberOfBins(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void setOffset | ( | const std::string & | axis, | |
double | offset | |||
) | [inherited] |
Sets the offset of the bins on the specified axis.
Definition at line 1032 of file QtDisplay.cxx.
References hippodraw::String::convert(), DisplayController::instance(), PyApp::lock(), QtDisplay::m_plotter, DisplayController::setOffset(), num_util::type(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void setPointRep | ( | RepBase * | rep | ) | [inherited] |
Sets the PointRep for the display.
Definition at line 923 of file QtDisplay.cxx.
References PyApp::lock(), QtDisplay::m_plotter, PlotterBase::setRepresentation(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void setRange | ( | const std::string & | axis, | |
double | low, | |||
double | high | |||
) | [inherited] |
Sets the Range on the specified axis.
This version is needed since Boost.Python cannot accommodate default arguments directly.
Definition at line 819 of file QtDisplay.cxx.
References PyApp::lock(), QtDisplay::setRange(), and PyApp::unlock().
void setRange | ( | const std::string & | axis, | |
double | low, | |||
double | high, | |||
bool | save = false | |||
) | [inherited] |
Sets the Range on the specified axis.
Definition at line 800 of file QtDisplay.cxx.
References PyApp::lock(), QtDisplay::m_plotter, QtDisplay::m_ranges, PlotterBase::setRange(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay(), and QtDisplay::setRange().
void setTicks | ( | const std::string & | axis, | |
const std::vector< double > & | values, | |||
const std::vector< std::string > & | labels | |||
) | [inherited] |
Sets the axis ticks to specified points and values.
Definition at line 1268 of file QtDisplay.cxx.
References PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void setTitle | ( | const std::string & | title | ) | [inherited] |
Sets the title of the display.
Definition at line 910 of file QtDisplay.cxx.
References PyApp::lock(), QtDisplay::m_plotter, PlotterBase::setTitle(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void setTransform | ( | const std::string & | name | ) | [inherited] |
Sets the Transform.
Definition at line 1044 of file QtDisplay.cxx.
References DisplayController::instance(), PyApp::lock(), QtDisplay::m_plotter, DisplayController::setTransform(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void setView | ( | int | index | ) | [inherited] |
Set the view by index.
Definition at line 865 of file QtDisplay.cxx.
References PyApp::lock(), QtDisplay::m_plotter, PlotterBase::setView(), and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void toggleInverted | ( | ) |
Toggles the inversion status.
Definition at line 219 of file QtCut.cxx.
References PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtCut().
void unlock | ( | ) | [inherited] |
Unlock the QApplication in case of exception.
Definition at line 1061 of file QtDisplay.cxx.
References PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
void update | ( | ) | [inherited] |
Updates the display.
Definition at line 1250 of file QtDisplay.cxx.
References PyApp::lock(), QtDisplay::m_plotter, and PyApp::unlock().
Referenced by hippodraw::Python::export_QtDisplay().
PlotterBase* m_plotter [protected, inherited] |
The contained PlotterBase object.
Definition at line 97 of file QtDisplay.h.
Referenced by QtDisplay::addDataRep(), QtDisplay::addDataRepStacked(), QtDisplay::addFunction(), QtDisplay::addObserver(), QtCut::addTarget(), QtCut::addTargets(), QtDisplay::addValues(), QtCut::createCut(), QtDisplay::createDataArray(), QtDisplay::createDisplay(), QtDisplay::createNTuple(), QtDisplay::currentView(), QtCut::cutRange(), QtDisplay::deleteView(), QtDisplay::display(), QtCut::fillCutList(), QtDisplay::getBinWidth(), QtDisplay::getDataRep(), QtDisplay::getDataReps(), QtDisplay::getLabel(), QtDisplay::getLog(), QtDisplay::getRange(), QtDisplay::getTitle(), QtDisplay::nextView(), QtDisplay::numberOfEntries(), QtDisplay::numViews(), QtDisplay::plotterId(), QtCut::QtCut(), QtDisplay::QtDisplay(), QtDisplay::reset(), QtDisplay::resize(), QtDisplay::saveView(), QtDisplay::setAspectRatio(), QtDisplay::setAutoRanging(), QtDisplay::setAutoTicks(), QtDisplay::setBinWidth(), QtDisplay::setColorMap(), QtDisplay::setContourLevels(), QtCut::setCutRange(), QtCut::setEnabled(), QtDisplay::setLabel(), QtDisplay::setLog(), QtDisplay::setNumberOfBins(), QtDisplay::setOffset(), QtDisplay::setPointRep(), QtDisplay::setRange(), QtDisplay::setTicks(), QtDisplay::setTitle(), QtDisplay::setTransform(), QtDisplay::setView(), QtCut::toggleInverted(), and QtDisplay::update().