The volume quality measure. More...
#include <quality.h>
Public Member Functions | |
double | evaluate () |
double | evaluate3D () |
const char * | getType () const |
QualVolume (Grasp *g, QString n, const char *gwsType) | |
QualVolume (qmDlgDataT *data) | |
~QualVolume () | |
Static Public Member Functions | |
static void | buildParamArea (qmDlgDataT *qmData) |
static const char * | getClassType () |
Private Attributes | |
GWS * | gws |
A pointer to the GWS that this qm should use for its calculation. | |
Static Private Attributes | |
static const char * | type = "Volume" |
The string identifying this qm type. |
The volume quality measure.
The volume quality measure measures the volume of the unit Grasp Wrench Space (GWS). This is an average case grasp quality measure. The parameter for this quality measure is: The GWS type
Definition at line 153 of file quality.h.
QualVolume::QualVolume | ( | qmDlgDataT * | data | ) |
Adds the GWS specified by the combo box in the parameter area of the dialog box to the grasp associated with this qm. The grasp will take care of creating it if it doesn't already exist.
Definition at line 273 of file quality.cpp.
QualVolume::QualVolume | ( | Grasp * | g, | |
QString | n, | |||
const char * | gwsType | |||
) |
Definition at line 279 of file quality.cpp.
QualVolume::~QualVolume | ( | ) |
Removes the GWS used for this qm from the grasp. The grasp will delete it if necessary.
Definition at line 289 of file quality.cpp.
void QualVolume::buildParamArea | ( | qmDlgDataT * | qmData | ) | [static] |
Builds a volume qm parameter area within the quality measure dialog box. This is simply building a QT combo box for the GWS selection.
Reimplemented from QualityMeasure.
Definition at line 320 of file quality.cpp.
double QualVolume::evaluate | ( | ) | [virtual] |
Returns the volume of the GWS. The GWS is responsible for computing its volume when it is updated.
Implements QualityMeasure.
Definition at line 302 of file quality.cpp.
double QualVolume::evaluate3D | ( | ) | [virtual] |
Implements QualityMeasure.
Definition at line 309 of file quality.cpp.
static const char* QualVolume::getClassType | ( | ) | [inline, static] |
const char* QualVolume::getType | ( | ) | const [inline, virtual] |
Returns the type of this quality measure expressed as a string
Implements QualityMeasure.
GWS* QualVolume::gws [private] |
const char * QualVolume::type = "Volume" [static, private] |