Version: 8.3.0
SMESHGUI_PropertiesDlg Class Reference

Dialog box to set-up mesh presentation properties: colors, sizes of elements, width of lines etc. More...

#include <SMESHGUI_PropertiesDlg.h>

Inheritance diagram for SMESHGUI_PropertiesDlg:

Public Member Functions

 SMESHGUI_PropertiesDlg (const VTK::MarkerMap &, QWidget *parent)
 
 ~SMESHGUI_PropertiesDlg ()
 
void setNodeColor (const QColor &)
 Set nodes color. More...
 
QColor nodeColor () const
 Get nodes color. More...
 
void setNodeMarker (VTK::MarkerType, VTK::MarkerScale)
 Set standard nodes marker. More...
 
void setNodeCustomMarker (int)
 Set custom nodes marker. More...
 
VTK::MarkerType nodeMarkerType () const
 Get nodes marker type. More...
 
VTK::MarkerScale nodeMarkerScale () const
 Get nodes marker scale. More...
 
int nodeMarkerId () const
 Get custom nodes marker. More...
 
void setEdgeColor (const QColor &)
 Set edges (wireframe) color. More...
 
QColor edgeColor () const
 Get edges (wireframe) color. More...
 
void setEdgeWidth (int)
 Set edges width. More...
 
int edgeWidth () const
 Get edges width. More...
 
void setFaceColor (const QColor &, int)
 Set faces colors. More...
 
QColor faceColor () const
 Get front faces color. More...
 
int faceColorDelta () const
 Get back faces coloring delta. More...
 
void setVolumeColor (const QColor &, int)
 Set volumes colors. More...
 
QColor volumeColor () const
 Get normal volumes color. More...
 
int volumeColorDelta () const
 Get reversed volumes coloring delta. More...
 
void setOutlineColor (const QColor &)
 Set outlines color. More...
 
QColor outlineColor () const
 Get outlines color. More...
 
void setOutlineWidth (int)
 Set outlines width. More...
 
int outlineWidth () const
 Get outlines width. More...
 
void setElem0dColor (const QColor &)
 Set 0D elements color. More...
 
QColor elem0dColor () const
 Get 0D elements color. More...
 
void setElem0dSize (int)
 Set 0D elements size. More...
 
int elem0dSize () const
 Get 0D elements size. More...
 
void setBallColor (const QColor &)
 Set discrete elements (balls) color. More...
 
QColor ballColor () const
 Get discrete elements (balls) color. More...
 
void setBallScale (double)
 Set discrete elements (balls) size. More...
 
double ballScale () const
 Get discrete elements (balls) scale factor. More...
 
void setOrientationColor (const QColor &)
 Set orientation vectors color. More...
 
QColor orientationColor () const
 Get orientation vectors color. More...
 
void setOrientationSize (int)
 Set orientation vectors scale (percent) More...
 
int orientationSize () const
 Get orientation vectors scale (percent) More...
 
void setOrientation3d (bool)
 Set orientation vectors 3d flag. More...
 
bool orientation3d () const
 Get orientation vectors 3d flag. More...
 
void setShrinkCoef (int)
 Set shrink coefficient (percent) More...
 
int shrinkCoef () const
 Get shrink coefficient (percent) More...
 
VTK::MarkerMap customMarkers () const
 
void showControls (int, bool)
 Show / hide controls for specified entity type. More...
 
virtual void show ()
 
virtual void setContentActive (const bool)
 set all content to enable (parameter is true) or disable state More...
 

Static Public Member Functions

static int prefix (const QString &)
 Return hard-coded prefix using to differ overlapping types. More...
 

Protected Member Functions

SUIT_Desktop * desktop () const
 find desktop of active application More...
 
SUIT_ResourceMgr * resourceMgr () const
 gets resource manager More...
 

Private Slots

void onHelp ()
 Show online help on dialog box. More...
 

Private Attributes

QGroupBoxmyNodeGrp
 
QGroupBoxmyEdgeGrp
 
QGroupBoxmyFaceGrp
 
