From: vsr Date: Thu, 19 Apr 2012 14:24:32 +0000 (+0000) Subject: Improve documentation related to the SALOME GUI 2D /3D viewers X-Git-Tag: TRIPOLI_323~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c1d558b9f1a8bc0ce1fcf04a4ed214abbb4caed2;p=modules%2Fgui.git Improve documentation related to the SALOME GUI 2D /3D viewers --- diff --git a/doc/salome/gui/images/glviewer_toolbar.png b/doc/salome/gui/images/glviewer_toolbar.png new file mode 100644 index 000000000..c18f17807 Binary files /dev/null and b/doc/salome/gui/images/glviewer_toolbar.png differ diff --git a/doc/salome/gui/images/qxviewer_toolbar.png b/doc/salome/gui/images/qxviewer_toolbar.png new file mode 100644 index 000000000..716a078c0 Binary files /dev/null and b/doc/salome/gui/images/qxviewer_toolbar.png differ diff --git a/doc/salome/gui/input/gl_2d_viewer.doc b/doc/salome/gui/input/gl_2d_viewer.doc new file mode 100644 index 000000000..3f0c35f57 --- /dev/null +++ b/doc/salome/gui/input/gl_2d_viewer.doc @@ -0,0 +1,71 @@ +/*! + +\page gl_2d_viewer_page GL 2D Viewer + +

Operations

+ +The functionalities of GL viewer are available via its Viewer +Toolbar. Buttons marked with small downward triangles have extended +functionality which can be accessed by locking on them with left mouse +button. + +\image html glviewer_toolbar.png +
+ +\image html gl_view_dump.png + +Dump View - exports an object from the viewer in bmp, png or +jpeg image format. +
+ +\image html gl_view_fitall.png + +Fit all - scales the presentation so that it could fit within +the Viewer boundaries. +
+ +\image html gl_view_fitarea.png + +Fit area - resizes the view to place in the visible area only +the contents of a frame drawn with pressed left mouse button. +
+ +\image html gl_view_fitselect.png + +Fit selection - resizes the view to fit in the visible area +only currently selected objects. +
+ +\image html gl_view_zoom.png + +Zoom - allows to zoom in and out. +
+ +\image html gl_view_pan.png + +Panning - if the represented objects are greater that the +visible area and you don't wish to use Fit all functionality, +click on this button and you'll be able to drag the scene to see its +remote parts. +
+ +\image html gl_view_glpan.png + +Global panning - allows to select a point to be the center of +the presentation showing all displayed objects in the visible ares. +
+ +\image html gl_view_reset.png + +Reset - restores the default position the scene. +
+ +\anchor gl_background +

Background

+ +GL Viewer background can be customized using the "Change background" +popup menu command that opens standard "Select Color" dialog box: + +\image html selectcolor.png + +*/ diff --git a/doc/salome/gui/input/occ_3d_viewer.doc b/doc/salome/gui/input/occ_3d_viewer.doc index bc5794933..e9212b1f7 100644 --- a/doc/salome/gui/input/occ_3d_viewer.doc +++ b/doc/salome/gui/input/occ_3d_viewer.doc @@ -9,82 +9,96 @@ Toolbar. Buttons marked with small downward triangles have extended functionality which can be accessed by locking on them with left mouse button. -\image html occviewer_toolbar.png "Viewer Toolbar" +\image html occviewer_toolbar.png
\image html occ_view_camera_dump.png -
Dump View - exports an object from the viewer in bmp, png, jpg -or jpeg image format.
+ +Dump View - exports an object from the viewer in bmp, png or +jpeg image format.
\image html occ_view_style_switch.png -
Interaction style switch - allows to switch between standard and -"keyboard free" interaction styles. "Keyboard free" style allows to process all -view transformations without using keyboard (only by mouse) and perform selection -in view by pressing "S" key. By default, rotation in this mode is performed by -left mouse button, panning - by middle mouse button, zooming - by left and middle -mouse buttons pressed simultaneously.
+ +Interaction style switch - allows to switch between standard +and "keyboard free" interaction styles. "Keyboard free" style allows +to process all view transformations without using keyboard (only by +mouse) and perform selection in view by pressing "S" key. By default, +rotation in this mode is performed by left mouse button, panning - by +middle mouse button, zooming - by left and middle mouse buttons +pressed simultaneously.
\image html occ_view_zooming_style_switch.png -
Zooming style switch - allows to switch between standard -(zooming at the center of the view) and advanced (zooming at the current cursor -position) zooming styles.
+ +Zooming style switch - allows to switch between standard +(zooming at the center of the view) and advanced (zooming at the +current cursor position) zooming styles.
\image html occ_view_triedre.png -
Show/Hide Trihedron - shows or hides coordinate axes.
+ +Show/Hide Trihedron - shows or hides coordinate axes.
\image html occ_view_fitall.png -
Fit all - allows to select a point to be the center of a -scene representing all displayed objects in the visible area.
+ +Fit all - allows to select a point to be the center of a scene +representing all displayed objects in the visible area.
\image html occ_view_fitarea.png -
Fit area - resizes the view to place in the visible area -only the contents of a frame drawn with pressed left mouse button.
+ +Fit area - resizes the view to place in the visible area only +the contents of a frame drawn with pressed left mouse button.
\image html occ_view_zoom.png -
Zoom - allows to zoom in and out.
+ +Zoom - allows to zoom in and out.
\image html occ_view_pan.png -
Panning - if the represented objects are greater that the -visible area and you don't wish to use Fit all functionality, click on -this button and you'll be able to drag the scene to see its remote -parts.
+ +Panning - if the represented objects are greater that the +visible area and you don't wish to use Fit all functionality, +click on this button and you'll be able to drag the scene to see its +remote parts.
\image html occ_view_glpan.png -
Global panning - represents all displayed objects in -the visible area.
+ +Global panning - represents all displayed objects in the +visible area.
\image html occ_view_rotation_point.png -
Change rotation point - allows to to choose the point around -which the rotation is performed.

