#include <DataView.h>
Definition at line 30 of file DataView.h.
Public Member Functions | |
virtual void | drawColorLines (const std::vector< double > &x, const std::vector< double > &y, Line::Style style, const std::vector< Color > &color, float size)=0 |
Draws multiple line segments, each with a different color - that is, a line between x0,y0 and x1,y1, with color[0] =color[1] another between x2,y2 and x3,y3 with color[2]=color[3] and so on. | |
virtual void | drawImage (const std::string &filename, int position=0) |
Draws a image. | |
virtual void | drawLatex (const std::string &eq, int position=0) |
Draws a Latex equation. | |
virtual void | drawLines (const std::vector< double > &x, const std::vector< double > &y, Line::Style style, const Color &color, float size)=0 |
Draws multiple line segments - that is, a line between x0,y0 and x1,y2, another between x2,y2 and x3,y3 and so on. | |
virtual void | drawPoints (const std::vector< double > &x, const std::vector< double > &y, const std::vector< Color > &colors, Symbol::Type type, float sym_size)=0 |
Draws symbol points. | |
virtual void | drawPoints (const std::vector< double > &x, const std::vector< double > &y, Symbol::Type type, float sym_size, const Color &color)=0 |
Draws symbol points. | |
virtual void | drawPolygon (const std::vector< double > &xpoints, const std::vector< double > &ypoints, const Color &color, const Color &edge) |
Draws a polygon. | |
virtual void | drawPolyLine (const std::vector< double > &xpoints, const std::vector< double > &ypoints, Line::Style style, const Color &color, float size)=0 |
Draws a polyline. | |
virtual void | drawSelf () |
Draws itself. | |
virtual void | drawSquare (double x1, double y1, double x2, double y2, int red, int green, int blue)=0 |
Draws a colored square. | |
virtual void | drawText (const std::string &s, float x, float y, float fontsize, float angle=0.0, char xp= 'l', char yp= 't', bool resize=false, const FontBase *font=0, const Color *color=0)=0 |
Draws a text string at a point in the view's coordinate system. | |
virtual void | drawViewLines (const std::vector< double > &x, const std::vector< double > &y, Line::Style style, const Color &color, float size)=0 |
Draws multiple line segments. | |
virtual void | drawViewLines (const std::vector< double > &x, const std::vector< double > &y, Line::Style style, bool color, float size)=0 |
Draws multiple line segments. | |
virtual void | drawViewSquare (float x1, float y1, float x2, float y2, int red, int green, int blue)=0 |
Draws a colored square in view space. | |
virtual double | getAspectRatio () const |
Get the aspect ratio. | |
virtual Rect | getDrawRect () const =0 |
Returns the drawing Rectangle in the devices coordinate system. | |
const Rect & | getMarginRect () const |
Returns the rectangle area in which data points are drawn. | |
PlotterBase * | getPlotter () |
Returns the plotter used by this view. | |
PlotterBase * | getPlotter () const |
Returns the plotter used by this view. | |
const Range & | getRange (Axes::Type axis) const |
Returns the range of the data space on specified axis. | |
const Rect & | getRawRect () const |
Returns the rectangle before transform. | |
const Rect & | getUserRect () const |
Is called by the AxisRepBase object (or one of its derived objects), and returns the rectangle where the drawing is made. | |
virtual void | setDrawRect (float x, float y, float w, float h)=0 |
Sets the drawing Rectangle in the devices coordinate system. | |
void | setMarginRect (const Rect &) |
Sets the margin rectangle. | |
virtual void | setPlotter (PlotterBase *plotter) |
Sets the PlotterBase object to plotter. | |
virtual void | update (const Observable *)=0 |
Implements the update method of the Observer pattern. | |
virtual void | updateDrawRect () |
Update the drawing Rectangle in the devices coordinate system. | |
virtual float | userToDrawColor (double c) const =0 |
Converts a coordinate in user space to drawing space along the color (X) axis. | |
virtual float | userToDrawX (double x) const =0 |
Converts a coordinate in user space to drawing space along the X axis. | |
virtual float | userToDrawXAutoInv (double x) const =0 |
virtual float | userToDrawY (double y) const =0 |
Converts a coordinate in user space to drawing space along the Y axis. | |
virtual void | willDelete (const Observable *plotter) |
Responds to notification that the PlotterBase object is being deleted. | |
Protected Member Functions | |
DataView (PlotterBase *plotter) | |
The following constructor takes a plotter as an argument to use with a drawing. | |
DataView () | |
The default constructor. | |
virtual double | marginToInvertedUserX (double x) const |
Converts from view coordinate to data conordiate, take into account the inversion of x axes. | |
virtual double | marginToInvertedUserY (double y) const |
Converts from inverted view coordinate to data coordinate, without taking into account transforms or scaling. | |
virtual double | marginToUserX (double x) const |
Converts from view coordinate to data coordinate, without taking into account transforms or scaling. | |
virtual double | marginToUserY (double y) const |
Converts from view coordinate to data coordinate, without taking into account transforms or scaling. | |
void | prepareMarginRect () |
Prepares the margin rectangle. | |
virtual float | userToInvertedMarginX (double x) const |
Converts the user X coordinate into the inverted X coordinate. | |
virtual float | userToInvertedMarginY (double y) const |
Converts the user Y coordinate into the top-left based margin Y coordinate. | |
virtual float | userToMarginColor (double c) const |
Converts the user Z coordinate into the margin color (X) coordinate. | |
virtual float | userToMarginX (double x) const |
Converts the user X coordinate into the margin X coordinate. | |
virtual float | userToMarginY (double y) const |
Converts the user Y coordinate into the margin Y coordinate. | |
virtual | ~DataView () |
The virtual destructor. | |
Protected Attributes | |
Rect | m_margin_rect |
The rectangle area in which the projected points are plotted. | |
PlotterBase * | m_plotter |
The plotter object used by this view. | |
Private Member Functions | |
DataView (const DataView &) | |
The copy constructor. |
DataView | ( | ) | [protected] |
DataView | ( | PlotterBase * | plotter | ) | [protected] |
The following constructor takes a plotter as an argument to use with a drawing.
Definition at line 31 of file DataView.cxx.
References ViewBase::m_plotter.
~DataView | ( | ) | [protected, virtual] |
virtual void drawColorLines | ( | const std::vector< double > & | x, | |
const std::vector< double > & | y, | |||
Line::Style | style, | |||
const std::vector< Color > & | color, | |||
float | size | |||
) | [pure virtual, inherited] |
Draws multiple line segments, each with a different color - that is, a line between x0,y0 and x1,y1, with color[0] =color[1] another between x2,y2 and x3,y3 with color[2]=color[3] and so on.
x
pairs of coordinates in user space on the X axis for the beginning and the end of the line segment.
y
pairs of coordinates in user space on the Y axis for the beginning and the end of the line segment.
style
the line style.
color
The RGB values for the color of the line.
size
The thickness of the line.
Implemented in EpsView, OpenGLView, and QtViewImp.
Referenced by ContourPointRep::drawValues(), and ContourPointRep::drawValuesWithStyle().
void drawImage | ( | const std::string & | filename, | |
int | position = 0 | |||
) | [virtual, inherited] |
Draws a image.
This is called by drawLatex. Meaning of position: 0.Full 1.Top 2.Bottom 3.Left TODO: use enum for position.
Reimplemented in QtViewImp.
Definition at line 112 of file ViewBase.cxx.
void drawLatex | ( | const std::string & | eq, | |
int | position = 0 | |||
) | [virtual, inherited] |
Draws a Latex equation.
This function will call drawImage. Meaning of position: 0.Full 1.Top 2.Bottom 3.Left
Reimplemented in QtViewImp.
Definition at line 119 of file ViewBase.cxx.
Referenced by BoxTextRep::drawProjectedValues(), AxisRepBase::drawTitle(), AxisRepBase::drawXLabels(), AxisRepBase::drawYLabels(), and AxisRepColor::drawZLabels().
virtual void drawLines | ( | const std::vector< double > & | x, | |
const std::vector< double > & | y, | |||
Line::Style | style, | |||
const Color & | color, | |||
float | size | |||
) | [pure virtual, inherited] |
Draws multiple line segments - that is, a line between x0,y0 and x1,y2, another between x2,y2 and x3,y3 and so on.
x
pairs of coordinates in user space on the X axis for the beginning and the end of the line segment. y
pairs of coordinates in user space on the Y axis for the beginning and the end of the line segment. style
the line style. color
The color size
The thickness of the line.
Implemented in EpsView, OpenGLView, and QtViewImp.
Referenced by AxisRepBase::drawCrossHairs(), and LinePointRep::drawValues().
virtual void drawPoints | ( | const std::vector< double > & | x, | |
const std::vector< double > & | y, | |||
const std::vector< Color > & | colors, | |||
Symbol::Type | type, | |||
float | sym_size | |||
) | [pure virtual, inherited] |
Draws symbol points.
x and y are the coordinates, type is the type of symbol, and sym_size is the size. hue is the hue parameters for each point. The saturation and brightness are set to 1.0.
Implemented in EpsView, OpenGLView, and QtViewImp.
virtual void drawPoints | ( | const std::vector< double > & | x, | |
const std::vector< double > & | y, | |||
Symbol::Type | type, | |||
float | sym_size, | |||
const Color & | color | |||
) | [pure virtual, inherited] |
Draws symbol points.
x and y are the coordinates, type is the type of symbol, and sym_size is the size. All symbols are draw in the same color.
Implemented in EpsView, OpenGLView, and QtViewImp.
Referenced by LinePointRep::drawValues().
void drawPolygon | ( | const std::vector< double > & | xpoints, | |
const std::vector< double > & | ypoints, | |||
const Color & | color, | |||
const Color & | edge | |||
) | [virtual, inherited] |
Draws a polygon.
xpoints
points along the X axis. ypoints
points along the Y axis. color
The color.
Reimplemented in QtViewImp.
Definition at line 126 of file ViewBase.cxx.
virtual void drawPolyLine | ( | const std::vector< double > & | xpoints, | |
const std::vector< double > & | ypoints, | |||
Line::Style | style, | |||
const Color & | color, | |||
float | size | |||
) | [pure virtual, inherited] |
Draws a polyline.
xpoints
points along the X axis. ypoints
points along the Y axis. style
the line style. color
The color. size
The thickness of the line.
Implemented in EpsView, OpenGLView, and QtViewImp.
Referenced by AxisRepBase::drawAxesLines(), AxisRepBase::drawGridLines(), ColorBoxPointRep::drawProjectedValues(), ContourPointRep::drawValues(), and ContourPointRep::drawValuesWithStyle().
void drawSelf | ( | ) | [virtual, inherited] |
Draws itself.
Definition at line 60 of file ViewBase.cxx.
References PlotterBase::drawIn(), and ViewBase::m_plotter.
Referenced by QtViewWidget::draw(), QtView::draw(), QtView::drawWithPixmap(), OpenGLWindow::paint(), and QtViewWidget::paintEvent().
virtual void drawSquare | ( | double | x1, | |
double | y1, | |||
double | x2, | |||
double | y2, | |||
int | red, | |||
int | green, | |||
int | blue | |||
) | [pure virtual, inherited] |
Draws a colored square.
Used for shading on the cuts and the gray plot.
Implemented in EpsView, OpenGLView, and QtViewImp.
Referenced by CutRangeRep::drawInvertedRange1D(), CutRangeRep::drawInvertedRange2D(), and CutRangeRep::drawNormalRange().
virtual void drawText | ( | const std::string & | s, | |
float | x, | |||
float | y, | |||
float | fontsize, | |||
float | angle = 0.0 , |
|||
char | xp = 'l' , |
|||
char | yp = 't' , |
|||
bool | resize = false , |
|||
const FontBase * | font = 0 , |
|||
const Color * | color = 0 | |||
) | [pure virtual, inherited] |
Draws a text string at a point in the view's coordinate system.
s | The string to be drawn. | |
x | The x coordinate in the view's coordinate system. | |
y | The y coordinate in the view's coordinate system. | |
fontsize | The font size. If zero, then taken from the font object. | |
angle | The angle to draw. 90 degrees is vertical with the beginning of the text towards the bottom. | |
xp | The horizontal alignment with respect to the coordinate. 'r' means the coordinate is on the right side of the text, 'c' means centered, and 'l' for the left side. | |
yp | The vertical alignment with respect to the coordinate. 't' means toward the top, 'c' means centered, and 'b' means bottom. | |
resize | If true , the bounding rectangle of the view should be re-sized to fit the text string. | |
font | If not a null pointer, then the font object to be used, otherwise the default font will be used. | |
color | If not given as argument, the default color is that of the default Color constructor which is black. |
Implemented in EpsView, OpenGLView, and QtViewImp.
Referenced by RepBase::displayError(), UnderflowTextRep::drawProjectedValues(), TotalTextRep::drawProjectedValues(), OverflowTextRep::drawProjectedValues(), FuncParmRep::drawProjectedValues(), FuncChiRep::drawProjectedValues(), BoxTextRep::drawProjectedValues(), AverageTextRep::drawProjectedValues(), AxisRepBase::drawReferencePoint(), AxisRepBase::drawTitle(), AxisRepBase::drawXLabels(), AxisRepBase::drawXMag(), AxisRepBase::drawXTickLabel(), AxisRepBase::drawYLabels(), AxisRepBase::drawYMag(), AxisRepBase::drawYTickLabel(), AxisRepBase::drawYTickLabels(), AxisRepColor::drawZLabels(), and AxisRepColor::drawZTickLabels().
virtual void drawViewLines | ( | const std::vector< double > & | x, | |
const std::vector< double > & | y, | |||
Line::Style | style, | |||
const Color & | color, | |||
float | size | |||
) | [pure virtual, inherited] |
Draws multiple line segments.
x
pairs of coordinates in view space on the X axis for the beginning and the end of the line segment. y
pairs of coordinates in view space on the Y axis for the beginning and the end of the line segment. style
the line style. color
The color size
The thickness of the line.
Implemented in EpsView, OpenGLView, and QtViewImp.
virtual void drawViewLines | ( | const std::vector< double > & | x, | |
const std::vector< double > & | y, | |||
Line::Style | style, | |||
bool | color, | |||
float | size | |||
) | [pure virtual, inherited] |
Draws multiple line segments.
x
pairs of coordinates in view space on the X axis for the beginning and the end of the line segment. y
pairs of coordinates in view space on the Y axis for the beginning and the end of the line segment. style
the line style. color
if true
, use the display's point color; otherwise, use the default color. size
The thickness of the line.
Implemented in EpsView, OpenGLView, and QtViewImp.
Referenced by DrawBorder::draw(), ContourPointRep::drawContourTicks(), DrawBorder::drawKnob(), AxisRepBase::drawXTickLines(), AxisRepBase::drawYTickLines(), and AxisRepColor::drawZTickLines().
virtual void drawViewSquare | ( | float | x1, | |
float | y1, | |||
float | x2, | |||
float | y2, | |||
int | red, | |||
int | green, | |||
int | blue | |||
) | [pure virtual, inherited] |
Draws a colored square in view space.
Used for shading on the cuts and the gray plot.
Implemented in EpsView, OpenGLView, and QtViewImp.
Referenced by AxisRepColor::drawColorScale().
double getAspectRatio | ( | ) | const [virtual, inherited] |
Get the aspect ratio.
Definition at line 88 of file ViewBase.cxx.
References ViewBase::m_plotter.
Referenced by CanvasView::contentsMouseMoveEvent(), DataView::prepareMarginRect(), QtViewWidget::update(), and QtView::updateDrawRect().
virtual Rect getDrawRect | ( | ) | const [pure virtual, inherited] |
Returns the drawing Rectangle in the devices coordinate system.
Must be implemented in derived class.
Implemented in EpsView, OpenGLView, QtGroupView, QtView, and QtViewWidget.
Referenced by ViewBaseXML::createElement(), DrawBorder::draw(), QtViewImp::draw_Text(), QtViewImp::drawImage(), AxisRepBase::drawReferencePoint(), QtViewImp::drawText(), AxisRepBase::drawTitle(), AxisRepBase::drawXLabels(), AxisRepBase::drawXMag(), AxisRepBase::drawYLabels(), AxisRepColor::drawZLabels(), DataView::prepareMarginRect(), AxisRepBase::setFontSize(), AxisRepBase::setXFontSize(), AxisRepBase::setYFontSize(), AxisRepBase::setZFontSize(), XPADDING(), YPADDING(), and ZPADDING().
const Rect & getMarginRect | ( | ) | const |
Returns the rectangle area in which data points are drawn.
Definition at line 45 of file DataView.cxx.
References DataView::m_margin_rect.
Referenced by AxisRepColor::drawColorScale(), ContourPointRep::drawContourTicks(), QtViewImp::drawImage(), AxisRepBase::drawReferencePoint(), AxisRepBase::drawTitle(), AxisRepBase::drawXLabels(), AxisRepBase::drawXMag(), AxisRepBase::drawXTickLabels(), AxisRepBase::drawXTickLines(), AxisRepBase::drawYLabels(), AxisRepBase::drawYMag(), AxisRepBase::drawYTickLines(), AxisRepColor::drawZLabels(), AxisRepColor::drawZTickLabels(), AxisRepColor::drawZTickLines(), OpenGLView::toViewY(), and EpsView::toViewY().
PlotterBase * getPlotter | ( | ) | [inherited] |
Returns the plotter used by this view.
Definition at line 55 of file ViewBase.cxx.
References ViewBase::m_plotter.
PlotterBase * getPlotter | ( | ) | const [inherited] |
Returns the plotter used by this view.
Reimplemented in OpenGLView.
Definition at line 50 of file ViewBase.cxx.
References ViewBase::m_plotter.
Referenced by DisplayController::addTextViewToList(), ViewBaseXML::areDataSourcesSaved(), CutController::connectDataRep(), CanvasView::contentsMouseMoveEvent(), CanvasView::controlMousePressEvent(), ViewBaseXML::createChild(), DisplayController::createTextView(), AxisRepColor::drawColorScale(), CanvasView::fillPlotterList(), CutController::fillTupleCutList(), PyCanvas::getDisplays(), GroupViewBase::getPlotters(), CanvasView::getViewFor(), PlotTable::initialize(), FigureEditor::movePlotterWithText(), CanvasView::placeItems(), DataView::prepareMarginRect(), DisplayController::removeTextObservers(), PyCanvas::saveAsImage(), CanvasView::saveSelectedAsEps(), CanvasView::setIntervalEnabled(), and CanvasView::viewShowPickTable().
const Range & getRange | ( | Axes::Type | axis | ) | const [inherited] |
Returns the range of the data space on specified axis.
Definition at line 69 of file ViewBase.cxx.
References ViewBase::m_plotter.
Referenced by ContourPointRep::drawContourTicks().
const Rect & getRawRect | ( | ) | const [inherited] |
Returns the rectangle before transform.
Definition at line 83 of file ViewBase.cxx.
References PlotterBase::getRawRect(), and ViewBase::m_plotter.
const Rect & getUserRect | ( | ) | const [inherited] |
Is called by the AxisRepBase object (or one of its derived objects), and returns the rectangle where the drawing is made.
Definition at line 76 of file ViewBase.cxx.
References PlotterBase::getUserRect(), and ViewBase::m_plotter.
Referenced by ContourPointRep::drawValues(), ContourPointRep::drawValuesWithStyle(), AxisRepBase::initAxisRect(), DataView::marginToInvertedUserX(), DataView::marginToInvertedUserY(), DataView::marginToUserX(), DataView::marginToUserY(), DataView::userToInvertedMarginX(), DataView::userToInvertedMarginY(), DataView::userToMarginColor(), DataView::userToMarginX(), and DataView::userToMarginY().
double marginToInvertedUserX | ( | double | x | ) | const [protected, virtual] |
Converts from view coordinate to data conordiate, take into account the inversion of x axes.
Definition at line 187 of file DataView.cxx.
References ViewBase::getUserRect(), Rect::getWidth(), Rect::getX(), DataView::m_margin_rect, and ViewBase::m_plotter.
Referenced by QtView::fillPickedPoint().
double marginToInvertedUserY | ( | double | y | ) | const [protected, virtual] |
Converts from inverted view coordinate to data coordinate, without taking into account transforms or scaling.
Definition at line 209 of file DataView.cxx.
References Rect::getHeight(), ViewBase::getUserRect(), Rect::getY(), DataView::m_margin_rect, and ViewBase::m_plotter.
Referenced by QtViewWidget::fillPickedPoint(), and QtView::fillPickedPoint().
double marginToUserX | ( | double | x | ) | const [protected, virtual] |
Converts from view coordinate to data coordinate, without taking into account transforms or scaling.
Definition at line 176 of file DataView.cxx.
References ViewBase::getUserRect(), Rect::getWidth(), Rect::getX(), DataView::m_margin_rect, and ViewBase::m_plotter.
Referenced by QtViewWidget::fillPickedPoint(), and QtView::fillPickedPoint().
double marginToUserY | ( | double | y | ) | const [protected, virtual] |
Converts from view coordinate to data coordinate, without taking into account transforms or scaling.
Definition at line 198 of file DataView.cxx.
References Rect::getHeight(), ViewBase::getUserRect(), Rect::getY(), DataView::m_margin_rect, and ViewBase::m_plotter.
void prepareMarginRect | ( | ) | [protected] |
Prepares the margin rectangle.
Definition at line 62 of file DataView.cxx.
References ViewBase::getAspectRatio(), PlotterBase::getBottomMargin(), ViewBase::getDrawRect(), Rect::getHeight(), PlotterBase::getLeftMargin(), ViewBase::getPlotter(), PlotterBase::getTopMargin(), Rect::getWidth(), PlotterBase::getZMargin(), PlotterBase::labelFont(), DataView::m_margin_rect, ViewBase::m_plotter, FontBase::pointSize(), Rect::setRect(), PlotterBase::titleFont(), hippodraw::Axes::X, and hippodraw::Axes::Z.
Referenced by QtViewWidget::paintEvent(), QtViewWidget::resizeEvent(), QtView::setDrawRect(), QtViewWidget::setGeometry(), and QtViewWidget::update().
virtual void setDrawRect | ( | float | x, | |
float | y, | |||
float | w, | |||
float | h | |||
) | [pure virtual, inherited] |
Sets the drawing Rectangle in the devices coordinate system.
Implemented in EpsView, OpenGLView, QtGroupView, QtView, and QtViewWidget.
Referenced by QtViewImp::draw_Text(), QtViewImp::drawImage(), and ViewBaseXML::getObjects().
void setMarginRect | ( | const Rect & | rect | ) |
Sets the margin rectangle.
Sets the rectangular are in which the data points are drawn. The coordinate system is that of the view.
Definition at line 52 of file DataView.cxx.
References DataView::m_margin_rect.
void setPlotter | ( | PlotterBase * | plotter | ) | [virtual, inherited] |
Sets the PlotterBase object to plotter.
The ViewBase object does not own the plotter. If the plotter is being changed, it is up to client code to decide to destroy the previous plotter or not.
Reimplemented in OpenGLView, and QtViewWidget.
Definition at line 45 of file ViewBase.cxx.
References ViewBase::m_plotter.
Referenced by QtViewWidget::setPlotter().
virtual void update | ( | const Observable * | ) | [pure virtual, inherited] |
Implements the update method of the Observer pattern.
Derived classes should send a message to what ever object is the parent of this ViewBase object.
Implements Observer.
Implemented in EpsView, OpenGLView, QtView, QtViewImp, and QtViewWidget.
void updateDrawRect | ( | ) | [virtual, inherited] |
Update the drawing Rectangle in the devices coordinate system.
Reimplemented in QtView.
Definition at line 105 of file ViewBase.cxx.
Referenced by XyPlotter::drawIn().
virtual float userToDrawColor | ( | double | c | ) | const [pure virtual, inherited] |
Converts a coordinate in user space to drawing space along the color (X) axis.
Implemented in EpsView, OpenGLView, and QtViewImp.
Referenced by ContourPointRep::drawContourTicks(), AxisRepColor::drawZTickLabels(), and AxisRepColor::drawZTickLines().
virtual float userToDrawX | ( | double | x | ) | const [pure virtual, inherited] |
Converts a coordinate in user space to drawing space along the X axis.
Implemented in EpsView, OpenGLView, and QtViewImp.
Referenced by AxisRepBase::drawYTickLabels(), and AxisRepBase::drawYTickLines().
virtual float userToDrawXAutoInv | ( | double | x | ) | const [pure virtual, inherited] |
Implemented in EpsView, OpenGLView, and QtViewImp.
Referenced by AxisRepBase::drawXTickLabels(), and AxisRepBase::drawXTickLines().
virtual float userToDrawY | ( | double | y | ) | const [pure virtual, inherited] |
Converts a coordinate in user space to drawing space along the Y axis.
Implemented in EpsView, OpenGLView, and QtViewImp.
Referenced by AxisRepBase::drawXTickLabels(), AxisRepBase::drawXTickLines(), AxisRepBase::drawYTickLabels(), and AxisRepBase::drawYTickLines().
float userToInvertedMarginX | ( | double | x | ) | const [protected, virtual] |
Converts the user X coordinate into the inverted X coordinate.
Definition at line 133 of file DataView.cxx.
References ViewBase::getUserRect(), Rect::getWidth(), Rect::getX(), DataView::m_margin_rect, and ViewBase::m_plotter.
Referenced by QtView::toViewX(), QtViewImp::userToDrawXAutoInv(), and EpsView::userToDrawXAutoInv().
float userToInvertedMarginY | ( | double | y | ) | const [protected, virtual] |
Converts the user Y coordinate into the top-left based margin Y coordinate.
Definition at line 154 of file DataView.cxx.
References Rect::getHeight(), ViewBase::getUserRect(), Rect::getY(), DataView::m_margin_rect, and ViewBase::m_plotter.
Referenced by QtViewWidget::toViewY(), QtView::toViewY(), QtViewImp::userToDrawY(), OpenGLView::userToDrawY(), and EpsView::userToDrawY().
float userToMarginColor | ( | double | c | ) | const [protected, virtual] |
Converts the user Z coordinate into the margin color (X) coordinate.
Definition at line 165 of file DataView.cxx.
References Rect::getDepth(), ViewBase::getUserRect(), Rect::getWidth(), Rect::getX(), Rect::getZ(), DataView::m_margin_rect, and ViewBase::m_plotter.
Referenced by QtViewImp::userToDrawColor(), OpenGLView::userToDrawColor(), and EpsView::userToDrawColor().
float userToMarginX | ( | double | x | ) | const [protected, virtual] |
Converts the user X coordinate into the margin X coordinate.
Definition at line 122 of file DataView.cxx.
References ViewBase::getUserRect(), Rect::getWidth(), Rect::getX(), DataView::m_margin_rect, and ViewBase::m_plotter.
Referenced by QtViewWidget::toViewX(), QtView::toViewX(), OpenGLView::toViewX(), EpsView::toViewX(), QtViewImp::userToDrawX(), OpenGLView::userToDrawX(), EpsView::userToDrawX(), QtViewImp::userToDrawXAutoInv(), and EpsView::userToDrawXAutoInv().
float userToMarginY | ( | double | y | ) | const [protected, virtual] |
Converts the user Y coordinate into the margin Y coordinate.
Definition at line 144 of file DataView.cxx.
References Rect::getHeight(), ViewBase::getUserRect(), Rect::getY(), DataView::m_margin_rect, and ViewBase::m_plotter.
Referenced by OpenGLView::toViewY(), and EpsView::toViewY().
void willDelete | ( | const Observable * | plotter | ) | [virtual, inherited] |
Responds to notification that the PlotterBase object is being deleted.
Reimplemented from Observer.
Definition at line 96 of file ViewBase.cxx.
References ViewBase::m_plotter.
Rect m_margin_rect [protected] |
The rectangle area in which the projected points are plotted.
The coordinate system is that of the view device. X increase to the right and Y increases downward. Outside of this area are the axis labels, title, etc.
Definition at line 48 of file DataView.h.
Referenced by DataView::getMarginRect(), DataView::marginToInvertedUserX(), DataView::marginToInvertedUserY(), DataView::marginToUserX(), DataView::marginToUserY(), DataView::prepareMarginRect(), QtView::setDrawRect(), DataView::setMarginRect(), DataView::userToInvertedMarginX(), DataView::userToInvertedMarginY(), DataView::userToMarginColor(), DataView::userToMarginX(), and DataView::userToMarginY().
PlotterBase* m_plotter [protected, inherited] |
The plotter object used by this view.
Although the plotter object was created externally, the view owns the plotter object.
Definition at line 69 of file ViewBase.h.
Referenced by DataView::DataView(), QtView::draw(), ViewBase::drawSelf(), QtViewImp::drawSquare(), QtViewWidget::fillPickedPoint(), QtView::fillPickedPoint(), ViewBase::getAspectRatio(), ViewBase::getPlotter(), ViewBase::getRange(), ViewBase::getRawRect(), ViewBase::getUserRect(), QtView::isTextView(), DataView::marginToInvertedUserX(), DataView::marginToInvertedUserY(), DataView::marginToUserX(), DataView::marginToUserY(), QtViewWidget::mousePressEvent(), QtViewWidget::paintEvent(), DataView::prepareMarginRect(), QtView::QtView(), QtViewWidget::resizeEvent(), QtViewImp::setCrossX(), QtViewImp::setCrossY(), QtViewWidget::setGeometry(), ViewBase::setPlotter(), QtView::toViewX(), QtViewWidget::update(), QtViewImp::userToDrawXAutoInv(), EpsView::userToDrawXAutoInv(), DataView::userToInvertedMarginX(), DataView::userToInvertedMarginY(), DataView::userToMarginColor(), DataView::userToMarginX(), DataView::userToMarginY(), ViewBase::willDelete(), and QtView::~QtView().