QGroupBoxmyVolumeGrp
 
QGroupBoxmyOutlineGrp
 
QGroupBoxmyElem0dGrp
 
QGroupBoxmyBallGrp
 
QGroupBoxmyOrientationGrp
 
QFramemyExtraGrp
 
QtxColorButton * myNodeColor
 
VTKViewer_MarkerWidget * myNodeMarker
 
QtxColorButton * myEdgeColor
 
QtxIntSpinBox * myEdgeWidth
 
QtxBiColorTool * myFaceColor
 
QtxBiColorTool * myVolumeColor
 
QtxColorButton * myOutlineColor
 
QtxIntSpinBox * myOutlineWidth
 
QtxColorButton * myElem0dColor
 
QtxIntSpinBox * myElem0dSize
 
QtxColorButton * myBallColor
 
QtxDoubleSpinBox * myBallScale
 
QtxColorButton * myOrientationColor
 
QtxIntSpinBox * myOrientationSize
 
QCheckBox * myOrientation3d
 
QtxIntSpinBox * myShrinkSize
 

Detailed Description

Dialog box to set-up mesh presentation properties: colors, sizes of elements, width of lines etc.

Constructor & Destructor Documentation

SMESHGUI_PropertiesDlg::~SMESHGUI_PropertiesDlg ( )

Member Function Documentation

QColor SMESHGUI_PropertiesDlg::ballColor ( ) const

Get discrete elements (balls) color.

Returns
current discrete elements (balls) color

References myBallColor.

double SMESHGUI_PropertiesDlg::ballScale ( ) const

Get discrete elements (balls) scale factor.

Returns
current discrete elements (balls) scale factor

References myBallScale.

VTK::MarkerMap SMESHGUI_PropertiesDlg::customMarkers ( ) const

References myNodeMarker.

SUIT_Desktop * SMESHGUI_Dialog::desktop ( ) const
protectedinherited

find desktop of active application

References MESHCUT::d.

QColor SMESHGUI_PropertiesDlg::edgeColor ( ) const

Get edges (wireframe) color.

Returns
current edges color

References myEdgeColor.

int SMESHGUI_PropertiesDlg::edgeWidth ( ) const

Get edges width.

Returns
current edges width

References myEdgeWidth.

QColor SMESHGUI_PropertiesDlg::elem0dColor ( ) const

Get 0D elements color.

Returns
current 0D elements color

References myElem0dColor.

int SMESHGUI_PropertiesDlg::elem0dSize ( ) const

Get 0D elements size.

Returns
current 0D elements size

References myElem0dSize.

QColor SMESHGUI_PropertiesDlg::faceColor ( ) const

Get front faces color.

Returns
current front faces color

References myFaceColor.

int SMESHGUI_PropertiesDlg::faceColorDelta ( ) const

Get back faces coloring delta.

Returns
current back faces coloring delta

References myFaceColor.

QColor SMESHGUI_PropertiesDlg::nodeColor ( ) const

Get nodes color.

Returns
current nodes color

References myNodeColor.

int SMESHGUI_PropertiesDlg::nodeMarkerId ( ) const

Get custom nodes marker.

For standard markers return value is VTK::MT_NONE.

Returns
custom nodes marker id

References myNodeMarker.

VTK::MarkerScale SMESHGUI_PropertiesDlg::nodeMarkerScale ( ) const

Get nodes marker scale.

For custom marker return value is undefined.

Returns
currently selected nodes marker scale

References myNodeMarker.

VTK::MarkerType SMESHGUI_PropertiesDlg::nodeMarkerType ( ) const

Get nodes marker type.

For custom marker, VTK::MT_USER is returned and markerId() function then returns its identifier.

Returns
currently selected nodes marker type

References myNodeMarker.

void SMESHGUI_PropertiesDlg::onHelp ( )
privateslot

Show online help on dialog box.

Referenced by SMESHGUI_PropertiesDlg().

bool SMESHGUI_PropertiesDlg::orientation3d ( ) const

Get orientation vectors 3d flag.

