Version: 9.12.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()

SMESHGUI_PropertiesDlg::~SMESHGUI_PropertiesDlg ( )

Member Function Documentation

◆ ballColor()

QColor SMESHGUI_PropertiesDlg::ballColor ( ) const

Get discrete elements (balls) color.

Returns
current discrete elements (balls) color

References myBallColor.

◆ ballScale()

double SMESHGUI_PropertiesDlg::ballScale ( ) const

Get discrete elements (balls) scale factor.

Returns
current discrete elements (balls) scale factor

References myBallScale.

◆ customMarkers()

VTK::MarkerMap SMESHGUI_PropertiesDlg::customMarkers ( ) const

References myNodeMarker.

Referenced by SMESHGUI_PropertiesDlg().

◆ desktop()

SUIT_Desktop * SMESHGUI_Dialog::desktop ( ) const
protectedinherited

find desktop of active application

References MESHCUT::d.

◆ edgeColor()

QColor SMESHGUI_PropertiesDlg::edgeColor ( ) const

Get edges (wireframe) color.

Returns
current edges color

References myEdgeColor.

◆ edgeWidth()

int SMESHGUI_PropertiesDlg::edgeWidth ( ) const

Get edges width.

Returns
current edges width

References myEdgeWidth.

◆ elem0dColor()

QColor SMESHGUI_PropertiesDlg::elem0dColor ( ) const

Get 0D elements color.

Returns
current 0D elements color

References myElem0dColor.

◆ elem0dSize()

int SMESHGUI_PropertiesDlg::elem0dSize ( ) const

Get 0D elements size.

Returns
current 0D elements size

References myElem0dSize.

◆ faceColor()

QColor SMESHGUI_PropertiesDlg::faceColor ( ) const

Get front faces color.

Returns
current front faces color

References myFaceColor.

◆ faceColorDelta()

int SMESHGUI_PropertiesDlg::faceColorDelta ( ) const

Get back faces coloring delta.

Returns
current back faces coloring delta

References myFaceColor.

◆ nodeColor()

QColor SMESHGUI_PropertiesDlg::nodeColor ( ) const

Get nodes color.

Returns
current nodes color

References myNodeColor.

◆ nodeMarkerId()

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.

◆ nodeMarkerScale()

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.

◆ nodeMarkerType()

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.

◆ onHelp

void SMESHGUI_PropertiesDlg::onHelp ( )
privateslot

Show online help on dialog box.

Referenced by SMESHGUI_PropertiesDlg().

◆ orientation3d()

bool SMESHGUI_PropertiesDlg::orientation3d ( ) const

Get orientation vectors 3d flag.

Returns
orientation vectors 3d flag value

References myOrientation3d.

◆ orientationColor()

QColor SMESHGUI_PropertiesDlg::orientationColor ( ) const

Get orientation vectors color.

Returns
current orientation vectors color

References myOrientationColor.

◆ orientationSize()

int SMESHGUI_PropertiesDlg::orientationSize ( ) const

Get orientation vectors scale (percent)

Returns
current orientation vectors scale

References myOrientationSize.

◆ outlineColor()

QColor SMESHGUI_PropertiesDlg::outlineColor ( ) const

Get outlines color.

Returns
current outlines color

References myOutlineColor.

◆ outlineWidth()

int SMESHGUI_PropertiesDlg::outlineWidth ( ) const

Get outlines width.

Returns
current outlines width

References myOutlineWidth.

◆ prefix()

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().

◆ resourceMgr()

SUIT_ResourceMgr * SMESHGUI_Dialog::resourceMgr ( ) const
protectedinherited

◆ setBallColor()

void SMESHGUI_PropertiesDlg::setBallColor ( const QColor &  color)

Set discrete elements (balls) color.

Parameters
colordiscrete elements (balls) color

References myBallColor.

◆ setBallScale()

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.

◆ setContentActive()

void SMESHGUI_Dialog::setContentActive ( const bool  active)
virtualinherited

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

◆ setEdgeColor()

void SMESHGUI_PropertiesDlg::setEdgeColor ( const QColor &  color)

Set edges (wireframe) color.

Parameters
coloredges color

References myEdgeColor.

◆ setEdgeWidth()

void SMESHGUI_PropertiesDlg::setEdgeWidth ( int  width)

Set edges width.

Parameters
widthedges width

References myEdgeWidth.

◆ setElem0dColor()

void SMESHGUI_PropertiesDlg::setElem0dColor ( const QColor &  color)

Set 0D elements color.

Parameters
color0D elements color

References myElem0dColor.

◆ setElem0dSize()

void SMESHGUI_PropertiesDlg::setElem0dSize ( int  size)

Set 0D elements size.

Parameters
size0D elements size

References myElem0dSize.

◆ setFaceColor()

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

Set faces colors.

Parameters
colorfront faces color
deltaback faces coloring delta

References myFaceColor.

◆ setNodeColor()

void SMESHGUI_PropertiesDlg::setNodeColor ( const QColor &  color)

Set nodes color.

Parameters
colornodes color

References myNodeColor.

◆ setNodeCustomMarker()

void SMESHGUI_PropertiesDlg::setNodeCustomMarker ( int  id)

