CSailDisp Class Reference

#include <saildisp.h>

Inheritance diagram for CSailDisp:

CSailDispGL CSailDispLabel

List of all members.

Public Member Functions

 CSailDisp ()
virtual ~CSailDisp ()
virtual const CRect3dgetLogicalRect () 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


Detailed Description

A generic display area for a panel group.

See also:
CSailDispLabel

CSailDispGL

Definition at line 32 of file saildisp.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

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.

Parameters:
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.

Parameters:
newCenter the new center

Definition at line 86 of file saildisp.cpp.

References center, and zoom.

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.

References center, and zoom.

Referenced by CSailDispLabel::paintEvent().

void CSailDisp::setZoom ( real  newZoom  )  [virtual]

Sets the zoom factor

Parameters:
newZoom 

Definition at line 126 of file saildisp.cpp.

References center, and zoom.

Referenced by zoomIn(), and zoomOut().

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().


Member Data Documentation

Should labels be drawn ?

Definition at line 63 of file saildisp.h.

Referenced by CSailDisp(), CSailDispLabel::paintEvent(), and CSailViewer::slotLabeling().

Rotated copy of the objects

Definition at line 70 of file saildisp.h.

Referenced by CSailDispLabel::paintEvent().

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().


The documentation for this class was generated from the following files:

Generated on Sun Mar 22 21:38:32 2009 for Sailcut CAD by  doxygen 1.5.6