SettingsDlg Class Reference

Creates and controls the user preferences dialog box. More...

#include <settingsDlg.h>

List of all members.

Public Member Functions

int exec ()
void setAttribute (Qt::WidgetAttribute attribute, bool on=true)
 SettingsDlg (QWidget *parent=0, Qt::WFlags f=0)
 ~SettingsDlg ()

Public Attributes

Ui::SettingsDlgUIdlgUI

Private Slots

void checkCOFEntry (int row, int col)
void checkKCOFEntry (int row, int col)
void saveCurrentCOF (int row, int col)
void saveCurrentKCOF (int row, int col)
void validateDlg ()

Private Member Functions

void init ()

Private Attributes

double currCOFVal
double currKCOFVal
QDialog * dlgImpl

Detailed Description

Creates and controls the user preferences dialog box.

This dialog box consists of three tabs: coefficients of friction, friction cones, and dynamics. When the dialog box is opened, the values for the various parameters are read from the current world. The COF tab allows the user to change material names and the values of the static and kinetic coefficients of friction. The friction cones tab allows the user to change the number of vectors that are used to approximate friction cones, and the dynamics tab allows the user to change the dynamics time step length.

Definition at line 50 of file settingsDlg.h.


Constructor & Destructor Documentation

SettingsDlg::SettingsDlg ( QWidget *  parent = 0,
Qt::WFlags  f = 0 
) [inline]

Definition at line 67 of file settingsDlg.h.

SettingsDlg::~SettingsDlg (  ) 

Definition at line 102 of file settingsDlg.cpp.


Member Function Documentation

void SettingsDlg::checkCOFEntry ( int  row,
int  col 
) [private, slot]

When the user enters a new value for a coefficient of friction, this checks that the value is positive, and if not it resets it. The change is also reflected in across the diagonal in the table (the same pair of materials). If the user changes a material name, the name is updated in the other table as well.

Definition at line 115 of file settingsDlg.cpp.

void SettingsDlg::checkKCOFEntry ( int  row,
int  col 
) [private, slot]

When the user enters a new value for a coefficient of friction, this checks that the value is positive, and if not it resets it. The change is also reflected in across the diagonal in the table (the same pair of materials). If the user changes a material name, the name is updated in the other table as well.

Definition at line 163 of file settingsDlg.cpp.

int SettingsDlg::exec (  )  [inline]

Definition at line 74 of file settingsDlg.h.

void SettingsDlg::init (  )  [private]

Sets up the static and kinetic friction tables. It gets the current materials list from the world and puts these values in the first row and column of each table. The individual coefficients for each pair of materials are then read from the world, and entered into the appropriate cells. Numerical validators are also created for the boxes on the other tabs to restrict the time step range and the number of possible friction cone vectors.

Definition at line 47 of file settingsDlg.cpp.

void SettingsDlg::saveCurrentCOF ( int  row,
int  col 
) [private, slot]

Whenever the user selects a new box within the static table, this saves the current value there in case it needs to be reset when the user tries to enter an invalid number.

Definition at line 140 of file settingsDlg.cpp.

void SettingsDlg::saveCurrentKCOF ( int  row,
int  col 
) [private, slot]

Whenever the user selects a new box within the kinetic table, this saves the current value there in case it needs to be reset when the user tries to enter an invalid number.

Definition at line 150 of file settingsDlg.cpp.

void SettingsDlg::setAttribute ( Qt::WidgetAttribute  attribute,
bool  on = true 
) [inline]

Definition at line 75 of file settingsDlg.h.

void SettingsDlg::validateDlg (  )  [private, slot]

This checks the validators to make sure the number of friction cone vectors and the dynamic time step are within their ranges. If they aren't, a warning box explaining the problem is created. Otherwise, the dialog is closed and accepted.

Definition at line 188 of file settingsDlg.cpp.


Member Data Documentation

double SettingsDlg::currCOFVal [private]

Definition at line 54 of file settingsDlg.h.

double SettingsDlg::currKCOFVal [private]

Definition at line 54 of file settingsDlg.h.

QDialog* SettingsDlg::dlgImpl [private]

Definition at line 55 of file settingsDlg.h.

Definition at line 66 of file settingsDlg.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


graspit
Author(s):
autogenerated on Wed Jan 25 11:00:24 2012