Dialog box to set-up mesh presentation properties: colors, sizes of elements, width of lines etc. More...
#include <SMESHGUI_PropertiesDlg.h>
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 | |
QGroupBox * | myNodeGrp |
QGroupBox * | myEdgeGrp |
QGroupBox * | myFaceGrp |
QGroupBox * | myVolumeGrp |
QGroupBox * | myOutlineGrp |
QGroupBox * | myElem0dGrp |
QGroupBox * | myBallGrp |
QGroupBox * | myOrientationGrp |
QFrame * | myExtraGrp |
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 |
Dialog box to set-up mesh presentation properties: colors, sizes of elements, width of lines etc.
SMESHGUI_PropertiesDlg::SMESHGUI_PropertiesDlg | ( | const VTK::MarkerMap & | customMarkers, |
QWidget * | parent | ||
) |
References myBallColor, myBallGrp, myBallScale, myEdgeColor, myEdgeGrp, myEdgeWidth, myElem0dColor, myElem0dGrp, myElem0dSize, myExtraGrp, myFaceColor, myFaceGrp, myNodeColor, myNodeGrp, myNodeMarker, myOrientation3d, myOrientationColor, myOrientationGrp, myOrientationSize, myOutlineColor, myOutlineGrp, myOutlineWidth, myShrinkSize, myVolumeColor, myVolumeGrp, and onHelp().
SMESHGUI_PropertiesDlg::~SMESHGUI_PropertiesDlg | ( | ) |
QColor SMESHGUI_PropertiesDlg::ballColor | ( | ) | const |
Get discrete elements (balls) color.
References myBallColor.
double SMESHGUI_PropertiesDlg::ballScale | ( | ) | const |
Get discrete elements (balls) scale factor.
References myBallScale.
VTK::MarkerMap SMESHGUI_PropertiesDlg::customMarkers | ( | ) | const |
References myNodeMarker.
|
protectedinherited |
find desktop of active application
References MESHCUT::d.
QColor SMESHGUI_PropertiesDlg::edgeColor | ( | ) | const |
int SMESHGUI_PropertiesDlg::edgeWidth | ( | ) | const |
QColor SMESHGUI_PropertiesDlg::elem0dColor | ( | ) | const |
int SMESHGUI_PropertiesDlg::elem0dSize | ( | ) | const |
QColor SMESHGUI_PropertiesDlg::faceColor | ( | ) | const |
int SMESHGUI_PropertiesDlg::faceColorDelta | ( | ) | const |
QColor SMESHGUI_PropertiesDlg::nodeColor | ( | ) | const |
int SMESHGUI_PropertiesDlg::nodeMarkerId | ( | ) | const |
Get custom nodes marker.
For standard markers return value is VTK::MT_NONE.
References myNodeMarker.
VTK::MarkerScale SMESHGUI_PropertiesDlg::nodeMarkerScale | ( | ) | const |
Get nodes marker scale.
For custom marker return value is undefined.
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.
References myNodeMarker.
|
privateslot |
Show online help on dialog box.
Referenced by SMESHGUI_PropertiesDlg().
bool SMESHGUI_PropertiesDlg::orientation3d | ( | ) | const |
Get orientation vectors 3d flag.
References myOrientation3d.
QColor SMESHGUI_PropertiesDlg::orientationColor | ( | ) | const |
Get orientation vectors color.
References myOrientationColor.
int SMESHGUI_PropertiesDlg::orientationSize | ( | ) | const |
Get orientation vectors scale (percent)
References myOrientationSize.
QColor SMESHGUI_PropertiesDlg::outlineColor | ( | ) | const |
int SMESHGUI_PropertiesDlg::outlineWidth | ( | ) | const |
|
staticinherited |
Return hard-coded prefix using to differ overlapping types.
Referenced by SMESHGUI_Dialog::SMESHGUI_Dialog(), and SMESHGUI_SelectionOp::typeById().
|
protectedinherited |
gets resource manager
Referenced by SMESHGUI_ComputeDlg::createMainFrame(), SMESHGUI_DisplayEntitiesDlg::SMESHGUI_DisplayEntitiesDlg(), and SMESHGUI_GroupOnShapeDlg::SMESHGUI_GroupOnShapeDlg().
void SMESHGUI_PropertiesDlg::setBallColor | ( | const QColor & | color | ) |
Set discrete elements (balls) color.
color | discrete elements (balls) color |
References myBallColor.
void SMESHGUI_PropertiesDlg::setBallScale | ( | double | size | ) |
Set discrete elements (balls) size.
size | discrete elements (balls) size |
Get discrete elements (balls) size
Set discrete elements (balls) scale factor
size | discrete elements (balls) scale factor |
References myBallScale.
|
virtualinherited |
set all content to enable (parameter is true) or disable state
Referenced by SMESHGUI_Operation::setDialogActive().
void SMESHGUI_PropertiesDlg::setEdgeColor | ( | const QColor & | color | ) |
void SMESHGUI_PropertiesDlg::setEdgeWidth | ( | int | width | ) |
void SMESHGUI_PropertiesDlg::setElem0dColor | ( | const QColor & | color | ) |
void SMESHGUI_PropertiesDlg::setElem0dSize | ( | int | size | ) |
void SMESHGUI_PropertiesDlg::setFaceColor | ( | const QColor & | color, |
int | delta | ||
) |
Set faces colors.
color | front faces color |
delta | back faces coloring delta |
References myFaceColor.
void SMESHGUI_PropertiesDlg::setNodeColor | ( | const QColor & | color | ) |
void SMESHGUI_PropertiesDlg::setNodeCustomMarker | ( | int | id | ) |
void SMESHGUI_PropertiesDlg::setNodeMarker | ( | VTK::MarkerType | type, |
VTK::MarkerScale | scale | ||
) |
Set standard nodes marker.
type | standard nodes marker type |
scale | standard nodes marker scale |
References myNodeMarker.
void SMESHGUI_PropertiesDlg::setOrientation3d | ( | bool | on | ) |
Set orientation vectors 3d flag.
on | orientation vectors 3d flag value |
References myOrientation3d.
void SMESHGUI_PropertiesDlg::setOrientationColor | ( | const QColor & | color | ) |
Set orientation vectors color.
color | orientation vectors color |
References myOrientationColor.
void SMESHGUI_PropertiesDlg::setOrientationSize | ( | int | scale | ) |
Set orientation vectors scale (percent)
scale | orientation vectors scale |
References myOrientationSize.
void SMESHGUI_PropertiesDlg::setOutlineColor | ( | const QColor & | color | ) |
void SMESHGUI_PropertiesDlg::setOutlineWidth | ( | int | width | ) |
void SMESHGUI_PropertiesDlg::setShrinkCoef | ( | int | coef | ) |
void SMESHGUI_PropertiesDlg::setVolumeColor | ( | const QColor & | color, |
int | delta | ||
) |
Set volumes colors.
color | normal volumes color |
delta | reversed volumes coloring delta |
References myVolumeColor.
|
virtualinherited |
Referenced by SMESHGUI_MeshOp::onCloseShapeByMeshDlg(), SMESHGUI_MeshOp::onPublishShapeByMeshDlg(), SMESHGUI_BaseComputeOp::showComputeResult(), SMESHGUI_BaseComputeOp::showEvaluateResult(), SMESHGUI_FindElemByPointOp::startOperation(), SMESHGUI_ReorientFacesOp::startOperation(), SMESHGUI_GroupOnShapeOp::startOperation(), SMESHGUI_ConvToQuadOp::startOperation(), SMESHGUI_MakeNodeAtPointOp::startOperation(), SMESHGUI_SplitBiQuadOp::startOperation(), SMESHGUI_MeshOp::startOperation(), SMESHGUI_MeshOrderOp::startOperation(), SMESHGUI_ShapeByMeshOp::startOperation(), and SMESHGUI_Add0DElemsOnAllNodesOp::startOperation().
Show / hide controls for specified entity type.
elements | mesh element types (an or-ed combination of flags) |
nodes | mesh 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 |
QColor SMESHGUI_PropertiesDlg::volumeColor | ( | ) | const |
int SMESHGUI_PropertiesDlg::volumeColorDelta | ( | ) | const |
Get reversed volumes coloring delta.
References myVolumeColor.
|
private |
Referenced by ballColor(), setBallColor(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by showControls(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by ballScale(), setBallScale(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by edgeColor(), setEdgeColor(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by showControls(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by edgeWidth(), setEdgeWidth(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by elem0dColor(), setElem0dColor(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by showControls(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by elem0dSize(), setElem0dSize(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by showControls(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by faceColor(), faceColorDelta(), setFaceColor(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by showControls(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by nodeColor(), setNodeColor(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by showControls(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by customMarkers(), nodeMarkerId(), nodeMarkerScale(), nodeMarkerType(), setNodeCustomMarker(), setNodeMarker(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by orientation3d(), setOrientation3d(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by orientationColor(), setOrientationColor(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by showControls(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by orientationSize(), setOrientationSize(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by outlineColor(), setOutlineColor(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by showControls(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by outlineWidth(), setOutlineWidth(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by setShrinkCoef(), shrinkCoef(), and SMESHGUI_PropertiesDlg().
|
private |
Referenced by setVolumeColor(), SMESHGUI_PropertiesDlg(), volumeColor(), and volumeColorDelta().
|
private |
Referenced by showControls(), and SMESHGUI_PropertiesDlg().