+ +Change rotation point - allows to to choose the point around +which the rotation is performed. \image html set_rotation_point_dialog1.png -
By default the rotation point is located in the Center of the bounding -box of an object.

+By default the rotation point is located in the Center of the bounding +box of an object. \image html set_rotation_point_dialog2.png -
Unchecking Use Bounding Box Center checkbox allows you to -define the coordinates of the rotation point manually.

+Unchecking Use Bounding Box Center checkbox allows you to +define the coordinates of the rotation point manually. - Set to Origin button restores the default rotation point -coordinates. + coordinates. + - Select Point from View button allows to select the rotation -point in the 3D Viewer. + point in the 3D Viewer. +
\image html occ_view_rotate.png -
Rotation - allows to rotate the selected object using the -mouse.
+ +Rotation - allows to rotate the selected object using the +mouse.
\image html occ_view_front.png @@ -93,104 +107,129 @@ mouse. \image html occ_view_bottom.png \image html occ_view_left.png \image html occ_view_right.png -
These buttons orientate the scene strictly about coordinate axes.
+ +These buttons orientate the scene strictly about coordinate axes: +\b Front, \b Back, \b Top, \b Bottom, \b Left or \b Right side.
\image html occ_view_anticlockwise.png -
Rotate counterclockwise - rotates view 90° -counterclockwise.
+ +Rotate counterclockwise - rotates view 90° counterclockwise.
\image html occ_view_clockwise.png -
Rotate clockwise - rotates view 90° -clockwise.
+ +Rotate clockwise - rotates view 90° clockwise.
\image html occ_view_reset.png -
Reset - restores the default position (isometric) of -objects in the scene.
+ +Reset - restores the default position (isometric) of objects in +the scene.
\image html occ_view_shoot.png -
Memorise view - saves the current position of -objects in the scene.
+ +Memorise view - saves the current position of objects in the +scene.
\image html occ_view_presets.png -
Restore view - restores the saved position of -objects in the scene.
+ +Restore view - restores the saved position of objects in the +scene.
\image html occ_view_clone.png -
Clone view - opens a new duplicate scene.
+ +Clone view - opens a new duplicate scene.
\image html occ_view_clipping.png -
Clipping - allows to create cross-section views -(clipping planes) of geometrical objects.

+ +Clipping - allows to create cross-section views (clipping +planes) of geometrical objects. \image html clipping.png -
- Base point - allows to define the coordinates of the base -point for the clipping plane. + point for the clipping plane. + - Reset - returns the base point to coordinate origin. + - Direction - allows to define the orientation of the -clipping plane. - - Invert - allows to select which part of the object will be removed -and which will remain after clipping. + clipping plane. + + - Invert - allows to select which part of the object will be + removed and which will remain after clipping. + - Preview - allows to see the results of clipping in the -viewer. + viewer. +
\image html occ_view_scaling.png -
Scaling - represents objects deformed (stretched or -stuffed) along the axes of coordinates.
+ +Scaling - represents objects deformed (stretched or stuffed) +along the axes of coordinates.
\image html occ_view_graduated_axes.png -
Graduated axes - allows to define axes parameters -and graduate them.

