Dialog box for modifying 2d curve settings. More...
#include <Plot2d_SetupCurveDlg.h>

Public Member Functions | |
| Plot2d_SetupCurveDlg (QWidget *=0) | |
| Constructor. More... | |
| ~Plot2d_SetupCurveDlg () | |
| Destructor. More... | |
| void | setLine (Plot2d::LineType, const int) |
| Set curve line type and width. More... | |
| Plot2d::LineType | getLine () const |
| Get curve line type. More... | |
| int | getLineWidth () const |
| Get curve line width. More... | |
| void | setMarker (Plot2d::MarkerType) |
| Set curve marker type. More... | |
| Plot2d::MarkerType | getMarker () const |
| Get curve marker type. More... | |
| void | setColor (const QColor &) |
| Set curve color. More... | |
| QColor | getColor () const |
| Get curve color. More... | |
Private Slots | |
| void | updatePreview () |
Private Attributes | |
| QPushButton * | myOkBtn |
| QPushButton * | myCancelBtn |
| QComboBox * | myLineCombo |
| QSpinBox * | myLineSpin |
| QComboBox * | myMarkerCombo |
| QtxColorButton * | myColorBtn |
| QLabel * | myPreview |
Dialog box for modifying 2d curve settings.
| Plot2d_SetupCurveDlg::Plot2d_SetupCurveDlg | ( | QWidget * | parent = 0 | ) |
Constructor.
| parent | parent widget |
References SUIT_Tools::centerWidget(), Plot2d::Circle, Plot2d::Cross, Plot2d::Dash, Plot2d::DashDot, Plot2d::DashDotDot, Plot2d::Diamond, Plot2d::Dot, Plot2d::DTriangle, Plot2d::lineIcon(), Plot2d::LTriangle, MARGIN_SIZE, Plot2d::markerIcon(), MAX_LINE_WIDTH, MIN_COMBO_WIDTH, MIN_SPIN_WIDTH, myCancelBtn, myColorBtn, myLineCombo, myLineSpin, myMarkerCombo, myOkBtn, myPreview, Plot2d::None, Plot2d::NoPen, Plot2d::Rectangle, Plot2d::RTriangle, setColor(), setLine(), setMarker(), Plot2d::Solid, SPACING_SIZE, updatePreview(), Plot2d::UTriangle, and Plot2d::XCross.
| Plot2d_SetupCurveDlg::~Plot2d_SetupCurveDlg | ( | ) |
Destructor.
| QColor Plot2d_SetupCurveDlg::getColor | ( | ) | const |
Get curve color.
References QtxColorButton::color(), and myColorBtn.
| Plot2d::LineType Plot2d_SetupCurveDlg::getLine | ( | ) | const |
Get curve line type.
References myLineCombo.
| int Plot2d_SetupCurveDlg::getLineWidth | ( | ) | const |
| Plot2d::MarkerType Plot2d_SetupCurveDlg::getMarker | ( | ) | const |
Get curve marker type.
References myMarkerCombo.
| void Plot2d_SetupCurveDlg::setColor | ( | const QColor & | color | ) |
Set curve color.
| color | curve color |
References OCCViewer::color(), myColorBtn, QtxColorButton::setColor(), and updatePreview().
| void Plot2d_SetupCurveDlg::setLine | ( | Plot2d::LineType | type, |
| const int | width | ||
| ) |
Set curve line type and width.
| type | curve line type |
| width | curve line width |
References myLineCombo, myLineSpin, and updatePreview().
| void Plot2d_SetupCurveDlg::setMarker | ( | Plot2d::MarkerType | type | ) |
Set curve marker type.
| type | curve marker type |
References myMarkerCombo, and updatePreview().
|
privateslot |
References OCCViewer::color(), Plot2d::drawLine(), Plot2d::drawMarker(), getColor(), getLine(), getLineWidth(), getMarker(), MSIZE, myPreview, and px().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |