Version: 6.3.1
Public Member Functions | Private Slots | Private Member Functions | Private Attributes

Plot2d_SetupCurveDlg Class Reference

Dialog box for modifying 2d curve settings.

#include <Plot2d_SetupCurveDlg.h>

Inheritance diagram for Plot2d_SetupCurveDlg:
Inheritance graph

Public Member Functions

 Plot2d_SetupCurveDlg (QWidget *=0)
 Constructor.
 ~Plot2d_SetupCurveDlg ()
 Destructor.
void setLine (Plot2d::LineType, const int)
 Set curve line type and width.
Plot2d::LineType getLine () const
 Get curve line type.
int getLineWidth () const
 Get curve line width.
void setMarker (Plot2d::MarkerType)
 Set curve marker type.
Plot2d::MarkerType getMarker () const
 Get curve marker type.
void setColor (const QColor &)
 Set curve color.
QColor getColor () const
 Get curve color.

Private Slots

void updatePreview ()

Private Member Functions

QPixmap lineIcon (Plot2d::LineType) const
 Create icon pixmap according to the line type.
QPixmap markerIcon (Plot2d::MarkerType) const
 Create icon pixmap according to the marker type.

Private Attributes

QPushButton * myOkBtn
QPushButton * myCancelBtn
QComboBoxmyLineCombo
QSpinBoxmyLineSpin
QComboBoxmyMarkerCombo
QtxColorButtonmyColorBtn
QLabelmyPreview

Constructor & Destructor Documentation

Plot2d_SetupCurveDlg::Plot2d_SetupCurveDlg ( QWidget parent = 0)
Plot2d_SetupCurveDlg::~Plot2d_SetupCurveDlg ( )

Member Function Documentation

void Plot2d_SetupCurveDlg::setLine ( Plot2d::LineType  type,
const int  width 
)
Parameters:
typecurve line type
widthcurve line width
See also:
getLine(), getLineWidth()

References myLineCombo, myLineSpin, and updatePreview().

Plot2d::LineType Plot2d_SetupCurveDlg::getLine ( ) const
Returns:
chosen curve line type
See also:
setLine(), getLineWidth()

References myLineCombo.

int Plot2d_SetupCurveDlg::getLineWidth ( ) const
Returns:
chosen curve line width
See also:
setLine(), getLine()

References myLineSpin.

void Plot2d_SetupCurveDlg::setMarker ( Plot2d::MarkerType  type)
Parameters:
typecurve marker type
See also:
getMarker()

References myMarkerCombo, and updatePreview().

Plot2d::MarkerType Plot2d_SetupCurveDlg::getMarker ( ) const
Returns:
chosen curve marker type
See also:
setMarker()

References myMarkerCombo.

void Plot2d_SetupCurveDlg::setColor ( const QColor &  color)
Parameters:
colorcurve color
See also:
getColor()

References myColorBtn, QtxColorButton.setColor(), and updatePreview().

QColor Plot2d_SetupCurveDlg::getColor ( ) const
Returns:
curve color
See also:
setColor()

References QtxColorButton.color(), and myColorBtn.

QPixmap Plot2d_SetupCurveDlg::lineIcon ( Plot2d::LineType  type) const [private]
Parameters:
typeline type
Returns:
icon

References Plot2d.drawLine(), and myLineCombo.

QPixmap Plot2d_SetupCurveDlg::markerIcon ( Plot2d::MarkerType  type) const [private]
Parameters:
typemarker type
Returns:
icon

References Plot2d.drawMarker(), MSIZE, and myMarkerCombo.

void Plot2d_SetupCurveDlg::updatePreview ( ) [private, slot]

Field Documentation

QPushButton* Plot2d_SetupCurveDlg.myOkBtn [private]
QPushButton* Plot2d_SetupCurveDlg.myCancelBtn [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS