CVector3dWidget Class Reference

#include <boatdef-panel.h>

List of all members.

Public Member Functions

 CVector3dWidget (QWidget *parent)
CVector3d getVector ()
void setVector (const CVector3d &v)

Protected Attributes

vector< QSpinBox * > spinBox


Detailed Description

A widget for displaying info about a CVector3d.

Definition at line 38 of file boatdef-panel.h.


Constructor & Destructor Documentation

CVector3dWidget::CVector3dWidget ( QWidget *  parent  ) 

The constructor for a CVector3dWidget.

Parameters:
parent the parent widget

Definition at line 39 of file boatdef-panel.cpp.

References spinBox.


Member Function Documentation

CVector3d CVector3dWidget::getVector (  ) 

Returns the vector corresponding to the user's input.

Definition at line 69 of file boatdef-panel.cpp.

References spinBox.

Referenced by CBoatElementWidget::slotUpdate().

void CVector3dWidget::setVector ( const CVector3d v  ) 

Set the input boxes from a given vector.

Parameters:
v the new vector to display

Definition at line 82 of file boatdef-panel.cpp.

References spinBox.

Referenced by CBoatElementWidget::setElement().


Member Data Documentation

vector<QSpinBox *> CVector3dWidget::spinBox [protected]

The spin boxes.

Definition at line 50 of file boatdef-panel.h.

Referenced by CVector3dWidget(), getVector(), and setVector().


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