22 class CanvasViewProxy;
97 void saveAs (
const std::string & filename );
105 const std::vector<QtDisplay *> &
getDisplays ()
const;
119 void print (
const std::string & filename );
146 double xrel,
double yrel );
152 double xabs,
double yabs );
161 void setPlotMatrix (
unsigned int columns,
unsigned int rows );
void clear()
Removes all items from the CanvasWindow.
void selectDisplay(QtDisplay *display)
Select a specific display.
Qt Displays wraps a derived class of Cut1DPlotter.
void addText(QtDisplay *display, const std::string &text)
Add a BoxTextRep.
A Proxy for the CanvasView class.
bool m_has_gui
Set to true if this canvas as associated GUI CanvasWindow.
This class is the public interface the what the user sees as the canvas object from Python...
int getY(QtDisplay *display) const
Returns the view's Y coordinate for the display.
const std::vector< double > & mouseData()
Retrieve a tuple of (x, y, z) points from the next mouse event.
int getHeight(QtDisplay *display) const
Returns the view's height for the display.
void setHeight(QtDisplay *, double h)
Sets the height of the view for the display.
CanvasWindow * m_canvas
The actual canvas window in the application thread.
void close()
Closes the canvas window.
void swapOrientation()
Swaps the orientation from portrait to landscape and vice verse.
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 saveSelectedImages(const std::string &filename)
Save the selected images as an image file.
void addTextRep(QtDisplay *display, const std::string &type)
Adds a textual data representation to display or type type.
const std::vector< QtDisplay * > & getDisplays() const
Returns all displays on the canvas.
void setY(QtDisplay *display, double value)
Sets the view's Y coordinate for the display.
PyArray_TYPES type(numeric::array arr)
CanvasViewProxy * m_canvas_proxy
The proxy for the CanvasView object.
void check() const
Checks if the CanvasWindow has been closed and throws a runtime_error if it has been.
void setX(QtDisplay *display, double value)
Sets the view's X coordinate for the display.
void addDisplay(QtDisplay *display_wrap)
Adds the display to the canvas.
The class of derived from ViewBase and QCanvasRectangle for drawing on a QCanvas. ...
void saveAsImage(QtDisplay *display, const std::string &filename)
Save the display as an image file.
void setWidth(QtDisplay *, double w)
Sets the width of the view for the display.
const std::vector< std::string > & getTextRepTypes() const
Returns the types of textual data representations available.
void saveAs(const std::string &filename)
Saves the document to the specified file.
A DataSource class implemented with std::vector<double> to store the column data. ...
void addTextAtAbs(QtDisplay *display, const std::string &text, double xabs, double yabs)
Add a BoxTextRep at a specific location in the selected display item's canvas coordinate system...
void removeDisplay(QtDisplay *display)
Remove a display.
void setPlotMatrix(unsigned int columns, unsigned int rows)
Sets the number for columns and rows of plots on each page.
Qt Displays wraps a derived class of PlotterBase.
int getWidth(QtDisplay *display) const
Returns the view's width for the display.
void selectAllDisplays(bool flag=true)
Select or un-select all the displays on the canvas.
std::vector< QtDisplay * > m_displays
Pointers to QtDisplay objects on the current canvas.
NTuple * getPickTable(QtDisplay *)
Gets the PickTable for the display.
PyCanvas()
The default constructor.
QtDisplay * getDisplay()
Returns the selected display on the canvas.
NTuple * getSelPickTable()
Gets the PickTable of selected display as a NTuple.
QtView * findSelectedView(QtDisplay *display)
Return the QtView associated with the given QtDisplay.
A concrete window class that contains the canvas and responds to menu item and tool bar events from t...
int getX(QtDisplay *display) const
Returns the view's X coordinate for the display.
void show()
Displays the canvas window on the screen.
QtCut * getCut()
Returns a QtCut object or null pointer if its not a QtCut object.
void print(const std::string &filename)
Prints the canvas to a PostScript file.