Returns
orientation vectors 3d flag value

References myOrientation3d.

QColor SMESHGUI_PropertiesDlg::orientationColor ( ) const

Get orientation vectors color.

Returns
current orientation vectors color

References myOrientationColor.

int SMESHGUI_PropertiesDlg::orientationSize ( ) const

Get orientation vectors scale (percent)

Returns
current orientation vectors scale

References myOrientationSize.

QColor SMESHGUI_PropertiesDlg::outlineColor ( ) const

Get outlines color.

Returns
current outlines color

References myOutlineColor.

int SMESHGUI_PropertiesDlg::outlineWidth ( ) const

Get outlines width.

Returns
current outlines width

References myOutlineWidth.

int SMESHGUI_Dialog::prefix ( const QString &  name)
staticinherited

Return hard-coded prefix using to differ overlapping types.

Referenced by SMESHGUI_Dialog::SMESHGUI_Dialog(), and SMESHGUI_SelectionOp::typeById().

SUIT_ResourceMgr * SMESHGUI_Dialog::resourceMgr ( ) const
protectedinherited
void SMESHGUI_PropertiesDlg::setBallColor ( const QColor &  color)

Set discrete elements (balls) color.

Parameters
colordiscrete elements (balls) color

References myBallColor.

void SMESHGUI_PropertiesDlg::setBallScale ( double  size)

Set discrete elements (balls) size.

Parameters
sizediscrete elements (balls) size

Get discrete elements (balls) size

Returns
current discrete elements (balls) size

Set discrete elements (balls) scale factor

Parameters
sizediscrete elements (balls) scale factor

References myBallScale.

void SMESHGUI_Dialog::setContentActive ( const bool  active)
virtualinherited

set all content to enable (parameter is true) or disable state

Referenced by SMESHGUI_Operation::setDialogActive().

void SMESHGUI_PropertiesDlg::setEdgeColor ( const QColor &  color)

Set edges (wireframe) color.

Parameters
coloredges color

References myEdgeColor.

void SMESHGUI_PropertiesDlg::setEdgeWidth ( int  width)

Set edges width.

Parameters
widthedges width

References myEdgeWidth.

void SMESHGUI_PropertiesDlg::setElem0dColor ( const QColor &  color)

Set 0D elements color.

Parameters
color0D elements color

References myElem0dColor.

void SMESHGUI_PropertiesDlg::setElem0dSize ( int  size)

Set 0D elements size.

Parameters
size0D elements size

References myElem0dSize.

void SMESHGUI_PropertiesDlg::setFaceColor ( const QColor &  color,
int  delta 
)

Set faces colors.

Parameters
colorfront faces color
deltaback faces coloring delta

References myFaceColor.

void SMESHGUI_PropertiesDlg::setNodeColor ( const QColor &  color)

Set nodes color.

Parameters
colornodes color

References myNodeColor.

void SMESHGUI_PropertiesDlg::setNodeCustomMarker ( int  id)

Set custom nodes marker.

Parameters
idcustom nodes marker id

References myNodeMarker.

void SMESHGUI_PropertiesDlg::setNodeMarker ( VTK::MarkerType  type,
VTK::MarkerScale  scale 
)

Set standard nodes marker.

Parameters
typestandard nodes marker type
scalestandard nodes marker scale

References myNodeMarker.

void SMESHGUI_PropertiesDlg::setOrientation3d ( bool  on)

Set orientation vectors 3d flag.

Parameters
onorientation vectors 3d flag value

References myOrientation3d.

void SMESHGUI_PropertiesDlg::setOrientationColor ( const QColor &  color)

Set orientation vectors color.

Parameters
colororientation vectors color

References myOrientationColor.

void SMESHGUI_PropertiesDlg::setOrientationSize ( int  scale)

Set orientation vectors scale (percent)

Parameters
scaleorientation vectors scale

References myOrientationSize.

void SMESHGUI_PropertiesDlg::setOutlineColor ( const QColor &  color)

Set outlines color.

Parameters
coloroutlines color

References myOutlineColor.