+ +Graduated axes - allows to define axes parameters and graduate +them. \image html graduatedaxes2.png -
- Axis name - if checked the axis name is displayed in the viewer. + - Name - allows to redefine the axis name. + - Font - allows to define the font color of the axis name. + - Labels - if checked the labels are displayed in the viewer. + - Number - allows to define the number of labels. + - Offset - allows to define the distance between labels. + - Font - allows to define the font color of labels names. + - Tick marks - if checked the tick marks are displayed in the viewer. + - Length - allows to define the length of tick marks. + - Is visible - if checked the axis is displayed in the viewer. +
\image html occ_view_ambient.png -
Toggle ambient light - toggle "keep only ambient -light" flag on/off
+ +Toggle ambient light - toggle "keep only ambient light" flag +on/off.
\image html occ_view_minimized.png -
\image html occ_view_maximized.png -
Minimize/Maximize - these buttons allow switching -the current view area to the minimized / maximized state.
+ +Minimize/Maximize - these buttons allow switching the current +view area to the minimized / maximized state.
\image html occ_view_sync.png -
Synchronize view - allows to synchronize 3d view parameters.
-This button has two states - checked and unchecked. Clicking on this -button opens a drop-down menu listing the compatible 3d views. As soon -as the user selects any view from the list, the parameters (view point, -position, zoom coefficient, etc.) of the current view are synchronized -with the selected view (static synchronization). + +Synchronize view - allows to synchronize 3d view +parameters. This button has two states - checked and +unchecked. Clicking on this button opens a drop-down menu listing the +compatible 3d views. As soon as the user selects any view from the +list, the parameters (view point, position, zoom coefficient, etc.) of +the current view are synchronized with the selected view (static +synchronization). In addition, when this button is in the "checked" state, the dynamic synchronization of the views is performed, i.e. any zoom, pan, rotate -or other view operation done in one view is automatically applied -to the other view. +or other view operation done in one view is automatically applied to +the other view.
\anchor occ_background @@ -202,34 +241,48 @@ popup menu command that opens the following dialog box: \image html change_background_dlg.png The following types of the background are supported: + - Single color: the background is colored with the solid color specified by the user in the dialog box. + - Gradient background: the background is gradiently colored according to two colors and the gradient type specified in the dialog box. The following types of background are supported: + - Horizontal + - Vertical + - First diagonal + - Second diagonal + - First corner + - Second corner + - Third corner + - Fourth corner - Image: allows to set image as viewer background and define filling type: + - Center: the image is located at the center of the viewer backgound + - Tile: the image fills the entire viewer backgound one by one - - Strech: the image is stretched to the entire viewer backgound. + + - Stretch: the image is stretched to the entire viewer backgound. Default background for the viewer is specified via the \ref occ_preferences "application preferences".

Polyline selection

