#include <saildisp.h>

Public Member Functions | |
| CSailDisp () | |
| virtual | ~CSailDisp () |
| virtual const CRect3d & | getLogicalRect () const |
| virtual void | redraw () |
| virtual void | resetZoomCenter (void) |
| virtual CPoint3d | screenToLogical (const int x, const int y) const |
| virtual void | setAngle (real azimuth, real elevation) |
| virtual void | setCenter (CPoint3d newCenter) |
| virtual void | setObject (const CPanelGroup &objs) |
| virtual void | setViewRect (const CRect3d &rect) |
| virtual void | setZoom (real newZoom) |
| virtual void | zoomIn () |
| virtual void | zoomOut () |
Public Attributes | |
| bool | drawLabels |
Protected Attributes | |
| CPanelGroup | dispObject |
| CPoint3d | center |
| real | zoom |
Definition at line 32 of file saildisp.h.
| CSailDisp::CSailDisp | ( | ) |
Constructs a generic view area for a sail.
Definition at line 30 of file saildisp.cpp.
References drawLabels, CMatrix::id(), and zoom.
| virtual CSailDisp::~CSailDisp | ( | ) | [inline, virtual] |
The destructor.
Definition at line 38 of file saildisp.h.
| virtual const CRect3d& CSailDisp::getLogicalRect | ( | ) | const [inline, virtual] |
Acessor for the logical viewport rectangle
Definition at line 43 of file saildisp.h.
Referenced by CSailDispLabel::paintEvent().
| virtual void CSailDisp::redraw | ( | ) | [inline, virtual] |
Redraw the view.
Reimplemented in CSailDispGL, and CSailDispLabel.
Definition at line 49 of file saildisp.h.
Referenced by CSailViewer::setObject(), CSailViewer::slotLabeling(), CSailViewer::slotResetView(), CSailViewer::slotSlider(), CSailViewer::slotZoomIn(), and CSailViewer::slotZoomOut().
| void CSailDisp::resetZoomCenter | ( | void | ) | [virtual] |
Resets display zoom and center to their default values.
Definition at line 49 of file saildisp.cpp.
References CRect3d::center(), center, and zoom.
Referenced by CSailViewer::slotResetView().
| CPoint3d CSailDisp::screenToLogical | ( | const int | x, | |
| const int | y | |||
| ) | const [virtual] |
Converts screen coordinates to logical coordinates.
Definition at line 59 of file saildisp.cpp.
References center, CRect3d::height(), and CRect3d::width().
Referenced by CSailDispLabel::mousePressEvent().
| void CSailDisp::setAngle | ( | real | azimuth, | |
| real | elevation | |||
| ) | [virtual] |
Sets the azimuth and elevation view angles.
| azimuth | azimuth in degrees | |
| elevation | elevation in degrees |
Definition at line 75 of file saildisp.cpp.
References CMatrix::rot3d().
Referenced by CSailViewer::slotSlider().
| void CSailDisp::setCenter | ( | CPoint3d | newCenter | ) | [virtual] |
Sets the center of the display.
| newCenter | the new center |
Definition at line 86 of file saildisp.cpp.
Referenced by CSailDispLabel::mousePressEvent().
| void CSailDisp::setObject | ( | const CPanelGroup & | obj | ) | [virtual] |
Sets the object that is to be displayed and center the view.
Definition at line 96 of file saildisp.cpp.
References CPanelGroup::boundingRect(), CRect3d::center(), center, CRect3d::height(), CRect3d::max, CRect3d::width(), CVector3d::x(), CVector3d::y(), and zoom.
Referenced by CSailViewer::setObject().
| void CSailDisp::setViewRect | ( | const CRect3d & | rect | ) | [virtual] |
Set the size of the viewing rectangle.
Definition at line 115 of file saildisp.cpp.
Referenced by CSailDispLabel::paintEvent().
| void CSailDisp::setZoom | ( | real | newZoom | ) | [virtual] |
| void CSailDisp::zoomIn | ( | ) | [virtual] |
Zooms IN by a factor 2.
Definition at line 135 of file saildisp.cpp.
References setZoom(), and zoom.
Referenced by CSailViewer::slotZoomIn(), and CSailDispLabel::wheelEvent().
| void CSailDisp::zoomOut | ( | ) | [virtual] |
Zooms OUT by a factor 2.
Definition at line 143 of file saildisp.cpp.
References setZoom(), and zoom.
Referenced by CSailViewer::slotZoomOut(), and CSailDispLabel::wheelEvent().
Should labels be drawn ?
Definition at line 63 of file saildisp.h.
Referenced by CSailDisp(), CSailDispLabel::paintEvent(), and CSailViewer::slotLabeling().
CPanelGroup CSailDisp::dispObject [protected] |
Rotated copy of the objects
Definition at line 70 of file saildisp.h.
Referenced by CSailDispLabel::paintEvent().
CPoint3d CSailDisp::center [protected] |
The center of the viewing area, in logical coordinates
Definition at line 73 of file saildisp.h.
Referenced by resetZoomCenter(), screenToLogical(), setCenter(), setObject(), setViewRect(), and setZoom().
real CSailDisp::zoom [protected] |
The zoom factor for the view
Definition at line 76 of file saildisp.h.
Referenced by CSailDisp(), CSailDispLabel::paintEvent(), resetZoomCenter(), setCenter(), setObject(), setViewRect(), setZoom(), zoomIn(), and zoomOut().
1.5.6