Version: 9.15.0
Plot2d_SetupCurveDlg Class Reference

Dialog box for modifying 2d curve settings. More...

#include <Plot2d_SetupCurveDlg.h>

Inheritance diagram for Plot2d_SetupCurveDlg:
Inheritance graph

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
 
QComboBoxmyLineCombo
 
QSpinBoxmyLineSpin
 
QComboBoxmyMarkerCombo
 
QtxColorButtonmyColorBtn
 
QLabelmyPreview
 

Detailed Description

Dialog box for modifying 2d curve settings.

Constructor & Destructor Documentation

◆ Plot2d_SetupCurveDlg()

◆ ~Plot2d_SetupCurveDlg()

Plot2d_SetupCurveDlg::~Plot2d_SetupCurveDlg ( )

Destructor.

Member Function Documentation

◆ getColor()

QColor Plot2d_SetupCurveDlg::getColor ( ) const

Get curve color.

Returns
curve color
See also
setColor()

References QtxColorButton::color(), and myColorBtn.

◆ getLine()

Plot2d::LineType Plot2d_SetupCurveDlg::getLine ( ) const

Get curve line type.

Returns
chosen curve line type
See also
setLine(), getLineWidth()

References myLineCombo.

◆ getLineWidth()

int Plot2d_SetupCurveDlg::getLineWidth ( ) const

Get curve line width.

Returns
chosen curve line width
See also
setLine(), getLine()

References myLineSpin.

◆ getMarker()

Plot2d::MarkerType Plot2d_SetupCurveDlg::getMarker ( ) const

Get curve marker type.

Returns
chosen curve marker type
See also
setMarker()

References myMarkerCombo.

◆ setColor()

void Plot2d_SetupCurveDlg::setColor ( const QColor &  color)

Set curve color.

Parameters
colorcurve color
See also
getColor()

References OCCViewer::color(), myColorBtn, QtxColorButton::setColor(), and updatePreview().

◆ setLine()

void Plot2d_SetupCurveDlg::setLine ( Plot2d::LineType  type,
const int  width 
)

Set curve line type and width.

Parameters
typecurve line type
widthcurve line width
See also
getLine(), getLineWidth()

References myLineCombo, myLineSpin, and updatePreview().

◆ setMarker()

void Plot2d_SetupCurveDlg::setMarker ( Plot2d::MarkerType  type)

Set curve marker type.

Parameters
typecurve marker type
See also
getMarker()

References myMarkerCombo, and updatePreview().

◆ updatePreview

void Plot2d_SetupCurveDlg::updatePreview ( )
privateslot

Member Data Documentation

◆ myCancelBtn

QPushButton* Plot2d_SetupCurveDlg::myCancelBtn
private

◆ myColorBtn

QtxColorButton* Plot2d_SetupCurveDlg::myColorBtn
private

◆ myLineCombo

QComboBox* Plot2d_SetupCurveDlg::myLineCombo
private

◆ myLineSpin

QSpinBox* Plot2d_SetupCurveDlg::myLineSpin
private

◆ myMarkerCombo

QComboBox* Plot2d_SetupCurveDlg::myMarkerCombo
private

◆ myOkBtn

QPushButton* Plot2d_SetupCurveDlg::myOkBtn
private

◆ myPreview

QLabel* Plot2d_SetupCurveDlg::myPreview
private

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