Set custom nodes marker.

Parameters
idcustom nodes marker id

References myNodeMarker.

◆ setNodeMarker()

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.

◆ setOrientation3d()

void SMESHGUI_PropertiesDlg::setOrientation3d ( bool  on)

Set orientation vectors 3d flag.

Parameters
onorientation vectors 3d flag value

References myOrientation3d.

◆ setOrientationColor()

void SMESHGUI_PropertiesDlg::setOrientationColor ( const QColor &  color)

Set orientation vectors color.

Parameters
colororientation vectors color

References myOrientationColor.

◆ setOrientationSize()

void SMESHGUI_PropertiesDlg::setOrientationSize ( int  scale)

Set orientation vectors scale (percent)

Parameters
scaleorientation vectors scale

References myOrientationSize.

◆ setOutlineColor()

void SMESHGUI_PropertiesDlg::setOutlineColor ( const QColor &  color)

Set outlines color.

Parameters
coloroutlines color

References myOutlineColor.

◆ setOutlineWidth()

void SMESHGUI_PropertiesDlg::setOutlineWidth ( int  width)

Set outlines width.

Parameters
widthoutlines width

References myOutlineWidth.

◆ setShrinkCoef()

void SMESHGUI_PropertiesDlg::setShrinkCoef ( int  coef)

Set shrink coefficient (percent)

Parameters
coefshrink coefficient

References myShrinkSize.

◆ setVolumeColor()

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

Set volumes colors.

Parameters
colornormal volumes color
deltareversed volumes coloring delta

References myVolumeColor.

◆ show()

◆ showControls()

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.

◆ shrinkCoef()

int SMESHGUI_PropertiesDlg::shrinkCoef ( ) const

Get shrink coefficient (percent)

Returns
current shrink coefficient

References myShrinkSize.

◆ volumeColor()

QColor SMESHGUI_PropertiesDlg::volumeColor ( ) const

Get normal volumes color.

Returns
current normal volumes color

References myVolumeColor.

◆ volumeColorDelta()

int SMESHGUI_PropertiesDlg::volumeColorDelta ( ) const

Get reversed volumes coloring delta.

Returns
current reversed volumes coloring delta

References myVolumeColor.

Field Documentation

◆ myBallColor

QtxColorButton* SMESHGUI_PropertiesDlg::myBallColor
private

◆ myBallGrp

QGroupBox* SMESHGUI_PropertiesDlg::myBallGrp
private

◆ myBallScale

QtxDoubleSpinBox* SMESHGUI_PropertiesDlg::myBallScale
private

◆ myEdgeColor

QtxColorButton* SMESHGUI_PropertiesDlg::myEdgeColor
private

◆ myEdgeGrp

QGroupBox* SMESHGUI_PropertiesDlg::myEdgeGrp
private

◆ myEdgeWidth

QtxIntSpinBox* SMESHGUI_PropertiesDlg::myEdgeWidth
private

◆ myElem0dColor

QtxColorButton* SMESHGUI_PropertiesDlg::myElem0dColor
private

◆ myElem0dGrp

QGroupBox* SMESHGUI_PropertiesDlg::myElem0dGrp
private

◆ myElem0dSize

QtxIntSpinBox* SMESHGUI_PropertiesDlg::myElem0dSize
private

◆ myExtraGrp

QFrame* SMESHGUI_PropertiesDlg::myExtraGrp
private

◆ myFaceColor

QtxBiColorTool* SMESHGUI_PropertiesDlg::myFaceColor
private

◆ myFaceGrp

QGroupBox* SMESHGUI_PropertiesDlg::myFaceGrp
private

◆ myNodeColor

QtxColorButton* SMESHGUI_PropertiesDlg::myNodeColor
private

◆ myNodeGrp

QGroupBox* SMESHGUI_PropertiesDlg::myNodeGrp
private

◆ myNodeMarker

VTKViewer_MarkerWidget* SMESHGUI_PropertiesDlg::myNodeMarker
private

◆ myOrientation3d

QCheckBox* SMESHGUI_PropertiesDlg::myOrientation3d
private

◆ myOrientationColor

QtxColorButton* SMESHGUI_PropertiesDlg::myOrientationColor
private

◆ myOrientationGrp

QGroupBox* SMESHGUI_PropertiesDlg::myOrientationGrp
private

◆ myOrientationSize

QtxIntSpinBox* SMESHGUI_PropertiesDlg::myOrientationSize
private

◆ myOutlineColor

QtxColorButton* SMESHGUI_PropertiesDlg::myOutlineColor
private

◆ myOutlineGrp

QGroupBox* SMESHGUI_PropertiesDlg::myOutlineGrp
private

◆ myOutlineWidth

QtxIntSpinBox* SMESHGUI_PropertiesDlg::myOutlineWidth
private

◆ myShrinkSize

QtxIntSpinBox* SMESHGUI_PropertiesDlg::myShrinkSize
private

◆ myVolumeColor

QtxBiColorTool* SMESHGUI_PropertiesDlg::myVolumeColor
private

◆ myVolumeGrp

QGroupBox* SMESHGUI_PropertiesDlg::myVolumeGrp
private