0021711: [CEA 579] Simplify Properties dialog accordingly to dimension of mesh

This commit is contained in:
vsr 2012-10-03 14:25:24 +00:00
parent 878662e498
commit 1e6fde8450
7 changed files with 65 additions and 37 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -4,36 +4,48 @@
\image html colors_size.png \image html colors_size.png
Using this dialog you can define the following set of mesh visualization Using this dialog you can customize different properties of the mesh visualization
parameters: parameters.
<ul>
<li><b>Elements</b></li> The GUI elements in the "Properties" dialog box are grouped according
<ul> to the entity types of mesh data. If some data entities are not
<li><b>Surface color</b> - surface color of elements (seen in Shading mode).</li> present in the mesh object, the corresponding GUI elements are not
<li><b>Back surface color</b> - interior surface color of elements. Use slider to select this color shown.
generated on base of the <b>Surface color</b> by changing its brightness and saturation.</li>
<li><b>Outline color</b> - color of element borders.</li> - \b Nodes:
<li><b>Wireframe color</b> - color of element borders in wireframe mode.</li> - \b Color - color of nodes.
<li><b>0D elements</b> - color of 0D elements.</li> - \b Type and \b Scale - these options allow changing of the nodes
<li><b>Size of 0D elements</b> - size of 0D elements.</li> representation (see \subpage point_marker_page "Point Marker" page
<li><b>Ball elements</b> - color of MED_BALL elements.</li> for more details).
<li><b>Size of Ball elements</b> - size of MED_BALL elements.</li> - <b>Edges / wireframe</b>:
<li><b>Line width</b> - width of lines (edges and borders of elements).</li> - \b Color - color of element borders in wireframe mode.
<li><b>Shrink coef.</b> - relative space of elements compared to gaps between - \b Width - width of lines (edges and borders of elements
them in shrink mode.</li> in wireframe mode).
</ul> - \b Faces:
<li><b>Nodes</b></li> - \b Front - surface color of face elements (seen in shading mode).
<ul> - \b Back - backside surface color of face elements. Use slider to
<li><b>Color</b> - color of nodes.</li> select this color generated on base of the \b Face color by
<li><b>Marker</b> - group of options allowing to change the representation of changing its brightness and saturation.
points (see \subpage point_marker_page "Point Marker" page).</li> - \b Volumes:
</ul> - \b Normal - surface color of normal volume elements (seen in shading mode).
<li><b>Orientation of faces</b></li> - \b Reversed - surface color of volume elements. Use slider to
<ul> select this color generated on base of the \b Normal color by
<li><b>Color</b> - color of orientation vertors.</li> changing its brightness and saturation.
<li><b>Scale</b> - size of orientation vectors.</li> - \b Outlines:
<li><b>3D vectors</b> - allows to choose between 2D planar and 3D vectors.</li> - \b Color - color of element borders in shading mode.
</ul> - \b Width - width of outlines (borders of elements
</ul> in shading mode).
- <b>0D elements</b>:
- \b Color - color of 0D elements.
- \b Size - size of 0D elements.
- \b Balls:
- \b Color - color of discrete ball elements.
- \b Size - size of discrete ball elements.
- <b>Orientation vectors</b>:
- \b Color - color of orientation vectors.
- \b Scale - size of orientation vectors.
- <b>3D vectors</b> - allows to choose between 2D planar and 3D vectors.
- <b>Shrink coef.</b> - relative space of elements compared to gaps between
them in shrink mode.
*/ */

View File

@ -33,14 +33,14 @@ lines in the file. Note that missing symbols are replaced by "0".
Here is a texture file sample: Here is a texture file sample:
<pre> <pre>
00111100
00111100
11111111 11111111
10000001
10011001
10111101
10111101
10011001
10000001
11111111 11111111
11111111
11111111
00111100
00111100
</pre> </pre>
\image html point_marker_widget2.png \image html point_marker_widget2.png

View File

@ -35,6 +35,8 @@
#include <QtxColorButton.h> #include <QtxColorButton.h>
#include <QtxIntSpinBox.h> #include <QtxIntSpinBox.h>
#include <VTKViewer_MarkerWidget.h> #include <VTKViewer_MarkerWidget.h>
#include <SUIT_Session.h>
#include <LightApp_Application.h>
const int MARGIN = 9; const int MARGIN = 9;
const int SPACING = 6; const int SPACING = 6;
@ -247,6 +249,8 @@ SMESHGUI_PropertiesDlg::SMESHGUI_PropertiesDlg( const VTK::MarkerMap& customMark
myOrientationSize->setRange( 5, 100 ); myOrientationSize->setRange( 5, 100 );
button( OK )->setText( tr( "SMESH_BUT_OK" ) ); button( OK )->setText( tr( "SMESH_BUT_OK" ) );
connect( this, SIGNAL( dlgHelp() ), this, SLOT( onHelp() ) );
} }
/* /*
@ -634,3 +638,12 @@ void SMESHGUI_PropertiesDlg::showControls( int elements, bool nodes )
// shrink factor is shown if there are edges and/or faces and/or volumes // shrink factor is shown if there are edges and/or faces and/or volumes
myExtraGrp->setVisible( elements & ( SMESH_Actor::eEdges | SMESH_Actor::eFaces | SMESH_Actor::eVolumes ) ); myExtraGrp->setVisible( elements & ( SMESH_Actor::eEdges | SMESH_Actor::eFaces | SMESH_Actor::eVolumes ) );
} }
/*!
\brief Show online help on dialog box
*/
void SMESHGUI_PropertiesDlg::onHelp()
{
LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
app->onHelpContextModule( "SMESH", "colors_size_page.html" );
}

View File

@ -98,6 +98,9 @@ public:
void showControls( int, bool ); void showControls( int, bool );
private slots:
void onHelp();
private: private:
// group boxes // group boxes
QGroupBox* myNodeGrp; QGroupBox* myNodeGrp;