mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-14 17:48:34 +05:00
0021711: [CEA 579] Simplify Properties dialog accordingly to dimension of mesh
This commit is contained in:
parent
878662e498
commit
1e6fde8450
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 |
@ -4,36 +4,48 @@
|
||||
|
||||
\image html colors_size.png
|
||||
|
||||
Using this dialog you can define the following set of mesh visualization
|
||||
parameters:
|
||||
<ul>
|
||||
<li><b>Elements</b></li>
|
||||
<ul>
|
||||
<li><b>Surface color</b> - surface color of elements (seen in Shading mode).</li>
|
||||
<li><b>Back surface color</b> - interior surface color of elements. Use slider to select this color
|
||||
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>
|
||||
<li><b>Wireframe color</b> - color of element borders in wireframe mode.</li>
|
||||
<li><b>0D elements</b> - color of 0D elements.</li>
|
||||
<li><b>Size of 0D elements</b> - size of 0D elements.</li>
|
||||
<li><b>Ball elements</b> - color of MED_BALL elements.</li>
|
||||
<li><b>Size of Ball elements</b> - size of MED_BALL elements.</li>
|
||||
<li><b>Line width</b> - width of lines (edges and borders of elements).</li>
|
||||
<li><b>Shrink coef.</b> - relative space of elements compared to gaps between
|
||||
them in shrink mode.</li>
|
||||
</ul>
|
||||
<li><b>Nodes</b></li>
|
||||
<ul>
|
||||
<li><b>Color</b> - color of nodes.</li>
|
||||
<li><b>Marker</b> - group of options allowing to change the representation of
|
||||
points (see \subpage point_marker_page "Point Marker" page).</li>
|
||||
</ul>
|
||||
<li><b>Orientation of faces</b></li>
|
||||
<ul>
|
||||
<li><b>Color</b> - color of orientation vertors.</li>
|
||||
<li><b>Scale</b> - size of orientation vectors.</li>
|
||||
<li><b>3D vectors</b> - allows to choose between 2D planar and 3D vectors.</li>
|
||||
</ul>
|
||||
</ul>
|
||||
Using this dialog you can customize different properties of the mesh visualization
|
||||
parameters.
|
||||
|
||||
The GUI elements in the "Properties" dialog box are grouped according
|
||||
to the entity types of mesh data. If some data entities are not
|
||||
present in the mesh object, the corresponding GUI elements are not
|
||||
shown.
|
||||
|
||||
- \b Nodes:
|
||||
- \b Color - color of nodes.
|
||||
- \b Type and \b Scale - these options allow changing of the nodes
|
||||
representation (see \subpage point_marker_page "Point Marker" page
|
||||
for more details).
|
||||
- <b>Edges / wireframe</b>:
|
||||
- \b Color - color of element borders in wireframe mode.
|
||||
- \b Width - width of lines (edges and borders of elements
|
||||
in wireframe mode).
|
||||
- \b Faces:
|
||||
- \b Front - surface color of face elements (seen in shading mode).
|
||||
- \b Back - backside surface color of face elements. Use slider to
|
||||
select this color generated on base of the \b Face color by
|
||||
changing its brightness and saturation.
|
||||
- \b Volumes:
|
||||
- \b Normal - surface color of normal volume elements (seen in shading mode).
|
||||
- \b Reversed - surface color of volume elements. Use slider to
|
||||
select this color generated on base of the \b Normal color by
|
||||
changing its brightness and saturation.
|
||||
- \b Outlines:
|
||||
- \b Color - color of element borders in shading mode.
|
||||
- \b Width - width of outlines (borders of elements
|
||||
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.
|
||||
|
||||
*/
|
||||
|
@ -33,14 +33,14 @@ lines in the file. Note that missing symbols are replaced by "0".
|
||||
Here is a texture file sample:
|
||||
|
||||
<pre>
|
||||
00111100
|
||||
00111100
|
||||
11111111
|
||||
10000001
|
||||
10011001
|
||||
10111101
|
||||
10111101
|
||||
10011001
|
||||
10000001
|
||||
11111111
|
||||
11111111
|
||||
11111111
|
||||
00111100
|
||||
00111100
|
||||
</pre>
|
||||
|
||||
\image html point_marker_widget2.png
|
||||
|
@ -35,6 +35,8 @@
|
||||
#include <QtxColorButton.h>
|
||||
#include <QtxIntSpinBox.h>
|
||||
#include <VTKViewer_MarkerWidget.h>
|
||||
#include <SUIT_Session.h>
|
||||
#include <LightApp_Application.h>
|
||||
|
||||
const int MARGIN = 9;
|
||||
const int SPACING = 6;
|
||||
@ -247,6 +249,8 @@ SMESHGUI_PropertiesDlg::SMESHGUI_PropertiesDlg( const VTK::MarkerMap& customMark
|
||||
myOrientationSize->setRange( 5, 100 );
|
||||
|
||||
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
|
||||
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" );
|
||||
}
|
||||
|
@ -98,6 +98,9 @@ public:
|
||||
|
||||
void showControls( int, bool );
|
||||
|
||||
private slots:
|
||||
void onHelp();
|
||||
|
||||
private:
|
||||
// group boxes
|
||||
QGroupBox* myNodeGrp;
|
||||
|
Loading…
Reference in New Issue
Block a user