void SMESHGUI_PropertiesDlg::setOutlineWidth ( int  width)

Set outlines width.

Parameters
widthoutlines width

References myOutlineWidth.

void SMESHGUI_PropertiesDlg::setShrinkCoef ( int  coef)

Set shrink coefficient (percent)

Parameters
coefshrink coefficient

References myShrinkSize.

void SMESHGUI_PropertiesDlg::setVolumeColor ( const QColor &  color,
int  delta 
)

Set volumes colors.

Parameters
colornormal volumes color
deltareversed volumes coloring delta

References myVolumeColor.

void SMESHGUI_PropertiesDlg::showControls ( int  elements,
bool  nodes 
)

Show / hide controls for specified entity type.

Parameters
elementsmesh element types (an or-ed combination of flags)
nodesmesh nodes presence flag

References SMESH_Actor::e0DElements, SMESH_Actor::eAllEntity, SMESH_Actor::eBallElem, SMESH_Actor::eEdges, SMESH_Actor::eFaces, SMESH_Actor::eVolumes, myBallGrp, myEdgeGrp, myElem0dGrp, myExtraGrp, myFaceGrp, myNodeGrp, myOrientationGrp, myOutlineGrp, and myVolumeGrp.

int SMESHGUI_PropertiesDlg::shrinkCoef ( ) const

Get shrink coefficient (percent)

Returns
current shrink coefficient

References myShrinkSize.

QColor SMESHGUI_PropertiesDlg::volumeColor ( ) const

Get normal volumes color.

Returns
current normal volumes color

References myVolumeColor.

int SMESHGUI_PropertiesDlg::volumeColorDelta ( ) const

Get reversed volumes coloring delta.

Returns
current reversed volumes coloring delta

References myVolumeColor.

Field Documentation

QtxColorButton* SMESHGUI_PropertiesDlg::myBallColor
private
QGroupBox* SMESHGUI_PropertiesDlg::myBallGrp
private
QtxDoubleSpinBox* SMESHGUI_PropertiesDlg::myBallScale
private
QtxColorButton* SMESHGUI_PropertiesDlg::myEdgeColor
private
QGroupBox* SMESHGUI_PropertiesDlg::myEdgeGrp
private
QtxIntSpinBox* SMESHGUI_PropertiesDlg::myEdgeWidth
private
QtxColorButton* SMESHGUI_PropertiesDlg::myElem0dColor
private
QGroupBox* SMESHGUI_PropertiesDlg::myElem0dGrp
private
QtxIntSpinBox* SMESHGUI_PropertiesDlg::myElem0dSize
private
QFrame* SMESHGUI_PropertiesDlg::myExtraGrp
private
QtxBiColorTool* SMESHGUI_PropertiesDlg::myFaceColor
private
QGroupBox* SMESHGUI_PropertiesDlg::myFaceGrp
private
QtxColorButton* SMESHGUI_PropertiesDlg::myNodeColor
private
QGroupBox* SMESHGUI_PropertiesDlg::myNodeGrp
private
VTKViewer_MarkerWidget* SMESHGUI_PropertiesDlg::myNodeMarker
private
QCheckBox* SMESHGUI_PropertiesDlg::myOrientation3d
private
QtxColorButton* SMESHGUI_PropertiesDlg::myOrientationColor
private
QGroupBox* SMESHGUI_PropertiesDlg::myOrientationGrp
private
QtxIntSpinBox* SMESHGUI_PropertiesDlg::myOrientationSize
private
QtxColorButton* SMESHGUI_PropertiesDlg::myOutlineColor
private
QGroupBox* SMESHGUI_PropertiesDlg::myOutlineGrp
private
QtxIntSpinBox* SMESHGUI_PropertiesDlg::myOutlineWidth
private
QtxIntSpinBox* SMESHGUI_PropertiesDlg::myShrinkSize
private
QtxBiColorTool* SMESHGUI_PropertiesDlg::myVolumeColor
private
QGroupBox* SMESHGUI_PropertiesDlg::myVolumeGrp
private