2014-06-06 18:08:47 +06:00
|
|
|
/*!
|
|
|
|
|
|
|
|
\page dependency_tree_page Dependency Tree
|
|
|
|
|
2014-06-24 18:52:22 +06:00
|
|
|
<ul>
|
|
|
|
<li>\ref dependency_tree_general_description_anchor "General description"</li>
|
|
|
|
<li>\ref dependency_tree_nodes_anchor "Nodes" </li>
|
|
|
|
<li>\ref dependency_tree_links_anchor "Links" </li>
|
|
|
|
<li>\ref dependency_tree_operations_anchor "Operations" </li>
|
|
|
|
<li>\ref dependency_tree_navigation_anchor "Navigation" </li>
|
|
|
|
<li>\ref dependency_tree_popup_menu_anchor "Context menu"</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
\anchor dependency_tree_general_description_anchor <h2>General description</h2>
|
|
|
|
|
|
|
|
In order to better understand the relations between the %GEOM
|
2014-06-06 20:25:29 +06:00
|
|
|
objects in a study the user has a possibility to display the
|
|
|
|
ascendants and descendant of the object(s) in a family tree.
|
|
|
|
|
|
|
|
User can build the dependency tree by selecting desirable object
|
|
|
|
in Object Browser or OCC Viewer and calling "Show dependency tree"
|
|
|
|
popup item. It will open a new or clear the existing "Dependency
|
|
|
|
Tree" view window (only one view is supported) and display a
|
|
|
|
dependency tree for the selected object or objects (multiple
|
|
|
|
selection is supported). Also user can rebuild the tree if to select
|
|
|
|
some object(s) right in the "Dependency Tree" view and call
|
2014-06-09 11:46:14 +06:00
|
|
|
"Rebuild the tree" popup menu item.
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
\image html tree_example.png
|
|
|
|
|
|
|
|
User can change all necessary parameters of Dependency Tree Viewer
|
|
|
|
in \ref pref_dependency_tree "Preferences".
|
|
|
|
|
|
|
|
<hr>
|
2014-06-24 18:52:22 +06:00
|
|
|
\anchor dependency_tree_nodes_anchor <h2>Nodes</h2>
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
Tree nodes in the Dependency Viewer are named according to the study
|
|
|
|
names of the corresponding objects.
|
|
|
|
|
2014-06-06 20:25:29 +06:00
|
|
|
Non-published objects are shown in the tree as "unpublished" and
|
2014-06-09 11:46:14 +06:00
|
|
|
colored in special color.
|
2014-06-06 18:08:47 +06:00
|
|
|
|
2014-06-06 20:25:29 +06:00
|
|
|
All nodes have the fixed size, so the long names are cut and shown
|
|
|
|
with ellipsis; full name of the object can be seen in the tooltip
|
|
|
|
if to keep the cursor over the node.
|
2014-06-06 18:08:47 +06:00
|
|
|
|
2014-06-06 20:25:29 +06:00
|
|
|
"Dependency Tree" view supports the following states of nodes:
|
2014-06-06 18:08:47 +06:00
|
|
|
|
2014-06-06 20:25:29 +06:00
|
|
|
<ul><li><b>Main node</b> - node of main object(s), which were selected in Object
|
2014-06-06 18:08:47 +06:00
|
|
|
Browser, OCC Viewer or Dependency Tree Viewer in order to build the
|
|
|
|
dependency tree;</li></ul>
|
2014-06-06 20:25:29 +06:00
|
|
|
\image html tree_main_node.png
|
2014-06-06 18:08:47 +06:00
|
|
|
|
2014-06-06 20:25:29 +06:00
|
|
|
<ul><li><b>Default node</b> - node of published in study object, which participate in building of
|
2014-06-06 18:08:47 +06:00
|
|
|
dependency tree as ascendant or descendant;</li></ul>
|
2014-06-06 20:25:29 +06:00
|
|
|
\image html tree_default_node.png
|
2014-06-06 18:08:47 +06:00
|
|
|
|
2014-06-06 20:25:29 +06:00
|
|
|
<ul><li><b>Unpublished node</b> - the same as "Default node", but
|
|
|
|
corresponding object was not published in study;</li></ul>
|
2014-06-06 18:08:47 +06:00
|
|
|
\image html tree_unpublished_node.png
|
|
|
|
|
2014-06-06 20:25:29 +06:00
|
|
|
<ul><li><b>Highlighted node</b> - the state of node when mouse
|
|
|
|
cursor is over it;</li></ul>
|
2014-06-06 18:08:47 +06:00
|
|
|
\image html tree_highlighted_node.png
|
|
|
|
|
2014-06-06 20:25:29 +06:00
|
|
|
<ul><li><b>Selected node</b> - the state of node when user
|
|
|
|
clicks the left mouse button on node.</li></ul>
|
2014-06-06 18:08:47 +06:00
|
|
|
\image html tree_selected_node.png
|
|
|
|
|
|
|
|
<hr>
|
2014-06-24 18:52:22 +06:00
|
|
|
\anchor dependency_tree_links_anchor <h2>Links</h2>
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
Dependency Tree Viewer shows oriented links between nodes to
|
|
|
|
represent dependency direction. Viewer supports the following states
|
|
|
|
of links:
|
|
|
|
|
2014-06-06 20:25:29 +06:00
|
|
|
<ul><li><b>Unidirectional link</b> - shows that A object depends on
|
|
|
|
B object;</li></ul>
|
2014-06-06 18:08:47 +06:00
|
|
|
\image html tree_unidir_link.png
|
|
|
|
|
2014-06-06 20:25:29 +06:00
|
|
|
<ul><li><b>Bidirectional link</b> - shows that A object depends on
|
|
|
|
B object and, at the same time, B object depends on
|
|
|
|
A object;</li></ul>
|
2014-06-06 18:08:47 +06:00
|
|
|
\image html tree_bidir_link.png
|
|
|
|
|
|
|
|
<ul><li><b>Self-dependency link</b> - shows that object depends on
|
|
|
|
itself;</li></ul>
|
2014-06-06 20:25:29 +06:00
|
|
|
\image html tree_selfdep_link.png
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
<ul><li><b>Cyclic dependency links</b> - shows cyclic dependency of
|
|
|
|
some nodes.</li></ul>
|
2014-06-06 20:25:29 +06:00
|
|
|
\image html tree_cycldep_link.png
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
<hr>
|
2014-06-24 18:52:22 +06:00
|
|
|
\anchor dependency_tree_operations_anchor <h2>Operations</h2>
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
The dependency tree of a chosen %GEOM object is displayed in
|
|
|
|
the dedicated 2D view window.
|
|
|
|
\n The functionalities of 2D 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 tree_tool_bar
|
|
|
|
|
|
|
|
<b>Dump View</b> - exports an object from the viewer in bmp, png or
|
|
|
|
jpeg image format.
|
2014-06-06 20:25:29 +06:00
|
|
|
\image html tree_view_dump.png
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
<b>Fit all</b> - scales the presentation so that it could fit within
|
|
|
|
the Viewer boundaries.
|
2014-06-06 20:25:29 +06:00
|
|
|
\image html tree_view_fitall.png
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
<b>Fit area</b> - resizes the view to place in the visible area only
|
|
|
|
the contents of a frame drawn with pressed left mouse button.
|
2014-06-06 20:25:29 +06:00
|
|
|
\image html tree_view_fitarea.png
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
<b>Fit selection</b> - resizes the view to fit in the visible area
|
|
|
|
only currently selected objects.
|
2014-06-06 20:25:29 +06:00
|
|
|
\image html tree_view_fitselect.png
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
<b>Zoom</b> - allows to zoom in and out.
|
2014-06-06 20:25:29 +06:00
|
|
|
\image html tree_view_zoom.png
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
<b>Panning</b> - if the represented objects are greater that the
|
|
|
|
visible area and you don't wish to use <b>Fit all</b> functionality,
|
|
|
|
click on this button and you'll be able to drag the scene to see its
|
|
|
|
remote parts.
|
2014-06-06 20:25:29 +06:00
|
|
|
\image html tree_view_pan.png
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
<b>Global panning</b> - allows to select a point to be the center of
|
|
|
|
the presentation showing all displayed objects in the visible ares.
|
2014-06-06 20:25:29 +06:00
|
|
|
\image html tree_view_glpan.png
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
<b>Hierarchy depth</b> - allows to change the number of hierarchy
|
|
|
|
levels to be shown in the dependency tree.
|
2014-06-06 20:25:29 +06:00
|
|
|
\image html tree_hierarchy_type.png
|
2014-06-06 18:08:47 +06:00
|
|
|
<ul>
|
|
|
|
<li>Level 1 corresponds to the parents and children of the selected
|
|
|
|
object(s);</li>
|
|
|
|
<li>Level 2 is Level 1 plus the grand-parents and grand-children
|
|
|
|
of the selected object(s);</li>
|
|
|
|
<li>etc...</li>
|
|
|
|
</ul>
|
|
|
|
|
2014-06-06 20:25:29 +06:00
|
|
|
<b>Display ascendants</b> - allows user to control the displaying
|
2014-06-06 18:08:47 +06:00
|
|
|
of ascendants.
|
2014-06-06 20:25:29 +06:00
|
|
|
\image html tree_disp_ascendants.png
|
2014-06-06 18:08:47 +06:00
|
|
|
|
2014-06-06 20:25:29 +06:00
|
|
|
<b>Display descendants</b> - allows user to control the displaying
|
2014-06-06 18:08:47 +06:00
|
|
|
of descendants.
|
2014-06-06 20:25:29 +06:00
|
|
|
\image html tree_disp_descendants.png
|
2014-06-06 18:08:47 +06:00
|
|
|
|
2014-06-06 20:25:29 +06:00
|
|
|
<b>Move nodes</b> - enables/disables of moving the nodes.
|
2014-06-06 18:08:47 +06:00
|
|
|
\image html tree_move_nodes.png
|
|
|
|
|
2014-06-06 20:25:29 +06:00
|
|
|
<b>Update</b> - allows user to update a dependency tree model and the view.
|
2014-06-06 18:08:47 +06:00
|
|
|
\image html tree_button_update.png
|
|
|
|
|
|
|
|
<hr>
|
2014-06-24 18:52:22 +06:00
|
|
|
\anchor dependency_tree_navigation_anchor <h2>Navigation</h2>
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
Dependency Tree 2D Viewer supports the following navigation mode:
|
|
|
|
|
2014-06-06 20:25:29 +06:00
|
|
|
<ul>
|
|
|
|
<li>rectangle selection in this mode is performed by the left mouse
|
|
|
|
button</li>;
|
|
|
|
<li>multiple selection is available when \b Shift button
|
|
|
|
is pressed.</li>
|
|
|
|
</ul>
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
Also, holding \b Ctrl key with pressed mouse buttons performs
|
|
|
|
the following view transformations:
|
|
|
|
<ul>
|
|
|
|
<li>Ctrl + left mouse button - zooming;</li>
|
|
|
|
<li>Ctrl + middle mouse button - panning;</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<hr>
|
2014-06-24 18:52:22 +06:00
|
|
|
\anchor dependency_tree_popup_menu_anchor <h2>Popup Menu</h2>
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
After the object has appeared in the Dependency Tree 2D Viewer,
|
2014-06-06 20:25:29 +06:00
|
|
|
user can select it with left mouse click to change its presentation
|
|
|
|
parameters and get access to other useful options by right-clicking on
|
2014-06-06 18:08:47 +06:00
|
|
|
the selected object.
|
|
|
|
|
2014-06-24 14:36:49 +06:00
|
|
|
\image html tree_popup_menu1.png
|
2014-06-06 18:08:47 +06:00
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>\b Show - allows to show selected object(s) in OCC 3D Viewer;</li>
|
|
|
|
<li><b> Show Only</b> - allows to show only selected object(s)
|
|
|
|
in OCC 3D Viewer;</li>
|
|
|
|
<li><b> Rebuild the tree</b> - allows to rebuild the dependency tree
|
|
|
|
for selected object(s);</li>
|
2014-06-24 14:36:49 +06:00
|
|
|
<li>\ref reduce_study_page "Reduce study" - allows to reduce study.</li>
|
2014-06-06 18:08:47 +06:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
Some functionalities are available through right-clicking on
|
|
|
|
the viewer background:
|
|
|
|
|
|
|
|
\image html tree_popup_menu2.png
|
|
|
|
|
|
|
|
Dependency Tree 2D Viewer background can be customized using the
|
|
|
|
"Change background" popup menu command that opens standard
|
|
|
|
"Select Color" dialog box:
|
|
|
|
|
|
|
|
\image html selectcolor.png
|
|
|
|
|
|
|
|
*/
|