#include <PyCanvas.h>
Collaboration diagram for PyCanvas:
Paul F. Kunz <Paul_Kunz@slac.stanford.edu>
Definition at line 41 of file PyCanvas.h.
Public Member Functions | |
void | addDisplay (QtDisplay *display_wrap) |
Adds the display to the canvas. | |
void | addText (QtDisplay *display, const std::string &text) |
Add a BoxTextRep. | |
void | addTextAt (QtDisplay *display, const std::string &text, double xrel, double yrel) |
Add a BoxTextRep at a specific location in the selected display item's canvas coordinate system. | |
void | addTextRep (QtDisplay *display, const std::string &type) |
Adds a textual data representation to display or type type. | |
void | clear () |
Removes all items from the CanvasWindow. | |
void | close () |
Closes the canvas window. | |
QtCut * | getCut () |
Returns a QtCut object or null pointer if its not a QtCut object. | |
QtDisplay * | getDisplay () |
Returns the selected display on the canvas. | |
const std::vector< QtDisplay * > & | getDisplays () const |
Returns all displays on the canvas. | |
const std::vector< std::string > & | getTextRepTypes () const |
Returns the types of textual data representations available. | |
const std::vector< double > & | mouseData () |
Retrieve a tuple of (x, y, z) points from the next mouse event. | |
void | print (const std::string &filename) |
Prints the canvas to a PostScript file. | |
PyCanvas () | |
The default constructor. | |
PyCanvas (CanvasWindow *) | |
A constructor taking as argument the real canvas used by this object. | |
void | removeDisplay (QtDisplay *display) |
Remove a display. | |
void | saveAs (const std::string &filename) |
Saves the document to the specified file. | |
void | saveAsImage (QtDisplay *display, const std::string &filename) |
Save the display as an image file. | |
void | saveSelectedImages (const std::string &filename) |
Save the selected images as an image file. | |
void | selectAllDisplays (bool flag=true) |
Select or un-select all the displays on the canvas. | |
void | selectDisplay (QtDisplay *display) |
Select a specific display. | |
void | setPlotMatrix (unsigned int columns, unsigned int rows) |
Sets the number for columns and rows of plots on each page. | |
void | show () |
Displays the canvas window on the screen. | |
Private Member Functions | |
QtView * | findSelectedView (QtDisplay *display) |
Return the QtView associated with the given QtDisplay. | |
Private Attributes | |
QApplication * | m_app |
The application object. | |
CanvasWindow * | m_canvas |
The actual canvas window in the application thread. | |
std::vector< QtDisplay * > | m_displays |
Pointers to QtDisplay objects on the current canvas. |
|
A constructor taking as argument the real canvas used by this object.
Definition at line 173 of file PyCanvas.cxx. |
|
The default constructor.
Definition at line 179 of file PyCanvas.cxx. References QApplication::lock(), m_app, m_canvas, and QApplication::unlock(). |
|
Adds the display to the canvas.
Definition at line 205 of file PyCanvas.cxx. References CanvasWindow::addPlotDisplay(), QtDisplay::display(), QApplication::lock(), m_app, m_canvas, and QApplication::unlock(). Referenced by hippodraw::Python::export_Canvas(). |
|
Add a BoxTextRep.
Definition at line 397 of file PyCanvas.cxx. References CanvasWindow::addTextDisplay(), QtDisplay::display(), QApplication::lock(), m_app, m_canvas, PlotterBase::setActivePlot(), and QApplication::unlock(). Referenced by hippodraw::Python::export_Canvas(). |
|
Add a BoxTextRep at a specific location in the selected display item's canvas coordinate system.
Definition at line 416 of file PyCanvas.cxx. References CanvasWindow::addTextDisplayAt(), QtDisplay::display(), QApplication::lock(), m_app, m_canvas, PlotterBase::setActivePlot(), and QApplication::unlock(). Referenced by hippodraw::Python::export_Canvas(). |
|
Adds a textual data representation to display or type type.
Definition at line 360 of file PyCanvas.cxx. References FunctionController::instance(), m_app, and m_canvas. Referenced by hippodraw::Python::export_Canvas(). |
|
Removes all items from the CanvasWindow.
Definition at line 454 of file PyCanvas.cxx. References m_app, and m_canvas. Referenced by hippodraw::Python::export_Canvas(). |
|
Closes the canvas window.
Definition at line 198 of file PyCanvas.cxx. References m_app, and m_canvas. Referenced by hippodraw::Python::export_Canvas(). |
|
Return the QtView associated with the given QtDisplay.
Definition at line 337 of file PyCanvas.cxx. References QtDisplay::display(), ViewBase::getPlotter(), CanvasWindow::getViewFor(), m_canvas, and CanvasWindow::views(). Referenced by saveAsImage(), and selectDisplay(). |
|
Returns a QtCut object or null pointer if its not a QtCut object.
Definition at line 260 of file PyCanvas.cxx. References m_canvas, and CanvasWindow::selectedPlotter(). Referenced by hippodraw::Python::export_Canvas(). |
|
Returns the selected display on the canvas. If none or more than one display is selected, this routine returns a null pointer Definition at line 226 of file PyCanvas.cxx. References m_app, m_canvas, and CanvasWindow::selectedPlotter(). Referenced by hippodraw::Python::export_Canvas(). |
|
Returns all displays on the canvas.
Definition at line 239 of file PyCanvas.cxx. References ViewBase::getPlotter(), QApplication::lock(), m_app, m_canvas, m_displays, QApplication::unlock(), and CanvasWindow::views(). Referenced by hippodraw::Python::export_Canvas(). |
|
Returns the types of textual data representations available.
Definition at line 390 of file PyCanvas.cxx. References DisplayController::instance(). Referenced by hippodraw::Python::export_Canvas(). |
|
Retrieve a tuple of (x, y, z) points from the next mouse event.
Definition at line 435 of file PyCanvas.cxx. References m_canvas, and CanvasWindow::mouseEventData(). Referenced by hippodraw::Python::export_Canvas(). |
|
Prints the canvas to a PostScript file.
Definition at line 294 of file PyCanvas.cxx. References m_app, and m_canvas. Referenced by hippodraw::Python::export_Canvas(). |
|
Remove a display.
Definition at line 352 of file PyCanvas.cxx. References QtDisplay::display(), m_canvas, and CanvasWindow::removeDisplay(). Referenced by hippodraw::Python::export_Canvas(). |
|
Saves the document to the specified file.
Definition at line 219 of file PyCanvas.cxx. References QApplication::lock(), m_app, m_canvas, CanvasWindow::saveAs(), and QApplication::unlock(). Referenced by hippodraw::Python::export_Canvas(). |
|
Save the display as an image file.
Definition at line 301 of file PyCanvas.cxx. References findSelectedView(), ViewBase::getPlotter(), QApplication::lock(), m_app, m_canvas, CanvasWindow::savePlotAsImageImmediate(), and QApplication::unlock(). Referenced by hippodraw::Python::export_Canvas(). |
|
Save the selected images as an image file.
Definition at line 322 of file PyCanvas.cxx. References CanvasWindow::fileSaveSelectedImages(), QApplication::lock(), m_app, m_canvas, and QApplication::unlock(). Referenced by hippodraw::Python::export_Canvas(). |
|
Select or un-select all the displays on the canvas.
Definition at line 276 of file PyCanvas.cxx. References QApplication::lock(), m_app, m_canvas, and QApplication::unlock(). Referenced by hippodraw::Python::export_Canvas(). |
|
Select a specific display.
Definition at line 283 of file PyCanvas.cxx. References findSelectedView(), QApplication::lock(), m_app, m_canvas, CanvasWindow::setSelected(), and QApplication::unlock(). Referenced by hippodraw::Python::export_Canvas(). |
|
Sets the number for columns and rows of plots on each page.
Definition at line 442 of file PyCanvas.cxx. References m_app, and m_canvas. Referenced by hippodraw::Python::export_Canvas(). |
|
Displays the canvas window on the screen.
Definition at line 189 of file PyCanvas.cxx. References m_app, and m_canvas. Referenced by hippodraw::Python::export_Canvas(). |
|
The application object.
Definition at line 50 of file PyCanvas.h. Referenced by addDisplay(), addText(), addTextAt(), addTextRep(), clear(), close(), getDisplay(), getDisplays(), print(), PyCanvas(), saveAs(), saveAsImage(), saveSelectedImages(), selectAllDisplays(), selectDisplay(), setPlotMatrix(), and show(). |
|
The actual canvas window in the application thread.
Definition at line 47 of file PyCanvas.h. Referenced by addDisplay(), addText(), addTextAt(), addTextRep(), clear(), close(), findSelectedView(), getCut(), getDisplay(), getDisplays(), mouseData(), print(), PyCanvas(), removeDisplay(), saveAs(), saveAsImage(), saveSelectedImages(), selectAllDisplays(), selectDisplay(), setPlotMatrix(), and show(). |
|
Pointers to QtDisplay objects on the current canvas.
Definition at line 53 of file PyCanvas.h. Referenced by getDisplays(). |