-OCC Viewer features a special Polyline Selection -mechanism, which allows selecting an arbitraty part of the graphic -area using a polygon frame (rubber band), instead of the usual -selection with a rectangular frame. +OCC Viewer features a special Polyline Selection mechanism, +which allows selecting an arbitraty part of the graphic area using a +polygon frame (rubber band), instead of the usual selection with a +rectangular frame. + To produce a Polyline Selection, lock the right mouse button and draw the first side of the polygon, then change the direction by clicking the left mouse button add draw another side, etc. The whole selection diff --git a/doc/salome/gui/input/plot2d_viewer.doc b/doc/salome/gui/input/plot2d_viewer.doc index 98eb3f2ea..15f15addd 100644 --- a/doc/salome/gui/input/plot2d_viewer.doc +++ b/doc/salome/gui/input/plot2d_viewer.doc @@ -7,184 +7,231 @@ Toolbar. Buttons marked with small downward triangles have extended functionality which can be accessed by locking on them with left mouse button. -\image html plot2dviewer_toolbar.png "Viewer Toolbar" +\image html plot2dviewer_toolbar.png
\image html plot2d_camera_dump.png -
Dump View - exports an object from the viewer in bmp, -png, jpg or jpeg image format.
+ +Dump View - exports an object from the viewer in +bmp, png or jpeg image format.
\image html plot2d_fitall.png -
Fit all - scales the display to show the entire -scene. Use this to resize the scene so that it could fit within the -Viewer boundary.
+Fit all - scales the display to show the entire scene. Use this +to resize the scene so that it could fit within the Viewer boundary.
\image html plot2d_fitarea.png -
Fit area - resizes the view to place in the visible -area only the contents of a frame drawn with pressed left mouse -button.
+ +Fit area - resizes the view to place in the visible area only +the contents of a frame drawn with pressed left mouse button.
\image html plot2d_zoom.png -
Zoom - allows to zoom in and out.
+ +Zoom - allows to zoom in and out.
\image html plot2d_pan.png -
\b Panning - if the represented objects are greater that the -visible area and you don't wish to use Fit all functionality, click on -this button and you'll be able to drag the scene to see its remote -parts.
+ +\b Panning - if the represented objects are greater that the visible +area and you don't wish to use Fit all functionality, click on this +button and you'll be able to drag the scene to see its remote parts.
\image html plot2d_glpan.png -
Global panning - allows to define the center of the -scene presenting all displayed objects in the visible area.
+ +Global panning - allows to define the center of the scene +presenting all displayed objects in the visible area.
\image html plot2d_points.png -
Draw Points - switch display mode to the -Points mode. In this mode, each curve is displayed as a set of -points.
+ +Draw Points - switch display mode to the \em Points mode. In +this mode, each curve is displayed as a set of points.
\image html plot2d_lines.png -
Draw Lines - switch display mode to the -Lines mode. In this mode, each curve is represented as a set of -the plain line segments.
+ +Draw Lines - switch display mode to the \em Lines mode. In this +mode, each curve is represented as a set of the plain line segments. +
\image html plot2d_splines.png -
Draw Splines - switch display mode to the -Splines mode. In this mode, each curve is represented as a -spline.
+ +Draw Splines - switch display mode to the \em Splines mode. In +this mode, each curve is represented as a spline.
\image html plot2d_lmin_normalization.png -
Normalization to global minimum by left Y axis - switch normalization mode to the -Left Y Axis: Minimum normalization mode. In this mode, all curves are normalized -to the global minimum by left Y axis.
+ +Normalization to global minimum by left Y axis - switch +normalization mode to the Left Y Axis: Minimum normalization +mode. In this mode, all curves are normalized to the global minimum by +left Y axis. \image html plot2d_lmax_normalization.png -
Normalization to global maximum by left Y axis - switch normalization mode to the -Left Y Axis: Maximum normalization mode. In this mode, all curves are normalized -to the global maximum by left Y axis.
+ +Normalization to global maximum by left Y axis - switch +normalization mode to the Left Y Axis: Maximum normalization +mode. In this mode, all curves are normalized to the global maximum by +left Y axis.
\image html plot2d_rmin_normalization.png -
Normalization to global minimum by right Y axis - switch normalization mode to the -Right Y Axis: Minimum normalization mode. In this mode, all curves are normalized -to the global minimum by right Y axis.
+ +Normalization to global minimum by right Y axis - switch +normalization mode to the Right Y Axis: Minimum normalization +mode. In this mode, all curves are normalized to the global minimum by +right Y axis. \image html plot2d_rmax_normalization.png -
Normalization to global maximum by right Y axis - switch normalization mode to the -Right Y Axis: Maximum normalization mode. In this mode, all curves are normalized -to the global maximum by right Y axis.
+ +Normalization to global maximum by right Y axis - switch +normalization mode to the Right Y Axis: Maximum normalization +mode. In this mode, all curves are normalized to the global maximum by +right Y axis.
\image html plot2d_linear.png -
\image html plot2d_log.png -
These buttons allow to switch horizontal axis scale to the -linear or logarithmic mode.
Note that the logarithmic mode of the -horizontal axis scale is allowed only if the minimum value of abscissa -component of displayed points is greater than zero.
+ +These buttons allow to switch horizontal axis scale to the linear or +logarithmic mode. + +\note The logarithmic mode of the horizontal +axis scale is allowed only if the minimum value of abscissa component +of displayed points is greater than zero. +
\image html plot2d_linear_y.png -
\image html plot2d_log_y.png -
These buttons allow to switch vertical axis scale to the -linear or logarithmic mode.
Note that the logarithmic mode of the -vertical axis scale is allowed only if the minimum value of ordinate -component of displayed points is greater than zero.
+ +These buttons allow to switch vertical axis scale to the linear or +logarithmic mode. + +\note The logarithmic mode of the vertical +axis scale is allowed only if the minimum value of ordinate component +of displayed points is greater than zero. +
\image html plot2d_legend.png -
Show Legend - Shows / hides information about the -displayed objects in a legend.
+ +Show Legend - Shows / hides information about the displayed +objects in a legend.
\image html plot2d_settings.png -
\b Settings - provides an access to the settings dialog -box, that allows to specify advanced parameters for the Plot 2d -Viewer.
-
+ +\b Settings - provides an access to the settings dialog box, that +allows to specify advanced parameters for the Plot 2d Viewer. \anchor settings \image html plot2d_view_settings.png -
The options are as follows: + - Main title the title of the XY plot. By default, it will -consist of the names of the tables, on the basis of which the curve -lines have been constructed. -- Curve type you can select from \b Points, \b Lines and \b Spline. + consist of the names of the tables, on the basis of which the curve + lines have been constructed. + +- Curve type you can select from \em Points, \em Lines or + \em Spline. + - Show legend here you can define the position of the -description table on the XY plot (to the \b Left, to the \b Right, on -\b Top or on \b Bottom). + description table on the XY plot (to the \em Left, to the \em Right, + on \em Top or on \em Bottom). + - Legend font here you can set type, face and color for the -font of Legend item. + font of Legend item. + - Marker size - size of the points (markers) forming curve lines. + - Background color of the XY plot. -- Deviation marker here you can specify the properties of the marker, which used for the drawing -deviations data. - - Line width line width of the marker. - - Tick size size of the upper and lower horizontal lines of the marker. - - Color color of the marker. - -- Normalization here you can select the type of normalization(\b -minimum or/and \b maximum) for the displayed presentations of the 2d curves in the view. -- Scale mode here you can select the type of scaling (\b -Linear or \b Logarithmic) for X (Horizontal) or Y -(Vertical) axes separately. Note that the \b Logarithmic scale can -be used only if the minimum value of corresponding component (abscissa -or ordinate) of all points displayed in the viewer is greater than zero. -- Axis ... options group allows to specify additional settings for each axis separately: + +- Deviation marker here you can specify the properties of the + marker, which used for the drawing deviations data. + + - Line width line width of the marker. + + - Tick size size of the upper and lower horizontal lines of + the marker. + + - Color color of the marker. + +- Normalization here you can select the type of + normalization(\em minimum or/and \em maximum) for the displayed + presentations of the 2d curves in the view. + +- Scale mode here you can select the type of scaling (\em Linear + or \em Logarithmic) for X (Horizontal) or Y (Vertical) + axes separately. Note that the \em Logarithmic scale can be used + only if the minimum value of corresponding component (abscissa or + ordinate) of all points displayed in the viewer is greater than + zero. + +- Axis ... options group allows to specify additional settings + for each axis separately: + - Axis title - an axis title - - Grid / Axes marks here you can define the maximum number of major - and minor scale divisions for a specified axis. The real number of - intervals fits to {1,2,5}*10^N, where N is a natural number, and - doesn't exceed the maximum. -- Save settings as default If this check box is marked, all -XY plots will be displayed with these defined properties. + + - Grid / Axes marks here you can define the maximum number + of major and minor scale divisions for a specified axis. The real + number of intervals fits to {1,2,5}*10^N, where N is a natural + number, and doesn't exceed the maximum. + +- Save settings as default If this check box is marked, all XY + plots will be displayed with these defined properties. +
\anchor analytical_curve \image html plot2d_analytical_curve.png -
Analytical curves - provides an access to the analytical curves dialog box, -that allows to add, remove and modify analytical curves for the Plot 2d Viewer.
-
+Analytical curves - provides an access to the analytical curves +dialog box, that allows to add, remove and modify analytical curves +for the Plot 2d Viewer. \image html analytical_curves_dlg.png -The options are as follows:
-Curve parameters: - -Curve properties: - +The options are as follows: + +- Curve parameters: + + - y(x)= allows to specify python expression, which used to + calculate coordinates of the points of the curve. + - Nb. itervals allows to specify number of the points of the + curve. + +- Curve properties: + + - Auto assign if it is checked, properties of the curves + (Line type, Line width, Marker type and Color) assigned + automatically.To define the properties of the curve manually + remove the checkmark from this control. + + - Line type allows to choose curve's line type from (None, + Solid, Dash, Dot, Dash - Dot, Dash - Dot - Dot). + + - Line width allows to specify line width of the curve. + + - Marker type allows to choose curve's marker type from + (Circle, Rectangle, Diamond, Rightward, Leftward, Downward & + Upward Triangle, Cross or Diagonal Cross). + + - Color allows to specify color of the curve.
\image html plot2d_clone.png -
Clone view - opens a new duplicate scene.
+Clone view - opens a new duplicate scene.
\image html plot2d_print.png -
Print view - print view scene.
-
+ +Print view - print view scene. */ diff --git a/doc/salome/gui/input/qxscene_2d_viewer.doc b/doc/salome/gui/input/qxscene_2d_viewer.doc new file mode 100644 index 000000000..08cc74db9 --- /dev/null +++ b/doc/salome/gui/input/qxscene_2d_viewer.doc @@ -0,0 +1,54 @@ +/*! + +\page qxscene_2d_viewer_page QxScene 2D Viewer + +

Operations

+ +The functionalities of QxScene viewer are available via its Viewer +Toolbar. Buttons marked with small downward triangles have extended +functionality which can be accessed by locking on them with left mouse +button. + +\image html qxviewer_toolbar.png +
+ +\image html qx_view_fitall.png + +Fit all - scales the presentation so that it could fit within +the Viewer boundaries. +
+ +\image html qx_view_fitarea.png + +Fit area - resizes the view to place in the visible area only +the contents of a frame drawn with pressed left mouse button. +
+ +\image html qx_view_zoom.png + +Zoom - allows to zoom in and out. +
+ +\image html qx_view_pan.png + +Panning - if the represented objects are greater that the +visible area and you don't wish to use Fit all functionality, +click on this button and you'll be able to drag the scene to see its +remote parts. +
+ +\image html qx_view_glpan.png + +Global panning - allows to select a point to be the center of +the presentation showing all displayed objects in the visible ares. +
+ +\image html qx_view_reset.png + +Reset - restores the default position the scene. +
+ +For more details about QxScene viewer, refer to the SALOME YACS module +User's guide. + +*/ diff --git a/doc/salome/gui/input/viewers_chapter.doc b/doc/salome/gui/input/viewers_chapter.doc index eb15ef2da..2c588aa41 100644 --- a/doc/salome/gui/input/viewers_chapter.doc +++ b/doc/salome/gui/input/viewers_chapter.doc @@ -2,29 +2,34 @@ \page viewers_page Viewers -Salome provides a selection of viewers for data representation. Some -of them are used in several modules, others are used only in one -module or in some particular cases. - - - +SALOME provides a set of viewers for data representation. SALOME GUI +module includes several types of 2D and 3D viewers, that are used for +different purposes within the platform: + +- \subpage occ_3d_viewer_page "OCC 3D viewer" has been developed on +the basis of Open CASCADE Technology (http://www.opencascade.org). +This is the default viewer for SALOME Geometry module, it provids good +representation of construction and transformation of geometrical objects. + +- \subpage vtk_3d_viewer_page "VTK 3D viewer" has been developed +basing on Kitware Visualization ToolKit library (http://www.vtk.org). +This is the default viewer for SALOME Mesh module, where it is used +for visualization of meshes. It is also used in SALOME Post-Pro module +for all 3D presentations. + +- \subpage plot2d_viewer_page "Plot 2D viewer" has been developed +basing on the open-source Qwt library (http://qwt.sourceforge.net). +It is used, for example, for the representation of 2D plots and graphs +in the SALOME Post-Pro module. + +- \subpage gl_2d_viewer_page GL 2D viewer - general purpose +OpenGL-based viewer, which can be used for visualization of 2D +scenes. This type of viewer is not currently used in SALOME platform +directly, but can be used in the custom modules for the 2D +visualization purposes. + +- \subpage qxscene_2d_viewer_page QxScene 2D viewer - it has been +developed on the basis of Qt QGraphicsView scene. This viewer is used +in SALOME YACS module for visualization of computation schemes. */ diff --git a/doc/salome/gui/input/vtk_3d_viewer.doc b/doc/salome/gui/input/vtk_3d_viewer.doc index 2e4a9a409..529bf3a39 100644 --- a/doc/salome/gui/input/vtk_3d_viewer.doc +++ b/doc/salome/gui/input/vtk_3d_viewer.doc @@ -9,93 +9,107 @@ Toolbar. Buttons marked with small downward triangles have extended functionality which can be accessed by locking on them with left mouse button. -\image html vtkviewer_toolbar.png "Viewer Toolbar" +\image html vtkviewer_toolbar.png
\image html vtk_view_camera_dump.png -
Dump View - exports an object from the viewer in bmp, png, jpg -or jpeg image format.
+ +Dump View - exports an object from the viewer in bmp, png or +jpeg image format.
\image html vtk_view_style_switch.png -
Interaction style switch - allows to switch between standard and -"keyboard free" interaction styles. "Keyboard free" style allows to process all -view transformations without using keyboard (only by mouse) and perform selection -in view by pressing "S" key. By default, rotation in this mode is performed by -left mouse button, panning - by middle mouse button, zooming - by left and middle -mouse buttons pressed simultaneously.
+ +Interaction style switch - allows to switch between standard +and "keyboard free" interaction styles. "Keyboard free" style allows +to process all view transformations without using keyboard (only by +mouse) and perform selection in view by pressing "S" key. By default, +rotation in this mode is performed by left mouse button, panning - by +middle mouse button, zooming - by left and middle mouse buttons +pressed simultaneously.
\image html vtk_view_zooming_style_switch.png -
Zooming style switch - allows to switch between standard -(zooming at the center of the view) and advanced (zooming at the current cursor -position) zooming styles. The second mode is available only for parallel -(non-perspective) view's mode.
+ +Zooming style switch - allows to switch between standard +(zooming at the center of the view) and advanced (zooming at the +current cursor position) zooming styles. The second mode is available +only for parallel (non-perspective) view's mode.
\image html vtk_view_highlight.png -
Dynamic pre-selection switch - allows to switch -on/off dynamic pre-selection of objects. When the dynamic -pre-selection is switched on, an objects can be selected by clicking -the point/cell belonging to this object, with some performance -loss. Switch dynamic pre-selection off to have a good performance on -big objects (for example, huge meshes).
+ +Dynamic pre-selection switch - allows to switch on/off dynamic +pre-selection of objects. When the dynamic pre-selection is switched +on, an objects can be selected by clicking the point/cell belonging to +this object, with some performance loss. Switch dynamic pre-selection +off to have a good performance on big objects (for example, huge +meshes).
\image html vtk_view_triedre.png -
Show/Hide Trihedron - shows or hides coordinate axes.
+ +Show/Hide Trihedron - shows or hides coordinate axes.
\image html vtk_view_fitall.png -
Fit all - scales the presentation so that it could -fit within the Viewer boundaries.
+ +Fit all - scales the presentation so that it could fit within +the Viewer boundaries.
\image html vtk_view_fitarea.png -
Fit area - resizes the view to place in the visible area -only the contents of a frame drawn with pressed left mouse button.
+ +Fit area - resizes the view to place in the visible area only +the contents of a frame drawn with pressed left mouse button.
\image html vtk_view_zoom.png -
Zoom - allows to zoom in and out.
+ +Zoom - allows to zoom in and out.
\image html vtk_view_pan.png -
Panning - if the represented objects are greater that the -visible area and you don't wish to use Fit all functionality, click on -this button and you'll be able to drag the scene to see its remote -parts.
+ +Panning - if the represented objects are greater that the +visible area and you don't wish to use Fit all functionality, +click on this button and you'll be able to drag the scene to see its +remote parts.
\image html vtk_view_glpan.png -
Global panning - allows to select a point to be the -center of the presentation showing all displayeed objects in the -visible ares.
+ +Global panning - allows to select a point to be the center of +the presentation showing all displayed objects in the visible ares.
\image html vtk_view_rotation_point.png -
Change rotation point - allows to to choose the point around -which the rotation is performed.

+ +Change rotation point - allows to to choose the point around +which the rotation is performed. \image html set_rotation_point_dialog1.png -
By default the rotation point is located in the Center of the bounding -box of an object.

+By default the rotation point is located in the Center of the bounding +box of an object. \image html set_rotation_point_dialog2.png -
Unchecking Use Bounding Box Center checkbox allows you to -define the coordinates of the rotation point manually.

+Unchecking Use Bounding Box Center checkbox allows you to +define the coordinates of the rotation point manually. - Set to Origin button restores the default rotation point -coordinates.
+ coordinates. + - Select Point from View button allows to select the rotation -point in the 3D Viewer. + point in the 3D Viewer. +
\image html vtk_view_rotate.png -
Rotation - allows to rotate the selected object using the -mouse.
+ +Rotation - allows to rotate the selected object using the +mouse.
\image html vtk_view_front.png @@ -105,131 +119,172 @@ mouse. \image html vtk_view_left.png \image html vtk_view_right.png -
These buttons orientate the scene strictly about coordinate axes.
+These buttons orientate the scene strictly about coordinate axes: +\b Front, \b Back, \b Top, \b Bottom, \b Left or \b Right side.
\image html vtk_view_anticlockwise.png -
Rotate counterclockwise - rotates view 90° -counterclockwise.
+ +Rotate counterclockwise - rotates view 90° counterclockwise.
\image html vtk_view_clockwise.png -
Rotate clockwise - rotates view 90° -clockwise.
+ +Rotate clockwise - rotates view 90° clockwise.
\image html vtk_view_reset.png -
Reset - restores the default position (isometric) of -objects in the scene.
+ +Reset - restores the default position (isometric) of objects in +the scene.
\image html vtk_view_update_rate.png -
Update Rate - allows to define the Update Rate for -the presentations displayed in the viewer.

+ +Update Rate - allows to define the Update Rate for the +presentations displayed in the viewer. \image html updaterate.png -
- Desired Update Rate, FPS - allows to set the target Update -Rate + Rate + - Still Update Rate, FPS - allows to set the Update Rate for -the periods when both the user and the application do not perform any -actions in the viewer + the periods when both the user and the application do not perform + any actions in the viewer + - Current Update Rate, FPS - shows the Update Rate currently -available on your configuration + available on your configuration + - Number of Cells - shows the number of cells currently in -display + display +
\image html vtk_view_scaling.png -
Scaling - represents objects deformed (stretched or -stuffed) along the axes of coordinates.
+ +Scaling - represents objects deformed (stretched or stuffed) +along the axes of coordinates.
\image html vtk_view_graduated_axes.png -
Graduated axes - allows to define parameters of axes -and graduate them.

+ +Graduated axes - allows to define parameters of axes and +graduate them. \image html graduatedaxes1.png -
- Axis name - if checked the axis name is displayed in the viewer. + - Name - allows to redefine the name of the axis. + - Font - allows to define color and properties of the font of axis name. + - Labels - if checked the labels are displayed in the viewer.< + - Number - allows to define the number of labels. + - Offset - allows to define the distance between labels. + - Font - allows to define color and properties of the font of labels names. + - Tick marks - if checked the tick marks are displayed in the viewer. + - Length - allows to define the length of tick marks. + - Is visible - if checked the axis is displayed in the viewer. +
\image html vtk_view_parameters.png -
Change View Parameters - this button provides -access to the dialog box allowing customization different parameters -of the view:

+ +Change View Parameters - this button provides access to the +dialog box allowing customization different parameters of the view. \image html vtk_view_parameters_dlg.png -
- Projection Mode - switchs to the Orthogonal / Perspective projection mode + - Focal Point - allows to specify the focal point of the view + - Set to Bounding Box Center - chooses the center of the - bounding box of the current scene as the focal point. + bounding box of the current scene as the focal point. + - Set to Origin - chooses the global coordinates system origin as - the focal point + the focal point + - Select Point from View - allows to specify the focal point by the - direct selection of a point in the view window + direct selection of a point in the view window + - X, Y, Z - allows to input the coordinates of the focal - point directly + point directly + - Camera Position - allows to specify the position of the view camera: + - Absolute Coordinates - either in absolute coordinates, + - Relative to Focal Point - or as a offset to the focal point; + - Projection Direction - allows specify the direction of the - projection vector; + projection vector; + - Focal Distance - the focal distance value; + - View Up Direction - direction of the "view up" vector. + - Zooming - the current zoom factor (available in the Orthogonal mode only) + - View Angle - the current view angle (available in the Perspective mode only) +
\image html vtk_view_sync.png -
Synchronize view - allows to synchronize 3d view parameters.
-This button has two states - checked and unchecked. Clicking on this -button opens a drop-down menu listing the compatible 3d views. As soon -as the user selects any view from the list, the parameters (view point, -position, zoom coefficient, etc.) of the current view are synchronized -with the selected view (static synchronization). + +Synchronize view - allows to synchronize 3d view +parameters. This button has two states - checked and +unchecked. Clicking on this button opens a drop-down menu listing the +compatible 3d views. As soon as the user selects any view from the +list, the parameters (view point, position, zoom coefficient, etc.) of +the current view are synchronized with the selected view (static +synchronization). In addition, when this button is in the "checked" state, the dynamic synchronization of the views is performed, i.e. any zoom, pan, rotate -or other view operation done in one view is automatically applied -to the other view. +or other view operation done in one view is automatically applied to +the other view.
\image html vtk_view_parallel.png -
Orthogonal mode - Switches the view to the orthogonal mode.
+ +Orthogonal mode - Switches the view to the orthogonal mode.
\image html vtk_view_perspective.png -
Perspective mode - Switches the view to the perspective mode.
+ +Perspective mode - Switches the view to the perspective mode.
\image html vtk_view_recording_start.png \image html vtk_view_recording_play.png \image html vtk_view_recording_pause.png \image html vtk_view_recording_stop.png -
These buttons allow recording viewing operations as a -video file in the AVI format using external software (jpeg2yuv):
+ +These buttons allow recording viewing operations as a video file in +the AVI format using external software (jpeg2yuv): + - Start recording - specify parameters and start recording; + - Pause recording - suspend recording; + - Continue recording - resume recording; + - Stop recording - stop recording. +
+ \anchor vtk_background

Background

@@ -239,24 +294,37 @@ popup menu command that opens the following dialog box: \image html change_background_dlg.png The following types of the background are supported: + - Single color: the background is colored with the solid color specified by the user in the dialog box. + - Gradient background: the background is gradiently colored according to two colors and the gradient type specified in the dialog box. The following types of background are supported: + - Horizontal + - Vertical + - First diagonal + - Second diagonal + - First corner + - Second corner + - Third corner + - Fourth corner - Image: allows to set image as viewer background and define filling type: + - Center: the image is located at the center of the viewer backgound + - Tile: the image fills the entire viewer backgound one by one - - Strech: the image is stretched to the entire viewer backgound. + + - Stretch: the image is stretched to the entire viewer backgound. Default background for the viewer is specified via the