From: admin Date: Thu, 22 Jan 2009 13:45:56 +0000 (+0000) Subject: This commit was generated by cvs2git to create tag X-Git-Tag: mergefrom_BR_V5_IMP_P8_22Jan09 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=897ea42d8672d86a8244536c20d78c6d37fadb4d;p=modules%2Fvisu.git This commit was generated by cvs2git to create tag 'mergefrom_BR_V5_IMP_P8_22Jan09'. Sprout from BR_V5_DEV 2009-01-22 13:45:55 UTC eap 'Merge from BR_V5_IMP_P8' Cherrypick from master 2008-03-07 07:46:09 UTC jfa 'Join modifications from BR_Dev_For_4_0 tag V4_1_1.': doc/salome/gui/VISU/files/about_structure_of_med_object.htm doc/salome/gui/VISU/files/about_tables.htm doc/salome/gui/VISU/files/animating_presentations.htm doc/salome/gui/VISU/files/changing_visualization_parameters_of_the_presenetation.htm doc/salome/gui/VISU/files/creating_curves.htm doc/salome/gui/VISU/files/creating_field_presentations.htm doc/salome/gui/VISU/files/creating_presentations.htm doc/salome/gui/VISU/files/creating_xy_plot.htm doc/salome/gui/VISU/files/cut_lines_presentation.htm doc/salome/gui/VISU/files/cut_lines_resentation.htm doc/salome/gui/VISU/files/deformed_shape_presentation.htm doc/salome/gui/VISU/files/displaying_hiding_presentations.htm doc/salome/gui/VISU/files/displaying_tables.htm doc/salome/gui/VISU/files/getting_elements_attributes.htm doc/salome/gui/VISU/files/getting_started.htm doc/salome/gui/VISU/files/importing_med_objects.htm doc/salome/gui/VISU/files/importing_tables.htm doc/salome/gui/VISU/files/insideframe.htm doc/salome/gui/VISU/files/introduction.htm doc/salome/gui/VISU/files/iso_surfaces_presentation.htm doc/salome/gui/VISU/files/points.htm doc/salome/gui/VISU/files/running_visu.htm doc/salome/gui/VISU/files/scalar_map_presentation.htm doc/salome/gui/VISU/files/scaling_presentations.htm doc/salome/gui/VISU/files/setting_properties_of_xy_plots.htm doc/salome/gui/VISU/files/shrink.htm doc/salome/gui/VISU/files/stream_lines_presentation.htm doc/salome/gui/VISU/files/surface.htm doc/salome/gui/VISU/files/surfaceframe.htm doc/salome/gui/VISU/files/sweeping.htm doc/salome/gui/VISU/files/vectors_presentation.htm doc/salome/gui/VISU/files/wireframe.htm doc/salome/gui/VISU/pics/animatdef.jpg doc/salome/gui/VISU/pics/animation.png doc/salome/gui/VISU/pics/arrangeactors.png doc/salome/gui/VISU/pics/arrangeactors1.png doc/salome/gui/VISU/pics/begining.jpg doc/salome/gui/VISU/pics/blue_down.jpg doc/salome/gui/VISU/pics/blue_left.jpg doc/salome/gui/VISU/pics/blue_right.jpg doc/salome/gui/VISU/pics/blue_up.jpg doc/salome/gui/VISU/pics/buildprogress.png doc/salome/gui/VISU/pics/cellsel.jpg doc/salome/gui/VISU/pics/clipping1.png doc/salome/gui/VISU/pics/clipping2.png doc/salome/gui/VISU/pics/createcurves.png doc/salome/gui/VISU/pics/cutlines.png doc/salome/gui/VISU/pics/cutlinesicn.jpg doc/salome/gui/VISU/pics/cutlinesicon.jpg doc/salome/gui/VISU/pics/cutlinesprsnt.png doc/salome/gui/VISU/pics/cutplanes.png doc/salome/gui/VISU/pics/cutplpresent.png doc/salome/gui/VISU/pics/dataonelements1.png doc/salome/gui/VISU/pics/dataonelements2.png doc/salome/gui/VISU/pics/dataonelements3.png doc/salome/gui/VISU/pics/deformedshape.png doc/salome/gui/VISU/pics/deformedshapesn.png doc/salome/gui/VISU/pics/defshapeicon.jpg doc/salome/gui/VISU/pics/dumpviewtofile.png doc/salome/gui/VISU/pics/editplot2dpresentation.png doc/salome/gui/VISU/pics/end.jpg doc/salome/gui/VISU/pics/exporttable.png doc/salome/gui/VISU/pics/fitdatarange.png doc/salome/gui/VISU/pics/gpp2.png doc/salome/gui/VISU/pics/gpp3.png doc/salome/gui/VISU/pics/gpp6.png doc/salome/gui/VISU/pics/graduatedaxes1.png doc/salome/gui/VISU/pics/image100.gif doc/salome/gui/VISU/pics/image102.gif doc/salome/gui/VISU/pics/image103.gif doc/salome/gui/VISU/pics/image104.gif doc/salome/gui/VISU/pics/image105.gif doc/salome/gui/VISU/pics/image109.gif doc/salome/gui/VISU/pics/image117.gif doc/salome/gui/VISU/pics/image157.gif doc/salome/gui/VISU/pics/image20.png doc/salome/gui/VISU/pics/image21.png doc/salome/gui/VISU/pics/image30.gif doc/salome/gui/VISU/pics/image39.gif doc/salome/gui/VISU/pics/image46.gif doc/salome/gui/VISU/pics/image47.gif doc/salome/gui/VISU/pics/image48.gif doc/salome/gui/VISU/pics/image49.gif doc/salome/gui/VISU/pics/image50.gif doc/salome/gui/VISU/pics/image51.gif doc/salome/gui/VISU/pics/image52.gif doc/salome/gui/VISU/pics/image53.gif doc/salome/gui/VISU/pics/image54.gif doc/salome/gui/VISU/pics/image55.gif doc/salome/gui/VISU/pics/image69.gif doc/salome/gui/VISU/pics/image74.gif doc/salome/gui/VISU/pics/image81.gif doc/salome/gui/VISU/pics/image82.gif doc/salome/gui/VISU/pics/image83.gif doc/salome/gui/VISU/pics/image84.gif doc/salome/gui/VISU/pics/image87.gif doc/salome/gui/VISU/pics/image88.gif doc/salome/gui/VISU/pics/image89.gif doc/salome/gui/VISU/pics/image90.gif doc/salome/gui/VISU/pics/image91.gif doc/salome/gui/VISU/pics/image96.gif doc/salome/gui/VISU/pics/image97.gif doc/salome/gui/VISU/pics/image98.gif doc/salome/gui/VISU/pics/image99.gif doc/salome/gui/VISU/pics/importfromfile.png doc/salome/gui/VISU/pics/importtablefromfile.png doc/salome/gui/VISU/pics/iso.png doc/salome/gui/VISU/pics/isosurf.jpg doc/salome/gui/VISU/pics/isosurfaces.png doc/salome/gui/VISU/pics/neo-transparency.png doc/salome/gui/VISU/pics/next.jpg doc/salome/gui/VISU/pics/picking.png doc/salome/gui/VISU/pics/planes.png doc/salome/gui/VISU/pics/plot3d-example.png doc/salome/gui/VISU/pics/plot3d.png doc/salome/gui/VISU/pics/points.jpg doc/salome/gui/VISU/pics/previous.jpg doc/salome/gui/VISU/pics/recording.png doc/salome/gui/VISU/pics/recordingsaveas.png doc/salome/gui/VISU/pics/rename.png doc/salome/gui/VISU/pics/run.jpg doc/salome/gui/VISU/pics/scalarbarproperties.png doc/salome/gui/VISU/pics/scalarmapicon.jpg doc/salome/gui/VISU/pics/scalarrangesn.png doc/salome/gui/VISU/pics/set_rotation_point_dialog1.png doc/salome/gui/VISU/pics/set_rotation_point_dialog2.png doc/salome/gui/VISU/pics/setupanimation.png doc/salome/gui/VISU/pics/setupplot2d.png doc/salome/gui/VISU/pics/shrink.jpg doc/salome/gui/VISU/pics/smds-example.png doc/salome/gui/VISU/pics/smds-example1.png doc/salome/gui/VISU/pics/smds1.png doc/salome/gui/VISU/pics/snapfgf.png doc/salome/gui/VISU/pics/speed.jpg doc/salome/gui/VISU/pics/spheroid.png doc/salome/gui/VISU/pics/streamlines.png doc/salome/gui/VISU/pics/streamlinesicon.jpg doc/salome/gui/VISU/pics/streamlinesprsnt.png doc/salome/gui/VISU/pics/surface.jpg doc/salome/gui/VISU/pics/textproperty.png doc/salome/gui/VISU/pics/translatepres.png doc/salome/gui/VISU/pics/vecticon.jpg doc/salome/gui/VISU/pics/vectorfield.png doc/salome/gui/VISU/pics/vectorsprsnt.png doc/salome/gui/VISU/pics/view_rotation_point.png doc/salome/gui/VISU/pics/viewsettings.png doc/salome/gui/VISU/pics/viewtable.png doc/salome/gui/VISU/pics/visufullscreen.png doc/salome/gui/VISU/pics/visuicon.jpg doc/salome/gui/VISU/pics/warning.png doc/salome/gui/VISU/pics/wireframe.jpg doc/salome/gui/VISU/visugenidl_doc/VISU__Gen_8idl.html doc/salome/gui/VISU/visugenidl_doc/VISU__Gen_8idl__incl.jpg doc/salome/gui/VISU/visugenidl_doc/doxygen.css doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Animation.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Animation__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Base.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Base__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3d.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dCache.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dCache__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dHolder.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dHolder__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3d__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Container.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Container__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Curve.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Curve__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutLines.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutLines__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutPlanes.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutPlanes__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1DeformedShape.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1DeformedShape__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1GaussPoints.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1GaussPoints__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1IsoSurfaces.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1IsoSurfaces__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Mesh.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Mesh__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Plot3D.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Plot3D__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Prs3d.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Prs3d__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1PrsObject.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1PrsObject__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1RemovableObject.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1RemovableObject__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Result.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Result__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMap.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMapOnDeformedShape.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMapOnDeformedShape__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMap__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1StreamLines.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1StreamLines__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Table.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1TableView.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1TableView__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Table__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1VISU__Gen.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1VISU__Gen__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Vectors.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Vectors__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View3D.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View3D__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ViewManager.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ViewManager__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1XYPlot.html doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1XYPlot__inherit__graph.jpg doc/salome/gui/VISU/visugenidl_doc/namespaceVISU.html doc/salome/gui/VISU/whdata/whftdata.js doc/salome/gui/VISU/whdata/whftdata0.htm doc/salome/gui/VISU/whdata/whfts.htm doc/salome/gui/VISU/whdata/whfts.js doc/salome/gui/VISU/whdata/whfwdata.js doc/salome/gui/VISU/whdata/whfwdata0.htm doc/salome/gui/VISU/whdata/whgdata.js doc/salome/gui/VISU/whdata/whgdata0.htm doc/salome/gui/VISU/whdata/whglo.htm doc/salome/gui/VISU/whdata/whglo.js doc/salome/gui/VISU/whdata/whidata.js doc/salome/gui/VISU/whdata/whidx.htm doc/salome/gui/VISU/whdata/whidx.js doc/salome/gui/VISU/whdata/whtdata.js doc/salome/gui/VISU/whdata/whtdata0.htm doc/salome/gui/VISU/whdata/whtoc.htm doc/salome/gui/VISU/whdata/whtoc.js doc/salome/gui/VISU/whgdata/whexpbar.gif doc/salome/gui/VISU/whgdata/whlstf0.htm doc/salome/gui/VISU/whgdata/whlstf1.htm doc/salome/gui/VISU/whgdata/whlstf2.htm doc/salome/gui/VISU/whgdata/whlstf3.htm doc/salome/gui/VISU/whgdata/whlstf4.htm doc/salome/gui/VISU/whgdata/whlstf5.htm doc/salome/gui/VISU/whgdata/whlstf6.htm doc/salome/gui/VISU/whgdata/whlstf7.htm doc/salome/gui/VISU/whgdata/whlstf8.htm doc/salome/gui/VISU/whgdata/whlstf9.htm doc/salome/gui/VISU/whgdata/whlstfl0.htm doc/salome/gui/VISU/whgdata/whlstfl1.htm doc/salome/gui/VISU/whgdata/whlstfl10.htm doc/salome/gui/VISU/whgdata/whlstfl11.htm doc/salome/gui/VISU/whgdata/whlstfl12.htm doc/salome/gui/VISU/whgdata/whlstfl13.htm doc/salome/gui/VISU/whgdata/whlstfl14.htm doc/salome/gui/VISU/whgdata/whlstfl15.htm doc/salome/gui/VISU/whgdata/whlstfl16.htm doc/salome/gui/VISU/whgdata/whlstfl17.htm doc/salome/gui/VISU/whgdata/whlstfl18.htm doc/salome/gui/VISU/whgdata/whlstfl19.htm doc/salome/gui/VISU/whgdata/whlstfl2.htm doc/salome/gui/VISU/whgdata/whlstfl20.htm doc/salome/gui/VISU/whgdata/whlstfl21.htm doc/salome/gui/VISU/whgdata/whlstfl22.htm doc/salome/gui/VISU/whgdata/whlstfl23.htm doc/salome/gui/VISU/whgdata/whlstfl24.htm doc/salome/gui/VISU/whgdata/whlstfl3.htm doc/salome/gui/VISU/whgdata/whlstfl4.htm doc/salome/gui/VISU/whgdata/whlstfl5.htm doc/salome/gui/VISU/whgdata/whlstfl6.htm doc/salome/gui/VISU/whgdata/whlstfl7.htm doc/salome/gui/VISU/whgdata/whlstfl8.htm doc/salome/gui/VISU/whgdata/whlstfl9.htm doc/salome/gui/VISU/whgdata/whlstg0.htm doc/salome/gui/VISU/whgdata/whlsti0.htm doc/salome/gui/VISU/whgdata/whlstt0.htm doc/salome/gui/VISU/whgdata/whlstt1.htm doc/salome/gui/VISU/whgdata/whlstt2.htm doc/salome/gui/VISU/whgdata/whlstt3.htm doc/salome/gui/VISU/whgdata/whlstt4.htm doc/salome/gui/VISU/whgdata/whlstt5.htm doc/salome/gui/VISU/whgdata/whlstt6.htm doc/salome/gui/VISU/whgdata/whlstt7.htm doc/salome/gui/VISU/whgdata/whnvf30.htm doc/salome/gui/VISU/whgdata/whnvf31.htm doc/salome/gui/VISU/whgdata/whnvf32.htm doc/salome/gui/VISU/whgdata/whnvf33.htm doc/salome/gui/VISU/whgdata/whnvl31.htm doc/salome/gui/VISU/whgdata/whnvl32.htm doc/salome/gui/VISU/whgdata/whnvl33.htm doc/salome/gui/VISU/whgdata/whnvp30.htm doc/salome/gui/VISU/whgdata/whnvp31.htm doc/salome/gui/VISU/whgdata/whnvp32.htm doc/salome/gui/VISU/whgdata/whnvp33.htm doc/salome/gui/VISU/whgdata/whnvt30.htm doc/salome/gui/VISU/whgdata/whnvt31.htm doc/salome/gui/VISU/whgdata/whnvt32.htm doc/salome/gui/VISU/whgdata/whnvt33.htm doc/salome/gui/VISU/whxdata/whftdata0.xml doc/salome/gui/VISU/whxdata/whfts.xml doc/salome/gui/VISU/whxdata/whfwdata0.xml doc/salome/gui/VISU/whxdata/whgdata0.xml doc/salome/gui/VISU/whxdata/whglo.xml doc/salome/gui/VISU/whxdata/whidx.xml doc/salome/gui/VISU/whxdata/whtdata0.xml doc/salome/gui/VISU/whxdata/whtoc.xml doc/salome/tui/VISU/HTML/VISU_Gen.html doc/salome/tui/VISU/doxyfile.in doc/salome/tui/VISU/sources/Application-About.png doc/salome/tui/VISU/sources/Application-About1.jpg doc/salome/tui/VISU/sources/application.gif doc/salome/tui/VISU/sources/application.jpg doc/salome/tui/VISU/sources/bg_salome.gif doc/salome/tui/VISU/sources/footer.html doc/salome/tui/VISU/sources/logocorp.gif doc/salome/tui/VISU/sources/myheader.html doc/salome/tui/VISU/sources/occ.gif doc/salome/tui/VISU/sources/static/DataStruct.gif doc/salome/tui/VISU/sources/static/PrsObj.gif doc/salome/tui/VISU/sources/static/View.gif doc/salome/tui/VISU/sources/static/doxygen.css doc/salome/tui/VISU/sources/static/examples_VISU.html doc/salome/tui/VISU/sources/static/overview_VISU.html doc/salome/tui/VISU/sources/static/page2.html doc/salome/tui/VISU/sources/static/tree.js.in doc/salome/tui/VISU/sources/static/treeview.js resources/Visu_cutplane.png src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.cxx src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.hxx src/VISUGUI/VisuGUI_ScalarMapOnDeformedShapeDlg.cxx src/VISUGUI/VisuGUI_ScalarMapOnDeformedShapeDlg.h src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc src/VISU_I/VISU_ScalarMapOnDeformedShape_i.hh Delete: doc/salome/gui/VISU/Makefile.am doc/salome/gui/VISU/images/activebar1.png doc/salome/gui/VISU/images/activebar2.png doc/salome/gui/VISU/images/clipping3.png doc/salome/gui/VISU/images/clipping4.png doc/salome/gui/VISU/images/clipping5.png doc/salome/gui/VISU/images/deformed_shape.png doc/salome/gui/VISU/images/distributionbar.png doc/salome/gui/VISU/images/editplot3dpresentation.png doc/salome/gui/VISU/images/exportmedfile.png doc/salome/gui/VISU/images/featureedges.png doc/salome/gui/VISU/images/gauss_points.png doc/salome/gui/VISU/images/header_salome.png doc/salome/gui/VISU/images/header_visu.png doc/salome/gui/VISU/images/image36.gif doc/salome/gui/VISU/images/introduction.png doc/salome/gui/VISU/images/labeling_parameters.png doc/salome/gui/VISU/images/perspective1.png doc/salome/gui/VISU/images/perspective2.png doc/salome/gui/VISU/images/perspective3.png doc/salome/gui/VISU/images/perspective4.png doc/salome/gui/VISU/images/perspective5.png doc/salome/gui/VISU/images/perspective6.png doc/salome/gui/VISU/images/presentation1.png doc/salome/gui/VISU/images/scalar_map_and_deformed_shapes.png doc/salome/gui/VISU/images/scalar_map_on_cells.png doc/salome/gui/VISU/images/scalar_map_on_points.png doc/salome/gui/VISU/images/selection1.png doc/salome/gui/VISU/images/selection2.png doc/salome/gui/VISU/images/selection3.png doc/salome/gui/VISU/images/selection4.png doc/salome/gui/VISU/images/selection5.png doc/salome/gui/VISU/images/selection6.png doc/salome/gui/VISU/images/selection7.png doc/salome/gui/VISU/images/selection8.png doc/salome/gui/VISU/images/slider1.png doc/salome/gui/VISU/images/slider2.png doc/salome/gui/VISU/images/startrecording.png doc/salome/gui/VISU/images/stream_lines.png doc/salome/gui/VISU/images/sweep1.png doc/salome/gui/VISU/images/sweep2.png doc/salome/gui/VISU/images/table.png doc/salome/gui/VISU/images/table3d.png doc/salome/gui/VISU/images/tablesn1.png doc/salome/gui/VISU/images/tablesn2.png doc/salome/gui/VISU/images/values_labeling.png doc/salome/gui/VISU/images/vectors.png doc/salome/gui/VISU/images/viewing1.png doc/salome/gui/VISU/images/viewing10.png doc/salome/gui/VISU/images/viewing11.png doc/salome/gui/VISU/images/viewing12.png doc/salome/gui/VISU/images/viewing13.png doc/salome/gui/VISU/images/viewing14.png doc/salome/gui/VISU/images/viewing2.png doc/salome/gui/VISU/images/viewing3.png doc/salome/gui/VISU/images/viewing4.png doc/salome/gui/VISU/images/viewing5.png doc/salome/gui/VISU/images/viewing6.png doc/salome/gui/VISU/images/viewing7.png doc/salome/gui/VISU/images/viewing8.png doc/salome/gui/VISU/images/viewing9.png doc/salome/gui/VISU/images/visuicon.png doc/salome/gui/VISU/input/3d_management.doc doc/salome/gui/VISU/input/3d_presentations.doc doc/salome/gui/VISU/input/creating_plot2d.doc doc/salome/gui/VISU/input/feature_edges.doc doc/salome/gui/VISU/input/med_object.doc doc/salome/gui/VISU/input/navigation.doc doc/salome/gui/VISU/input/perspective_view.doc doc/salome/gui/VISU/input/recording.doc doc/salome/gui/VISU/input/scalar_map_on_deformed_shape.doc doc/salome/gui/VISU/input/slider.doc doc/salome/gui/VISU/input/table_3d.doc doc/salome/gui/VISU/input/values_labeling.doc doc/salome/tui/doxyfile.in doc/salome/tui/images/application.jpg doc/salome/tui/images/logocorp.gif doc/salome/tui/images/occ.gif doc/salome/tui/static/doxygen.css doc/salome/tui/static/footer.html doc/salome/tui/static/myheader.html resources/Visu_DeactivatePlane.png resources/Visu_actor_selection.png resources/Visu_apply.png resources/Visu_cell_selection.png resources/Visu_close.png resources/Visu_gauss_point_selection.png resources/Visu_help.png resources/Visu_ok.png resources/Visu_planemanager.png resources/Visu_point_selection.png resources/Visu_selection_panel.png resources/Visu_slider_panel.png resources/Visu_sweep_panel.png src/CONVERTOR/VISU_ElnoMeshValue.hxx src/CONVERTOR/VISU_TableReader.cxx src/CONVERTOR/VISU_TableReader.hxx src/CONVERTOR/VISU_VTKTypeList.hxx src/CONVERTOR/VISU_Vtk2MedConvertor.cxx src/CONVERTOR/VISU_Vtk2MedConvertor.hxx src/OBJECT/VISU_ActorBase.cxx src/OBJECT/VISU_ActorBase.h src/OBJECT/VISU_IsoSurfActor.cxx src/OBJECT/VISU_IsoSurfActor.h src/OBJECT/VISU_OBJECT.h src/OBJECT/VISU_PickingSettings.cxx src/OBJECT/VISU_PickingSettings.h src/OBJECT/VISU_PointMap3dActor.cxx src/OBJECT/VISU_PointMap3dActor.h src/PIPELINE/VISU_DeformationPL.cxx src/PIPELINE/VISU_DeformationPL.hxx src/PIPELINE/VISU_DeformedGridPL.cxx src/PIPELINE/VISU_DeformedGridPL.hxx src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.hxx src/PIPELINE/VISU_ElnoAssembleFilter.cxx src/PIPELINE/VISU_ElnoAssembleFilter.hxx src/PIPELINE/VISU_ElnoDisassembleFilter.cxx src/PIPELINE/VISU_ElnoDisassembleFilter.hxx src/PIPELINE/VISU_LabelPointsFilter.cxx src/PIPELINE/VISU_LabelPointsFilter.hxx src/PIPELINE/VISU_MergedPL.cxx src/PIPELINE/VISU_MergedPL.hxx src/PIPELINE/VISU_OptionalDeformationPL.cxx src/PIPELINE/VISU_OptionalDeformationPL.hxx src/PIPELINE/VISU_XYPlotActor.cxx src/PIPELINE/VISU_XYPlotActor.hxx src/VISUGUI/VISU_images.ts src/VISUGUI/VISU_msg_en.ts src/VISUGUI/VisuGUI_BasePanel.cxx src/VISUGUI/VisuGUI_BasePanel.h src/VISUGUI/VisuGUI_ClippingPanel.cxx src/VISUGUI/VisuGUI_ClippingPanel.h src/VISUGUI/VisuGUI_ClippingPlaneDlg.cxx src/VISUGUI/VisuGUI_ClippingPlaneDlg.h src/VISUGUI/VisuGUI_DeformedShapeAndScalarMapDlg.cxx src/VISUGUI/VisuGUI_DeformedShapeAndScalarMapDlg.h src/VISUGUI/VisuGUI_FeatureEdgesPanel.cxx src/VISUGUI/VisuGUI_FeatureEdgesPanel.h src/VISUGUI/VisuGUI_FileInfoDlg.cxx src/VISUGUI/VisuGUI_FileInfoDlg.h src/VISUGUI/VisuGUI_FilterScalarsDlg.cxx src/VISUGUI/VisuGUI_FilterScalarsDlg.h src/VISUGUI/VisuGUI_FindPane.cxx src/VISUGUI/VisuGUI_FindPane.h src/VISUGUI/VisuGUI_GaussPointsSelectionPane.cxx src/VISUGUI/VisuGUI_GaussPointsSelectionPane.h src/VISUGUI/VisuGUI_InputPanel.cxx src/VISUGUI/VisuGUI_InputPanel.h src/VISUGUI/VisuGUI_Panel.cxx src/VISUGUI/VisuGUI_Panel.h src/VISUGUI/VisuGUI_SelectionPanel.cxx src/VISUGUI/VisuGUI_SelectionPanel.h src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx src/VISUGUI/VisuGUI_SelectionPrefDlg.h src/VISUGUI/VisuGUI_Sweep.cxx src/VISUGUI/VisuGUI_Sweep.h src/VISUGUI/VisuGUI_Table3dDlg.cxx src/VISUGUI/VisuGUI_Table3dDlg.h src/VISUGUI/VisuGUI_ValuesLabelingDlg.cxx src/VISUGUI/VisuGUI_ValuesLabelingDlg.h src/VISUGUI/VisuGUI_ViewExtender.cxx src/VISUGUI/VisuGUI_ViewExtender.h src/VISU_I/VISU_ClippingPlaneMgr.cxx src/VISU_I/VISU_ClippingPlaneMgr.hxx src/VISU_I/VISU_Deformation_i.cc src/VISU_I/VISU_Deformation_i.hh src/VISU_I/VISU_DeformedShapeAndScalarMap_i.cc src/VISU_I/VISU_DeformedShapeAndScalarMap_i.hh src/VISU_I/VISU_MonoColorPrs_i.cc src/VISU_I/VISU_MonoColorPrs_i.hh src/VISU_I/VISU_OptionalDeformation_i.cc src/VISU_I/VISU_OptionalDeformation_i.hh src/VISU_I/VISU_PointMap3d_i.cc src/VISU_I/VISU_PointMap3d_i.hh src/VISU_SWIG/visu_pointmap3d.py --- diff --git a/doc/salome/gui/VISU/Makefile.am b/doc/salome/gui/VISU/Makefile.am deleted file mode 100644 index 6f320dc9..00000000 --- a/doc/salome/gui/VISU/Makefile.am +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -# File : Makefile.am -# Author : Vasily Rusyaev (Open Cascade NN) -# Module : doc -# -include $(top_srcdir)/adm_local/unix/make_common_starter.am - -EXTRA_DIST += images input static - -usr_docs: doxyfile_idl doxyfile - @echo "===========================================" ; \ - echo "Processing VISU_Gen.idl file" ; \ - echo "===========================================" ; \ - $(DOXYGEN) doxyfile_idl; \ - echo "===========================================" ; \ - echo "Generating GUI documentation" ; \ - echo "===========================================" ; \ - $(DOXYGEN) doxyfile; - -docs: usr_docs - -clean-local: - @for filen in `find . -maxdepth 1` ; do \ - case $${filen} in \ - ./Makefile | ./doxyfile | ./doxyfile_idl ) ;; \ - . | .. ) ;; \ - *) echo "Removing $${filen}" ; rm -rf $${filen} ;; \ - esac ; \ - done ; - -install-data-local: usr_docs - $(INSTALL) -d $(DESTDIR)$(docdir)/gui/VISU - @for filen in `find . -maxdepth 1` ; do \ - case $${filen} in \ - ./Makefile | ./doxyfile | ./doxyfile_idl ) ;; \ - ./doxyfile.bak | ./doxyfile_idl.bak ) ;; \ - . | .. ) ;; \ - *) echo "Installing $${filen}" ; cp -rp $${filen} $(DESTDIR)$(docdir)/gui/VISU ;; \ - esac ; \ - done ; - -uninstall-local: - rm -rf $(DESTDIR)$(docdir)/gui/VISU diff --git a/doc/salome/gui/VISU/files/about_structure_of_med_object.htm b/doc/salome/gui/VISU/files/about_structure_of_med_object.htm new file mode 100755 index 00000000..551859c6 --- /dev/null +++ b/doc/salome/gui/VISU/files/about_structure_of_med_object.htm @@ -0,0 +1,255 @@ + + + + + +About structure of MED object + + + + + + + + + + + + +

Structure of MED objects

+ +

 In Post-Pro module + 3d representations are constructed on the base of  submeshes + representing parts of a mesh, which is stored in form of MED objects in + *.med files. Each MED object has its own user-defined structure.

+ +

 

+ +

In general, the mesh + represents an object including the following types of data:

+ +

 

+ +

 - + Geometrical information: list + of nodes, edges, faces and cells of the mesh;

+ +

 - + Information on the interpolation in + accordance with resulting elements: the mesh should be compatible + with chosen interpolation;

+ +

 - + Physical information: initial + and boundary conditions. (Scalar or vector values applied to the cells + of the mesh)

+ +

 

+ +

The structure of MED + object has a tree-like form. It contains three main folders: Families, Groups, Fields.

+ +

 

+ +

            

+ +

Families

+ +

From + general point of view, the whole mesh is divided into families, + submeshes created by the user. Every + family is composed of cells of a definite type  - + it can be Nodes, Edges, Faces or Cells. The presentation created + on the basis of a particular family will + be composed of geometrical elements, corresponding to the type of cells + of this family.  

+ +

 

+ +
+ + +++ + + + + + + + + + + + + + + + + + + + + +
+

Type of cells (entities) of the family

+

Geometrical element

+

Nodes

+

Points

+

Edges

+

Segments

+

Faces

+

Triangles, quadrangles

+

Cells

+

Any

+
+

Table of correspondence

+ +

 

+ +

 In + the folder Families all families + of the mesh are put into the following subfolders, defining the type of + cells of the mesh: onNodes, onEdges, + onFaces, onCells.

+ +

These + subfolders also represent submeshes of the mesh, which are composed of + all cells of the mesh of this type.

+ +

Groups

+ +

Groups + combine different families independently of the type of cells, + they are composed of.

+ +

 

+ +

Fields

+ +

Fields represent the results of calculations + (scalar or vector values), grouped together under one physical concept. +

+ +

These + values are applied to the cells of a definite submesh, which is indicated + in the Object Browser in the subfolder of the field. +

+ +

Most + often the calculations are performed during some period of time. That's + why fields include Time + Stamps, representing the results of calculations in one definite + moment. In Post-Pro field presentations + are constructed basing on these Time + Stamps. (See: Creating + field presentations)  

+ +

 

+ +

+Related Topics + + +

+ +

 

+ +

 

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/about_tables.htm b/doc/salome/gui/VISU/files/about_tables.htm new file mode 100755 index 00000000..ab5213d8 --- /dev/null +++ b/doc/salome/gui/VISU/files/about_tables.htm @@ -0,0 +1,153 @@ + + + + + +About tables + + + + + + + + + + + + + +

About tables

+ +

Functionality of Post-Pro component allows to import + data tables and display them in a special table viewer. Tables + represent column-ranged data with units + and column and row + titles (see also).

+ +

 

+ +

Tables can be rarefied + - some of the cells may be empty, without any values.

+ +

 

+ +

In Post-Pro + there are  three + methods to import tables:

+ +

 

+ +

1. +  Importing + tables from *.xls, *.txt or *.tab files, which have been previously created.

+ +

 

+ +

2. +  Creating + tables on the basis of Cut Lines presentations

+ +

 

+ +

3. +   Importing + tables with the help of a special Python script (not described in this + reference manual)

+ +

 

+ +

+Related Topics + + +

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/animating_presentations.htm b/doc/salome/gui/VISU/files/animating_presentations.htm new file mode 100755 index 00000000..df79eedc --- /dev/null +++ b/doc/salome/gui/VISU/files/animating_presentations.htm @@ -0,0 +1,385 @@ + + + + + +Animating presentations + + + + + + + + + + + + + +

Animating presentations

+ +

In Post-Pro + module you can generate real-time animation of fields. In comparison + with sweeping, animations are created on the + base of frames, displaying field presentations generated on EVERY + Time Stamp of your field. So, the frame displaying the field presentation + created on the base of the first time stamp will begin your animation + and the frame displaying the field presentation created on the base of + the last time stamp will end it. In sweeping ONLY + ONE Time Stamp is used for its generation.

+ +

 

+ +

In the case of animation of several fields + Parallel Animation will display + the animations simultaneously, while Successive Animation will display them + one after another.

+ +

In the case of + Parallel Animation you can set different kinds of presentations + for each of the selected fields. This animation type also requires that + the number of time stamps > 1 and is the same for all animated fields. +

+ +

For Successive + Aimation the kind of presentation + should be the same for all selected fields, which means that it is not + possible to select a field from the list.  It + is also necessary that the number of time stamps > 0 and the number + of components is the same for all animated fields.

+ +

 

+ +

To generate an animation:

+ +

 

+ +

1. +  Right-click + on the field in the Object Browser.

+ +

2. +  From the + pop-up menu select Parallel or Successive Animation.

+ +

 

+ +

The following dialog + box will appear:

+ +

                       

+ +

 

+ +

 

+ +

Animation + dialog box is destined for management of your animation.

+ +

 

+ +

3. + Click Setup Animation button. + The following dialog box allowing to set the parameters of your animation + will appear.

+ +

 

+ +

           

+ +

 

+ +

- + Use range of time stamps check + box allows to select the range of time stamps, which will be used for + generating your animation.

+ +

 

+ +

- + Fields: list of fields for animation.

+ +

 

+ +

- Properties: Here you can adjust properties + of each field selected from the list:

+ +

 

+ +
    + +
  •  Select + the type of field presentations, + which will be used as frames in animation.

  • + +
  •  Set + properties of the Scalar Bar (see also)

  • + +
  •  Adjust + additional properties of the selected + type of field presentation.

  • +
+ +

 

+ +

4. +  Click OK to validate your parameters. You + will return back to Animation dialog + box

+ +

 

+ +

5. +  Click Generate frames button to generate the + frames for your animation based on the parameters adjusted in Setup + Animation dialog box.

+ +

 

+ +

Running animations:

+ +

 

+ +

In + the main Animation dialog box + there are several button intended for management and running your animation:

+ +

 

+ +

       Running + your animation.

+ +

 

+ +

        Previous / Next + frame (time step)

+ +

 

+ +

        To the beginning + / end of the animation.

+ +

 

+ +

Additional options of the animation:

+ +

 

+ +

You + can increase/decrease the speed + of your animation by moving the Speed + wheel Up/Down:

+ +

 

+ +

       

+ +

 

+ +

Cycled + animation check box: This option allows to start a cycled animation + of your presentation.

+ +

 

+ +

Use proportional timing check + box: This option allows to render your animation with proportional periods + of time between every frame (not depending on the time stamps).

+ +

 

+ +

Clean memory at each frame - this + option allows to optimize the performance of the operation.

+ +

 

+ +

Saving Animations:

+ +

 

+ +

Save + pictures to directory check box: This option allows to save all + the frames composing the animation into a definite directory, which can + be specified in Path field.

+ +

 

+ +

Save + Animation to AVI file check box This option allows to save the + animation into a definite .avi file, which can be specified in Path + field.

+ +

 

+ +

Save animation to AVI file + works only if there is jpeg2yuv + utility installed on your computer. If this third-party product is missing, + the check-box will not be selectable. This utility is a part of  mjpegtool + package, which can be downloaded from http://mjpeg.sourceforge.net/. +  Run "which jpeg2yuv" + to check whether this tool has been installed and the path to it was properly + added to your PATH variable. If not, you need to activate mjpegtools + indicating its location in the variable PATH. The syntax of the + command should be as follows:  

+ +

export PATH=${INSTALL_ROOT}/mjpegtools-1.8.0/bin:${PATH}.

+ +

 

+ +

Save + Animation - saves changes made in the published animation. If you + have already published a study and press Publish + to study again you get another animation in the Object Browser. +

+ +

 

+ +

Publish + to Study - saves your animation in the study and presents it in + the Object Browser

+ +

 

+ +

The + following picture shows an animation of deformation of an object:

+ +

 

+ +

+ +

 

+ +

+Related Topics + + +

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/changing_visualization_parameters_of_the_presenetation.htm b/doc/salome/gui/VISU/files/changing_visualization_parameters_of_the_presenetation.htm new file mode 100755 index 00000000..5df43c6b --- /dev/null +++ b/doc/salome/gui/VISU/files/changing_visualization_parameters_of_the_presenetation.htm @@ -0,0 +1,333 @@ + + + + + +Setting presentation view parameters + + + + + + + + + + + + + +

Viewing 3D presentations. +

+ +

Each  newly + created presentation is displayed in the VTK + 3D Viewer. VTK 3D Viewer + is detailly described in the documentation on + GUI module.

+ +

To display an existing presentation, right-click on it in the Object + Browser and select Display.  

+ +

 

+ +

Right mouse-click on the Presentation gives access to the following + options:

+ +

 

+ +

+ +

 

+ +

All parameters are context-sensitive: + NOT all types of visualization and NOT all properties can be set for a + certain 3D presentation.                            

+ +

 

+ +
    + +
  • Erase all - allows + to hide all objects from the viewer.  

  • + +
  • Edit - allows + to return to the menu where the presentation has been created and change + its parameters.

  • + +
  • Rename + - allows to rename the presentation.

  • + +
  • Copy - + allows to create a copy of the presentation in the same subfolder (time + stamp) in the Object Browser.

  • + +
  • Erase + - allows to hide the selected presentation from the viewer.

  • + +
  • Display Only + - allows to display only the selected presentation, hiding all other from + the viewer.

  • + +
  • Representation - allows to switch among the available representation + types.

  • +
+ +

 

+ + ++++ + + + + + + + + + + + + + + + + + + + +
+

Points

+

Surface

+

Wireframe

+

+

+

+

Insideframe (displays the wires + lying within the object)

+

Shrink

+

Shading on

+

+

+

+ +

 

+ +
    + +
  • Properties

  • + +
  • Opacity + - allows to set the value of opacity + of the presentation between 0 (transparent) and 100 (opaque).

  • +
+ +

 

+ +

+ +

 

+ +
    + +
  • Line + Width - allows to set the width of + lines representing edges of the presentation between 1 (thin) and 100 + (thick).

  • +
+ +
    + +
  • Translate + Presentation - allows to translate + the presentation along coordinate axes.

  • + +
  • Clipping + Planes - allows to create cross-section + views of presentations.

  • + +
  • Sweep + - allows to display pseudo-animation + of the presentation.

  • + +
  • Selection + Info - provides information about + the attributes of elements displayed in the viewer.

  • + +
  • Dump view - exports + an object from the viewer in bmp, png, jpg or jpeg image format.

  • + +
  • Change + Background - allows to change the properties of the background.

  • +
+ +

 

+ +

When you create several presentations of the same + object, you may wish to see them simultaneously,  which + might be impossible, because they all are located at the same place. To + solve this problem, right-click in the viewer and select Arrange + Actors in the pop-up menu.    

+ +

 

+ +

+ +

 

+ +

In Auto + mode you specify along which Axis + and at which Relative Distance + the presentations should be lined up.

+ +

 

+ +

+ +

 

+ +

In Manual + mode you set the coordinates for each presentation separately.

+ +

 

+ +

 

+ +

Displaying several presentations at the same time + may cause superposition of their scalar bars. To avoid this, check Arrange Scalar Bars radio button  in + the Preferences - > Post-Pro - > + Scalar Bar. A separate scalar bar will be displayed for each presentation. +

+ +

Alternatively you may wish to merge the + scalar bars to have a common scalar bar for all presentations. To do this, + select several presentations or fields in the object browser, right-click + and from the pop-up menu select  Merge Scalar Range. +

+ +

To restore separate bars and scales for + each module select Use Field Range + from the same menu.

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/creating_curves.htm b/doc/salome/gui/VISU/files/creating_curves.htm new file mode 100755 index 00000000..b75af456 --- /dev/null +++ b/doc/salome/gui/VISU/files/creating_curves.htm @@ -0,0 +1,231 @@ + + + + + +Creating curves + + + + + + + + + + + + + +

Creating curves

+ +

Post-Pro functionality allows to create  Curve + lines  on + the basis of the data taken from tables, and to display these curves in + form of 2D plot using Plot2d viewer.

+ +

 

+ +

To create curves:

+ +

 

+ +

1. +  Right-click + on the required table in the Object Browser

+ +

 

+ +

2.  From + the pop-up menu choose Create Curves + option.

+ +

 

+ +

3.  The + following dialog box will appear:

+ +

 

+ +

+ +

 

+ +

This dialog box has the form of a table; + each row of this table represents one column of values of the imported + data table.

+ +

To construct curve lines, you should choose + at least two columns of the data table by checking them in the Axis + part of the  dialog + box:

+ +
    + +
  • H (horisontal) - the values of this + column will correspond to X-coordinates of the curve.

  • + +
  • V (vertical) - the values of this column + will correspond to Y-coordinates of the curve.

  • +
+ +


+The column Assigned allows to represent + the values assigned to the points of the curve (possible for V-rows only). + Any row, even coinciding with the current or empty (no values assigned), + can be represented. All values are indicated with tool tips over the corresponding + curve points in the Plot2d viewer
+
+To define the  Attributes + of your curve remove the checkmark from Auto + assign  (if + it is checked, default attributes are taken) and select:

+ +
    + +
  • Line type (None, Solid, Dash, Dot, Dash + - Dot, Dash - Dot - Dot),

  • + +
  • Line + width,

  • + +
  • Marker + type (Circle, + Rectangle, Diamond, Rightward, Leftward, Downward & Upward Triangle, + Cross or Diagonal Cross),

  • + +
  • Color + (using the standard Select Color menu).

  • +
+ +

 

+ +

From this dialog box you can create several curves for the + columns of your data table with the same units. Post-Pro + allows to display at once up to 200 curves.

+ +

 

+ +

4. +  Click OK to create your curves with the given + parameters. Post-Pro will automatically + create your curve or curves in the structure of the study under two SALOME + objects:

+ +

-  SALOME + table object,

+ +

-  Plot2DView object: + SALOME container of curve lines which will be created automatically.

+ +

 

+ +

 

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/creating_field_presentations.htm b/doc/salome/gui/VISU/files/creating_field_presentations.htm new file mode 100755 index 00000000..bd34dde5 --- /dev/null +++ b/doc/salome/gui/VISU/files/creating_field_presentations.htm @@ -0,0 +1,171 @@ + + + + + +Creating field presentations + + + + + + + + + + + + + +

Creating field presentations

+ +

To create a field presentation (see + also):

+ +

 

+ +

Right-click on one of the time stamps of this + field in the Object browser and choose the required type of presentation + from the following pop-up menu:

+ +

 

+ +

             

+ +

 

+ +

In Post-Pro fields + may contain both scalar and vector values, applied to the cells of the + submesh, as well as ONLY scalar + values. It is not possible to make a vector presentation for fields containing + only scalar values.

+ +

 

+ +

For + fields containing only scalar values, you can create the following types + of presentation:

+ +

 

+ +

                         

+ +

 

+ +

- + Click on one of the time stamps of this field in the Object browser and + select the required type of presentation from the  Visualization + submenu of the main menu + or from the Visualization Toolbar

+ +

 

+ +

The new field presentation will be located + in the time stamp subfolder in the Object Browser and displayed

+ +

 

+ +

 

+ +

+Related Topics + + +

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/creating_presentations.htm b/doc/salome/gui/VISU/files/creating_presentations.htm new file mode 100755 index 00000000..7e5c95e1 --- /dev/null +++ b/doc/salome/gui/VISU/files/creating_presentations.htm @@ -0,0 +1,138 @@ + + + + + +Creating presentations + + + + + + + + + + + + + +

Presentation of a submesh

+ +

To create a presentation of a submesh:

+ +

 

+ +

In the Object Browser right-click on a submesh + of an imported MED object and from the pop-up menu choose Create + Presentation:

+ +

 

+ +

                       This + presentation will be displayed in the viewer:

+ +

 

+ +

            

+ +

 

+ +

 

+ +

+Related Topics + + +

+ +

 

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/creating_xy_plot.htm b/doc/salome/gui/VISU/files/creating_xy_plot.htm new file mode 100755 index 00000000..ae6f02f5 --- /dev/null +++ b/doc/salome/gui/VISU/files/creating_xy_plot.htm @@ -0,0 +1,207 @@ + + + + + +Creating XY plot + + + + + + + + + + + + + +

Creating XY plots

+ +

To create a XY plot based on one definite curve:

+ +

 

+ +

1.  Select + Plot2d viewer: from the main menu choose Window + > New Window > Plot2d View

+ +

 

+ +

2. In the Object Browser right-click + on this curve line and from the pop-up menu select Display + item.

+ +

 

+ +

To create a XY plot based on several curves:

+ +

 

+ +

1.  Select + Plot2d viewer: from the main menu choose Window + > New Window > Plot2d View

+ +

 

+ +

2. In + the Object Browser right-click on the Post-Pro object + and from the pop-up menu select Create Plot2D View.

+ +

 

+ +

3. Right-click on the name of this container + in the Object Browser and select Edit + item. The following dialog box will appear:

+ +

 

+ +

+ +

 

+ +

 

+ +

 This box contains + two windows:

+ +

 

+ +

- Left window displays a list of curve lines, + which have been created in the study.

+ +

 

+ +

- Right window displays a list of curve lines + contained in this particular container. These curves will used for creation + of the XY plot.

+ +

 

+ +

To move a definite curve line from the study + into the container, select it in the left window of this dialog box and + click button.  

+ +

      

+ +

To + move a definite curve line from the container back into the study, select + it in the right window of this dialog box and click button. +

+ +

 

+ +

After + having chosen the curve lines, which will compose your XY plot, click + OK button to quit this dialog + box. In the Object Browser the references to the selected curve lines + will be created under your container:

+ +

 

+ +

4. + Right-click on the name of the container in the Object Browser and select + Display button. A XY plot consisting + of the previously selected curve lines, will be displayed in the viewer:

+ +

 

+ +

+ +

       

+ +

     

+ + + + diff --git a/doc/salome/gui/VISU/files/cut_lines_presentation.htm b/doc/salome/gui/VISU/files/cut_lines_presentation.htm new file mode 100755 index 00000000..73fb3794 --- /dev/null +++ b/doc/salome/gui/VISU/files/cut_lines_presentation.htm @@ -0,0 +1,276 @@ + + + + + +Cut Lines presentation + + + + + + + + + + + + + +

Cut + Lines presentation

+ +

Cut Lines is a type of + presentation which displays colored cells with applied scalar values on + the mesh where lines are placed.

+ +

The + procedure of construction of Cut Lines + presentation reuses the algorithm of creation Cut + Planes presentation and consists of two steps:

+ +
    + +
  1.  From + Cut Planes presentation one plane + is taken and it is used as base plane for construction of cut lines.

  2. + +
  3. This plane is cut by + a regular array of planes. The result of this operation is a regular array + of lines in space,  belonging + to the same plane and having the same orientation. They are located inside + or on the mesh.

  4. +
+ +

 

+ +

To create a + Cut Lines presentation:

+ +

 

+ +

- Right-click on one of the time stamps of + the field in the Object browser and from the pop-up menu choose Cut Lines, or

+ +

 

+ +

- Click on one of the time stamps of the field + in the Object browser and select from the main menu Visualization + > Cut Lines, or click icon + in the Visualization Toolbar.

+ +

 

+ +

+ +

 

+ +

Plane of + lines: this tab of the dialog box contains the parameters of the + base plane, on which the cut lines will be located.

+ +

 

+ +
    + +
  • Orientation + check boxes allow to set the orientation of cut planes in 3D space. + You should select two of three axis (XY, YZ, or ZX) in which your planes + will be located in 3D space

  • + +
  • Rotations + of the planes in 3d space around the axes of the selected orientation. + (The angle of rotation is set in degrees.)

  • + +
  • Base + plane position: position of the base plane. This value can be set + by default or entered manually.  

  • + +
  • Displacement + of the plane. This parameter defines position of the base plane + in 3d space.

  • + +
  • Show + preview check box allows to edit the parameters of the presentation + and simultaneously observe the preview of this presentation in the viewer.

  • + +
  • Invert + all curves check box allows to invert the resulting curves.

  • + +
  • Use + absolute length check box allows to see the real length of the + line, instead of [0,1] interval.

  • + +
  • + Generate Data Table: If this check + box is marked, Post Pro will automatically + generate a data table on the basis of your Cut Lines presentation. This + table will be created in the structure of the study.   

  • + +
  • Generate + Curves: If this check box is marked, Post + Pro  will + automatically generate curve lines on the basis of values taken from the + generated data table. These curves will be created in the structure of + the study and can be visualized in a XY plot.  

  • +
+ +

See more about table presentations and curve + lines here.

+ +

 

+ +

Cut + Planes: this tab of the dialog box contains the parameters of cut + planes, which will be used for construction of the cut lines.

+ +

 

+ +

Scalar Bar + tab allows to define the parameters of the scalar bar displayed + with this presentation (see + also).

+ +

 

+ +

After + you have finished with setting these parameters, click OK. + Your presentation with scalar bar will be immediately displayed + in the viewer:

+ +

    

+ +

 

+ +

From Cut Lines presentation + you can create a data table. This + table will consist of the field scalar values located on each cut line + of the constructed presentation (see + also: Creating tables from Cut Lines presentations). After that your + data table can be used for construction of a 2d plot of curves based on + the scalar values from the table (see also: Creating + curves and Creating XY plots). +   

+ +

 

+ +

 

+ +

+Related Topics + + +

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/cut_lines_resentation.htm b/doc/salome/gui/VISU/files/cut_lines_resentation.htm new file mode 100755 index 00000000..c42da1b6 --- /dev/null +++ b/doc/salome/gui/VISU/files/cut_lines_resentation.htm @@ -0,0 +1,204 @@ + + + + + +Cut Planes presentation + + + + + + + + + + + + + +

Cut Planes presentation

+ +

Cut Planes is a + type of field presentation, when the given shape is cut by a definite + number of surfaces. These surfaces are colored according the values applied + to the cells of the mesh.

+ +

 

+ +

To create a Cut Planes +  presentation:

+ +

 

+ +

- Right-click on one of the time stamps of + the field in the Object browser and from the pop-up menu choose Cut Planes, or

+ +

 

+ +

- Click on one of the time stamps of the field + in the Object browser and select from the main menu Visualization + > Cut Planes, or click icon + in the Visualization Toolbar.

+ +

 

+ +

+ +

 

+ +
    + +
  • Cut + Planes tab allows to set additional parameters of your Cut + Planes presentation:

  • +
+ +

 

+ +
    + +
  • Orientation + check boxes allow to set the orientation of cut planes in 3D space. + You should select two of three axis (XY, + YZ, or ZX) + in which your planes will be located in 3D space

  • + +
  • Rotations + of the planes in 3d space around the axes of the selected orientation. + (The angle of rotation is set in degrees.)

  • + +
  • Number + of planes, which will form your presentation.

  • + +
  • Position + of each of the planes relative to other planes, which form your + presentation. This value can be set by default, entered manually.  

  • + +
  • Displacement + of the planes. This parameter defines the displacement of the planes + into one or another side.

  • + +
  • Show + preview check box allows to edit the parameters of the presentation + and simultaneously observe the preview of this presentation in the viewer.

  • +
+ +

 

+ +

After you have finished with setting + these parameters, click OK. Your + presentation with scalar bar will be immediately displayed in the viewer: +

+ +

 

+ +

         

+ +

 

+ +

+Related Topics + + +

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/deformed_shape_presentation.htm b/doc/salome/gui/VISU/files/deformed_shape_presentation.htm new file mode 100755 index 00000000..41a5a9d8 --- /dev/null +++ b/doc/salome/gui/VISU/files/deformed_shape_presentation.htm @@ -0,0 +1,193 @@ + + + + + +Deformed Shape presentation + + + + + + + + + + + + + +

Deformed Shape presentation

+ +

Deformed Shape is + a type of field presentation when vector values corresponding to the cells + of the mesh are visualized by shifting of these cells.

+ +

 

+ +

To create a Deformed Shape  presentation:

+ +

 

+ +

- Right-click on one of the time stamps of + the field in the Object browser and from the pop-up menu choose Deformed Shape, or

+ +

 

+ +

- Click on one of the time stamps of the field + in the Object browser and select from the main menu Visualization + > Deformed Shape, or click icon + in the Visualization Toolbar.

+ +

 

+ +

+ +

 

+ +
    + +
  • Deformed + Shape tab allows to set additional parameters of your Deformed + Shape presentation:

  • +
+ +
    + +
  • Scale + Factor: visualization scaling of all vector values applied to the + cells of the mesh.

  • + +
  • Magnitude + coloring check box: this option allows to color your presentation + according the scalar + range defined in Scalar Bar properties or to display it using only + one color (this color is taken by default).  

  • +
+ +

 

+ +
    + +
  • Scalar + Bar tab allows to define the parameters of the scalar bar displayed + with this presentation (see + also).

  • +
+ +

 

+ +

After you have finished + with setting these parameters, click OK. + Your presentation with scalar bar will be immediately displayed + in the viewer:

+ +

 

+ +

         

+ +

 

+ +

+Related Topics + + +

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/displaying_hiding_presentations.htm b/doc/salome/gui/VISU/files/displaying_hiding_presentations.htm new file mode 100755 index 00000000..959acd8d --- /dev/null +++ b/doc/salome/gui/VISU/files/displaying_hiding_presentations.htm @@ -0,0 +1,251 @@ + + + + + +Displaying/Hiding presentations + + + + + + + + + + + + + +

Operations with presentations

+ +

+ +

 

+ +

To display a presentation:

+ +

 

+ +

Right-click on it in the Object Browser and + from the pop-up menu choose Display. +

+ +

                       

+ +

To display several presentations:

+ +

 

+ +

Hold down Ctrl + button and select in the Object Browser the presentations for displaying. + Right-click with the mouse and from the pop-up menu select Display. +

+ +

 

+ +

To display only one presentation: +

+ +

 

+ +

 Choose + Display only option. The other + presentations will be immediately  hidden.

+ +

 

+ +

To hide this presentation:

+ +

 

+ +

From the same pop-up menu choose Erase. + (This option will automatically appear in this pop-up menu if this presentation + have been displayed)

+ +

 

+ +

 

+ +

To hide all presentations: +

+ +

 

+ +

From the main menu choose Representation + > Erase All, click button   in the Representation toolbar + or right-click in the 3D Viewer and select Erase + All in the pop-up menu.   

+ +

                                

+ +

 

+ +

To delete an existing presentation:

+ +

 

+ +

Right-click on it in the Object Browser and + from the pop-up menu choose Delete. +

+ +

 

+ +

Operations accessible only for field presentations.

+ +

 

+ +

To copy a field presentation:

+ +

 

+ +

1. + Right-click on this presentation in the Object Browser or in the viewer.

+ +

 

+ +

2. + From the pop-up menu select Same as option.

+ +

 

+ +

Your + field presentation will duplicated in the same subfolder (time stamp) + in the Object Browser.

+ +

 

+ +

 

+ +

To set additional parameters of field presentations:

+ +

 

+ +

1. + Right-click on this presentation in the Object Browser or in the viewer.

+ +

 

+ +

2. + From the pop-up menu select Edit  option.

+ +

 

+ +

This + option allows to set or modify additional parameters of field presentations + after its creation.

+ +

 

+ +

To rename a field presentation

+ +

 

+ +

1. Right-click on this + presentation in the Object Browser or in the viewer.

+ +

 

+ +

2. From the pop-up menu select Rename + option, the following dialog box will appear:

+ +

 

+ +

                       

+ +

 

+ +

In the field Name + enter your personal name of the presentation and click OK + button to confirm your choice. The name of the presentation will + change in the Object Browser.

+ + + + diff --git a/doc/salome/gui/VISU/files/displaying_tables.htm b/doc/salome/gui/VISU/files/displaying_tables.htm new file mode 100755 index 00000000..d47dff40 --- /dev/null +++ b/doc/salome/gui/VISU/files/displaying_tables.htm @@ -0,0 +1,134 @@ + + + + + +Displaying tables + + + + + + + + + + + + + +

Displaying tables

+ +

To display a table:

+ +

 

+ +

1.  Right-click + on the required table in the Object Browser

+ +

 

+ +

2.  From + the pop-up menu choose Show Table option. + Your table will be displayed in a separate View + Table window:

+ +

 

+ +

 

+ +

 

+ +

+Related Topics + + +

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/getting_elements_attributes.htm b/doc/salome/gui/VISU/files/getting_elements_attributes.htm new file mode 100755 index 00000000..d45edd74 --- /dev/null +++ b/doc/salome/gui/VISU/files/getting_elements_attributes.htm @@ -0,0 +1,224 @@ + + + + + +Getting elements attributes + + + + + + + + + + + + + +

Selection Info

+ +

To view the attributes of elements (cells, points, meshes) + displayed in the viewer:

+ +

 

+ +

+ +

 

+ +

 

+ +

In the main menu choose  Selection > + Selection info...,  choose + the necessary type of elements (Point, + Cell, or Actor) in the + dialog box and click on the element of the required type in the viewer. + The chosen element will be highlighted and its attributes will be displayed + in this dialog box:

+ +

+ +

You can get the following information + about Points:

+ +
    + +
  • Mesh name

  • + +
  • Field name

  • + +
  • ID Number of the point +

  • + +
  • Scalar value applied + to the point (if any)

  • + +
  • Vector value applied + to the point (if any)

  • + +
  • Coordinates of the + point in 3d space

  • + +
  • Indexes (i,j,k) of + the point (for structured meshes only)

  • +
+ +

 

+ +

+ +

The following information about + Cells is available:

+ +
    + +
  • Mesh name

  • + +
  • Field name

  • + +
  • ID Number of the cell

  • + +
  • Scalar value applied + to the cell (if any)

  • + +
  • Vector value applied + to the cell (if any)

  • + +
  • Attributes of the + points forming this cell (in table layout)

  • +
+ +

 

+ +

+ +

 

+ +

An + Actor (any 3D object (presentation + of a submesh, field presentation) displayed in the viewer) possesses the following characteristics:

+ +
    + +
  • Mesh + name

  • + +
  • Field + name

  • + +
  • Coordinates + of the object in 3d space

  • + +
  • Size + of the object (expressed as the extent along the coordinates)

  • +
+ +

 

+ +

Using this dialog box, you can examine the attributes of a + definite point or cell, selected by its ID number. For that, you should + only enter an ID number of a definite point or cell in the ID + field, the attributes of this point or cell will be immediately + displayed.

+ + + + diff --git a/doc/salome/gui/VISU/files/getting_started.htm b/doc/salome/gui/VISU/files/getting_started.htm new file mode 100755 index 00000000..e462ea6b --- /dev/null +++ b/doc/salome/gui/VISU/files/getting_started.htm @@ -0,0 +1,150 @@ + + + + + +Getting started + + + + + + + + + + + + + + + +

Usage overview

+ +

HOW TO:

+ +

Create a new study and launch + Post-Pro module   +

+ +

 

+ +

Import a mesh from a MED + file   

+ +

 

+ +

Create a presentation of + a submesh and set view parameters  

+ +

 

+ +

Create field presentations + and use sweeping  

+ +

 

+ +

Animate fields  

+ +

 

+ +

  Import a table from a file and create a 2d plot based on + the data from this table

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/importing_med_objects.htm b/doc/salome/gui/VISU/files/importing_med_objects.htm new file mode 100755 index 00000000..64156285 --- /dev/null +++ b/doc/salome/gui/VISU/files/importing_med_objects.htm @@ -0,0 +1,202 @@ + + + + + +Importing MED objects + + + + + + + + + + + + +

Importing MED file

+ +

To import a MED file:

+ +

 

+ +

From + the File menu choose Import +  - > + MED File or right-click on the Post-Pro + object in the Object Browser and select MED + File option. After it you + will see a standard dialog box allowing to search for and choose *.med +  files:

+ +

 

+ +

                 

+ +

 

+ +

To + confirm your choice click Open.

+ +

 

+ +

If + the option Use Build Progress + is checked in Post-Pro Sweep and MED + Import Preferences, you will be able to choose how the object containing + in the file will be built, otherwise the structure of the imported MED + object will be immediately displayed in the Object Browser and it will + be loaded and built as set in the Preferences.

+ +

 

+ +

+ +

 

+ +

Settings

+ +
    + +
  • Build all - when this option is checked, + the application loads all data necessary for processing of the object.

  • + +
  • Build at once - when this option is + checked, you can't perform any operations until the MED file is fully + loaded and processed.

  • + +
  • Close dialog at finish - when this option + is checked, the dialog box is closed after loading of the selected MED + file. When unchecked, it allows to monitor the build process.

  • +
+ +

 

+ +

Import progress - + allows to choose what items exactly should be built at loading. By default + everything is checked in.  Note that the + coloured rectangles show the progress of the respective step and become + blue when complete.

+ +
    + +
  • Build entities - displays the rate at which the geometrical + data is loaded.

  • + +
  • Build fields - when this option + is checked, the fields are built automatically at loading.

  • + +
  • Build min/max - parses time stamps at loading finding + the highest and the lowest value.

  • + +
  • Build Groups - builds groups and families + at loading.

  • +
+ +

 

+ +

Time - shows the Elapsed + time spent by the application on processing.

+ +

 

+ +

+Related Topics + +

+ +

 

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/importing_tables.htm b/doc/salome/gui/VISU/files/importing_tables.htm new file mode 100755 index 00000000..cc2046a5 --- /dev/null +++ b/doc/salome/gui/VISU/files/importing_tables.htm @@ -0,0 +1,154 @@ + + + + + +Importing tables + + + + + + + + + + + + +

Importing/exporting + tables

+ +

To import a table from file:

+ +

 

+ +

1.  From + the main menu choose File > Import + > Table from File, or in the Object Browser right-click on the + Post-Pro object and select Table from File item. +

+ +

 

+ +

2.  From + the following standard dialog box:

+ +

 

+ +

          

+ +

 

+ +

choose the necessary *.xls, *.txt or + *.tab file containing tables and click Open + button.  

+ +

 

+ +

3.  In + the Object Browser Post-Pro will + create a new folder having the name of the imported file. All tables from + this file will be located in this folder. One *.xls file can contain several + tables.    

+ +

 

+ +

To export a table:

+ +

 

+ +

1. Click on it in the Object Browser and + select Export Table.

+ +

 

+ +

2. + In the standard dialog box enter the name of the file, which will contain + your exported table, and click OK button. + Your table will be exported.

+ +

 

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/insideframe.htm b/doc/salome/gui/VISU/files/insideframe.htm new file mode 100755 index 00000000..0ca8f5f6 --- /dev/null +++ b/doc/salome/gui/VISU/files/insideframe.htm @@ -0,0 +1,86 @@ + + + + + +Insideframe + + + + + + + + + + + + +

+ + + + diff --git a/doc/salome/gui/VISU/files/introduction.htm b/doc/salome/gui/VISU/files/introduction.htm new file mode 100755 index 00000000..37998587 --- /dev/null +++ b/doc/salome/gui/VISU/files/introduction.htm @@ -0,0 +1,156 @@ + + + + + +Introduction + + + + + + + + + + + + + +

Introduction to Post-Pro

+ +

Post-processing module Post-Pro +  for + SALOME  is + destined for visualization of data produced by the other components of + the platform. Post-Pro provides +  various + forms of data visualization including:

+ +

 

+ + + +

 

+ + + +

 

+ + + +

 

+ + + +

                

+ +

 

+ +

+Related Topics + + +

+ +

 

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/iso_surfaces_presentation.htm b/doc/salome/gui/VISU/files/iso_surfaces_presentation.htm new file mode 100755 index 00000000..c0207a61 --- /dev/null +++ b/doc/salome/gui/VISU/files/iso_surfaces_presentation.htm @@ -0,0 +1,215 @@ + + + + + +Iso Surfaces presentation + + + + + + + + + + + + + +

Iso Surfaces presentation

+ +

Iso Surfaces presentation + combines all equal scalar values applied to the cells and on the basis + of them constructs  isobaric + surfaces, which form this presentation.

+ +

 

+ +

To create an Iso Surfaces + presentation:

+ +

 

+ +

- Right-click on one of the time stamps of + the field in the Object browser and from the pop-up menu choose Iso Surfaces, or

+ +

 

+ +

- Click on one of the time stamps of the + field in the Object browser and select from the main menu Visualization + > Iso Surfaces, or click icon + in the Visualization Toolbar

+ +

 

+ +

+ +

 

+ +
    + +
  • Iso + Surface tab allows to set additional parameters of + the Iso Surfaces presentation:

  • +
+ +

 

+ +
    + +
  • Number + of surfaces, which will be generated in the framework of this presentation

  • +
+ +

 

+ +
    + +
  •  Minimum / Maximum + value fields allow to enter the range of scalar or vector values + applied to the cells, on the basis of which this presentation will be + created.

  • +
+ +

 

+ +
    + +
  • Update + scalar bar range with these values button allows you to update + the range of the values, displayed with by the scalar bar, with the previously + defined range of values.

  • +
+ +

 

+ +
    + +
  • Scalar + Bar tab allows to define the parameters of the scalar bar displayed + with this presentation (see + also).

  • +
+ +

 

+ +

After + you have finished with setting these parameters, click OK. + Your presentation with scalar bar will be immediately displayed + in the viewer:

+ +

 

+ +

+ +

 

+ +

 

+ +

+Related Topics + + +

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/points.htm b/doc/salome/gui/VISU/files/points.htm new file mode 100755 index 00000000..bf1d9a6e --- /dev/null +++ b/doc/salome/gui/VISU/files/points.htm @@ -0,0 +1,86 @@ + + + + + +Points + + + + + + + + + + + + +

+ + + + diff --git a/doc/salome/gui/VISU/files/running_visu.htm b/doc/salome/gui/VISU/files/running_visu.htm new file mode 100755 index 00000000..9121b1b2 --- /dev/null +++ b/doc/salome/gui/VISU/files/running_visu.htm @@ -0,0 +1,130 @@ + + + + + +Running VISU + + + + + + + + + + + + +

Running Post-Pro

+ +

To start Post-Pro module in the SALOME + application click icon in the toolbar.

+ +

          

+ +

Before launching Post-Pro module, you should set the VTK + viewer as default viewer for creation of a new study window. In Post-Pro + you can create presentations only in the VTK viewer. (see also: Setting + preferences)

+ +

 

+ +

The initial desktop of + the SALOME platform will be updated with some additional toolbars and + menus related to Post-Pro component . It will look like as follows:

+ +

 

+ +

            

+ +

 

+ +

+Related Topics + + +

+ +

 

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/scalar_map_presentation.htm b/doc/salome/gui/VISU/files/scalar_map_presentation.htm new file mode 100755 index 00000000..8367a3fc --- /dev/null +++ b/doc/salome/gui/VISU/files/scalar_map_presentation.htm @@ -0,0 +1,396 @@ + + + + + +Scalar Map presentation + + + + + + + + + + + + + +

Scalar Map presentation

+ +

Scalar Map is the basic type of visualization of calculation + data in Post-Pro module. This + presentation consists of the following:

+ +

 

+ +

- creating a 3D presentation on the basis + of a field:

+ +

    - + on the whole mesh (default)

+ +

    - + on group(s) of the mesh

+ +

- coloring the cells of this presentation, + according the scalar or vector values applied to this cells;

+ +

- creating a scalar bar representing the + correspondence  between + the scalar values of the field and the used colors.

+ +

 

+ +

All other types of field + presentations are based on the Scalar + Map.

+ +

 

+ +

To create a Scalar Map + presentation:

+ +

 

+ +

- Right-click on one of the time stamps + of the field in the Object browser and from the pop-up menu choose Scalar Map, or

+ +

- Click on one of the time stamps of the + field in the Object browser and select from the main menu Visualization + > Scalar Map, or click icon + in the Visualization Toolbar

+ +

 

+ +

The following dialog box will appear:

+ +

 

+ +

This dialog box is equal + for all types of field presentations and it will be present as an additional + tab in all dialog boxes allowing to create the other types of presentations. + It allows to set the parameters of Scalar + range, as well as the parameters of the Scalar + Bar. You can also set these parameters as preferences which will + be used in all SALOME sessions: in the main menu select File + > Preferences > Post Pro + > Scalar Bar.    

+ +

 

+ +

        

+ +

 

+ +
    + +
  • Build + presentation on groups: You can choose the groups on which Scalar Map can be built from the list + to the left and add them in the list to the right.

  • +
+ +

 

+ +
    + +
  • Scalar range parameters:

  • +
+ +

 

+ +
    + +
      + +
    • Scalar Mode field: This field allows to choose the mode + of transformation of vector values into scalar values for creation of + the presentation. It can be module of the vector or one of three components + of the vector. (Note: This choose box is relevant only for fields containing + vector values, in other cases it will be inactive).  

    • +
    +
+ +

 

+ +
    + +
      + +
    • Logarithmic scaling + check box: You can apply logarithmic + scaling to the color scale of the presentation.

    • +
    +
+ +

 

+ +
    + +
      + +
    • Use + field range: if this check box is selected, all cells of the field + presentation will be colored according the values applied to these cells. +  

    • +
    +
+ +

 

+ +
    + +
      + +
    • Use imposed range: + here you can define your own range + of scalar values of the field, on the basis of which this presentation + will be constructed. The cells of the field presentation with applied + scalar or vector values belonging to this imposed range will be colored + according to these values. The other cells of the field presentation (with + applied scalar or vector values out of this imposed range) will be displayed + using one color. For the cells with applied scalar or vector values, which + are less than the minimal value of the imposed range, the color will be + the same as for the cells with applied minimal values. For the cells with + applied scalar or vector values, which are larger than the maximal value + of the imposed range the color will be the same as for the cells with + applied minimal values.  

    • +
    +
+ +

 

+ +
    + +
  • Colors and Labels

  • + +
  • Nb. + of colors field: In this field you can enter the number of colors, + which will be used for coloring of cells containing scalar values.

  • + +
  • Nb. + of labels field: In this field you can enter the number of labels, + indicating graduation of the scalar bar.

  • +
+ +

 

+ +
    + +
  • Orientation: + You can select Vertical or Horizontal orientation of the scalar + bar.  

  • +
+ +

 

+ +
    + +
  • Origin: + you can enter X & Y + coordinates of the origin of the scalar bar.

  • +
+ +

 

+ +
    + +
  •  Dimensions: + you can enter Width and Height of the scalar bar.

  • +
+ +

 

+ +
    + +
  • Save + as default values check box allows to save this parameters for + all presentations, which will be constructed later.

  • +
+ +

 

+ +
    + +
  • Text properties button allows you to define from the following + dialog box:

  • +
+ +

 

+ +

+ +

 

+ +
    + +
  • Title + of the field, on the basis of which this presentation is created,

  • + +
  • Font + properties of the Title, + displayed in the Viewer

  • + +
  • Font + properties of the Labels, + displayed in the Viewer.  

  • +
+ +

 

+ +

After you have finished with setting these + parameters, click OK. Your presentation + with scalar bar will be immediately displayed in the viewer:

+ +

 

+ +

                        

+ +

 

+ +

+Related Topics + + +

+ +

 

+ +

 

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/scaling_presentations.htm b/doc/salome/gui/VISU/files/scaling_presentations.htm new file mode 100755 index 00000000..a2139396 --- /dev/null +++ b/doc/salome/gui/VISU/files/scaling_presentations.htm @@ -0,0 +1,150 @@ + + + + + +Scaling presentations + + + + + + + + + + + + + +

Translate Presentation

+ +

In SALOME + there is a feature allowing to translate presentations of submeshes and + field presentations along axes (X, Y, Z).

+ +

 

+ +

To translate a presentation right-click on it in the Object Browser + or 3D Viewer and select Translate Presentation. +

+ +

 

+ +

              

+ +

 

+ +

The presentation will be moved by the specified + distance along axes.

+ +

To cancel all changes, click Reset + button.

+ +

 

+ +

3. Click Apply + button, to apply your scaling on the chosen presentation.

+ +

 

+ +

4. + To confirm all actions and quit Translate + Presentation dialog + box, click OK. +   

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/setting_properties_of_xy_plots.htm b/doc/salome/gui/VISU/files/setting_properties_of_xy_plots.htm new file mode 100755 index 00000000..567b6fc0 --- /dev/null +++ b/doc/salome/gui/VISU/files/setting_properties_of_xy_plots.htm @@ -0,0 +1,176 @@ + + + + + +Setting properties of XY plots + + + + + + + + + + + + + +

Setting properties of XY plots

+ +

To define properties of XY plots:

+ +

 

+ +

Right-click on the background of the Plot + 2d viewer. The following menu will appear:

+ +

+ +

 

+ +

Erase all + - hides all previously displayed curves from the viewer.

+ +

Rename + - allows to rename the object currently selected in the Object Browser + (table, curve or XY plot).

+ +

 

+ +

Scaling + gives you the possibility to select the scale (logarithmic or linear) + for both axes

+ +

 

+ +

+ +

 

+ +

via Fit + Range option you can access to the following menu

+ +

 

+ +

+ +

 

+ +

Curve Type + gives you the possibility to select the type for your curves.

+ +

 

+ +

+ +

 

+ +

Show Legend + triggers all labels on the graph.

+ +

 

+ +

Settings + menu allows to adjust the representation of the graphs in the Plot + 2d viewer

+ +

 

+ +

Dump View + - allows to save the current graph represented in the 2D viewer in a graphic + file.

+ +

 

+ +

+ +

 

+ +

Change Background + - allows to change the background of the 2D viewer.

+ + + + diff --git a/doc/salome/gui/VISU/files/shrink.htm b/doc/salome/gui/VISU/files/shrink.htm new file mode 100755 index 00000000..c495f4a8 --- /dev/null +++ b/doc/salome/gui/VISU/files/shrink.htm @@ -0,0 +1,86 @@ + + + + + +Shrink + + + + + + + + + + + + +

+ + + + diff --git a/doc/salome/gui/VISU/files/stream_lines_presentation.htm b/doc/salome/gui/VISU/files/stream_lines_presentation.htm new file mode 100755 index 00000000..42a205e2 --- /dev/null +++ b/doc/salome/gui/VISU/files/stream_lines_presentation.htm @@ -0,0 +1,253 @@ + + + + + +Stream Lines presentation + + + + + + + + + + + + + +

Stream Lines presentation

+ +

Stream Lines is a type of presentation transforming + the cells with vectors having most similar direction into lines . A streamline + can be thought of as the path that a massless particle takes in a vector + field. Streamlines are used to convey the structure of a vector field. + Usually streamlines are created to explore the most interesting features + in the field.

+ +

Creating streamlines + requires specifying multiple parameters including starting + points of streamlines, direction + and other parameters to control the propagation + of the streamlines.

+ +

 In + Post-Pro there is an option allowing + to specify one particular area + of the field on which the Stream Lines + presentation will be created. This option has been created for optimization + purposes: sometimes generation of a Stream Lines presentation based on + all points of a very complicated field is very time-consuming and requires + a lot of hardware resources.

+ +

To bound the area on which the Stream + Lines presentation will be created. you can use another field presentation. + The points of the field located on this source presentation will serve + as starting points for generated streamlines.  

+ +

 

+ +

To + create a Stream Lines presentation:

+ +

 

+ +

- Right-click on one + of the time stamps of the field in the Object browser and from the pop-up + menu choose Stream Lines, or

+ +

- Click on one of the + time stamps of the field in the Object browser and select from the main + menu Visualization > Stream Lines, + or click icon in + the Visualization Toolbar.

+ +

 

+ +

+ +

 

+ +

Stream + Lines tab allows you to set additional parameters of your + Stream Lines presentation:

+ +

 

+ +
    + +
  • Source: This set of fields allows to + define a source presentation on the basis of which your Stream + Lines presentation will be generated. If in the Source + type choose box you have chosen None, + your Stream Lines presentation will be generated on all points of the + field. You can also choose Entity, Family, + Group or Presentation. You + can also specify the source presentation (from the list of already created + field presentations). The points of the field located on this source presentation + will serve as starting points for generated streamlines.

  • + +
  • In + the Used points field you can + set the number of these starting points (from 0 to 100%).

  • + +
  • Step Length: this parameter defines + the size of the output line segments that make up the streamline (which + is represented as a polyline).

  • + +
  • Integration Step field: parameter of + smoothness of the stream lines. This parameter defines the accuracy of + construction of the streamlines. A smaller value of this parameter allows + to construct smoother streamlines (at the cost of more computation time).

  • + +
  • Propagation Time field: this parameter + controls the maximum length of the stream line (measured in units of time)

  • + +
  • Direction choose + box: this option allows to select direction of the stream lines.(Forward, + Backward or Both)

  • + +
  • Magnitude coloring check box: this option + allows to color your presentation according the vector values applied + to the cells of the mesh or to display it using only one color (this color + can be selected if you click Use Color + button).

  • +
+ +

 

+ +

Scalar Bar tab allows to define + the parameters of the scalar bar displayed with this presentation (see also).

+ +

 

+ +

After + you have finished with setting these parameters, click OK. + Your presentation with scalar bar will be immediately displayed + in the viewer:

+ +

 

+ +

     

+ +

 

+ +

 

+ +

+Related Topics + + +

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/surface.htm b/doc/salome/gui/VISU/files/surface.htm new file mode 100755 index 00000000..aa79d4d4 --- /dev/null +++ b/doc/salome/gui/VISU/files/surface.htm @@ -0,0 +1,86 @@ + + + + + +Surface + + + + + + + + + + + + +

+ + + + diff --git a/doc/salome/gui/VISU/files/surfaceframe.htm b/doc/salome/gui/VISU/files/surfaceframe.htm new file mode 100755 index 00000000..bcfbd6d1 --- /dev/null +++ b/doc/salome/gui/VISU/files/surfaceframe.htm @@ -0,0 +1,86 @@ + + + + + +Surfaceframe + + + + + + + + + + + + +

+ + + + diff --git a/doc/salome/gui/VISU/files/sweeping.htm b/doc/salome/gui/VISU/files/sweeping.htm new file mode 100755 index 00000000..4bde6790 --- /dev/null +++ b/doc/salome/gui/VISU/files/sweeping.htm @@ -0,0 +1,162 @@ + + + + + +Sweeping + + + + + + + + + + + + + +

Sweeping

+ +

In Post-Pro there is an option allowing + to display pseudo-animation of a field presentation. For creation of this + pseudo-animation you should take one field presentation generated on the + base of ONE Time Step (for comparison, + Animation  is + generated on the base of ALL Time + Steps of a field). The frame displaying this field presentation will be + the basic. Post-Pro + automatically generates another frame displaying the initial + field presentation, which is composed of cells with minimum + acceptable values regarding the values applied to the cells of the basic presentation. It also automatically + generates a user-defined number of frames (steps), + which will display the process of transformation of the field presentation + from the initial state in the basic state. +  Sweeping + is a type of animation composed of these frames: the frame displaying + the initial field presentation + will start the animation, the frame displaying the basic + field presentation will end it.

+ +

 

+ +

To sweep + a field presentation:

+ +

 

+ +

1. Create + a field presentation.

+ +

 

+ +

2. Right-click on this + presentation in the Object Browser or in the viewer.

+ +

 

+ +

3. From the pop-up menu + select Sweep option.

+ +

 

+ +

+Related Topics + + +

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/vectors_presentation.htm b/doc/salome/gui/VISU/files/vectors_presentation.htm new file mode 100755 index 00000000..3862f649 --- /dev/null +++ b/doc/salome/gui/VISU/files/vectors_presentation.htm @@ -0,0 +1,216 @@ + + + + + +Vectors presentation + + + + + + + + + + + + + +

Vectors Presentation

+ +

Vector Field  presentation + visualizes vectors of the corresponding cells of the mesh in graphical + mode.

+ +

 

+ +

To create a Vector  presentation:

+ +

 

+ +

- Right-click on one of the time stamps of + the field in the Object browser and from the pop-up menu choose Vectors, or

+ +

 

+ +

- Click on one of the time stamps of the field + in the Object browser and select from the main menu Visualization + > Vectors, or click icon + in the Visualization Toolbar.

+ +

 

+ +

+ +

 

+ +
    + +
  • Vectors tab + allows you to set additional parameters of your Vectors presentation:

  • +
+ +

 

+ +
    + +
  • Scale + Factor: visualization scaling of all vector values applied to the + cells of the mesh.

  • + +
  • Line + width: width of the lines representing vectors in your presentation.

  • + +
  • Magnitude + coloring check box: this option allows to color your presentation + according the scalar + range defined in Scalar Bar properties or to display it using only + one color (this color can be selected if you click Select + Color button).

  • + +
  • Use + glyphs check box: this option allows you to visualize vectors with + pointers and select their type + and position on the line of the + vectors. You can choose Glyph Type (Arrows, + big or small Cones) and Glyph + Position (at the Tail, at the + Head or in the Center).

  • +
+ +

 

+ +
    + +
  • Scalar + Bar tab allows to define the parameters of the scalar bar displayed + with this presentation (see + also).

  • +
+ +

 

+ +

After + you have finished with setting these parameters, click OK. + Your presentation with scalar bar will be immediately displayed + in the viewer:

+ +

 

+ +

          

+ +

 

+ +

 

+ +

+Related Topics + + +

+ +

 

+ + + + diff --git a/doc/salome/gui/VISU/files/wireframe.htm b/doc/salome/gui/VISU/files/wireframe.htm new file mode 100755 index 00000000..45cf670a --- /dev/null +++ b/doc/salome/gui/VISU/files/wireframe.htm @@ -0,0 +1,86 @@ + + + + + +Wireframe + + + + + + + + + + + + +

+ + + + diff --git a/doc/salome/gui/VISU/images/activebar1.png b/doc/salome/gui/VISU/images/activebar1.png deleted file mode 100755 index 7f5cb708..00000000 Binary files a/doc/salome/gui/VISU/images/activebar1.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/activebar2.png b/doc/salome/gui/VISU/images/activebar2.png deleted file mode 100755 index f87adc21..00000000 Binary files a/doc/salome/gui/VISU/images/activebar2.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/clipping3.png b/doc/salome/gui/VISU/images/clipping3.png deleted file mode 100755 index 2c314624..00000000 Binary files a/doc/salome/gui/VISU/images/clipping3.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/clipping4.png b/doc/salome/gui/VISU/images/clipping4.png deleted file mode 100755 index 42dcc1cc..00000000 Binary files a/doc/salome/gui/VISU/images/clipping4.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/clipping5.png b/doc/salome/gui/VISU/images/clipping5.png deleted file mode 100755 index c4ce0f94..00000000 Binary files a/doc/salome/gui/VISU/images/clipping5.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/deformed_shape.png b/doc/salome/gui/VISU/images/deformed_shape.png deleted file mode 100755 index 58f7ee6e..00000000 Binary files a/doc/salome/gui/VISU/images/deformed_shape.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/distributionbar.png b/doc/salome/gui/VISU/images/distributionbar.png deleted file mode 100755 index ad772591..00000000 Binary files a/doc/salome/gui/VISU/images/distributionbar.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/editplot3dpresentation.png b/doc/salome/gui/VISU/images/editplot3dpresentation.png deleted file mode 100755 index 0c78624e..00000000 Binary files a/doc/salome/gui/VISU/images/editplot3dpresentation.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/exportmedfile.png b/doc/salome/gui/VISU/images/exportmedfile.png deleted file mode 100644 index c2fc56fd..00000000 Binary files a/doc/salome/gui/VISU/images/exportmedfile.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/featureedges.png b/doc/salome/gui/VISU/images/featureedges.png deleted file mode 100755 index 47cde493..00000000 Binary files a/doc/salome/gui/VISU/images/featureedges.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/gauss_points.png b/doc/salome/gui/VISU/images/gauss_points.png deleted file mode 100755 index 9641fa09..00000000 Binary files a/doc/salome/gui/VISU/images/gauss_points.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/header_salome.png b/doc/salome/gui/VISU/images/header_salome.png deleted file mode 100755 index 8dbdbb2d..00000000 Binary files a/doc/salome/gui/VISU/images/header_salome.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/header_visu.png b/doc/salome/gui/VISU/images/header_visu.png deleted file mode 100755 index 8a190ddf..00000000 Binary files a/doc/salome/gui/VISU/images/header_visu.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/image36.gif b/doc/salome/gui/VISU/images/image36.gif deleted file mode 100755 index 84d5e16a..00000000 Binary files a/doc/salome/gui/VISU/images/image36.gif and /dev/null differ diff --git a/doc/salome/gui/VISU/images/introduction.png b/doc/salome/gui/VISU/images/introduction.png deleted file mode 100755 index 85ea8486..00000000 Binary files a/doc/salome/gui/VISU/images/introduction.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/labeling_parameters.png b/doc/salome/gui/VISU/images/labeling_parameters.png deleted file mode 100644 index 58ae411f..00000000 Binary files a/doc/salome/gui/VISU/images/labeling_parameters.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/perspective1.png b/doc/salome/gui/VISU/images/perspective1.png deleted file mode 100755 index fff1f737..00000000 Binary files a/doc/salome/gui/VISU/images/perspective1.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/perspective2.png b/doc/salome/gui/VISU/images/perspective2.png deleted file mode 100755 index c9685e77..00000000 Binary files a/doc/salome/gui/VISU/images/perspective2.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/perspective3.png b/doc/salome/gui/VISU/images/perspective3.png deleted file mode 100755 index 6e270d5f..00000000 Binary files a/doc/salome/gui/VISU/images/perspective3.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/perspective4.png b/doc/salome/gui/VISU/images/perspective4.png deleted file mode 100755 index 2d759d2c..00000000 Binary files a/doc/salome/gui/VISU/images/perspective4.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/perspective5.png b/doc/salome/gui/VISU/images/perspective5.png deleted file mode 100755 index c8e47327..00000000 Binary files a/doc/salome/gui/VISU/images/perspective5.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/perspective6.png b/doc/salome/gui/VISU/images/perspective6.png deleted file mode 100755 index 45fe5c39..00000000 Binary files a/doc/salome/gui/VISU/images/perspective6.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/presentation1.png b/doc/salome/gui/VISU/images/presentation1.png deleted file mode 100755 index b94ae192..00000000 Binary files a/doc/salome/gui/VISU/images/presentation1.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/scalar_map_and_deformed_shapes.png b/doc/salome/gui/VISU/images/scalar_map_and_deformed_shapes.png deleted file mode 100755 index c6fa34f4..00000000 Binary files a/doc/salome/gui/VISU/images/scalar_map_and_deformed_shapes.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/scalar_map_on_cells.png b/doc/salome/gui/VISU/images/scalar_map_on_cells.png deleted file mode 100755 index 9cf7eb62..00000000 Binary files a/doc/salome/gui/VISU/images/scalar_map_on_cells.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/scalar_map_on_points.png b/doc/salome/gui/VISU/images/scalar_map_on_points.png deleted file mode 100755 index fee321f9..00000000 Binary files a/doc/salome/gui/VISU/images/scalar_map_on_points.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/selection1.png b/doc/salome/gui/VISU/images/selection1.png deleted file mode 100755 index 87393086..00000000 Binary files a/doc/salome/gui/VISU/images/selection1.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/selection2.png b/doc/salome/gui/VISU/images/selection2.png deleted file mode 100755 index 4c7d5558..00000000 Binary files a/doc/salome/gui/VISU/images/selection2.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/selection3.png b/doc/salome/gui/VISU/images/selection3.png deleted file mode 100755 index 9ac6c09e..00000000 Binary files a/doc/salome/gui/VISU/images/selection3.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/selection4.png b/doc/salome/gui/VISU/images/selection4.png deleted file mode 100755 index b6d7688c..00000000 Binary files a/doc/salome/gui/VISU/images/selection4.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/selection5.png b/doc/salome/gui/VISU/images/selection5.png deleted file mode 100755 index 81206af9..00000000 Binary files a/doc/salome/gui/VISU/images/selection5.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/selection6.png b/doc/salome/gui/VISU/images/selection6.png deleted file mode 100755 index 933c2d73..00000000 Binary files a/doc/salome/gui/VISU/images/selection6.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/selection7.png b/doc/salome/gui/VISU/images/selection7.png deleted file mode 100755 index c24b4813..00000000 Binary files a/doc/salome/gui/VISU/images/selection7.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/selection8.png b/doc/salome/gui/VISU/images/selection8.png deleted file mode 100755 index eb2e12ef..00000000 Binary files a/doc/salome/gui/VISU/images/selection8.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/slider1.png b/doc/salome/gui/VISU/images/slider1.png deleted file mode 100755 index 4b3e1a7c..00000000 Binary files a/doc/salome/gui/VISU/images/slider1.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/slider2.png b/doc/salome/gui/VISU/images/slider2.png deleted file mode 100755 index 3616cb3f..00000000 Binary files a/doc/salome/gui/VISU/images/slider2.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/startrecording.png b/doc/salome/gui/VISU/images/startrecording.png deleted file mode 100755 index 880eb55c..00000000 Binary files a/doc/salome/gui/VISU/images/startrecording.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/stream_lines.png b/doc/salome/gui/VISU/images/stream_lines.png deleted file mode 100755 index 2d239ca7..00000000 Binary files a/doc/salome/gui/VISU/images/stream_lines.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/sweep1.png b/doc/salome/gui/VISU/images/sweep1.png deleted file mode 100755 index 8c2e8641..00000000 Binary files a/doc/salome/gui/VISU/images/sweep1.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/sweep2.png b/doc/salome/gui/VISU/images/sweep2.png deleted file mode 100755 index 7b9c3f58..00000000 Binary files a/doc/salome/gui/VISU/images/sweep2.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/table.png b/doc/salome/gui/VISU/images/table.png deleted file mode 100644 index 7a7d2ce0..00000000 Binary files a/doc/salome/gui/VISU/images/table.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/table3d.png b/doc/salome/gui/VISU/images/table3d.png deleted file mode 100644 index b285a164..00000000 Binary files a/doc/salome/gui/VISU/images/table3d.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/tablesn1.png b/doc/salome/gui/VISU/images/tablesn1.png deleted file mode 100644 index 4db643e3..00000000 Binary files a/doc/salome/gui/VISU/images/tablesn1.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/tablesn2.png b/doc/salome/gui/VISU/images/tablesn2.png deleted file mode 100644 index 4b3b85d1..00000000 Binary files a/doc/salome/gui/VISU/images/tablesn2.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/values_labeling.png b/doc/salome/gui/VISU/images/values_labeling.png deleted file mode 100644 index 056b1f12..00000000 Binary files a/doc/salome/gui/VISU/images/values_labeling.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/vectors.png b/doc/salome/gui/VISU/images/vectors.png deleted file mode 100755 index 156628d4..00000000 Binary files a/doc/salome/gui/VISU/images/vectors.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/viewing1.png b/doc/salome/gui/VISU/images/viewing1.png deleted file mode 100755 index 4a5450b8..00000000 Binary files a/doc/salome/gui/VISU/images/viewing1.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/viewing10.png b/doc/salome/gui/VISU/images/viewing10.png deleted file mode 100755 index 52d4ac2e..00000000 Binary files a/doc/salome/gui/VISU/images/viewing10.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/viewing11.png b/doc/salome/gui/VISU/images/viewing11.png deleted file mode 100755 index 957319eb..00000000 Binary files a/doc/salome/gui/VISU/images/viewing11.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/viewing12.png b/doc/salome/gui/VISU/images/viewing12.png deleted file mode 100755 index b0ead38c..00000000 Binary files a/doc/salome/gui/VISU/images/viewing12.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/viewing13.png b/doc/salome/gui/VISU/images/viewing13.png deleted file mode 100755 index 76bd8d54..00000000 Binary files a/doc/salome/gui/VISU/images/viewing13.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/viewing14.png b/doc/salome/gui/VISU/images/viewing14.png deleted file mode 100755 index 0922b98c..00000000 Binary files a/doc/salome/gui/VISU/images/viewing14.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/viewing2.png b/doc/salome/gui/VISU/images/viewing2.png deleted file mode 100755 index 4426d1d6..00000000 Binary files a/doc/salome/gui/VISU/images/viewing2.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/viewing3.png b/doc/salome/gui/VISU/images/viewing3.png deleted file mode 100755 index e237f85a..00000000 Binary files a/doc/salome/gui/VISU/images/viewing3.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/viewing4.png b/doc/salome/gui/VISU/images/viewing4.png deleted file mode 100755 index b32a9f56..00000000 Binary files a/doc/salome/gui/VISU/images/viewing4.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/viewing5.png b/doc/salome/gui/VISU/images/viewing5.png deleted file mode 100755 index 51d36b19..00000000 Binary files a/doc/salome/gui/VISU/images/viewing5.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/viewing6.png b/doc/salome/gui/VISU/images/viewing6.png deleted file mode 100755 index 70fd9a54..00000000 Binary files a/doc/salome/gui/VISU/images/viewing6.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/viewing7.png b/doc/salome/gui/VISU/images/viewing7.png deleted file mode 100755 index 43c6ab09..00000000 Binary files a/doc/salome/gui/VISU/images/viewing7.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/viewing8.png b/doc/salome/gui/VISU/images/viewing8.png deleted file mode 100755 index 21ee2344..00000000 Binary files a/doc/salome/gui/VISU/images/viewing8.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/viewing9.png b/doc/salome/gui/VISU/images/viewing9.png deleted file mode 100755 index 74d85b3b..00000000 Binary files a/doc/salome/gui/VISU/images/viewing9.png and /dev/null differ diff --git a/doc/salome/gui/VISU/images/visuicon.png b/doc/salome/gui/VISU/images/visuicon.png deleted file mode 100755 index 11e7e52d..00000000 Binary files a/doc/salome/gui/VISU/images/visuicon.png and /dev/null differ diff --git a/doc/salome/gui/VISU/input/3d_management.doc b/doc/salome/gui/VISU/input/3d_management.doc deleted file mode 100755 index 6705d8f2..00000000 --- a/doc/salome/gui/VISU/input/3d_management.doc +++ /dev/null @@ -1,53 +0,0 @@ -/*! - -\page a3d_management_page Managing 3D Presentations - -After the 3D presentation is created, it can be edited or submitted to -various post-processing operations. - -The operations connected with the presentation-handling in the VTK -Viewer and in the Object Browser via context menus are described in -\subpage viewing_3d_presentations_page "Viewing 3D presentations" section. - -Some more specific functionalities are available via dockable windows -accessed from the Main menu View -> Windows - -\image html presentation1.png - -
    -
  • Object Browser - hides and displays the Object browser -used for management of objects created or imported into Salome application
  • -
  • Python Console - hides and displays the Python console, -which is a window for Pytho0n interpreter.
  • -
  • \subpage slider_page - used for animation of presentations created on -all timestamps of a field.
  • -
  • \subpage sweeping_page "Sweep" - used for pseudo-animation of presentations created on -one timestamp of a field.
  • -
  • \subpage clipping_page "Clipping Planes" - allows to create cross-section of -the presentation.
  • -
  • \subpage selection_info_page "Selection" - allows to view the -attributes of elements displayed in the viewer.
  • -
  • \subpage feature_edges_page "Feature Edges" - allows to choose the -edges selectable for Feature Edges functionality.
  • -
- -Other important presentation management functionalities characteristic for Post-Pro -module are: -
    -
  • \subpage animating_page - another way of animation of -presentations on fields.
  • -
  • \subpage translate_presentation_page - displacement of -presentations in the viewer.
  • -
  • \subpage recording_page - allows to dump user actions in an AVI -file.
  • -
  • \subpage navigation_page - about advanced user operation modes in the -VTK viewer (using keyboard only, mouse only or spacemouse).
  • -
  • \subpage perspective_view_page and the possibility to set camera -position and focal point of the scene manually provide flexibility of -viewing the presentation.
  • -
- - - -*/ - diff --git a/doc/salome/gui/VISU/input/3d_presentations.doc b/doc/salome/gui/VISU/input/3d_presentations.doc deleted file mode 100755 index e5b70335..00000000 --- a/doc/salome/gui/VISU/input/3d_presentations.doc +++ /dev/null @@ -1,19 +0,0 @@ -/*! - -\page a3d_presentations_page 3D presentations - -\image html introduction.png "Example of a 3D presentation" - -\b Post Pro module provides several types of 3D presentations, -visualizing the structure of MED objects. All -presentations can be seen only in Salome VTK Viewer (ALT+K). -\n All presentation types could be divided in two main groups: -
    -
  • \subpage presentation_of_submesh_page "3D presentation on submesh" - can be created on a submesh.
  • -
  • \subpage field_presentations_page "3D presentations on fields" - can be created on fields and timestamps
  • -
- -Created presentations can be edited, animaded, recorded and viewed in -different modes. The whole range of such operations is described in \subpage 3d_management_page "Managment of presentations" section. - -*/ \ No newline at end of file diff --git a/doc/salome/gui/VISU/input/creating_plot2d.doc b/doc/salome/gui/VISU/input/creating_plot2d.doc deleted file mode 100755 index 1b2d275b..00000000 --- a/doc/salome/gui/VISU/input/creating_plot2d.doc +++ /dev/null @@ -1,60 +0,0 @@ -/*! - -\page creating_plot2d_page Creating Plot 2D Presentations - -\n To create a Plot 2D based on a definite curve: -
    -
  1. Select the Plot 2D Viewer: from the main menu choose Window > New -Window > Plot2d View.
  2. - -
  3. In the Object Browser right-click on this curve line and from the -pop-up menu select \b Display item.
  4. -
- -
To create a Plot 2D presentation based on several curves: -
    -
  1. Select Plot 2D Viewer: from the main menu choose Window > New -Window > Plot2d View
  2. - -
  3. In the Object Browser right-click on the \b Post-Pro object and -from the pop-up menu select Create Plot2D View.
  4. - -
  5. Right-click on the name of this container in the Object Browser -and select \b Edit item. The following dialog box will appear: - -\image html editplot2dpresentation.png - -This box contains two windows: -\par -– The left window displays a list of curve lines, which have been -created in the study. -\n\n – The right window displays a list of curve lines contained in -this particular container. These curves will be used for creation of the -XY plot. - -To move a definite curve line from the study into the container, -select it in the left window of this dialog box and click the button: - -\image html image15.gif - -To move a definite curve line from the container back into the study, -select it in the right window of this dialog box and click the button: - -\image html image16.gif - -After having chosen the curve lines, which will compose your XY plot, -click \b OK button to quit this dialog box. In the Object Browser the -references to the selected curve lines will be created under your -container. -
  6. - -
  7. Right-click on the name of the container in the Object Browser and -select \b Display button. A Plot 2D presentation consisting of the previously -selected curve lines, will be displayed in the viewer: - -\image html image12.gif - -
  8. -
- -*/ diff --git a/doc/salome/gui/VISU/input/feature_edges.doc b/doc/salome/gui/VISU/input/feature_edges.doc deleted file mode 100755 index 8f6a6d12..00000000 --- a/doc/salome/gui/VISU/input/feature_edges.doc +++ /dev/null @@ -1,24 +0,0 @@ -/*! - -\page feature_edges_page Feature Edges - -This functionality highlights the contour of the object. To apply it, -select the object in the VTK Viewer, right-click on it and choose in -the context menu Representation -> Feature edges. - -\image html viewing11.png - -To select, which contours should be highlighted, in the Main menu -choose View -> Windows -> Feature Edges - -\image html featureedges.png - -
    -
  • Feature edges angle - allows to define at which minimum -angle between two faces a wire is considered an edge.
  • -
  • Show feature edges - allows to display feature edges.
  • -
  • Show boundary edges - allows to display boundary edges.
  • -
  • Show manifold edges - allows to display manifold edges.
  • -
  • Show non-manifold edges - allows to display non-manifold edges.
  • -
-*/ diff --git a/doc/salome/gui/VISU/input/med_object.doc b/doc/salome/gui/VISU/input/med_object.doc deleted file mode 100755 index a6791f42..00000000 --- a/doc/salome/gui/VISU/input/med_object.doc +++ /dev/null @@ -1,91 +0,0 @@ -/*! - -\page med_object_page MED Objects - -\b MED \b Object is a specific twofold data structure -with consists of \b Mesh \b Data and \b Physical \b Data. - -\b Mesh \b Data includes geometrical information: list of nodes, edges, faces and cells -of the mesh, and information on the interpolation in accordance with resulting -elements, i.e. the mesh should be compatible with the chosen interpolation; -\b Physical \b Data contains initial and boundary conditions: scalar -or vector values applied to the mesh cells. - -\n It is not possible to create and edit \b MED \b Objects in the \b -Post-Pro module. You can only \subpage importing_med_objects_page -"import a MED object" from Salome MED module or from a MED file. - -\n \b MED Objects can be visualized and explored with various types of -\subpage a3d_presentations_page "3D presentations". - -\n \b Post-Pro visualization engine bases on VTK and OpenGL -technologies, which provide useful tools for -\subpage a3d_management_page "Management of presentations". - -As it can be seen, the description of a MED Object is written in a tree-like form, -containing three main folders: \ref families_anchor "Families", -\ref groups_anchor "Groups", and \ref fields_anchor "Fields". - -\image html snapfgf.png - -
-\anchor families_anchor -

Families

- -A \b Family is a user-defined submesh composed of cells of a -definite type - Nodes, Edges, Faces or Cells. The -presentation created on the basis of a particular \b family will be -composed of geometrical elements, corresponding to the type of cells -of this \b family. - -
- - - - - - - - - - - - - - - - - - - - - -
Type of cells (entities) of the familyGeometrical element
NodesPoints
EdgesSegments
FacesTriangles, quadrangles
CellsAny
-Table of correspondence -
- -In the \b Families folder all families of the mesh are put into subfolders defining the type of cells of the mesh: \b onNodes, -\b onEdges, \b onFaces, \b onCells. -\n The subfolders also represent submeshes of the mesh, which are -composed of all cells of the mesh of this type. - -
-\anchor groups_anchor -

Groups

- -\b Groups combine families independently on the type of -cells, of which they are composed. - -
-\anchor fields_anchor -

Fields

- -\b Fields represent the results of calculations (scalar or vector -values), grouped under one physical concept. -\n These values are applied to the cells of a definite submesh, which -is indicated in the Object Browser in the subfolder of the \b field. -\n Most often the calculations are performed during some period of -time. That's why \b fields include Time Stamps, representing -the results of calculations in one definite moment. - -*/ diff --git a/doc/salome/gui/VISU/input/navigation.doc b/doc/salome/gui/VISU/input/navigation.doc deleted file mode 100755 index d6e01a92..00000000 --- a/doc/salome/gui/VISU/input/navigation.doc +++ /dev/null @@ -1,193 +0,0 @@ -/*! - -\page navigation_page Navigation in the VTK viewer - -\n VTK viewer in Post-pro module provides two ways of user style -navigation modes: \b Standard and \b Advanced. Switching between them -is allowed with Interaction Style Switch button from Viewer Toolbar: - -

Navigation using the mouse

- -

Standard

user interaction style supports processing of mouse -and keyboard events with the following assignments: - - - - - - - - - - - - - - - - - - - - -
Action
Command
Movement
Dynamic rotation
[CTRL] key + Right Mouse Button
\image html image46.gif -
Rotation about the focal point
-
Dynamic panning
[CTRL] key + Central Mouse button
\image html image47.gif -
Translation in any direction
-
Dynamic zoom
[CTRL] key + Left Mouse Button
\image html image48.gif -
Increase or decrease of zoom ratio
-
- -

Advanced or "keyboard free"

style makes it possible to manipulate objects without -keyboard keys, - - - - - - - - - - - - - - - - - - - - -
Action
Command
Movement
Dynamic rotation
Right Mouse Button
\image html image46.gif -
Rotation about the focal point
-
Dynamic panning
Central Mouse button
\image html image47.gif -
Translation in any direction
-
Dynamic zoom
Left Mouse Button + Central Mouse button
\image html image49.gif -
Increase or decrease of zoom ratio
-
- -\ref selection_info_page also depends on the user interaction -style. With the \b Standard style Selection is activated by pressing -left mouse button, while with the \b Advanced style selection is done -by pressing \b S key. - -It is possible to customize the sencibility of each view operation -(rotation, panning and zooming) by pressing \b + or \b - keys to -increase or decrease the speed. - - - -

Navigation using the keyboard

- -VTK viewer also allows to manipulate objects using keyboard keys. - - - - - - - - - - - - - - - - - - - - - - - - - -
Action
Key
Movement
Dynamic rotation
[CTRL] key + \n Left Arrow, Right Arrow , \n Up Arrow, Down Arrow
\image html image46.gif -
Rotation about the focal point
-
Dynamic panning
Left Arrow, Right Arrow, \n Up Arrow, Down Arrow
\image html image47.gif -
Translation in any direction
-
Dynamic zoom
[PageUp], \n [PageDn]
Increase or decrease of zoom ratio
Speed increment
[ + ], \n [ - ]
Increase or decrease by 1 of the speed increment for the previously defined movement.
- -

Navigation using the spacemouse

- -VTK viewer also allows to manipulate objects using a spacemouse. - -The spacemouse introduces a local coordinate system and 6 degrees of -freedom, which are independent from the 3D view coordinate system. - -\image html image50.gif - -The movement of 3D models in the screen depends on the user -manipulations with the controller head. - - - - - - - - - - - - - - - - - - - - - - - - - -
Action
Move
Description
Dynamic rotation \n about axis X\image html image51.gif
Tilt the controller head forward and backward to rotate the object about axis X.
Dynamic rotation \n about axis Y\image html image52.gif
Rotate the controller head clockwise and counterclockwise to rotate the model about axis Y.
-
Dynamic panning\image html image53.gif
Pull up and push down to move the model up and down. -\n Move left and right to move the model left and right.
-
Dynamic zoom\image html image54.gif
Push forward or pull backward to respectively decrease or increase the zoom ratio.
-
- -Buttons of the spacemouse are also used to change the magnification -for Gauss points: - -\image html image55.gif - -By default, buttons are defined as follows, however the user can -change them in the preferences: - - - - - - - - - - - - - - - - - - - - - - - - - - -
Button
Description
Button 1
Decrease by 1 speed increment used for the keyboard (the same as [-] key)
Button 2
Increase by 1 speed increment used for the keyboard (the same as [+] key)
Button 10
Divide the current magnification by the magnification ratio
Button 11
Multiply the current magnification by the magnification ratio
Button Star
Toggle button to switch to dominant or combined movements
- -*/ \ No newline at end of file diff --git a/doc/salome/gui/VISU/input/perspective_view.doc b/doc/salome/gui/VISU/input/perspective_view.doc deleted file mode 100755 index 40a4f0c2..00000000 --- a/doc/salome/gui/VISU/input/perspective_view.doc +++ /dev/null @@ -1,53 +0,0 @@ -/*! - -\page perspective_view_page Orthogonal and Perspective view modes - -3D objects in orthogonal projection sometimes look as if they were 2D. -Perspective projection mode makes presentations look more realistic. - -It is possible to switch between two modes using VTK viewer toolbar -buttons: - -\image html perspective1.png "Perspective mode button" - -\image html perspective2.png "Orthogonal mode button" - -For example, look at the box in both views. - -\image html perspective3.png "Box in perspective mode" - -\image html perspective4.png "Box in orthogonal mode" - -Further than that, it is possible to exercise full control of the presentation of a 3D -scene by modification of camera attributes. - -To understand how the scene is built, see this picture. - -\image html image36.gif - -
    -
  • Camera position defines the location of the camera.
  • -
  • Focal point defines the point where the camera is -aimed.
  • -
  • View up defines the camera orientation.
  • -
- -To change camera attributes, click Change View Parameters -button in the VTK viewer toolbar. - -\image html perspective5.png - -The following dialog will appear: - -\image html perspective6.png - -
    -
  • Focal point - can be set in the center of the bounding box -of all displayed objects, or in the origin of coordinates, or defined -by the user.
  • -
  • Camera position - can be defined by the absolute coordinates or by the coordinates relative to the focal point.
  • -
  • View up defines the vector of camera orientation.
  • -
  • \b Zooming in Orthogonal mode is defined by \b Scale factor, in -\b Perspective mode is defined by View angle.
  • -
-*/ \ No newline at end of file diff --git a/doc/salome/gui/VISU/input/recording.doc b/doc/salome/gui/VISU/input/recording.doc deleted file mode 100755 index 3d3516ec..00000000 --- a/doc/salome/gui/VISU/input/recording.doc +++ /dev/null @@ -1,72 +0,0 @@ -/*! - -\page recording_page Recording - -\n In the addition to the \ref animating_page "Animation" and -\ref sweeping_page "Sweeping" on timestamps Post-Pro module provides a possibility of recording AVI clips of user actions. This -functionality is available at any time for all contents of the VTK Viewer. - -To start the video recording session, click "Start" -button. You will see a standard dialog box allowing to input the file -name for the AVI clip and browse for the location. - -\image html startrecording.png -
"Start" button
- -\image html recordingsaveas.png - -Then you'll be asked to define Recording Properties: - -\image html recording.png - -- \b Settings: -
    -
  • Save to file - you can change the name of the file you've -chosen for saving.
  • -
  • \b Mode - allows to choose from two recording regimes:
  • -
      -
    • Recording all displayed frames - records exactly at the FPS -rate specified by the user.
    • -
    • Recording at a given FPS - records only when the contents -of the viewer change (some activity is performed). In the AVI file -non-recorded images are substituted with the copies of the latest -recorded image, which produces files with lower quality but requires -less system resources.
    • -
    -
  • \b FPS - allows to define the FPS (frames per second) rate for the -clip. Set greater value for better quality.
  • -
  • \b Quality - allows to set the quality of the clip in the interval -between 0 and 100.
  • -
  • \b Progressive - allows to record a progressive API file.
  • -
- -After you click \b OK, the recording will start and all your actions -in the viewer will be recorded. -\n Note that if you change the size of the 3D viewer window, the avi -file would be corrupt. - -Press \b Stop button to finish video recording or \b Pause button to -suspend it. If the recording is just paused, you can always continue -it by clicking \b Play button. - -\image html image105.gif -
"Stop" button
- -\image html image104.gif -
"Pause" button
- -\image html image103.gif -
"Play" button
- -\note This functionality works only if there is \b jpeg2yuv utility -installed on your computer. If this third-party product is missing, -the \b Recording buttons will be disabled. This utility is a part of -\b mjpegtool package, which can be downloaded from -http://mjpeg.sourceforge.net/. Run "which jpeg2yuv" to check whether -this tool has been installed and the path to it was properly added to -your PATH variable. If not, you need to activate \b mjpegtools -indicating its location in the variable PATH. The syntax of the -command should be as follows: export -PATH=${INSTALL_ROOT}/mjpegtools-1.8.0/bin:${PATH}. - -*/ \ No newline at end of file diff --git a/doc/salome/gui/VISU/input/scalar_map_on_deformed_shape.doc b/doc/salome/gui/VISU/input/scalar_map_on_deformed_shape.doc deleted file mode 100755 index f5fac0df..00000000 --- a/doc/salome/gui/VISU/input/scalar_map_on_deformed_shape.doc +++ /dev/null @@ -1,48 +0,0 @@ -/*! - -\page scalar_map_on_deformed_shape_page Deformed Shape and Scalar Map presentation - -\image html scalar_map_and_deformed_shapes.png "Example of Deformed Shape and Scalar Map presentation" - -\n Deformed Shape and Scalar Map presentation is a mix of the -two: \ref scalar_map_page "Scalar Map" and \ref deformed_shape_page -"Deformed Shape". In this presentation the Scalar Map is built on a -Deformed Shape. - -To create a Deformed Shape and Scalar Map presentation: -\par -– Right-click on one of the time stamps of the field in the -Object browser and from the pop-up menu choose Deformed Shape and -Scalar Map, or -\n – Click on one of the time stamps of the field in the Object -browser and select from the main menu Visualization > Deformed Shape and -Scalar Map, or click "Deformed Shape and Scalar Map" -icon in the Visualization Toolbar. - -\image html image40.gif -
"Deformed Shape and Scalar Map" icon
- -\image html smds1.png - -\par -Deformed Shape and Scalar Map tab allows you to set additional -parameters of your Deformed Shape and Scalar Map presentation: -
    -
  • Scale Factor: visualization scaling of all vector values -applied to the cells of the mesh.
  • -
  • Fields: allows to choose type of fields on which the -presentation will be built.
  • -
  • Time Stamp: allows to choose the time stamp on which the -presentation will be built.
  • -
-Scalar Bar tab allows to define the parameters of the scalar -bar displayed with this presentation (\ref scalar_map_page "see also"). - -After you have finished with setting these parameters, click \b -OK. Your presentation will be immediately displayed in the viewer. - -You can compire result presentation with \ref scalar_map_page "Scalar Map" presentation - -\image html scalar_map_on_cells.png "Example of Scalar Map presentation" - -*/ \ No newline at end of file diff --git a/doc/salome/gui/VISU/input/slider.doc b/doc/salome/gui/VISU/input/slider.doc deleted file mode 100755 index defecd8f..00000000 --- a/doc/salome/gui/VISU/input/slider.doc +++ /dev/null @@ -1,52 +0,0 @@ -/*! - -\page slider_page Slider - -\n \b Slider allows animating Post-Pro field presentations in the -most simple and efficient way. The presentations compatible with this -functionality can be synchronized (in terms of timestamps) and moved -along the time axis to reproduce the corresponding physical process. - -\b Slider also provides memory management possibilities, which allow the -user to define a suitable compromise between the available computer -resources and the navigation performance. - -\n \ref animating_page is an earlier implementation of the same -functionality. However, it provides some extended possibilities, such -as saving presentations into AVI files. - -To activate \b Slider, in the Main menu select View -> Windows -> -Slider - -\image html slider1.png - -\b Navigation tab provides possibilities for managing and running -the animation: -
    -
  • The scroll bar allows to navigate through the -timestamps. The values of the first and the last timestamps are -displayed.
  • -
  • The control buttons allow to launch or to end the sweeping, run it forward or backward, -move to the next or the previous frame.
  • -
  • The drop-down field to the left lists the timestamps by their order -numbers from 1 to n.
  • -
  • The drop-down field to the right lists the values -of the timestamps.
  • -
  • Cycled button allows to view the animation in the loop.
  • -
- -\image html slider2.png - -\b Properties tab allows setting memory management properties. -
    -
  • \b Minimal radio button commands the application to use a minimum -amount of memory
  • -
  • \b Limited radio button allows to set the upper limit for the -amount of used memory.
  • -
  • \b Used and \b Free fields allow to set target values for used -and free memory.
  • -
  • \b Speed scroll allows to set the speed of the presentation.
  • -
      - - -*/ \ No newline at end of file diff --git a/doc/salome/gui/VISU/input/table_3d.doc b/doc/salome/gui/VISU/input/table_3d.doc deleted file mode 100644 index d389feed..00000000 --- a/doc/salome/gui/VISU/input/table_3d.doc +++ /dev/null @@ -1,50 +0,0 @@ -/*! - -\page table_3d_page Table 3D presentation - -\n Table 3D is a 3D graphic presentation of data contained in the table. -The relief and coloring of the resulting -presentation both correspond to the values contained in the table. The values from the first column of the -table define X-axis. The values from the second to the last columns define Z-axis. -Y increases with a fixed step starting from Y=0. -To successfully produce a Table 3D presentation, the table should not contain empty fields. - -To create a Table 3D presentation: -\par -– Right-click on an XLS table in the -Object browser and from the context menu choose Show, or Show only - -\image html table.png - -The table will be immediately displayed in the Viewer. - -Choose Edit in the context menu if you wish to change the layout of the presentation. - -\image html table3d.png - -\par -
        -
      • Scale Factor - visualization scaling of all values of the table.
      • -
      • Presentation type:
      • -
          -
        • \b Surface - Plot 3D will be represented with a smooth surface.
        • - -\image html tablesn2.png - -
        • \b Contour - Plot 3D will be represented with a set of contours.
        • - -\image html tablesn1.png - -
        -
      • Number of contours - allows to define the number of -contours (active when Contour presentation type is selected).
      • -
      • Scalar Bar tab allows to define the parameters of the scalar -bar displayed with this presentation (\ref scalar_map_page "see also").
      • -
      - -It is also possible to choose \b Wireframe or \b Shading \b Representation type, change -such properties as \b Opacity and Line Width and Translate the presentation using the context menu. - - - -*/ \ No newline at end of file diff --git a/doc/salome/gui/VISU/input/values_labeling.doc b/doc/salome/gui/VISU/input/values_labeling.doc deleted file mode 100644 index e6d3f930..00000000 --- a/doc/salome/gui/VISU/input/values_labeling.doc +++ /dev/null @@ -1,34 +0,0 @@ -/*! - -\page values_labeling_page Values labeling - -

      Displaying value labels

      - -In VISU you can display values applied to the cells or nodes of 3D presentation intended for visualization of calculation data. - -To display labels for values: -
        -
      1. Display your presentation in 3d viewer
      2. -
      3. Right-click on the presentation in the 3D viewer and from the associated pop-up menu choose Values labeling.
      4. -
      - -It will looks as follow: - -\image html values_labeling.png - -

      Parameters of values labeling

      - -You have ability to change parameters of values labeling such as font and color. Default parameters can be specified using "Preferences" dialog box. Also you can change parameters for each presentation. - -To change parameters of the presentation: -
        -
      1. Display your presentation in 3d viewer
      2. -
      3. Right-click on the presentation in the 3D viewer and from the associated pop-up menu choose Labeling parameters.
      4. -
      5. Use "Parameters of values labeling" dialog box for the operation
      6. -
      - -It will looks as follows: - -\image html labeling_parameters.png - -*/ diff --git a/doc/salome/gui/VISU/pics/animatdef.jpg b/doc/salome/gui/VISU/pics/animatdef.jpg new file mode 100755 index 00000000..ed9b4693 Binary files /dev/null and b/doc/salome/gui/VISU/pics/animatdef.jpg differ diff --git a/doc/salome/gui/VISU/pics/animation.png b/doc/salome/gui/VISU/pics/animation.png new file mode 100755 index 00000000..85070152 Binary files /dev/null and b/doc/salome/gui/VISU/pics/animation.png differ diff --git a/doc/salome/gui/VISU/pics/arrangeactors.png b/doc/salome/gui/VISU/pics/arrangeactors.png new file mode 100755 index 00000000..8424e602 Binary files /dev/null and b/doc/salome/gui/VISU/pics/arrangeactors.png differ diff --git a/doc/salome/gui/VISU/pics/arrangeactors1.png b/doc/salome/gui/VISU/pics/arrangeactors1.png new file mode 100755 index 00000000..560272fa Binary files /dev/null and b/doc/salome/gui/VISU/pics/arrangeactors1.png differ diff --git a/doc/salome/gui/VISU/pics/begining.jpg b/doc/salome/gui/VISU/pics/begining.jpg new file mode 100755 index 00000000..9c624022 Binary files /dev/null and b/doc/salome/gui/VISU/pics/begining.jpg differ diff --git a/doc/salome/gui/VISU/pics/blue_down.jpg b/doc/salome/gui/VISU/pics/blue_down.jpg new file mode 100755 index 00000000..5376a154 Binary files /dev/null and b/doc/salome/gui/VISU/pics/blue_down.jpg differ diff --git a/doc/salome/gui/VISU/pics/blue_left.jpg b/doc/salome/gui/VISU/pics/blue_left.jpg new file mode 100755 index 00000000..ceb91efb Binary files /dev/null and b/doc/salome/gui/VISU/pics/blue_left.jpg differ diff --git a/doc/salome/gui/VISU/pics/blue_right.jpg b/doc/salome/gui/VISU/pics/blue_right.jpg new file mode 100755 index 00000000..bf6f9240 Binary files /dev/null and b/doc/salome/gui/VISU/pics/blue_right.jpg differ diff --git a/doc/salome/gui/VISU/pics/blue_up.jpg b/doc/salome/gui/VISU/pics/blue_up.jpg new file mode 100755 index 00000000..383840fd Binary files /dev/null and b/doc/salome/gui/VISU/pics/blue_up.jpg differ diff --git a/doc/salome/gui/VISU/pics/buildprogress.png b/doc/salome/gui/VISU/pics/buildprogress.png new file mode 100755 index 00000000..8d1b1858 Binary files /dev/null and b/doc/salome/gui/VISU/pics/buildprogress.png differ diff --git a/doc/salome/gui/VISU/pics/cellsel.jpg b/doc/salome/gui/VISU/pics/cellsel.jpg new file mode 100755 index 00000000..8e7f8d93 Binary files /dev/null and b/doc/salome/gui/VISU/pics/cellsel.jpg differ diff --git a/doc/salome/gui/VISU/pics/clipping1.png b/doc/salome/gui/VISU/pics/clipping1.png new file mode 100755 index 00000000..0c606036 Binary files /dev/null and b/doc/salome/gui/VISU/pics/clipping1.png differ diff --git a/doc/salome/gui/VISU/pics/clipping2.png b/doc/salome/gui/VISU/pics/clipping2.png new file mode 100755 index 00000000..ea114065 Binary files /dev/null and b/doc/salome/gui/VISU/pics/clipping2.png differ diff --git a/doc/salome/gui/VISU/pics/createcurves.png b/doc/salome/gui/VISU/pics/createcurves.png new file mode 100755 index 00000000..82b50a06 Binary files /dev/null and b/doc/salome/gui/VISU/pics/createcurves.png differ diff --git a/doc/salome/gui/VISU/pics/cutlines.png b/doc/salome/gui/VISU/pics/cutlines.png new file mode 100755 index 00000000..3db09092 Binary files /dev/null and b/doc/salome/gui/VISU/pics/cutlines.png differ diff --git a/doc/salome/gui/VISU/pics/cutlinesicn.jpg b/doc/salome/gui/VISU/pics/cutlinesicn.jpg new file mode 100755 index 00000000..eb43365c Binary files /dev/null and b/doc/salome/gui/VISU/pics/cutlinesicn.jpg differ diff --git a/doc/salome/gui/VISU/pics/cutlinesicon.jpg b/doc/salome/gui/VISU/pics/cutlinesicon.jpg new file mode 100755 index 00000000..cd866735 Binary files /dev/null and b/doc/salome/gui/VISU/pics/cutlinesicon.jpg differ diff --git a/doc/salome/gui/VISU/pics/cutlinesprsnt.png b/doc/salome/gui/VISU/pics/cutlinesprsnt.png new file mode 100755 index 00000000..63b4fb04 Binary files /dev/null and b/doc/salome/gui/VISU/pics/cutlinesprsnt.png differ diff --git a/doc/salome/gui/VISU/pics/cutplanes.png b/doc/salome/gui/VISU/pics/cutplanes.png new file mode 100755 index 00000000..579332ac Binary files /dev/null and b/doc/salome/gui/VISU/pics/cutplanes.png differ diff --git a/doc/salome/gui/VISU/pics/cutplpresent.png b/doc/salome/gui/VISU/pics/cutplpresent.png new file mode 100755 index 00000000..e97ff562 Binary files /dev/null and b/doc/salome/gui/VISU/pics/cutplpresent.png differ diff --git a/doc/salome/gui/VISU/pics/dataonelements1.png b/doc/salome/gui/VISU/pics/dataonelements1.png new file mode 100755 index 00000000..b9cb2c01 Binary files /dev/null and b/doc/salome/gui/VISU/pics/dataonelements1.png differ diff --git a/doc/salome/gui/VISU/pics/dataonelements2.png b/doc/salome/gui/VISU/pics/dataonelements2.png new file mode 100755 index 00000000..e532ef1d Binary files /dev/null and b/doc/salome/gui/VISU/pics/dataonelements2.png differ diff --git a/doc/salome/gui/VISU/pics/dataonelements3.png b/doc/salome/gui/VISU/pics/dataonelements3.png new file mode 100755 index 00000000..2ae6448d Binary files /dev/null and b/doc/salome/gui/VISU/pics/dataonelements3.png differ diff --git a/doc/salome/gui/VISU/pics/deformedshape.png b/doc/salome/gui/VISU/pics/deformedshape.png new file mode 100755 index 00000000..9b36a8d6 Binary files /dev/null and b/doc/salome/gui/VISU/pics/deformedshape.png differ diff --git a/doc/salome/gui/VISU/pics/deformedshapesn.png b/doc/salome/gui/VISU/pics/deformedshapesn.png new file mode 100755 index 00000000..9af02907 Binary files /dev/null and b/doc/salome/gui/VISU/pics/deformedshapesn.png differ diff --git a/doc/salome/gui/VISU/pics/defshapeicon.jpg b/doc/salome/gui/VISU/pics/defshapeicon.jpg new file mode 100755 index 00000000..5d59f160 Binary files /dev/null and b/doc/salome/gui/VISU/pics/defshapeicon.jpg differ diff --git a/doc/salome/gui/VISU/pics/dumpviewtofile.png b/doc/salome/gui/VISU/pics/dumpviewtofile.png new file mode 100755 index 00000000..d67e2c0a Binary files /dev/null and b/doc/salome/gui/VISU/pics/dumpviewtofile.png differ diff --git a/doc/salome/gui/VISU/pics/editplot2dpresentation.png b/doc/salome/gui/VISU/pics/editplot2dpresentation.png new file mode 100755 index 00000000..43ac17d4 Binary files /dev/null and b/doc/salome/gui/VISU/pics/editplot2dpresentation.png differ diff --git a/doc/salome/gui/VISU/pics/end.jpg b/doc/salome/gui/VISU/pics/end.jpg new file mode 100755 index 00000000..3aef5d1b Binary files /dev/null and b/doc/salome/gui/VISU/pics/end.jpg differ diff --git a/doc/salome/gui/VISU/pics/exporttable.png b/doc/salome/gui/VISU/pics/exporttable.png new file mode 100755 index 00000000..7b3a42e7 Binary files /dev/null and b/doc/salome/gui/VISU/pics/exporttable.png differ diff --git a/doc/salome/gui/VISU/pics/fitdatarange.png b/doc/salome/gui/VISU/pics/fitdatarange.png new file mode 100755 index 00000000..be4c24df Binary files /dev/null and b/doc/salome/gui/VISU/pics/fitdatarange.png differ diff --git a/doc/salome/gui/VISU/pics/gpp2.png b/doc/salome/gui/VISU/pics/gpp2.png new file mode 100755 index 00000000..1562d03f Binary files /dev/null and b/doc/salome/gui/VISU/pics/gpp2.png differ diff --git a/doc/salome/gui/VISU/pics/gpp3.png b/doc/salome/gui/VISU/pics/gpp3.png new file mode 100755 index 00000000..128e22bb Binary files /dev/null and b/doc/salome/gui/VISU/pics/gpp3.png differ diff --git a/doc/salome/gui/VISU/pics/gpp6.png b/doc/salome/gui/VISU/pics/gpp6.png new file mode 100755 index 00000000..9408b33c Binary files /dev/null and b/doc/salome/gui/VISU/pics/gpp6.png differ diff --git a/doc/salome/gui/VISU/pics/graduatedaxes1.png b/doc/salome/gui/VISU/pics/graduatedaxes1.png new file mode 100755 index 00000000..cf021ba4 Binary files /dev/null and b/doc/salome/gui/VISU/pics/graduatedaxes1.png differ diff --git a/doc/salome/gui/VISU/pics/image100.gif b/doc/salome/gui/VISU/pics/image100.gif new file mode 100755 index 00000000..c44d68ff Binary files /dev/null and b/doc/salome/gui/VISU/pics/image100.gif differ diff --git a/doc/salome/gui/VISU/pics/image102.gif b/doc/salome/gui/VISU/pics/image102.gif new file mode 100755 index 00000000..4a4900fe Binary files /dev/null and b/doc/salome/gui/VISU/pics/image102.gif differ diff --git a/doc/salome/gui/VISU/pics/image103.gif b/doc/salome/gui/VISU/pics/image103.gif new file mode 100755 index 00000000..147612dc Binary files /dev/null and b/doc/salome/gui/VISU/pics/image103.gif differ diff --git a/doc/salome/gui/VISU/pics/image104.gif b/doc/salome/gui/VISU/pics/image104.gif new file mode 100755 index 00000000..584b367e Binary files /dev/null and b/doc/salome/gui/VISU/pics/image104.gif differ diff --git a/doc/salome/gui/VISU/pics/image105.gif b/doc/salome/gui/VISU/pics/image105.gif new file mode 100755 index 00000000..9d747861 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image105.gif differ diff --git a/doc/salome/gui/VISU/pics/image109.gif b/doc/salome/gui/VISU/pics/image109.gif new file mode 100755 index 00000000..5dbba464 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image109.gif differ diff --git a/doc/salome/gui/VISU/pics/image117.gif b/doc/salome/gui/VISU/pics/image117.gif new file mode 100755 index 00000000..c0e2715f Binary files /dev/null and b/doc/salome/gui/VISU/pics/image117.gif differ diff --git a/doc/salome/gui/VISU/pics/image157.gif b/doc/salome/gui/VISU/pics/image157.gif new file mode 100644 index 00000000..2f66e05e Binary files /dev/null and b/doc/salome/gui/VISU/pics/image157.gif differ diff --git a/doc/salome/gui/VISU/pics/image20.png b/doc/salome/gui/VISU/pics/image20.png new file mode 100755 index 00000000..2658973f Binary files /dev/null and b/doc/salome/gui/VISU/pics/image20.png differ diff --git a/doc/salome/gui/VISU/pics/image21.png b/doc/salome/gui/VISU/pics/image21.png new file mode 100755 index 00000000..6d7f7151 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image21.png differ diff --git a/doc/salome/gui/VISU/pics/image30.gif b/doc/salome/gui/VISU/pics/image30.gif new file mode 100755 index 00000000..f78b7c2b Binary files /dev/null and b/doc/salome/gui/VISU/pics/image30.gif differ diff --git a/doc/salome/gui/VISU/pics/image39.gif b/doc/salome/gui/VISU/pics/image39.gif new file mode 100755 index 00000000..0a7acc21 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image39.gif differ diff --git a/doc/salome/gui/VISU/pics/image46.gif b/doc/salome/gui/VISU/pics/image46.gif new file mode 100755 index 00000000..0fe311c4 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image46.gif differ diff --git a/doc/salome/gui/VISU/pics/image47.gif b/doc/salome/gui/VISU/pics/image47.gif new file mode 100755 index 00000000..57011e06 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image47.gif differ diff --git a/doc/salome/gui/VISU/pics/image48.gif b/doc/salome/gui/VISU/pics/image48.gif new file mode 100755 index 00000000..4733090c Binary files /dev/null and b/doc/salome/gui/VISU/pics/image48.gif differ diff --git a/doc/salome/gui/VISU/pics/image49.gif b/doc/salome/gui/VISU/pics/image49.gif new file mode 100755 index 00000000..94df6479 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image49.gif differ diff --git a/doc/salome/gui/VISU/pics/image50.gif b/doc/salome/gui/VISU/pics/image50.gif new file mode 100755 index 00000000..d86bc15f Binary files /dev/null and b/doc/salome/gui/VISU/pics/image50.gif differ diff --git a/doc/salome/gui/VISU/pics/image51.gif b/doc/salome/gui/VISU/pics/image51.gif new file mode 100755 index 00000000..e568a49d Binary files /dev/null and b/doc/salome/gui/VISU/pics/image51.gif differ diff --git a/doc/salome/gui/VISU/pics/image52.gif b/doc/salome/gui/VISU/pics/image52.gif new file mode 100755 index 00000000..d3764072 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image52.gif differ diff --git a/doc/salome/gui/VISU/pics/image53.gif b/doc/salome/gui/VISU/pics/image53.gif new file mode 100755 index 00000000..139f9ee0 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image53.gif differ diff --git a/doc/salome/gui/VISU/pics/image54.gif b/doc/salome/gui/VISU/pics/image54.gif new file mode 100755 index 00000000..7391fddd Binary files /dev/null and b/doc/salome/gui/VISU/pics/image54.gif differ diff --git a/doc/salome/gui/VISU/pics/image55.gif b/doc/salome/gui/VISU/pics/image55.gif new file mode 100755 index 00000000..f11da801 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image55.gif differ diff --git a/doc/salome/gui/VISU/pics/image69.gif b/doc/salome/gui/VISU/pics/image69.gif new file mode 100755 index 00000000..36f57602 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image69.gif differ diff --git a/doc/salome/gui/VISU/pics/image74.gif b/doc/salome/gui/VISU/pics/image74.gif new file mode 100755 index 00000000..85713fae Binary files /dev/null and b/doc/salome/gui/VISU/pics/image74.gif differ diff --git a/doc/salome/gui/VISU/pics/image81.gif b/doc/salome/gui/VISU/pics/image81.gif new file mode 100755 index 00000000..3473ad94 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image81.gif differ diff --git a/doc/salome/gui/VISU/pics/image82.gif b/doc/salome/gui/VISU/pics/image82.gif new file mode 100755 index 00000000..0d3b25ef Binary files /dev/null and b/doc/salome/gui/VISU/pics/image82.gif differ diff --git a/doc/salome/gui/VISU/pics/image83.gif b/doc/salome/gui/VISU/pics/image83.gif new file mode 100755 index 00000000..a40211e8 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image83.gif differ diff --git a/doc/salome/gui/VISU/pics/image84.gif b/doc/salome/gui/VISU/pics/image84.gif new file mode 100755 index 00000000..87e1105c Binary files /dev/null and b/doc/salome/gui/VISU/pics/image84.gif differ diff --git a/doc/salome/gui/VISU/pics/image87.gif b/doc/salome/gui/VISU/pics/image87.gif new file mode 100755 index 00000000..61e26b23 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image87.gif differ diff --git a/doc/salome/gui/VISU/pics/image88.gif b/doc/salome/gui/VISU/pics/image88.gif new file mode 100755 index 00000000..16cdbf73 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image88.gif differ diff --git a/doc/salome/gui/VISU/pics/image89.gif b/doc/salome/gui/VISU/pics/image89.gif new file mode 100755 index 00000000..373a6c02 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image89.gif differ diff --git a/doc/salome/gui/VISU/pics/image90.gif b/doc/salome/gui/VISU/pics/image90.gif new file mode 100755 index 00000000..3507814b Binary files /dev/null and b/doc/salome/gui/VISU/pics/image90.gif differ diff --git a/doc/salome/gui/VISU/pics/image91.gif b/doc/salome/gui/VISU/pics/image91.gif new file mode 100755 index 00000000..9e93c1c7 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image91.gif differ diff --git a/doc/salome/gui/VISU/pics/image96.gif b/doc/salome/gui/VISU/pics/image96.gif new file mode 100755 index 00000000..4580d5b5 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image96.gif differ diff --git a/doc/salome/gui/VISU/pics/image97.gif b/doc/salome/gui/VISU/pics/image97.gif new file mode 100755 index 00000000..1d78de1b Binary files /dev/null and b/doc/salome/gui/VISU/pics/image97.gif differ diff --git a/doc/salome/gui/VISU/pics/image98.gif b/doc/salome/gui/VISU/pics/image98.gif new file mode 100755 index 00000000..6519dbb6 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image98.gif differ diff --git a/doc/salome/gui/VISU/pics/image99.gif b/doc/salome/gui/VISU/pics/image99.gif new file mode 100755 index 00000000..3711be81 Binary files /dev/null and b/doc/salome/gui/VISU/pics/image99.gif differ diff --git a/doc/salome/gui/VISU/pics/importfromfile.png b/doc/salome/gui/VISU/pics/importfromfile.png new file mode 100755 index 00000000..af51e718 Binary files /dev/null and b/doc/salome/gui/VISU/pics/importfromfile.png differ diff --git a/doc/salome/gui/VISU/pics/importtablefromfile.png b/doc/salome/gui/VISU/pics/importtablefromfile.png new file mode 100755 index 00000000..7cd6a28d Binary files /dev/null and b/doc/salome/gui/VISU/pics/importtablefromfile.png differ diff --git a/doc/salome/gui/VISU/pics/iso.png b/doc/salome/gui/VISU/pics/iso.png new file mode 100755 index 00000000..880ccb13 Binary files /dev/null and b/doc/salome/gui/VISU/pics/iso.png differ diff --git a/doc/salome/gui/VISU/pics/isosurf.jpg b/doc/salome/gui/VISU/pics/isosurf.jpg new file mode 100755 index 00000000..88d5ac72 Binary files /dev/null and b/doc/salome/gui/VISU/pics/isosurf.jpg differ diff --git a/doc/salome/gui/VISU/pics/isosurfaces.png b/doc/salome/gui/VISU/pics/isosurfaces.png new file mode 100755 index 00000000..f431d63e Binary files /dev/null and b/doc/salome/gui/VISU/pics/isosurfaces.png differ diff --git a/doc/salome/gui/VISU/pics/neo-transparency.png b/doc/salome/gui/VISU/pics/neo-transparency.png new file mode 100755 index 00000000..ec1fb7f7 Binary files /dev/null and b/doc/salome/gui/VISU/pics/neo-transparency.png differ diff --git a/doc/salome/gui/VISU/pics/next.jpg b/doc/salome/gui/VISU/pics/next.jpg new file mode 100755 index 00000000..958ff001 Binary files /dev/null and b/doc/salome/gui/VISU/pics/next.jpg differ diff --git a/doc/salome/gui/VISU/pics/picking.png b/doc/salome/gui/VISU/pics/picking.png new file mode 100755 index 00000000..cea1a56c Binary files /dev/null and b/doc/salome/gui/VISU/pics/picking.png differ diff --git a/doc/salome/gui/VISU/pics/planes.png b/doc/salome/gui/VISU/pics/planes.png new file mode 100755 index 00000000..23fdc942 Binary files /dev/null and b/doc/salome/gui/VISU/pics/planes.png differ diff --git a/doc/salome/gui/VISU/pics/plot3d-example.png b/doc/salome/gui/VISU/pics/plot3d-example.png new file mode 100755 index 00000000..e2711dd0 Binary files /dev/null and b/doc/salome/gui/VISU/pics/plot3d-example.png differ diff --git a/doc/salome/gui/VISU/pics/plot3d.png b/doc/salome/gui/VISU/pics/plot3d.png new file mode 100755 index 00000000..f04ce94c Binary files /dev/null and b/doc/salome/gui/VISU/pics/plot3d.png differ diff --git a/doc/salome/gui/VISU/pics/points.jpg b/doc/salome/gui/VISU/pics/points.jpg new file mode 100755 index 00000000..6164f769 Binary files /dev/null and b/doc/salome/gui/VISU/pics/points.jpg differ diff --git a/doc/salome/gui/VISU/pics/previous.jpg b/doc/salome/gui/VISU/pics/previous.jpg new file mode 100755 index 00000000..4b4106b8 Binary files /dev/null and b/doc/salome/gui/VISU/pics/previous.jpg differ diff --git a/doc/salome/gui/VISU/pics/recording.png b/doc/salome/gui/VISU/pics/recording.png new file mode 100755 index 00000000..272386ae Binary files /dev/null and b/doc/salome/gui/VISU/pics/recording.png differ diff --git a/doc/salome/gui/VISU/pics/recordingsaveas.png b/doc/salome/gui/VISU/pics/recordingsaveas.png new file mode 100755 index 00000000..28dac73c Binary files /dev/null and b/doc/salome/gui/VISU/pics/recordingsaveas.png differ diff --git a/doc/salome/gui/VISU/pics/rename.png b/doc/salome/gui/VISU/pics/rename.png new file mode 100755 index 00000000..c6bc6155 Binary files /dev/null and b/doc/salome/gui/VISU/pics/rename.png differ diff --git a/doc/salome/gui/VISU/pics/run.jpg b/doc/salome/gui/VISU/pics/run.jpg new file mode 100755 index 00000000..d8805928 Binary files /dev/null and b/doc/salome/gui/VISU/pics/run.jpg differ diff --git a/doc/salome/gui/VISU/pics/scalarbarproperties.png b/doc/salome/gui/VISU/pics/scalarbarproperties.png new file mode 100755 index 00000000..db018aec Binary files /dev/null and b/doc/salome/gui/VISU/pics/scalarbarproperties.png differ diff --git a/doc/salome/gui/VISU/pics/scalarmapicon.jpg b/doc/salome/gui/VISU/pics/scalarmapicon.jpg new file mode 100755 index 00000000..fff992d5 Binary files /dev/null and b/doc/salome/gui/VISU/pics/scalarmapicon.jpg differ diff --git a/doc/salome/gui/VISU/pics/scalarrangesn.png b/doc/salome/gui/VISU/pics/scalarrangesn.png new file mode 100755 index 00000000..c4cb6817 Binary files /dev/null and b/doc/salome/gui/VISU/pics/scalarrangesn.png differ diff --git a/doc/salome/gui/VISU/pics/set_rotation_point_dialog1.png b/doc/salome/gui/VISU/pics/set_rotation_point_dialog1.png new file mode 100644 index 00000000..bdab73b7 Binary files /dev/null and b/doc/salome/gui/VISU/pics/set_rotation_point_dialog1.png differ diff --git a/doc/salome/gui/VISU/pics/set_rotation_point_dialog2.png b/doc/salome/gui/VISU/pics/set_rotation_point_dialog2.png new file mode 100644 index 00000000..7f3696a5 Binary files /dev/null and b/doc/salome/gui/VISU/pics/set_rotation_point_dialog2.png differ diff --git a/doc/salome/gui/VISU/pics/setupanimation.png b/doc/salome/gui/VISU/pics/setupanimation.png new file mode 100755 index 00000000..a7121fd4 Binary files /dev/null and b/doc/salome/gui/VISU/pics/setupanimation.png differ diff --git a/doc/salome/gui/VISU/pics/setupplot2d.png b/doc/salome/gui/VISU/pics/setupplot2d.png new file mode 100755 index 00000000..4d8ac433 Binary files /dev/null and b/doc/salome/gui/VISU/pics/setupplot2d.png differ diff --git a/doc/salome/gui/VISU/pics/shrink.jpg b/doc/salome/gui/VISU/pics/shrink.jpg new file mode 100755 index 00000000..0985b855 Binary files /dev/null and b/doc/salome/gui/VISU/pics/shrink.jpg differ diff --git a/doc/salome/gui/VISU/pics/smds-example.png b/doc/salome/gui/VISU/pics/smds-example.png new file mode 100755 index 00000000..84d3a3d9 Binary files /dev/null and b/doc/salome/gui/VISU/pics/smds-example.png differ diff --git a/doc/salome/gui/VISU/pics/smds-example1.png b/doc/salome/gui/VISU/pics/smds-example1.png new file mode 100755 index 00000000..8085fea8 Binary files /dev/null and b/doc/salome/gui/VISU/pics/smds-example1.png differ diff --git a/doc/salome/gui/VISU/pics/smds1.png b/doc/salome/gui/VISU/pics/smds1.png new file mode 100755 index 00000000..24c5feda Binary files /dev/null and b/doc/salome/gui/VISU/pics/smds1.png differ diff --git a/doc/salome/gui/VISU/pics/snapfgf.png b/doc/salome/gui/VISU/pics/snapfgf.png new file mode 100755 index 00000000..fc8803c8 Binary files /dev/null and b/doc/salome/gui/VISU/pics/snapfgf.png differ diff --git a/doc/salome/gui/VISU/pics/speed.jpg b/doc/salome/gui/VISU/pics/speed.jpg new file mode 100755 index 00000000..3076f301 Binary files /dev/null and b/doc/salome/gui/VISU/pics/speed.jpg differ diff --git a/doc/salome/gui/VISU/pics/spheroid.png b/doc/salome/gui/VISU/pics/spheroid.png new file mode 100755 index 00000000..162700b7 Binary files /dev/null and b/doc/salome/gui/VISU/pics/spheroid.png differ diff --git a/doc/salome/gui/VISU/pics/streamlines.png b/doc/salome/gui/VISU/pics/streamlines.png new file mode 100755 index 00000000..1cdd9fe9 Binary files /dev/null and b/doc/salome/gui/VISU/pics/streamlines.png differ diff --git a/doc/salome/gui/VISU/pics/streamlinesicon.jpg b/doc/salome/gui/VISU/pics/streamlinesicon.jpg new file mode 100755 index 00000000..3d90087e Binary files /dev/null and b/doc/salome/gui/VISU/pics/streamlinesicon.jpg differ diff --git a/doc/salome/gui/VISU/pics/streamlinesprsnt.png b/doc/salome/gui/VISU/pics/streamlinesprsnt.png new file mode 100755 index 00000000..b04a0022 Binary files /dev/null and b/doc/salome/gui/VISU/pics/streamlinesprsnt.png differ diff --git a/doc/salome/gui/VISU/pics/surface.jpg b/doc/salome/gui/VISU/pics/surface.jpg new file mode 100755 index 00000000..6f9a0240 Binary files /dev/null and b/doc/salome/gui/VISU/pics/surface.jpg differ diff --git a/doc/salome/gui/VISU/pics/textproperty.png b/doc/salome/gui/VISU/pics/textproperty.png new file mode 100755 index 00000000..565ec31d Binary files /dev/null and b/doc/salome/gui/VISU/pics/textproperty.png differ diff --git a/doc/salome/gui/VISU/pics/translatepres.png b/doc/salome/gui/VISU/pics/translatepres.png new file mode 100755 index 00000000..f68ac955 Binary files /dev/null and b/doc/salome/gui/VISU/pics/translatepres.png differ diff --git a/doc/salome/gui/VISU/pics/vecticon.jpg b/doc/salome/gui/VISU/pics/vecticon.jpg new file mode 100755 index 00000000..40c36af4 Binary files /dev/null and b/doc/salome/gui/VISU/pics/vecticon.jpg differ diff --git a/doc/salome/gui/VISU/pics/vectorfield.png b/doc/salome/gui/VISU/pics/vectorfield.png new file mode 100755 index 00000000..1c6de4d7 Binary files /dev/null and b/doc/salome/gui/VISU/pics/vectorfield.png differ diff --git a/doc/salome/gui/VISU/pics/vectorsprsnt.png b/doc/salome/gui/VISU/pics/vectorsprsnt.png new file mode 100755 index 00000000..698a1e8c Binary files /dev/null and b/doc/salome/gui/VISU/pics/vectorsprsnt.png differ diff --git a/doc/salome/gui/VISU/pics/view_rotation_point.png b/doc/salome/gui/VISU/pics/view_rotation_point.png new file mode 100644 index 00000000..7fe8f838 Binary files /dev/null and b/doc/salome/gui/VISU/pics/view_rotation_point.png differ diff --git a/doc/salome/gui/VISU/pics/viewsettings.png b/doc/salome/gui/VISU/pics/viewsettings.png new file mode 100755 index 00000000..79dcc495 Binary files /dev/null and b/doc/salome/gui/VISU/pics/viewsettings.png differ diff --git a/doc/salome/gui/VISU/pics/viewtable.png b/doc/salome/gui/VISU/pics/viewtable.png new file mode 100755 index 00000000..8aca30d4 Binary files /dev/null and b/doc/salome/gui/VISU/pics/viewtable.png differ diff --git a/doc/salome/gui/VISU/pics/visufullscreen.png b/doc/salome/gui/VISU/pics/visufullscreen.png new file mode 100755 index 00000000..cc98df07 Binary files /dev/null and b/doc/salome/gui/VISU/pics/visufullscreen.png differ diff --git a/doc/salome/gui/VISU/pics/visuicon.jpg b/doc/salome/gui/VISU/pics/visuicon.jpg new file mode 100755 index 00000000..8489eef2 Binary files /dev/null and b/doc/salome/gui/VISU/pics/visuicon.jpg differ diff --git a/doc/salome/gui/VISU/pics/warning.png b/doc/salome/gui/VISU/pics/warning.png new file mode 100755 index 00000000..55e06d36 Binary files /dev/null and b/doc/salome/gui/VISU/pics/warning.png differ diff --git a/doc/salome/gui/VISU/pics/wireframe.jpg b/doc/salome/gui/VISU/pics/wireframe.jpg new file mode 100755 index 00000000..aa84b51c Binary files /dev/null and b/doc/salome/gui/VISU/pics/wireframe.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/VISU__Gen_8idl.html b/doc/salome/gui/VISU/visugenidl_doc/VISU__Gen_8idl.html new file mode 100644 index 00000000..5d34130d --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/VISU__Gen_8idl.html @@ -0,0 +1,196 @@ + + + + + + Main Page + + + + +  + + + +

      idl/VISU_Gen.idl File Reference

      #include "SALOME_Exception.idl"
      +#include "SALOME_GenericObj.idl"
      +#include "SALOME_Component.idl"
      +#include "SALOMEDS.idl"
      +#include "SALOMEDS_Attributes.idl"
      +#include "MED.idl"
      + +

      +Include dependency graph for VISU_Gen.idl:

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Namespaces

      namespace  VISU

      Data Structures

      interface  VISU.Base
      interface  VISU.RemovableObject
       Removable object interface. More...
      interface  VISU.PrsObject
       Presentable object interface. More...
      interface  VISU.Table
       Table representation interface More...
      interface  VISU.Curve
       Interface of curve representation. More...
      interface  VISU.Container
       Container presentable object interface More...
      interface  VISU.Prs3d
       3D presentation interface More...
      interface  VISU.Mesh
       Interface of the mesh. More...
      interface  VISU.ColoredPrs3d
       Basic Interface for the Colored 3D Presentations. More...
      interface  VISU.ColoredPrs3dHolder
       ColoredPrs3dHolder interface. Interface of 3d presentation's holder, which represents colored 3d presentations, created on fields. It is publishing in the object browser in a separate folder and can be controled by viewer's slider. More...
      struct  VISU.ColoredPrs3dHolder.BasicInput
      struct  VISU.ColoredPrs3dHolder.TimeStampInfo
      interface  VISU.ColoredPrs3dCache
       ColoredPrs3dCache interface. This interface is responsible for memory management of 3d presentations. One cache corresponds to one study. More...
      interface  VISU.ScalarMap
       Interface of the Scalar Map. More...
      interface  VISU.GaussPoints
       Gauss Points presentation interface. More...
      interface  VISU.DeformedShape
       Deformed shape presentation interface. More...
      interface  VISU.ScalarMapOnDeformedShape
       Scalar Map on Deformed shape presentation interface. More...
      interface  VISU.Plot3D
       Plot3D interface. More...
      interface  VISU.CutPlanes
       Cut planes interface. More...
      interface  VISU.CutLines
       Cut lines presentation. More...
      interface  VISU.StreamLines
       Interface of the stream lines representation. More...
      interface  VISU.IsoSurfaces
       Interface of the isometric surface presentation. More...
      interface  VISU.Vectors
       Interface of the vector presentation. More...
      interface  VISU.Animation
       Animation class More...
      interface  VISU.Result
       Interface Result. More...
      interface  VISU.VISU_Gen
       VISU_Gen interface More...
      interface  VISU.View
       View interface More...
      interface  VISU.View3D
       3D view interface More...
      interface  VISU.TableView
       Interface of the Table view. More...
      interface  VISU.XYPlot
       Interface of the 2D plot view. More...
      interface  VISU.ViewManager
       Interface of the ViewManager. More...

      Typedefs

      typedef string VISU.IdType
      typedef sequence< string > VISU.string_array

      Enumerations

      enum  VISU.Scaling { VISU.LINEAR, +VISU.LOGARITHMIC + }
      enum  VISU.Entity { VISU.NODE, +VISU.EDGE, +VISU.FACE, +VISU.CELL + }
      enum  VISU.VISUType {
      +  VISU.TNONE, +VISU.TCURVE, +VISU.TTABLE, +VISU.TCONTAINER, +
      +  VISU.TMESH, +VISU.TSCALARMAP, +VISU.TISOSURFACES, +VISU.TDEFORMEDSHAPE, +
      +  VISU.TSCALARMAPONDEFORMEDSHAPE, +VISU.TGAUSSPOINTS, +VISU.TPLOT3D, +VISU.TCUTPLANES, +
      +  VISU.TCUTLINES, +VISU.TVECTORS, +VISU.TSTREAMLINES, +VISU.TVISUGEN, +
      +  VISU.TVIEWMANAGER, +VISU.TRESULT, +VISU.TXYPLOT, +VISU.TTABLEVIEW, +
      +  VISU.TVIEW3D, +VISU.TGAUSSVIEW, +VISU.TENTITY, +VISU.TFAMILY, +
      +  VISU.TGROUP, +VISU.TFIELD, +VISU.TTIMESTAMP, +VISU.TANIMATION, +
      +  VISU.TCOLOREDPRS3DHOLDER, +VISU.TCOLOREDPRS3DCACHE, +VISU.TPART, +VISU.TALL +
      + }
      enum  VISU.PresentationType {
      +  VISU.POINT, +VISU.WIREFRAME, +VISU.SHADED, +VISU.INSIDEFRAME, +
      +  VISU.SURFACEFRAME, +VISU.SHRINK +
      + }
      +

      Detailed Description

      +This file conatins a set of interfaces of the VISU module. This module provides various forms of data visualization in SALOME application. These forms include data tables, XY plots, 3d representations and combination of these forms. + + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/VISU__Gen_8idl__incl.jpg b/doc/salome/gui/VISU/visugenidl_doc/VISU__Gen_8idl__incl.jpg new file mode 100644 index 00000000..b39f3e1a Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/VISU__Gen_8idl__incl.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/doxygen.css b/doc/salome/gui/VISU/visugenidl_doc/doxygen.css new file mode 100644 index 00000000..dc9da522 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/doxygen.css @@ -0,0 +1,218 @@ +H1 { + text-align: center; + font-family: Geneva, Arial, Helvetica, sans-serif; +} +H2 { + font-family: Geneva, Arial, Helvetica, sans-serif; +} +CAPTION { font-weight: bold } +DIV.qindex { + width: 100%; + background-color: #eeeeff; + border: 1px solid #B0B0B0; + text-align: center; + margin: 2px; + padding: 2px; + line-height: 120%; +} +A.qindex { + text-decoration: none; + font-weight: bold; + color: #1A419D; + padding: 2px; +} +A.qindex:visited { + text-decoration: none; + font-weight: bold; + color: #1A419D + padding: 2px; +} +A.qindex:hover { + text-decoration: none; + background-color: #ddddff; + padding: 2px; +} +A.qindexHL { + text-decoration: none; + font-weight: bold; + background-color: #6666cc; + color: #ffffff; + padding: 2px 6px; + border: 1px double #9295C2; +} +A.qindexHL:hover { + text-decoration: none; + background-color: #6666cc; + color: #ffffff; + padding: 2px 6px; +} +A.qindexHL:visited { text-decoration: none; background-color: #6666cc; color: #ffffff } +A.el { text-decoration: none; font-weight: bold } +A.elRef { font-weight: bold } +A.code { text-decoration: none; font-weight: normal; color: #1A419D} +A.codeRef { font-weight: normal; color: #1A419D} +A:hover { text-decoration: none; background-color: #f2f2ff } +DL.el { margin-left: -1cm } +PRE.fragment { + border: 1px solid #CCCCCC; + background-color: #f5f5f5; + margin-top: 4px; + margin-bottom: 4px; + margin-left: 2px; + margin-right: 8px; + padding-left: 6px; + padding-right: 6px; + padding-top: 4px; + padding-bottom: 4px; +} +DIV.fragment { + border: 1px solid #CCCCCC; + background-color: #f5f5f5; + padding: 6px; +} +DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px } +TD.md { background-color: #F4F4FB; font-weight: bold; } +TD.mdname1 { background-color: #F4F4FB; font-weight: bold; color: #602020; } +TD.mdname { background-color: #F4F4FB; font-weight: bold; color: #602020; width: 600px; } +DIV.groupHeader { + margin-left: 16px; + margin-top: 12px; + margin-bottom: 6px; + font-weight: bold; + font-family: Geneva, Arial, Helvetica, sans-serif; +} +DIV.groupText { margin-left: 16px; font-style: italic; font-size: smaller } +BODY { + background: white; + color: black; + margin-right: 20px; + margin-left: 20px; +} +TD.indexkey { + background-color: #eeeeff; + font-weight: bold; + padding-right : 10px; + padding-top : 2px; + padding-left : 10px; + padding-bottom : 2px; + margin-left : 0px; + margin-right : 0px; + margin-top : 2px; + margin-bottom : 2px; + border: 1px solid #CCCCCC; +} +TD.indexvalue { + background-color: #eeeeff; + font-style: italic; + padding-right : 10px; + padding-top : 2px; + padding-left : 10px; + padding-bottom : 2px; + margin-left : 0px; + margin-right : 0px; + margin-top : 2px; + margin-bottom : 2px; + border: 1px solid #CCCCCC; +} +TR.memlist { + background-color: #f0f0f0; +} +P.formulaDsp { text-align: center; } +IMG.formulaDsp { } +IMG.formulaInl { vertical-align: middle; } +SPAN.keyword { color: #008000 } +SPAN.keywordtype { color: #604020 } +SPAN.keywordflow { color: #e08000 } +SPAN.comment { color: #800000 } +SPAN.preprocessor { color: #806020 } +SPAN.stringliteral { color: #002080 } +SPAN.charliteral { color: #008080 } +.mdTable { + border: 1px solid #868686; + background-color: #F4F4FB; +} +.mdRow { + padding: 8px 10px; +} +.mdescLeft { + font-size: smaller; + font-style: italic; + background-color: #FAFAFA; + padding-left: 8px; + border-top: 1px none #E0E0E0; + border-right: 1px none #E0E0E0; + border-bottom: 1px none #E0E0E0; + border-left: 1px none #E0E0E0; + margin: 0px; +} +.mdescRight { + font-size: smaller; + font-style: italic; + background-color: #FAFAFA; + padding-left: 4px; + border-top: 1px none #E0E0E0; + border-right: 1px none #E0E0E0; + border-bottom: 1px none #E0E0E0; + border-left: 1px none #E0E0E0; + margin: 0px; + padding-bottom: 0px; + padding-right: 8px; +} +.memItemLeft { + padding: 1px 0px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-style: solid; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-family: Geneva, Arial, Helvetica, sans-serif; + font-size: 12px; +} +.memItemRight { + padding: 1px 0px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-style: solid; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-family: Geneva, Arial, Helvetica, sans-serif; + font-size: 13px; +} +.search { color: #003399; + font-weight: bold; +} +FORM.search { + margin-bottom: 0px; + margin-top: 0px; +} +INPUT.search { font-size: 75%; + color: #000080; + font-weight: normal; + background-color: #eeeeff; +} +TD.tiny { font-size: 75%; +} +a { + color: #252E78; +} +a:visited { + color: #3D2185; +} diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Animation.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Animation.html new file mode 100644 index 00000000..4e0aa360 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Animation.html @@ -0,0 +1,1115 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.Animation Interface Reference

      Animation class +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.Animation:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       PARALLEL
       SUCCCESSIVE
      enum  AnimationMode { PARALLEL, +SUCCCESSIVE + }

      Public Member Functions

      boolean addField (in SALOMEDS::SObject theObject)
      void clearFields ()
      void generatePresentations (in long theFieldNum)
      boolean generateFrames ()
      void clearView ()
      long getNbFields ()
      long getNbFrames ()
      boolean isRunning ()
      long getCurrentFrame ()
      ColoredPrs3d getPresentation (in long theField, in long theFrame)
      void setPresentationType (in long theFieldNum, in VISUType theType)
      VISUType getPresentationType (in long theFieldNum)
      void setSpeed (in long theSpeed)
      long getSpeed ()
      boolean isProportional ()
      void setAnimationRange (in double theMin, in double theMax)
      double getMinRange ()
      double getMaxRange ()
      boolean isRangeDefined ()
      void dumpTo (in string thePath)
      string setDumpFormat (in string theFormat)
      boolean isCycling ()
      double getMinTime ()
      double getMaxTime ()
      void setProportional (in boolean theProp)
      void setCycling (in boolean theCycle)
      boolean isCleaningMemoryAtEachFrame ()
      void setCleaningMemoryAtEachFrame (in boolean theCycle)
      SALOMEDS::SObject publishInStudy ()
      void saveAnimation ()
      void restoreFromStudy (in SALOMEDS::SObject theSObj)
      boolean isSavedInStudy ()
      void setAnimationMode (in AnimationMode theMode)
      AnimationMode getAnimationMode ()
      void ApplyProperties (in long theFieldNum, in ColoredPrs3d thePrs)
      IdType GetID ()
      VISUType GetType ()
      Playback of an animation:
      void startAnimation ()
      void stopAnimation ()
      void nextFrame ()
      void prevFrame ()
      void firstFrame ()
      void lastFrame ()
      void gotoFrame (in long theFrame)
      +

      Detailed Description

      +This class provides a set of methods used for:
      +
        +
      • +generating different animations on the basis of a field,
      • +
      • +setting the parameters of the animations,
      • +
      • +playing these animations in the VISU module.
      • +
      +
      Note:

      +Field represents the results of calculations (it can be scalar or vector values), grouped together under one physical concept.
      +Time stamp represents a subfield: the results of calculations are taken in one definite moment.
      + +

      +


      Member Enumeration Documentation

      + +
      + +
      + +

      +This enumeration contains a set of available animation modes.

      Enumerator:
      + + + +
      PARALLEL  +parallel mode of animation.
      SUCCCESSIVE  +succcessive mode of animation.
      +
      + +
      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + +
      boolean VISU.Animation.addField (in SALOMEDS::SObject  theObject  ) 
      +
      +
      + +

      +Defines the field which will be used as a base for generation of the animation.

      Parameters:
      + + +
      theObject The SObject corresponding to the field.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.Animation.clearFields (  ) 
      +
      +
      + +

      +Remove all fields from Animation object. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Animation.generatePresentations (in long  theFieldNum  ) 
      +
      +
      + +

      +Generates presentations on the basis of the field.

      Parameters:
      + + +
      theFieldNum The number of the field, which will be used as the basis for construction of the presentation.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      boolean VISU.Animation.generateFrames (  ) 
      +
      +
      + +

      +Generates a set of frames from the created by the method generatePresentations3D presentations. A sequence of these frames will be transformed into an animation.

      Returns:
      True, if the frames have been successfully generated.
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.Animation.clearView (  ) 
      +
      +
      + +

      +Clears the view before starting an animation. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.Animation.startAnimation (  ) 
      +
      +
      + +

      +Starts an animation. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.Animation.stopAnimation (  ) 
      +
      +
      + +

      +Stops an animation. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.Animation.nextFrame (  ) 
      +
      +
      + +

      +Forwards to the next frame. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.Animation.prevFrame (  ) 
      +
      +
      + +

      +Returns to the previous frame. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.Animation.firstFrame (  ) 
      +
      +
      + +

      +Returns to the first frame of the animation. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.Animation.lastFrame (  ) 
      +
      +
      + +

      +Forwards to the last frame of the animation. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Animation.gotoFrame (in long  theFrame  ) 
      +
      +
      + +

      +Passes to a definite frame of the animation.

      Parameters:
      + + +
      theFrame A long value defining the number of the frame.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.Animation.getNbFields (  ) 
      +
      +
      + +

      +Gets the number of time stamps (subfields) contained in the given field. +

      +

      + +

      +
      + + + + + + + + +
      long VISU.Animation.getNbFrames (  ) 
      +
      +
      + +

      +Gets the number of generated frames +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.Animation.isRunning (  ) 
      +
      +
      + +

      +Returns True, if the animation is currently running. +

      +

      + +

      +
      + + + + + + + + +
      long VISU.Animation.getCurrentFrame (  ) 
      +
      +
      + +

      +Returns the number of the current frame. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      ColoredPrs3d VISU.Animation.getPresentation (in long  theField,
      in long  theFrame 
      )
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.Animation.setPresentationType (in long  theFieldNum,
      in VISUType  theType 
      )
      +
      +
      + +

      +Sets the type of presentation (vectors, deformed shape etc.) which will be generated by the method generatePresentations. +

      +

      + +

      +
      + + + + + + + + + +
      VISUType VISU.Animation.getPresentationType (in long  theFieldNum  ) 
      +
      +
      + +

      +Gets the type of presentation (vectors, deformed shape etc.) which will be generated by the method generatePresentations. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Animation.setSpeed (in long  theSpeed  ) 
      +
      +
      + +

      +Sets the speed of the animation.

      Parameters:
      + + +
      theSpeed The speed of the animation. The value varies from 1 to 99.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.Animation.getSpeed (  ) 
      +
      +
      + +

      +Gets the speed of the animation. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.Animation.isProportional (  ) 
      +
      +
      + +

      +Ruturns True, if playback of the animation is proportional. This option allows to render your animation with proportional periods of time between every frame (not depending on the time stamps). +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.Animation.setAnimationRange (in double  theMin,
      in double  theMax 
      )
      +
      +
      + +

      +Sets the range of the animation. The range is defined on the basis of the time stamps of the field which have been used for generation of the animation. This method allows to bound the range of generated frames. If this method is not used, the animation will be generated on the basis of all time stamps contained in the field.

      Parameters:
      + + + +
      theMin The value of the first time stamp which will be used for generation of the animation.
      theMax The value of the last time stamp which will be used for generation of the animation.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.Animation.getMinRange (  ) 
      +
      +
      + +

      +Gets the number of the first time stamp which will be used for generation of the animation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.Animation.getMaxRange (  ) 
      +
      +
      + +

      +Gets the number of the last time stamp which will be used for generation of the animation. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.Animation.isRangeDefined (  ) 
      +
      +
      + +

      +Returns True if the range of the animation has been defined by the method setAnimationRange. Otherwise the animation will be generated on the basis of all time stamps contained in the field. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Animation.dumpTo (in string  thePath  ) 
      +
      +
      + +

      +Saves all the frames composing the animation into a definite directory. Pictures format is set with method setDumpFormat().

      Parameters:
      + + +
      thePath The directory where all the frames will be saved.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      string VISU.Animation.setDumpFormat (in string  theFormat  ) 
      +
      +
      + +

      +Set format for saving all the frames composing the animation.

      Parameters:
      + + +
      theFormat The format for saving pictures. For available formats see QImageIO documentation (Qt). If specified format is not available, default format will be used. Default format is JPEG or first of supported, if JPEG is not available.
      +
      +
      Returns:
      Really set format. Differ from theFormat if theFormat is not available.
      + +
      +

      + +

      +
      + + + + + + + + +
      boolean VISU.Animation.isCycling (  ) 
      +
      +
      + +

      +Returns True, if the playback of the animation is cycling. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.Animation.getMinTime (  ) 
      +
      +
      + +

      +Gets the first time stamp of the field defined at the input of the animation.

      Note:
      This method is used if animation range is NOT defined.
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.Animation.getMaxTime (  ) 
      +
      +
      + +

      +Gets the last time stamp of the field defined at the input of the animation.

      Note:
      This method is used if animation range is NOT defined.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.Animation.setProportional (in boolean  theProp  ) 
      +
      +
      + +

      +Sets proprtional playback of the animation. This option allows to render your animation with proportional periods of time between every frame (not depending on the time stamps).

      Parameters:
      + + +
      theProp If this boolean parameter is True, playback of your animation will be set as proportional.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.Animation.setCycling (in boolean  theCycle  ) 
      +
      +
      + +

      +Sets cycling playback of the animation. The number of cycles can be infinite, untill you use startAnimation method.

      Parameters:
      + + +
      theCycle If this boolean parameter is True, playback of your animation will be set as cycling.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      boolean VISU.Animation.isCleaningMemoryAtEachFrame (  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Animation.setCleaningMemoryAtEachFrame (in boolean  theCycle  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      SALOMEDS::SObject VISU.Animation.publishInStudy (  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.Animation.saveAnimation (  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Animation.restoreFromStudy (in SALOMEDS::SObject  theSObj  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.Animation.isSavedInStudy (  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Animation.setAnimationMode (in AnimationMode  theMode  ) 
      +
      +
      + +

      +Sets the animation mode.

      Parameters:
      + + +
      theMode The value of this parameter is taken from the AnimationMode enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      AnimationMode VISU.Animation.getAnimationMode (  ) 
      +
      +
      + +

      +Gets the animation mode. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.Animation.ApplyProperties (in long  theFieldNum,
      in ColoredPrs3d  thePrs 
      )
      +
      +
      + +

      +Apply the presentation properties to all fields. The exception is raised in the following cases: 1) presentations for the given field is not yet created; 2) invalid dynamic cast of the given presentation to VISU.ColoredPrs3d_i; 3) the MED file is not the same; 4) the mesh name is not the same; 5) the field name is not the same; 6) the entity is not the same. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Animation__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Animation__inherit__graph.jpg new file mode 100644 index 00000000..83cfd510 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Animation__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Base.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Base.html new file mode 100644 index 00000000..ddc5521c --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Base.html @@ -0,0 +1,84 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.Base Interface Reference

      import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.Base:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + +

      Public Member Functions

      IdType GetID ()
      VISUType GetType ()
      +

      Member Function Documentation

      + +
      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  ) 
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  ) 
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Base__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Base__inherit__graph.jpg new file mode 100644 index 00000000..0a3207aa Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Base__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3d.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3d.html new file mode 100644 index 00000000..0ec36308 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3d.html @@ -0,0 +1,749 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.ColoredPrs3d Interface Reference

      Basic Interface for the Colored 3D Presentations. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.ColoredPrs3d:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       HORIZONTAL
       VERTICAL
      enum  Orientation { HORIZONTAL, +VERTICAL + }

      Public Member Functions

      void SetScalarMode (in long theScalarMode)
      long GetScalarMode ()
      double GetMin ()
      double GetMax ()
      double GetSourceMin ()
      double GetSourceMax ()
      boolean IsRangeFixed ()
      void SetPosition (in double X, in double Y)
       Position of the scalar bar.
      double GetPosX ()
      double GetPosY ()
      void SetSize (in double theWidth, in double theHeight)
       Size of this presentable object.
      double GetWidth ()
      double GetHeight ()
      void SetNbColors (in long theNbColors)
      long GetNbColors ()
      void SetLabels (in long theNbLabels)
      long GetLabels ()
      void SetTitle (in string theName)
      string GetTitle ()
      void SetBarOrientation (in Orientation theOrientation)
      Orientation GetBarOrientation ()
      void SetOffset (in float theDx, in float theDy, in float theDz)
      void GetOffset (out float theDx, out float theDy, out float theDz)
      float GetMemorySize ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +This interface is responsable for coloring of 3D field presentations according the scalar values applied to different cells. As well it contains presentation parameters of the scalar bar. The scalar bar is displayed along with each colored field presentation and serves for consulting the correspondance between colors and data values. +

      +


      Member Enumeration Documentation

      + +
      + +
      + +

      +Orientation of the scalar bar (to provide backward compatibility).

      Enumerator:
      + + + +
      HORIZONTAL  +Horizontal orientation of the scalar bar.
      VERTICAL  +Vertical orientation of the scalar bar.
      +
      + +

      +Implemented in VISU.Plot3D, and VISU.CutPlanes. +

      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetScalarMode (in long  theScalarMode  ) 
      +
      +
      + +

      +Sets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetScalarMode (  ) 
      +
      +
      + +

      +Gets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMin (  ) 
      +
      +
      + +

      +Gets the min boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMax (  ) 
      +
      +
      + +

      +Gets the max boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMin (  ) 
      +
      +
      + +

      +Gets the min boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMax (  ) 
      +
      +
      + +

      +Gets the max boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.ColoredPrs3d.IsRangeFixed (  ) 
      +
      +
      + +

      +Defines whether the scalar range corresponds to the source data or not. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetPosition (in double  X,
      in double  Y 
      )
      +
      +
      + +

      +Sets the position of the scalar bar origin on the screen.

      Parameters:
      + + + +
      X Horizontal position. The value can be between 0 and 1.
      Y Vertical position. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosX (  ) 
      +
      +
      + +

      +Gets horizontal position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosY (  ) 
      +
      +
      + +

      +Gets vertical position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetSize (in double  theWidth,
      in double  theHeight 
      )
      +
      +
      + +

      +Sets the size of the scalar bar.

      Parameters:
      + + + +
      theWidth Width of this presentable object. The value can be between 0 and 1.
      theHeight Height of this presentable object. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetWidth (  ) 
      +
      +
      + +

      +Gets the width of this presentable object.

      Returns:
      A double value corresponding to the width of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetHeight (  ) 
      +
      +
      + +

      +Gets the height of this presentable object.

      Returns:
      A double value corresponding to the height of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetNbColors (in long  theNbColors  ) 
      +
      +
      + +

      +Sets the number of colors which will be used for presentation of this presentable object.

      Parameters:
      + + +
      theNbColors A long value defining the number of colors.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetNbColors (  ) 
      +
      +
      + +

      +Gets the number of colors which will be used for visualization of this presentable object.

      Returns:
      A long value corresponding to the number of colors which will be used for visualization of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetLabels (in long  theNbLabels  ) 
      +
      +
      + +

      +Sets the number of labels which will be used for indication of color gradation of the scalar bar.

      Parameters:
      + + +
      theNbLabels A long value defining the number of labels.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetLabels (  ) 
      +
      +
      + +

      +Gets the number of labels which will be used for indication of color gradation of the scalar bar.

      Returns:
      A long value corresponding to the number of labels which will be used for indication of color gradation of the scalar bar.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetTitle (in string  theName  ) 
      +
      +
      + +

      +Sets the title of the scalar bar. By default - the name of the selected result is used.

      Parameters:
      + + +
      theName String parameter defining the name of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.ColoredPrs3d.GetTitle (  ) 
      +
      +
      + +

      +Gets the title of the scalar bar. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetBarOrientation (in Orientation  theOrientation  ) 
      +
      +
      + +

      +Sets the type of orientation of the scalar bar (to provide backward compatibility).

      Parameters:
      + + +
      theOrientation This parameter defines the orientation of the scalar bar. It is taken from the Orientaton enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Orientation VISU.ColoredPrs3d.GetBarOrientation (  ) 
      +
      +
      + +

      +Gets the type of orientation of the scalar bar (to provide backward compatibility). +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.SetOffset (in float  theDx,
      in float  theDy,
      in float  theDz 
      ) [inherited]
      +
      +
      + +

      +Move the 3D presentation according to the given offset parameters +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.GetOffset (out float  theDx,
      out float  theDy,
      out float  theDz 
      ) [inherited]
      +
      +
      + +

      +Gets offset parameters for the 3D presentation +

      +

      + +

      +
      + + + + + + + + +
      float VISU.Prs3d.GetMemorySize (  )  [inherited]
      +
      +
      + +

      +Gets memory size actually used by the presentation (Mb). +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dCache.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dCache.html new file mode 100644 index 00000000..9730844a --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dCache.html @@ -0,0 +1,344 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.ColoredPrs3dCache Interface Reference

      ColoredPrs3dCache interface. This interface is responsible for memory management of 3d presentations. One cache corresponds to one study. + +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.ColoredPrs3dCache:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       MINIMAL
       LIMITED
       NO_ENLARGE
       ENLARGE
       IMPOSSIBLE
      enum  MemoryMode { MINIMAL, +LIMITED + }
      enum  EnlargeType { NO_ENLARGE, +ENLARGE, +IMPOSSIBLE + }

      Public Member Functions

      void SetMemoryMode (in MemoryMode theMode)
      MemoryMode GetMemoryMode ()
      void SetLimitedMemory (in float theMemorySize)
      float GetLimitedMemory ()
      float GetMemorySize ()
      ColoredPrs3dHolder CreateHolder (in VISUType theType, in ColoredPrs3dHolder::BasicInput theInput)
      EnlargeType GetRequiredMemory (in VISUType theType, in ColoredPrs3dHolder::BasicInput theInput, out float theRequiredMemory)
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Member Enumeration Documentation

      + +
      + +
      + +

      +This enumeration contains the cache memory modes.

      Enumerator:
      + + + +
      MINIMAL  +Minimal memory mode (default behaviour).
      LIMITED  +Limited memory mode (fixed memory size for presentations).
      +
      + +
      +

      + +

      + +
      + +

      +This enumeration defines how to enlarge the cache limited memory.

      Enumerator:
      + + + + +
      NO_ENLARGE  +No need to enlarge (default behaviour).
      ENLARGE  +Enlarge limited memory.
      IMPOSSIBLE  +Impossible to enlarge (not enough free memory).
      +
      + +
      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + +
      void VISU.ColoredPrs3dCache.SetMemoryMode (in MemoryMode  theMode  ) 
      +
      +
      + +

      +Sets a memory mode. +

      +

      + +

      +
      + + + + + + + + +
      MemoryMode VISU.ColoredPrs3dCache.GetMemoryMode (  ) 
      +
      +
      + +

      +Gets a memory mode. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3dCache.SetLimitedMemory (in float  theMemorySize  ) 
      +
      +
      + +

      +Sets a memory size for limited mode (Mb). +

      +

      + +

      +
      + + + + + + + + +
      float VISU.ColoredPrs3dCache.GetLimitedMemory (  ) 
      +
      +
      + +

      +Gets a memory size for limited mode (Mb). +

      +

      + +

      +
      + + + + + + + + +
      float VISU.ColoredPrs3dCache.GetMemorySize (  ) 
      +
      +
      + +

      +Gets memory size actually used by the cache system (Mb). +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      ColoredPrs3dHolder VISU.ColoredPrs3dCache.CreateHolder (in VISUType  theType,
      in ColoredPrs3dHolder::BasicInput  theInput 
      )
      +
      +
      + +

      +Creates ColoredPrs3dHolder. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      EnlargeType VISU.ColoredPrs3dCache.GetRequiredMemory (in VISUType  theType,
      in ColoredPrs3dHolder::BasicInput  theInput,
      out float  theRequiredMemory 
      )
      +
      +
      + +

      +Gets a memory which is required to create a holder. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dCache__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dCache__inherit__graph.jpg new file mode 100644 index 00000000..5cab7235 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dCache__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dHolder.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dHolder.html new file mode 100644 index 00000000..9ed99118 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dHolder.html @@ -0,0 +1,288 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.ColoredPrs3dHolder Interface Reference

      ColoredPrs3dHolder interface. Interface of 3d presentation's holder, which represents colored 3d presentations, created on fields. It is publishing in the object browser in a separate folder and can be controled by viewer's slider. + +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.ColoredPrs3dHolder:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

      typedef sequence< TimeStampInfoTimeStampsRange

      Public Member Functions

      boolean Apply (in ColoredPrs3d thePrs3d, in BasicInput theInput, in View3D theView3D)
      ColoredPrs3d GetDevice ()
      VISUType GetPrsType ()
      TimeStampsRange GetTimeStampsRange ()
      BasicInput GetBasicInput ()
      ColoredPrs3dCache GetCache ()
      float GetMemorySize ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()

      Data Structures

      struct  BasicInput
      struct  TimeStampInfo
      +

      Member Typedef Documentation

      + +
      + +
      + +

      +Defines representation range of timestamps. +

      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      boolean VISU.ColoredPrs3dHolder.Apply (in ColoredPrs3d  thePrs3d,
      in BasicInput  theInput,
      in View3D  theView3D 
      )
      +
      +
      + +

      +Apply input parameters to last visited presentation in the cache. +

      +

      + +

      +
      + + + + + + + + +
      ColoredPrs3d VISU.ColoredPrs3dHolder.GetDevice (  ) 
      +
      +
      + +

      +Gets the last visited presentation in the cache. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.ColoredPrs3dHolder.GetPrsType (  ) 
      +
      +
      + +

      +Gets type of the managed presentations. +

      +

      + +

      +
      + + + + + + + + +
      TimeStampsRange VISU.ColoredPrs3dHolder.GetTimeStampsRange (  ) 
      +
      +
      + +

      +Gets TimeStampsRange information from the last visited presentation. +

      +

      + +

      +
      + + + + + + + + +
      BasicInput VISU.ColoredPrs3dHolder.GetBasicInput (  ) 
      +
      +
      + +

      +Gets input parameters of the last visited presentation. +

      +

      + +

      +
      + + + + + + + + +
      ColoredPrs3dCache VISU.ColoredPrs3dHolder.GetCache (  ) 
      +
      +
      + +

      +Gets a ColoredPrs3dCache, to which the holder belongs +

      +

      + +

      +
      + + + + + + + + +
      float VISU.ColoredPrs3dHolder.GetMemorySize (  ) 
      +
      +
      + +

      +Gets memory size actually used by the holder (Mb). +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dHolder__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dHolder__inherit__graph.jpg new file mode 100644 index 00000000..8f127ae5 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3dHolder__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3d__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3d__inherit__graph.jpg new file mode 100644 index 00000000..f9aaa9a3 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ColoredPrs3d__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Container.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Container.html new file mode 100644 index 00000000..6dab2288 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Container.html @@ -0,0 +1,200 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.Container Interface Reference

      Container presentable object interface +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.Container:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + +

      Public Member Functions

      void AddCurve (in Curve theCurve)
      void RemoveCurve (in Curve theCurve)
      long GetNbCurves ()
      void Clear ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +This class is provided in order to create one presentation using several presentable objects. This can provide a combination of a set of curves to display them in XY plot view. +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + +
      void VISU.Container.AddCurve (in Curve  theCurve  ) 
      +
      +
      + +

      +Adds a curve into the container.

      Parameters:
      + + +
      theCurve The added curve.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.Container.RemoveCurve (in Curve  theCurve  ) 
      +
      +
      + +

      +Removes a curve from the container.

      Parameters:
      + + +
      theCurve The removed curve.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.Container.GetNbCurves (  ) 
      +
      +
      + +

      +Gets the number of curves which are stored in the container.

      Returns:
      A long value corresponding to the number of curves which are stored in the container.
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.Container.Clear (  ) 
      +
      +
      + +

      +Removes all curves from the container. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Container__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Container__inherit__graph.jpg new file mode 100644 index 00000000..ed68a9b5 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Container__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Curve.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Curve.html new file mode 100644 index 00000000..a959e674 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Curve.html @@ -0,0 +1,462 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.Curve Interface Reference

      Interface of curve representation. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.Curve:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       NONE
       CIRCLE
       RECTANGLE
       DIAMOND
       DTRIANGLE
       UTRIANGLE
       LTRIANGLE
       RTRIANGLE
       CROSS
       XCROSS
       VOIDLINE
       SOLIDLINE
       DASHLINE
       DOTLINE
       DASHDOTLINE
       DASHDOTDOTLINE
      enum  MarkerType {
      +  NONE, +CIRCLE, +RECTANGLE, +DIAMOND, +
      +  DTRIANGLE, +UTRIANGLE, +LTRIANGLE, +RTRIANGLE, +
      +  CROSS, +XCROSS +
      + }
      enum  LineType {
      +  VOIDLINE, +SOLIDLINE, +DASHLINE, +DOTLINE, +
      +  DASHDOTLINE, +DASHDOTDOTLINE +
      + }

      Public Member Functions

      void SetTitle (in string theTitle)
      string GetTitle ()
      void SetColor (in SALOMEDS::Color theColor)
      SALOMEDS::Color GetColor ()
      void SetMarker (in MarkerType theType)
      MarkerType GetMarker ()
      void SetLine (in LineType theType, in long theLineWidth)
      LineType GetLine ()
      long GetLineWidth ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +Manages presentation parameters of one curve. It can be used for presentation of a set of curves using a combined presentation. +

      +


      Member Enumeration Documentation

      + +
      +
      + + + + +
      enum VISU::Curve::MarkerType
      +
      +
      + +

      +This enumeration contains a set of elements defining the presentation type of markers (data points) with help of which the curve is constructed on the graphics.

      Enumerator:
      + + + + + + + + + + + +
      NONE  +
      CIRCLE  +
      RECTANGLE  +
      DIAMOND  +
      DTRIANGLE  +
      UTRIANGLE  +
      LTRIANGLE  +
      RTRIANGLE  +
      CROSS  +
      XCROSS  +
      +
      + +
      +

      + +

      +
      + + + + +
      enum VISU::Curve::LineType
      +
      +
      + +

      +This enumeration contains a set of elements defining the type of presentation of a curve line on the graphics.

      Enumerator:
      + + + + + + + +
      VOIDLINE  +
      SOLIDLINE  +
      DASHLINE  +
      DOTLINE  +
      DASHDOTLINE  +
      DASHDOTDOTLINE  +
      +
      + +
      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + +
      void VISU.Curve.SetTitle (in string  theTitle  ) 
      +
      +
      + +

      +Sets the title of the curve.

      Parameters:
      + + +
      theTitle This string parameter defines the title of this curve.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.Curve.GetTitle (  ) 
      +
      +
      + +

      +Gets the title of the curve.

      Returns:
      String value corresponding to the title of the curve.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.Curve.SetColor (in SALOMEDS::Color  theColor  ) 
      +
      +
      + +

      +Sets the color of the curve.

      Parameters:
      + + +
      theColor The color of the curve. This parameter is taken from the Orientation enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      SALOMEDS::Color VISU.Curve.GetColor (  ) 
      +
      +
      + +

      +Gets the color of the curve.

      Returns:
      Color of the curve. The returned value will correspond to one of the elements the Color enumeration.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.Curve.SetMarker (in MarkerType  theType  ) 
      +
      +
      + +

      +Sets the presentation type of markers (data points) with help of which the curve is constructed on the graphics.

      Parameters:
      + + +
      theType This parameter defines the type of marker with help of which the curve is constructed on the graphics. It is taken from MarkerType enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      MarkerType VISU.Curve.GetMarker (  ) 
      +
      +
      + +

      +Gets the presentation type of markers (data points) with help of which the curve is constructed on the graphics.

      Returns:
      The type of marker with help of which the curve is constructed on the graphics. The returned value will correspond to one of the elements the MarkerType enumeration.
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.Curve.SetLine (in LineType  theType,
      in long  theLineWidth 
      )
      +
      +
      + +

      +Sets the type of presentation of curve lines on the graphics.

      Parameters:
      + + + +
      theType This parameter defines the type of presentation of curve lines on the graphics.
      theLineWidth Long value defining the width of the curve line.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      LineType VISU.Curve.GetLine (  ) 
      +
      +
      + +

      +Gets the type of representation of curve lines on the graphics.

      Returns:
      The type of representation of curve lines on the graphics.
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.Curve.GetLineWidth (  ) 
      +
      +
      + +

      +Gets the width of the curve line.

      Returns:
      Long value corresponding to the width of the curve line.
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Curve__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Curve__inherit__graph.jpg new file mode 100644 index 00000000..4beb40dd Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Curve__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutLines.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutLines.html new file mode 100644 index 00000000..0ba6ffce --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutLines.html @@ -0,0 +1,1568 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.CutLines Interface Reference

      Cut lines presentation. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.CutLines:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       HORIZONTAL
       VERTICAL
      enum  Orientation { HORIZONTAL, +VERTICAL + }

      Public Member Functions

      void SetOrientation (in CutPlanes::Orientation theOrientation, in double theXAngle, in double theYAngle)
      void SetOrientation2 (in CutPlanes::Orientation theOrientation, in double theXAngle, in double theYAngle)
      CutPlanes::Orientation GetOrientationType ()
      CutPlanes::Orientation GetOrientationType2 ()
      double GetRotateX ()
      double GetRotateX2 ()
      double GetRotateY ()
      double GetRotateY2 ()
      void SetDisplacement (in double theDisp)
      void SetDisplacement2 (in double theDisp)
      double GetDisplacement ()
      double GetDisplacement2 ()
      void SetBasePlanePosition (in double thePlanePosition)
      double GetBasePlanePosition ()
      void SetLinePosition (in long thePlaneNumber, in double thePlanePosition)
      double GetLinePosition (in long thePlaneNumber)
      void SetDefault ()
      boolean IsDefault ()
      void SetDefaultPosition (in long thePlaneNumber)
      boolean IsDefaultPosition (in long thePlaneNumber)
      void SetNbLines (in long theNb)
      long GetNbLines ()
      void SetAllCurvesInverted (in boolean theInvert)
      boolean IsAllCurvesInverted ()
      void SetUseAbsoluteLength (in boolean theAbsLength)
      boolean IsUseAbsoluteLength ()
      void SetScaling (in Scaling theScaling)
      Scaling GetScaling ()
      void SetRange (in double theMin, in double theMax)
      void SetSourceRange ()
      void AddMeshOnGroup (in string theGroupName)
      void RemoveAllGeom ()
      void SetScalarMode (in long theScalarMode)
      long GetScalarMode ()
      double GetMin ()
      double GetMax ()
      double GetSourceMin ()
      double GetSourceMax ()
      boolean IsRangeFixed ()
      void SetPosition (in double X, in double Y)
       Position of the scalar bar.
      double GetPosX ()
      double GetPosY ()
      void SetSize (in double theWidth, in double theHeight)
       Size of this presentable object.
      double GetWidth ()
      double GetHeight ()
      void SetNbColors (in long theNbColors)
      long GetNbColors ()
      void SetLabels (in long theNbLabels)
      long GetLabels ()
      void SetTitle (in string theName)
      string GetTitle ()
      void SetBarOrientation (in Orientation theOrientation)
      Orientation GetBarOrientation ()
      void SetOffset (in float theDx, in float theDy, in float theDz)
      void GetOffset (out float theDx, out float theDy, out float theDz)
      float GetMemorySize ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +Presentation parameters of a Cut lines presentation. Cut Lines is a type of presentation which displays colored cells with applied scalar values on the mesh where lines are placed. The procedure of construction of a Cut Lines presentation reuses the algorithm of creation of Cut Planes presentation and consists of two steps:

      +1. From Cut Planes presentation one plane is taken and it is used as base plane for construction of cut lines. 2. This plane is cut by a regular array of planes. The result of this operation is a regular array of lines in space, belonging to the same plane and having the same orientation. They are located inside or on the mesh. +

      +


      Member Enumeration Documentation

      + +
      +
      + + + + +
      enum VISU::ColoredPrs3d::Orientation [inherited]
      +
      +
      + +

      +Orientation of the scalar bar (to provide backward compatibility).

      Enumerator:
      + + + +
      HORIZONTAL  +Horizontal orientation of the scalar bar.
      VERTICAL  +Vertical orientation of the scalar bar.
      +
      + +

      +Implemented in VISU.Plot3D, and VISU.CutPlanes. +

      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.CutLines.SetOrientation (in CutPlanes::Orientation  theOrientation,
      in double  theXAngle,
      in double  theYAngle 
      )
      +
      +
      + +

      +Sets the type of orientation in 3D space of the base plane of a cut lines presentation.

      Parameters:
      + + + + +
      theOrientation The orientation of the base plane in 3D space.
      theXAngle The angle of rotation of the base plane around the first axis of the chosen orientation.
      theXAngle The angle of rotation of the base plane around the second axis of the chosen orientation.
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.CutLines.SetOrientation2 (in CutPlanes::Orientation  theOrientation,
      in double  theXAngle,
      in double  theYAngle 
      )
      +
      +
      + +

      +Sets the type of orientation in 3D space of the cutting planes of a cut lines presentation.

      Parameters:
      + + + + +
      theOrientation This parameter defines the type of orientation of the cutting planes in 3D space. It is taken from the Orientation enumeration.
      theXAngle The angle of rotation of the cutting planes around the first axis of the chosen orientation.
      theXAngle The angle of rotation of the cutting planes around the second axis of the chosen orientation.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      CutPlanes::Orientation VISU.CutLines.GetOrientationType (  ) 
      +
      +
      + +

      +Gets the type of orientation in 3D space of the base plane of a cut lines presentation. +

      +

      + +

      +
      + + + + + + + + +
      CutPlanes::Orientation VISU.CutLines.GetOrientationType2 (  ) 
      +
      +
      + +

      +Gets the type of orientation in 3D space of the cutting planes of a cut lines presentation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.CutLines.GetRotateX (  ) 
      +
      +
      + +

      +Gets rotation angle of the base plane around the first axis of the chosen orientation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.CutLines.GetRotateX2 (  ) 
      +
      +
      + +

      +Gets rotation angle of the cutting planes around the first axis of the chosen orientation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.CutLines.GetRotateY (  ) 
      +
      +
      + +

      +Gets rotation angle of the base plane around the second axis of the chosen orientation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.CutLines.GetRotateY2 (  ) 
      +
      +
      + +

      +Gets rotation angle of the cutting planes around the second axis of the chosen orientation. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.CutLines.SetDisplacement (in double  theDisp  ) 
      +
      +
      + +

      +Sets the displacement of the base plane of the cut lines presentation in 3D space.

      +

      Parameters:
      + + +
      theDisp This parameter defines position of the base plane in 3D space. It varies from 0 to 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.CutLines.SetDisplacement2 (in double  theDisp  ) 
      +
      +
      + +

      +Sets the displacement of the cutting planes of the cut lines presentation in 3D space.

      +

      Parameters:
      + + +
      theDisp This parameter defines position of the cutting planes in 3D space. It varies from 0 to 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.CutLines.GetDisplacement (  ) 
      +
      +
      + +

      +Gets the displacement of the base plane of the cut lines presentation in 3D space. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.CutLines.GetDisplacement2 (  ) 
      +
      +
      + +

      +Gets the displacement of the cutting planes of the cut lines presentation in 3D space. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.CutLines.SetBasePlanePosition (in double  thePlanePosition  ) 
      +
      +
      + +

      +Sets the position of the base plane in 3D space.

      Parameters:
      + + +
      thePlanePosition A double value defining the position of the base plane in 3D space.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.CutLines.GetBasePlanePosition (  ) 
      +
      +
      + +

      +Gets the position of the base plane in 3D space. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.CutLines.SetLinePosition (in long  thePlaneNumber,
      in double  thePlanePosition 
      )
      +
      +
      + +

      +Sets the position of one of cutting planes in 3D space.

      Parameters:
      + + + +
      thePlaneNumber A long value defining the order number of this cutting plane.
      thePlanePosition A double value defining the position of the base plane in 3D space.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      double VISU.CutLines.GetLinePosition (in long  thePlaneNumber  ) 
      +
      +
      + +

      +Gets the position of one of cutting planes in 3D space.

      Parameters:
      + + +
      thePlaneNumber A long value defining the order number of this cutting plane.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.CutLines.SetDefault (  ) 
      +
      +
      + +

      +Sets the position of the base plane to default value. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.CutLines.IsDefault (  ) 
      +
      +
      + +

      +Determines whether the base plane has default position.

      Returns:
      True if the base plane has default position.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.CutLines.SetDefaultPosition (in long  thePlaneNumber  ) 
      +
      +
      + +

      +Sets the position of the choosen cutting plane to default value.

      Parameters:
      + + +
      thePlaneNumber The number of this cutting plane.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      boolean VISU.CutLines.IsDefaultPosition (in long  thePlaneNumber  ) 
      +
      +
      + +

      +Determines whether the choosen cutting plane has default position.

      Parameters:
      + + +
      thePlaneNumber The number of this cutting plane.
      +
      +
      Returns:
      True if this cutting plane has default position.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.CutLines.SetNbLines (in long  theNb  ) 
      +
      +
      + +

      +Sets the number of cut lines.

      Parameters:
      + + +
      theNb The number of cut lines.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.CutLines.GetNbLines (  ) 
      +
      +
      + +

      +Gets the number of cut lines. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.CutLines.SetAllCurvesInverted (in boolean  theInvert  ) 
      +
      +
      + +

      +Invert all curves of corresponding table

      Parameters:
      + + +
      theInvert - Invert all curves, if value is TRUE, else not.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      boolean VISU.CutLines.IsAllCurvesInverted (  ) 
      +
      +
      + +

      +Checks the orientation of all curves

      Return values:
      + + +
      TRUE - if all curves are inverted, else FALSE
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.CutLines.SetUseAbsoluteLength (in boolean  theAbsLength  ) 
      +
      +
      + +

      +Sets values which cutlines would be shown: aboslute or relative values

      Parameters:
      + + +
      theAbsLength - boolean value, TRUE or false.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      boolean VISU.CutLines.IsUseAbsoluteLength (  ) 
      +
      +
      + +

      +Checks values of cutlines: using aboslute or relative values +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.SetScaling (in Scaling  theScaling  )  [inherited]
      +
      +
      + +

      +Sets the type of scaling of the values reflected by the scalar bar.

      Parameters:
      + + +
      theScaling The value of this parameter is taken from the Scaling enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Scaling VISU.ScalarMap.GetScaling (  )  [inherited]
      +
      +
      + +

      +Gets the type of scaling of the values reflected by this presentation. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ScalarMap.SetRange (in double  theMin,
      in double  theMax 
      ) [inherited]
      +
      +
      + +

      +Sets scalar range - min and max boundaries of the scalar bar.

      Parameters:
      + + + +
      theMin Min boundary of the scalar bar.
      theMax Max boundary of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.SetSourceRange (  )  [inherited]
      +
      +
      + +

      +Sets scalar range that corresponds to the source data. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.AddMeshOnGroup (in string  theGroupName  )  [inherited]
      +
      +
      + +

      +Add group as geometry of presentation.

      Parameters:
      + + + +
      theMeshName - mesh name
      theGroupName - group name
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.RemoveAllGeom (  )  [inherited]
      +
      +
      + +

      +PrsMerger method: Remove all groups.(The scalar map will be placed on all mesh). +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetScalarMode (in long  theScalarMode  )  [inherited]
      +
      +
      + +

      +Sets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetScalarMode (  )  [inherited]
      +
      +
      + +

      +Gets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.ColoredPrs3d.IsRangeFixed (  )  [inherited]
      +
      +
      + +

      +Defines whether the scalar range corresponds to the source data or not. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetPosition (in double  X,
      in double  Y 
      ) [inherited]
      +
      +
      + +

      +Sets the position of the scalar bar origin on the screen.

      Parameters:
      + + + +
      X Horizontal position. The value can be between 0 and 1.
      Y Vertical position. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosX (  )  [inherited]
      +
      +
      + +

      +Gets horizontal position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosY (  )  [inherited]
      +
      +
      + +

      +Gets vertical position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetSize (in double  theWidth,
      in double  theHeight 
      ) [inherited]
      +
      +
      + +

      +Sets the size of the scalar bar.

      Parameters:
      + + + +
      theWidth Width of this presentable object. The value can be between 0 and 1.
      theHeight Height of this presentable object. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetWidth (  )  [inherited]
      +
      +
      + +

      +Gets the width of this presentable object.

      Returns:
      A double value corresponding to the width of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetHeight (  )  [inherited]
      +
      +
      + +

      +Gets the height of this presentable object.

      Returns:
      A double value corresponding to the height of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetNbColors (in long  theNbColors  )  [inherited]
      +
      +
      + +

      +Sets the number of colors which will be used for presentation of this presentable object.

      Parameters:
      + + +
      theNbColors A long value defining the number of colors.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetNbColors (  )  [inherited]
      +
      +
      + +

      +Gets the number of colors which will be used for visualization of this presentable object.

      Returns:
      A long value corresponding to the number of colors which will be used for visualization of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetLabels (in long  theNbLabels  )  [inherited]
      +
      +
      + +

      +Sets the number of labels which will be used for indication of color gradation of the scalar bar.

      Parameters:
      + + +
      theNbLabels A long value defining the number of labels.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetLabels (  )  [inherited]
      +
      +
      + +

      +Gets the number of labels which will be used for indication of color gradation of the scalar bar.

      Returns:
      A long value corresponding to the number of labels which will be used for indication of color gradation of the scalar bar.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetTitle (in string  theName  )  [inherited]
      +
      +
      + +

      +Sets the title of the scalar bar. By default - the name of the selected result is used.

      Parameters:
      + + +
      theName String parameter defining the name of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.ColoredPrs3d.GetTitle (  )  [inherited]
      +
      +
      + +

      +Gets the title of the scalar bar. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetBarOrientation (in Orientation  theOrientation  )  [inherited]
      +
      +
      + +

      +Sets the type of orientation of the scalar bar (to provide backward compatibility).

      Parameters:
      + + +
      theOrientation This parameter defines the orientation of the scalar bar. It is taken from the Orientaton enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Orientation VISU.ColoredPrs3d.GetBarOrientation (  )  [inherited]
      +
      +
      + +

      +Gets the type of orientation of the scalar bar (to provide backward compatibility). +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.SetOffset (in float  theDx,
      in float  theDy,
      in float  theDz 
      ) [inherited]
      +
      +
      + +

      +Move the 3D presentation according to the given offset parameters +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.GetOffset (out float  theDx,
      out float  theDy,
      out float  theDz 
      ) [inherited]
      +
      +
      + +

      +Gets offset parameters for the 3D presentation +

      +

      + +

      +
      + + + + + + + + +
      float VISU.Prs3d.GetMemorySize (  )  [inherited]
      +
      +
      + +

      +Gets memory size actually used by the presentation (Mb). +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutLines__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutLines__inherit__graph.jpg new file mode 100644 index 00000000..e7dea050 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutLines__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutPlanes.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutPlanes.html new file mode 100644 index 00000000..2fa278d1 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutPlanes.html @@ -0,0 +1,1222 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.CutPlanes Interface Reference

      Cut planes interface. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.CutPlanes:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       XY
       YZ
       ZX
      enum  Orientation { XY, +YZ, +ZX + }
       HORIZONTAL
       VERTICAL

      Public Member Functions

      void SetOrientation (in Orientation theOrientation, in double theXAngle, in double theYAngle)
      Orientation GetOrientationType ()
      double GetRotateX ()
      double GetRotateY ()
      void SetDisplacement (in double theDisp)
      double GetDisplacement ()
      void SetPlanePosition (in long thePlaneNumber, in double thePlanePosition)
      void SetDefault (in long thePlaneNumber)
      double GetPlanePosition (in long thePlaneNumber)
      boolean IsDefault (in long thePlaneNumber)
      void SetNbPlanes (in long theNb)
      long GetNbPlanes ()
      void SetScaling (in Scaling theScaling)
      Scaling GetScaling ()
      void SetRange (in double theMin, in double theMax)
      void SetSourceRange ()
      void AddMeshOnGroup (in string theGroupName)
      void RemoveAllGeom ()
      void SetScalarMode (in long theScalarMode)
      long GetScalarMode ()
      double GetMin ()
      double GetMax ()
      double GetSourceMin ()
      double GetSourceMax ()
      boolean IsRangeFixed ()
      void SetPosition (in double X, in double Y)
       Position of the scalar bar.
      double GetPosX ()
      double GetPosY ()
      void SetSize (in double theWidth, in double theHeight)
       Size of this presentable object.
      double GetWidth ()
      double GetHeight ()
      void SetNbColors (in long theNbColors)
      long GetNbColors ()
      void SetLabels (in long theNbLabels)
      long GetLabels ()
      void SetTitle (in string theName)
      string GetTitle ()
      void SetBarOrientation (in Orientation theOrientation)
      Orientation GetBarOrientation ()
      void SetOffset (in float theDx, in float theDy, in float theDz)
      void GetOffset (out float theDx, out float theDy, out float theDz)
      float GetMemorySize ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +Presentation parameters of Cut planes presentation. This type of presentation consists of cutting your initial mesh by a definite number of planes. As the result you will see these planes which will be cutted by the borders of the mesh. +

      +


      Member Enumeration Documentation

      + +
      + +
      + +

      +This enumeration contains a set of elements defining the type of orientation in 3D space of the cut planes.

      Enumerator:
      + + + + +
      XY  +The object is located in the plane formed by X and Y axis.
      YZ  +The object is located in the plane formed by Y and Z axis.
      ZX  +
      +
      + +

      +Implements VISU.ColoredPrs3d. +

      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.CutPlanes.SetOrientation (in Orientation  theOrientation,
      in double  theXAngle,
      in double  theYAngle 
      )
      +
      +
      + +

      +Sets the type of orientation in 3D space of cut planes presentation.

      Parameters:
      + + + + +
      theOrientation This parameter defines the type of orientation of cut planes in 3D space. It is taken from the Orientation enumeration.
      theXAngle The angle of rotation of the cut planes around the first axis of the chosen orientation.
      theXAngle The angle of rotation of the cut planes around the second axis of the chosen orientation.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Orientation VISU.CutPlanes.GetOrientationType (  ) 
      +
      +
      + +

      +Gets the type of orientation in 3D space of cut planes presentation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.CutPlanes.GetRotateX (  ) 
      +
      +
      + +

      +Gets rotation angle of the cut plane presentation around the first axis of the chosen orientation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.CutPlanes.GetRotateY (  ) 
      +
      +
      + +

      +Gets rotation angle of the cut plane presentation around the second axis of the chosen orientation. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.CutPlanes.SetDisplacement (in double  theDisp  ) 
      +
      +
      + +

      +Sets the displacement of the cut planes in 3D space.

      +

      Parameters:
      + + +
      theDisp This parameter defines position of the cut planes in 3D space. It varies from 0 to 1. If the chosen value is 0.5, the cut planes will be evenly located regarding each other; in other words, the distance between all of them will be equal. If the value is higher or lower than 0.5, the planes will be displaced to one or another side.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.CutPlanes.GetDisplacement (  ) 
      +
      +
      + +

      +Gets the displacement of the cut planes in 3D space. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.CutPlanes.SetPlanePosition (in long  thePlaneNumber,
      in double  thePlanePosition 
      )
      +
      +
      + +

      +Sets the position of a definite cut plane.

      Parameters:
      + + + +
      thePlaneNumber The number of this cut plane.
      thePlanePosition The position of this cut plane.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.CutPlanes.SetDefault (in long  thePlaneNumber  ) 
      +
      +
      + +

      +Sets the position of the choosen plane to default value.

      Parameters:
      + + +
      thePlaneNumber The number of this cut plane.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      double VISU.CutPlanes.GetPlanePosition (in long  thePlaneNumber  ) 
      +
      +
      + +

      +Gets the position of the choosen plane +

      +

      + +

      +
      + + + + + + + + + +
      boolean VISU.CutPlanes.IsDefault (in long  thePlaneNumber  ) 
      +
      +
      + +

      +Determines whether the choosen plane has default position.

      Parameters:
      + + +
      thePlaneNumber The number of this cut plane.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.CutPlanes.SetNbPlanes (in long  theNb  ) 
      +
      +
      + +

      +Sets the number of cut planes.

      Parameters:
      + + +
      theNb The number of cut planes.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.CutPlanes.GetNbPlanes (  ) 
      +
      +
      + +

      +Gets the number of cut planes. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.SetScaling (in Scaling  theScaling  )  [inherited]
      +
      +
      + +

      +Sets the type of scaling of the values reflected by the scalar bar.

      Parameters:
      + + +
      theScaling The value of this parameter is taken from the Scaling enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Scaling VISU.ScalarMap.GetScaling (  )  [inherited]
      +
      +
      + +

      +Gets the type of scaling of the values reflected by this presentation. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ScalarMap.SetRange (in double  theMin,
      in double  theMax 
      ) [inherited]
      +
      +
      + +

      +Sets scalar range - min and max boundaries of the scalar bar.

      Parameters:
      + + + +
      theMin Min boundary of the scalar bar.
      theMax Max boundary of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.SetSourceRange (  )  [inherited]
      +
      +
      + +

      +Sets scalar range that corresponds to the source data. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.AddMeshOnGroup (in string  theGroupName  )  [inherited]
      +
      +
      + +

      +Add group as geometry of presentation.

      Parameters:
      + + + +
      theMeshName - mesh name
      theGroupName - group name
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.RemoveAllGeom (  )  [inherited]
      +
      +
      + +

      +PrsMerger method: Remove all groups.(The scalar map will be placed on all mesh). +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetScalarMode (in long  theScalarMode  )  [inherited]
      +
      +
      + +

      +Sets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetScalarMode (  )  [inherited]
      +
      +
      + +

      +Gets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.ColoredPrs3d.IsRangeFixed (  )  [inherited]
      +
      +
      + +

      +Defines whether the scalar range corresponds to the source data or not. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetPosition (in double  X,
      in double  Y 
      ) [inherited]
      +
      +
      + +

      +Sets the position of the scalar bar origin on the screen.

      Parameters:
      + + + +
      X Horizontal position. The value can be between 0 and 1.
      Y Vertical position. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosX (  )  [inherited]
      +
      +
      + +

      +Gets horizontal position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosY (  )  [inherited]
      +
      +
      + +

      +Gets vertical position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetSize (in double  theWidth,
      in double  theHeight 
      ) [inherited]
      +
      +
      + +

      +Sets the size of the scalar bar.

      Parameters:
      + + + +
      theWidth Width of this presentable object. The value can be between 0 and 1.
      theHeight Height of this presentable object. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetWidth (  )  [inherited]
      +
      +
      + +

      +Gets the width of this presentable object.

      Returns:
      A double value corresponding to the width of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetHeight (  )  [inherited]
      +
      +
      + +

      +Gets the height of this presentable object.

      Returns:
      A double value corresponding to the height of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetNbColors (in long  theNbColors  )  [inherited]
      +
      +
      + +

      +Sets the number of colors which will be used for presentation of this presentable object.

      Parameters:
      + + +
      theNbColors A long value defining the number of colors.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetNbColors (  )  [inherited]
      +
      +
      + +

      +Gets the number of colors which will be used for visualization of this presentable object.

      Returns:
      A long value corresponding to the number of colors which will be used for visualization of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetLabels (in long  theNbLabels  )  [inherited]
      +
      +
      + +

      +Sets the number of labels which will be used for indication of color gradation of the scalar bar.

      Parameters:
      + + +
      theNbLabels A long value defining the number of labels.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetLabels (  )  [inherited]
      +
      +
      + +

      +Gets the number of labels which will be used for indication of color gradation of the scalar bar.

      Returns:
      A long value corresponding to the number of labels which will be used for indication of color gradation of the scalar bar.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetTitle (in string  theName  )  [inherited]
      +
      +
      + +

      +Sets the title of the scalar bar. By default - the name of the selected result is used.

      Parameters:
      + + +
      theName String parameter defining the name of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.ColoredPrs3d.GetTitle (  )  [inherited]
      +
      +
      + +

      +Gets the title of the scalar bar. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetBarOrientation (in Orientation  theOrientation  )  [inherited]
      +
      +
      + +

      +Sets the type of orientation of the scalar bar (to provide backward compatibility).

      Parameters:
      + + +
      theOrientation This parameter defines the orientation of the scalar bar. It is taken from the Orientaton enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Orientation VISU.ColoredPrs3d.GetBarOrientation (  )  [inherited]
      +
      +
      + +

      +Gets the type of orientation of the scalar bar (to provide backward compatibility). +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.SetOffset (in float  theDx,
      in float  theDy,
      in float  theDz 
      ) [inherited]
      +
      +
      + +

      +Move the 3D presentation according to the given offset parameters +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.GetOffset (out float  theDx,
      out float  theDy,
      out float  theDz 
      ) [inherited]
      +
      +
      + +

      +Gets offset parameters for the 3D presentation +

      +

      + +

      +
      + + + + + + + + +
      float VISU.Prs3d.GetMemorySize (  )  [inherited]
      +
      +
      + +

      +Gets memory size actually used by the presentation (Mb). +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutPlanes__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutPlanes__inherit__graph.jpg new file mode 100644 index 00000000..9f086654 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1CutPlanes__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1DeformedShape.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1DeformedShape.html new file mode 100644 index 00000000..51fab04a --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1DeformedShape.html @@ -0,0 +1,1043 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.DeformedShape Interface Reference

      Deformed shape presentation interface. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.DeformedShape:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       HORIZONTAL
       VERTICAL
      enum  Orientation { HORIZONTAL, +VERTICAL + }

      Public Member Functions

      void SetScale (in double theScale)
      double GetScale ()
      boolean IsColored ()
      void ShowColored (in boolean theColored)
      SALOMEDS::Color GetColor ()
      void SetColor (in SALOMEDS::Color theColor)
      void SetScaling (in Scaling theScaling)
      Scaling GetScaling ()
      void SetRange (in double theMin, in double theMax)
      void SetSourceRange ()
      void AddMeshOnGroup (in string theGroupName)
      void RemoveAllGeom ()
      void SetScalarMode (in long theScalarMode)
      long GetScalarMode ()
      double GetMin ()
      double GetMax ()
      double GetSourceMin ()
      double GetSourceMax ()
      boolean IsRangeFixed ()
      void SetPosition (in double X, in double Y)
       Position of the scalar bar.
      double GetPosX ()
      double GetPosY ()
      void SetSize (in double theWidth, in double theHeight)
       Size of this presentable object.
      double GetWidth ()
      double GetHeight ()
      void SetNbColors (in long theNbColors)
      long GetNbColors ()
      void SetLabels (in long theNbLabels)
      long GetLabels ()
      void SetTitle (in string theName)
      string GetTitle ()
      void SetBarOrientation (in Orientation theOrientation)
      Orientation GetBarOrientation ()
      void SetOffset (in float theDx, in float theDy, in float theDz)
      void GetOffset (out float theDx, out float theDy, out float theDz)
      float GetMemorySize ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +Presentation parameters of the deformed shape presentation. +

      +


      Member Enumeration Documentation

      + +
      +
      + + + + +
      enum VISU::ColoredPrs3d::Orientation [inherited]
      +
      +
      + +

      +Orientation of the scalar bar (to provide backward compatibility).

      Enumerator:
      + + + +
      HORIZONTAL  +Horizontal orientation of the scalar bar.
      VERTICAL  +Vertical orientation of the scalar bar.
      +
      + +

      +Implemented in VISU.Plot3D, and VISU.CutPlanes. +

      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + +
      void VISU.DeformedShape.SetScale (in double  theScale  ) 
      +
      +
      + +

      +Sets the scale of the presentatable object.

      Parameters:
      + + +
      theScale Double value defining the scale of this presentable object.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.DeformedShape.GetScale (  ) 
      +
      +
      + +

      +Gets the scale of the presentatable object. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.DeformedShape.IsColored (  ) 
      +
      +
      + +

      +This boolean method returns True if this deformed shape presentation is colored. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.DeformedShape.ShowColored (in boolean  theColored  ) 
      +
      +
      + +

      +Shows this presentation in colored mode.

      Parameters:
      + + +
      theColored If this boolean parameter is True this presentable object will be shown in colored mode.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      SALOMEDS::Color VISU.DeformedShape.GetColor (  ) 
      +
      +
      + +

      +Gets the color of this presentable object.

      Returns:
      The color of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.DeformedShape.SetColor (in SALOMEDS::Color  theColor  ) 
      +
      +
      + +

      +Sets the color of this presentation.

      Parameters:
      + + +
      theColor The color of this presentation. This parameter is taken from the Color enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.SetScaling (in Scaling  theScaling  )  [inherited]
      +
      +
      + +

      +Sets the type of scaling of the values reflected by the scalar bar.

      Parameters:
      + + +
      theScaling The value of this parameter is taken from the Scaling enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Scaling VISU.ScalarMap.GetScaling (  )  [inherited]
      +
      +
      + +

      +Gets the type of scaling of the values reflected by this presentation. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ScalarMap.SetRange (in double  theMin,
      in double  theMax 
      ) [inherited]
      +
      +
      + +

      +Sets scalar range - min and max boundaries of the scalar bar.

      Parameters:
      + + + +
      theMin Min boundary of the scalar bar.
      theMax Max boundary of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.SetSourceRange (  )  [inherited]
      +
      +
      + +

      +Sets scalar range that corresponds to the source data. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.AddMeshOnGroup (in string  theGroupName  )  [inherited]
      +
      +
      + +

      +Add group as geometry of presentation.

      Parameters:
      + + + +
      theMeshName - mesh name
      theGroupName - group name
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.RemoveAllGeom (  )  [inherited]
      +
      +
      + +

      +PrsMerger method: Remove all groups.(The scalar map will be placed on all mesh). +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetScalarMode (in long  theScalarMode  )  [inherited]
      +
      +
      + +

      +Sets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetScalarMode (  )  [inherited]
      +
      +
      + +

      +Gets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.ColoredPrs3d.IsRangeFixed (  )  [inherited]
      +
      +
      + +

      +Defines whether the scalar range corresponds to the source data or not. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetPosition (in double  X,
      in double  Y 
      ) [inherited]
      +
      +
      + +

      +Sets the position of the scalar bar origin on the screen.

      Parameters:
      + + + +
      X Horizontal position. The value can be between 0 and 1.
      Y Vertical position. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosX (  )  [inherited]
      +
      +
      + +

      +Gets horizontal position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosY (  )  [inherited]
      +
      +
      + +

      +Gets vertical position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetSize (in double  theWidth,
      in double  theHeight 
      ) [inherited]
      +
      +
      + +

      +Sets the size of the scalar bar.

      Parameters:
      + + + +
      theWidth Width of this presentable object. The value can be between 0 and 1.
      theHeight Height of this presentable object. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetWidth (  )  [inherited]
      +
      +
      + +

      +Gets the width of this presentable object.

      Returns:
      A double value corresponding to the width of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetHeight (  )  [inherited]
      +
      +
      + +

      +Gets the height of this presentable object.

      Returns:
      A double value corresponding to the height of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetNbColors (in long  theNbColors  )  [inherited]
      +
      +
      + +

      +Sets the number of colors which will be used for presentation of this presentable object.

      Parameters:
      + + +
      theNbColors A long value defining the number of colors.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetNbColors (  )  [inherited]
      +
      +
      + +

      +Gets the number of colors which will be used for visualization of this presentable object.

      Returns:
      A long value corresponding to the number of colors which will be used for visualization of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetLabels (in long  theNbLabels  )  [inherited]
      +
      +
      + +

      +Sets the number of labels which will be used for indication of color gradation of the scalar bar.

      Parameters:
      + + +
      theNbLabels A long value defining the number of labels.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetLabels (  )  [inherited]
      +
      +
      + +

      +Gets the number of labels which will be used for indication of color gradation of the scalar bar.

      Returns:
      A long value corresponding to the number of labels which will be used for indication of color gradation of the scalar bar.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetTitle (in string  theName  )  [inherited]
      +
      +
      + +

      +Sets the title of the scalar bar. By default - the name of the selected result is used.

      Parameters:
      + + +
      theName String parameter defining the name of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.ColoredPrs3d.GetTitle (  )  [inherited]
      +
      +
      + +

      +Gets the title of the scalar bar. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetBarOrientation (in Orientation  theOrientation  )  [inherited]
      +
      +
      + +

      +Sets the type of orientation of the scalar bar (to provide backward compatibility).

      Parameters:
      + + +
      theOrientation This parameter defines the orientation of the scalar bar. It is taken from the Orientaton enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Orientation VISU.ColoredPrs3d.GetBarOrientation (  )  [inherited]
      +
      +
      + +

      +Gets the type of orientation of the scalar bar (to provide backward compatibility). +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.SetOffset (in float  theDx,
      in float  theDy,
      in float  theDz 
      ) [inherited]
      +
      +
      + +

      +Move the 3D presentation according to the given offset parameters +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.GetOffset (out float  theDx,
      out float  theDy,
      out float  theDz 
      ) [inherited]
      +
      +
      + +

      +Gets offset parameters for the 3D presentation +

      +

      + +

      +
      + + + + + + + + +
      float VISU.Prs3d.GetMemorySize (  )  [inherited]
      +
      +
      + +

      +Gets memory size actually used by the presentation (Mb). +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1DeformedShape__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1DeformedShape__inherit__graph.jpg new file mode 100644 index 00000000..a53bc9f6 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1DeformedShape__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1GaussPoints.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1GaussPoints.html new file mode 100644 index 00000000..9c195777 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1GaussPoints.html @@ -0,0 +1,740 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.GaussPoints Interface Reference

      Gauss Points presentation interface. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.GaussPoints:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       HORIZONTAL
       VERTICAL
      enum  Orientation { HORIZONTAL, +VERTICAL + }

      Public Member Functions

      void SetScalarMode (in long theScalarMode)
      long GetScalarMode ()
      double GetMin ()
      double GetMax ()
      double GetSourceMin ()
      double GetSourceMax ()
      boolean IsRangeFixed ()
      void SetPosition (in double X, in double Y)
       Position of the scalar bar.
      double GetPosX ()
      double GetPosY ()
      void SetSize (in double theWidth, in double theHeight)
       Size of this presentable object.
      double GetWidth ()
      double GetHeight ()
      void SetNbColors (in long theNbColors)
      long GetNbColors ()
      void SetLabels (in long theNbLabels)
      long GetLabels ()
      void SetTitle (in string theName)
      string GetTitle ()
      void SetBarOrientation (in Orientation theOrientation)
      Orientation GetBarOrientation ()
      void SetOffset (in float theDx, in float theDy, in float theDz)
      void GetOffset (out float theDx, out float theDy, out float theDz)
      float GetMemorySize ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +Presentation parameters of the Gauss Points presentation. +

      +


      Member Enumeration Documentation

      + +
      +
      + + + + +
      enum VISU::ColoredPrs3d::Orientation [inherited]
      +
      +
      + +

      +Orientation of the scalar bar (to provide backward compatibility).

      Enumerator:
      + + + +
      HORIZONTAL  +Horizontal orientation of the scalar bar.
      VERTICAL  +Vertical orientation of the scalar bar.
      +
      + +

      +Implemented in VISU.Plot3D, and VISU.CutPlanes. +

      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetScalarMode (in long  theScalarMode  )  [inherited]
      +
      +
      + +

      +Sets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetScalarMode (  )  [inherited]
      +
      +
      + +

      +Gets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.ColoredPrs3d.IsRangeFixed (  )  [inherited]
      +
      +
      + +

      +Defines whether the scalar range corresponds to the source data or not. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetPosition (in double  X,
      in double  Y 
      ) [inherited]
      +
      +
      + +

      +Sets the position of the scalar bar origin on the screen.

      Parameters:
      + + + +
      X Horizontal position. The value can be between 0 and 1.
      Y Vertical position. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosX (  )  [inherited]
      +
      +
      + +

      +Gets horizontal position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosY (  )  [inherited]
      +
      +
      + +

      +Gets vertical position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetSize (in double  theWidth,
      in double  theHeight 
      ) [inherited]
      +
      +
      + +

      +Sets the size of the scalar bar.

      Parameters:
      + + + +
      theWidth Width of this presentable object. The value can be between 0 and 1.
      theHeight Height of this presentable object. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetWidth (  )  [inherited]
      +
      +
      + +

      +Gets the width of this presentable object.

      Returns:
      A double value corresponding to the width of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetHeight (  )  [inherited]
      +
      +
      + +

      +Gets the height of this presentable object.

      Returns:
      A double value corresponding to the height of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetNbColors (in long  theNbColors  )  [inherited]
      +
      +
      + +

      +Sets the number of colors which will be used for presentation of this presentable object.

      Parameters:
      + + +
      theNbColors A long value defining the number of colors.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetNbColors (  )  [inherited]
      +
      +
      + +

      +Gets the number of colors which will be used for visualization of this presentable object.

      Returns:
      A long value corresponding to the number of colors which will be used for visualization of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetLabels (in long  theNbLabels  )  [inherited]
      +
      +
      + +

      +Sets the number of labels which will be used for indication of color gradation of the scalar bar.

      Parameters:
      + + +
      theNbLabels A long value defining the number of labels.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetLabels (  )  [inherited]
      +
      +
      + +

      +Gets the number of labels which will be used for indication of color gradation of the scalar bar.

      Returns:
      A long value corresponding to the number of labels which will be used for indication of color gradation of the scalar bar.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetTitle (in string  theName  )  [inherited]
      +
      +
      + +

      +Sets the title of the scalar bar. By default - the name of the selected result is used.

      Parameters:
      + + +
      theName String parameter defining the name of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.ColoredPrs3d.GetTitle (  )  [inherited]
      +
      +
      + +

      +Gets the title of the scalar bar. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetBarOrientation (in Orientation  theOrientation  )  [inherited]
      +
      +
      + +

      +Sets the type of orientation of the scalar bar (to provide backward compatibility).

      Parameters:
      + + +
      theOrientation This parameter defines the orientation of the scalar bar. It is taken from the Orientaton enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Orientation VISU.ColoredPrs3d.GetBarOrientation (  )  [inherited]
      +
      +
      + +

      +Gets the type of orientation of the scalar bar (to provide backward compatibility). +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.SetOffset (in float  theDx,
      in float  theDy,
      in float  theDz 
      ) [inherited]
      +
      +
      + +

      +Move the 3D presentation according to the given offset parameters +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.GetOffset (out float  theDx,
      out float  theDy,
      out float  theDz 
      ) [inherited]
      +
      +
      + +

      +Gets offset parameters for the 3D presentation +

      +

      + +

      +
      + + + + + + + + +
      float VISU.Prs3d.GetMemorySize (  )  [inherited]
      +
      +
      + +

      +Gets memory size actually used by the presentation (Mb). +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1GaussPoints__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1GaussPoints__inherit__graph.jpg new file mode 100644 index 00000000..c11019fb Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1GaussPoints__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1IsoSurfaces.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1IsoSurfaces.html new file mode 100644 index 00000000..252b38a1 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1IsoSurfaces.html @@ -0,0 +1,945 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.IsoSurfaces Interface Reference

      Interface of the isometric surface presentation. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.IsoSurfaces:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       HORIZONTAL
       VERTICAL
      enum  Orientation { HORIZONTAL, +VERTICAL + }

      Public Member Functions

      void SetNbSurfaces (in long theNb)
      long GetNbSurfaces ()
      void SetScaling (in Scaling theScaling)
      Scaling GetScaling ()
      void SetRange (in double theMin, in double theMax)
      void SetSourceRange ()
      void AddMeshOnGroup (in string theGroupName)
      void RemoveAllGeom ()
      void SetScalarMode (in long theScalarMode)
      long GetScalarMode ()
      double GetMin ()
      double GetMax ()
      double GetSourceMin ()
      double GetSourceMax ()
      boolean IsRangeFixed ()
      void SetPosition (in double X, in double Y)
       Position of the scalar bar.
      double GetPosX ()
      double GetPosY ()
      void SetSize (in double theWidth, in double theHeight)
       Size of this presentable object.
      double GetWidth ()
      double GetHeight ()
      void SetNbColors (in long theNbColors)
      long GetNbColors ()
      void SetLabels (in long theNbLabels)
      long GetLabels ()
      void SetTitle (in string theName)
      string GetTitle ()
      void SetBarOrientation (in Orientation theOrientation)
      Orientation GetBarOrientation ()
      void SetOffset (in float theDx, in float theDy, in float theDz)
      void GetOffset (out float theDx, out float theDy, out float theDz)
      float GetMemorySize ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +This interface contains presentation parameters of isometric surface presentations.
      +Iso surfaces presentation combines all equal scalar values on the cells and on the basis of them constructs isobaric surfaces, which form this presentation. +

      +


      Member Enumeration Documentation

      + +
      +
      + + + + +
      enum VISU::ColoredPrs3d::Orientation [inherited]
      +
      +
      + +

      +Orientation of the scalar bar (to provide backward compatibility).

      Enumerator:
      + + + +
      HORIZONTAL  +Horizontal orientation of the scalar bar.
      VERTICAL  +Vertical orientation of the scalar bar.
      +
      + +

      +Implemented in VISU.Plot3D, and VISU.CutPlanes. +

      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + +
      void VISU.IsoSurfaces.SetNbSurfaces (in long  theNb  ) 
      +
      +
      + +

      +Sets the number of isometric surfaces.

      Parameters:
      + + +
      theNb A long value defining the number of isometric surfaces which will be used for construction of this presentation.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.IsoSurfaces.GetNbSurfaces (  ) 
      +
      +
      + +

      +Gets the number of isometric surfaces +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.SetScaling (in Scaling  theScaling  )  [inherited]
      +
      +
      + +

      +Sets the type of scaling of the values reflected by the scalar bar.

      Parameters:
      + + +
      theScaling The value of this parameter is taken from the Scaling enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Scaling VISU.ScalarMap.GetScaling (  )  [inherited]
      +
      +
      + +

      +Gets the type of scaling of the values reflected by this presentation. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ScalarMap.SetRange (in double  theMin,
      in double  theMax 
      ) [inherited]
      +
      +
      + +

      +Sets scalar range - min and max boundaries of the scalar bar.

      Parameters:
      + + + +
      theMin Min boundary of the scalar bar.
      theMax Max boundary of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.SetSourceRange (  )  [inherited]
      +
      +
      + +

      +Sets scalar range that corresponds to the source data. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.AddMeshOnGroup (in string  theGroupName  )  [inherited]
      +
      +
      + +

      +Add group as geometry of presentation.

      Parameters:
      + + + +
      theMeshName - mesh name
      theGroupName - group name
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.RemoveAllGeom (  )  [inherited]
      +
      +
      + +

      +PrsMerger method: Remove all groups.(The scalar map will be placed on all mesh). +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetScalarMode (in long  theScalarMode  )  [inherited]
      +
      +
      + +

      +Sets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetScalarMode (  )  [inherited]
      +
      +
      + +

      +Gets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.ColoredPrs3d.IsRangeFixed (  )  [inherited]
      +
      +
      + +

      +Defines whether the scalar range corresponds to the source data or not. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetPosition (in double  X,
      in double  Y 
      ) [inherited]
      +
      +
      + +

      +Sets the position of the scalar bar origin on the screen.

      Parameters:
      + + + +
      X Horizontal position. The value can be between 0 and 1.
      Y Vertical position. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosX (  )  [inherited]
      +
      +
      + +

      +Gets horizontal position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosY (  )  [inherited]
      +
      +
      + +

      +Gets vertical position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetSize (in double  theWidth,
      in double  theHeight 
      ) [inherited]
      +
      +
      + +

      +Sets the size of the scalar bar.

      Parameters:
      + + + +
      theWidth Width of this presentable object. The value can be between 0 and 1.
      theHeight Height of this presentable object. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetWidth (  )  [inherited]
      +
      +
      + +

      +Gets the width of this presentable object.

      Returns:
      A double value corresponding to the width of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetHeight (  )  [inherited]
      +
      +
      + +

      +Gets the height of this presentable object.

      Returns:
      A double value corresponding to the height of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetNbColors (in long  theNbColors  )  [inherited]
      +
      +
      + +

      +Sets the number of colors which will be used for presentation of this presentable object.

      Parameters:
      + + +
      theNbColors A long value defining the number of colors.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetNbColors (  )  [inherited]
      +
      +
      + +

      +Gets the number of colors which will be used for visualization of this presentable object.

      Returns:
      A long value corresponding to the number of colors which will be used for visualization of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetLabels (in long  theNbLabels  )  [inherited]
      +
      +
      + +

      +Sets the number of labels which will be used for indication of color gradation of the scalar bar.

      Parameters:
      + + +
      theNbLabels A long value defining the number of labels.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetLabels (  )  [inherited]
      +
      +
      + +

      +Gets the number of labels which will be used for indication of color gradation of the scalar bar.

      Returns:
      A long value corresponding to the number of labels which will be used for indication of color gradation of the scalar bar.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetTitle (in string  theName  )  [inherited]
      +
      +
      + +

      +Sets the title of the scalar bar. By default - the name of the selected result is used.

      Parameters:
      + + +
      theName String parameter defining the name of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.ColoredPrs3d.GetTitle (  )  [inherited]
      +
      +
      + +

      +Gets the title of the scalar bar. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetBarOrientation (in Orientation  theOrientation  )  [inherited]
      +
      +
      + +

      +Sets the type of orientation of the scalar bar (to provide backward compatibility).

      Parameters:
      + + +
      theOrientation This parameter defines the orientation of the scalar bar. It is taken from the Orientaton enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Orientation VISU.ColoredPrs3d.GetBarOrientation (  )  [inherited]
      +
      +
      + +

      +Gets the type of orientation of the scalar bar (to provide backward compatibility). +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.SetOffset (in float  theDx,
      in float  theDy,
      in float  theDz 
      ) [inherited]
      +
      +
      + +

      +Move the 3D presentation according to the given offset parameters +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.GetOffset (out float  theDx,
      out float  theDy,
      out float  theDz 
      ) [inherited]
      +
      +
      + +

      +Gets offset parameters for the 3D presentation +

      +

      + +

      +
      + + + + + + + + +
      float VISU.Prs3d.GetMemorySize (  )  [inherited]
      +
      +
      + +

      +Gets memory size actually used by the presentation (Mb). +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1IsoSurfaces__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1IsoSurfaces__inherit__graph.jpg new file mode 100644 index 00000000..1f9133f0 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1IsoSurfaces__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Mesh.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Mesh.html new file mode 100644 index 00000000..1215e726 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Mesh.html @@ -0,0 +1,393 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.Mesh Interface Reference

      Interface of the mesh. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.Mesh:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Member Functions

      void SetCellColor (in SALOMEDS::Color theColor)
      SALOMEDS::Color GetCellColor ()
      void SetNodeColor (in SALOMEDS::Color theColor)
      SALOMEDS::Color GetNodeColor ()
      void SetLinkColor (in SALOMEDS::Color theColor)
      SALOMEDS::Color GetLinkColor ()
      void SetPresentationType (in PresentationType theType)
      PresentationType GetPresentationType ()
      void SetOffset (in float theDx, in float theDy, in float theDz)
      void GetOffset (out float theDx, out float theDy, out float theDz)
      float GetMemorySize ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +Manages presentation parameters of a 3D presentation of a mesh. This object can be used for presentation of set of curves using Container class. +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + +
      void VISU.Mesh.SetCellColor (in SALOMEDS::Color  theColor  ) 
      +
      +
      + +

      +Sets the color of mesh cells.

      Parameters:
      + + +
      theColor The color of the cells. This parameter is taken from Color enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      SALOMEDS::Color VISU.Mesh.GetCellColor (  ) 
      +
      +
      + +

      +Gets the color of mesh cells. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Mesh.SetNodeColor (in SALOMEDS::Color  theColor  ) 
      +
      +
      + +

      +Sets the color of mesh nodes.

      Parameters:
      + + +
      theColor The color of the nodes. This parameter is taken from Color enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      SALOMEDS::Color VISU.Mesh.GetNodeColor (  ) 
      +
      +
      + +

      +Gets the color of mesh nodes. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Mesh.SetLinkColor (in SALOMEDS::Color  theColor  ) 
      +
      +
      + +

      +Sets the color of mesh links.

      Parameters:
      + + +
      theColor The color of the links. This parameter is taken from Color enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      SALOMEDS::Color VISU.Mesh.GetLinkColor (  ) 
      +
      +
      + +

      +Gets the color of mesh links. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Mesh.SetPresentationType (in PresentationType  theType  ) 
      +
      +
      + +

      +Sets the type of representation of a mesh.

      Parameters:
      + + +
      theType The of representation of a mesh. This parameter is taken from PresentationType enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      PresentationType VISU.Mesh.GetPresentationType (  ) 
      +
      +
      + +

      +Gets the type of representation of the mesh.

      Returns:
      The type of representation of the mesh.
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.SetOffset (in float  theDx,
      in float  theDy,
      in float  theDz 
      ) [inherited]
      +
      +
      + +

      +Move the 3D presentation according to the given offset parameters +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.GetOffset (out float  theDx,
      out float  theDy,
      out float  theDz 
      ) [inherited]
      +
      +
      + +

      +Gets offset parameters for the 3D presentation +

      +

      + +

      +
      + + + + + + + + +
      float VISU.Prs3d.GetMemorySize (  )  [inherited]
      +
      +
      + +

      +Gets memory size actually used by the presentation (Mb). +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Mesh__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Mesh__inherit__graph.jpg new file mode 100644 index 00000000..57324c08 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Mesh__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Plot3D.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Plot3D.html new file mode 100644 index 00000000..815db0fc --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Plot3D.html @@ -0,0 +1,1235 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.Plot3D Interface Reference

      Plot3D interface. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.Plot3D:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       XY
       YZ
       ZX
      enum  Orientation { XY, +YZ, +ZX + }
       HORIZONTAL
       VERTICAL

      Public Member Functions

      void SetOrientation (in Orientation theOrientation, in double theXAngle, in double theYAngle)
      Orientation GetOrientationType ()
      double GetRotateX ()
      double GetRotateY ()
      void SetPlanePosition (in double thePlanePosition, in boolean theIsRelative)
      double GetPlanePosition ()
      boolean IsPositionRelative ()
      void SetScaleFactor (in double theScaleFactor)
      double GetScaleFactor ()
      void SetContourPrs (in boolean theIsContourPrs)
      boolean GetIsContourPrs ()
      void SetNbOfContours (in long theNb)
      long GetNbOfContours ()
      void SetScaling (in Scaling theScaling)
      Scaling GetScaling ()
      void SetRange (in double theMin, in double theMax)
      void SetSourceRange ()
      void AddMeshOnGroup (in string theGroupName)
      void RemoveAllGeom ()
      void SetScalarMode (in long theScalarMode)
      long GetScalarMode ()
      double GetMin ()
      double GetMax ()
      double GetSourceMin ()
      double GetSourceMax ()
      boolean IsRangeFixed ()
      void SetPosition (in double X, in double Y)
       Position of the scalar bar.
      double GetPosX ()
      double GetPosY ()
      void SetSize (in double theWidth, in double theHeight)
       Size of this presentable object.
      double GetWidth ()
      double GetHeight ()
      void SetNbColors (in long theNbColors)
      long GetNbColors ()
      void SetLabels (in long theNbLabels)
      long GetLabels ()
      void SetTitle (in string theName)
      string GetTitle ()
      void SetBarOrientation (in Orientation theOrientation)
      Orientation GetBarOrientation ()
      void SetOffset (in float theDx, in float theDy, in float theDz)
      void GetOffset (out float theDx, out float theDy, out float theDz)
      float GetMemorySize ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +Presentation parameters of Plot3D presentation. This type of presentation consists of deforming initial planar mesh according to values assigned to the mesh elements. If mesh not planar but volumic one, it is possible to generate intermediate planar mesh. +

      +


      Member Enumeration Documentation

      + +
      +
      + + + + +
      enum VISU::Plot3D::Orientation
      +
      +
      + +

      +This enumeration contains a set of elements defining the type of orientation in 3D space of the cutting plane.

      Enumerator:
      + + + + +
      XY  +The object is located in the plane formed by X and Y axis.
      YZ  +The object is located in the plane formed by Y and Z axis.
      ZX  +
      +
      + +

      +Implements VISU.ColoredPrs3d. +

      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Plot3D.SetOrientation (in Orientation  theOrientation,
      in double  theXAngle,
      in double  theYAngle 
      )
      +
      +
      + +

      +Sets the orientation in 3D space of cutting plane for the presentation.

      Parameters:
      + + + + +
      theOrientation This parameter defines the type of orientation of cutting plane in 3D space. It is taken from the Orientation enumeration.
      theXAngle The angle of rotation of the cutting plane around the first axis of the chosen orientation.
      theXAngle The angle of rotation of the cutting plane around the second axis of the chosen orientation.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Orientation VISU.Plot3D.GetOrientationType (  ) 
      +
      +
      + +

      +Gets the type of orientation in 3D space of cutting plane. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.Plot3D.GetRotateX (  ) 
      +
      +
      + +

      +Gets rotation angle of the cutting plane around the first axis of the chosen orientation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.Plot3D.GetRotateY (  ) 
      +
      +
      + +

      +Gets rotation angle of the cutting plane around the second axis of the chosen orientation. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.Plot3D.SetPlanePosition (in double  thePlanePosition,
      in boolean  theIsRelative 
      )
      +
      +
      + +

      +Sets the position of a cutting plane.

      Parameters:
      + + + +
      thePlanePosition The position of the cutting plane.
      theIsRelative Define, whether the input position is relative.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.Plot3D.GetPlanePosition (  ) 
      +
      +
      + +

      +Gets the position of the cutting plane +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.Plot3D.IsPositionRelative (  ) 
      +
      +
      + +

      +Returns true if a position of cutting plane is relative +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Plot3D.SetScaleFactor (in double  theScaleFactor  ) 
      +
      +
      + +

      +Sets the scale factor for scalar values (how much corresponding mesh elements should be translated).

      Parameters:
      + + +
      theScaleFactor The scaling factor.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.Plot3D.GetScaleFactor (  ) 
      +
      +
      + +

      +Gets the scale factor for scalar values. (how much corresponding mesh elements is translated) +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Plot3D.SetContourPrs (in boolean  theIsContourPrs  ) 
      +
      +
      + +

      +Sets presentation type: contour or surface.

      Parameters:
      + + +
      theIsContourPrs Define, whether presentation type is contour.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      boolean VISU.Plot3D.GetIsContourPrs (  ) 
      +
      +
      + +

      +Returns true if presentation type is contour. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Plot3D.SetNbOfContours (in long  theNb  ) 
      +
      +
      + +

      +Sets the number of contours.

      Parameters:
      + + +
      theNb The number of contours.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.Plot3D.GetNbOfContours (  ) 
      +
      +
      + +

      +Gets the number of contours. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.SetScaling (in Scaling  theScaling  )  [inherited]
      +
      +
      + +

      +Sets the type of scaling of the values reflected by the scalar bar.

      Parameters:
      + + +
      theScaling The value of this parameter is taken from the Scaling enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Scaling VISU.ScalarMap.GetScaling (  )  [inherited]
      +
      +
      + +

      +Gets the type of scaling of the values reflected by this presentation. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ScalarMap.SetRange (in double  theMin,
      in double  theMax 
      ) [inherited]
      +
      +
      + +

      +Sets scalar range - min and max boundaries of the scalar bar.

      Parameters:
      + + + +
      theMin Min boundary of the scalar bar.
      theMax Max boundary of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.SetSourceRange (  )  [inherited]
      +
      +
      + +

      +Sets scalar range that corresponds to the source data. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.AddMeshOnGroup (in string  theGroupName  )  [inherited]
      +
      +
      + +

      +Add group as geometry of presentation.

      Parameters:
      + + + +
      theMeshName - mesh name
      theGroupName - group name
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.RemoveAllGeom (  )  [inherited]
      +
      +
      + +

      +PrsMerger method: Remove all groups.(The scalar map will be placed on all mesh). +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetScalarMode (in long  theScalarMode  )  [inherited]
      +
      +
      + +

      +Sets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetScalarMode (  )  [inherited]
      +
      +
      + +

      +Gets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.ColoredPrs3d.IsRangeFixed (  )  [inherited]
      +
      +
      + +

      +Defines whether the scalar range corresponds to the source data or not. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetPosition (in double  X,
      in double  Y 
      ) [inherited]
      +
      +
      + +

      +Sets the position of the scalar bar origin on the screen.

      Parameters:
      + + + +
      X Horizontal position. The value can be between 0 and 1.
      Y Vertical position. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosX (  )  [inherited]
      +
      +
      + +

      +Gets horizontal position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosY (  )  [inherited]
      +
      +
      + +

      +Gets vertical position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetSize (in double  theWidth,
      in double  theHeight 
      ) [inherited]
      +
      +
      + +

      +Sets the size of the scalar bar.

      Parameters:
      + + + +
      theWidth Width of this presentable object. The value can be between 0 and 1.
      theHeight Height of this presentable object. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetWidth (  )  [inherited]
      +
      +
      + +

      +Gets the width of this presentable object.

      Returns:
      A double value corresponding to the width of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetHeight (  )  [inherited]
      +
      +
      + +

      +Gets the height of this presentable object.

      Returns:
      A double value corresponding to the height of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetNbColors (in long  theNbColors  )  [inherited]
      +
      +
      + +

      +Sets the number of colors which will be used for presentation of this presentable object.

      Parameters:
      + + +
      theNbColors A long value defining the number of colors.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetNbColors (  )  [inherited]
      +
      +
      + +

      +Gets the number of colors which will be used for visualization of this presentable object.

      Returns:
      A long value corresponding to the number of colors which will be used for visualization of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetLabels (in long  theNbLabels  )  [inherited]
      +
      +
      + +

      +Sets the number of labels which will be used for indication of color gradation of the scalar bar.

      Parameters:
      + + +
      theNbLabels A long value defining the number of labels.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetLabels (  )  [inherited]
      +
      +
      + +

      +Gets the number of labels which will be used for indication of color gradation of the scalar bar.

      Returns:
      A long value corresponding to the number of labels which will be used for indication of color gradation of the scalar bar.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetTitle (in string  theName  )  [inherited]
      +
      +
      + +

      +Sets the title of the scalar bar. By default - the name of the selected result is used.

      Parameters:
      + + +
      theName String parameter defining the name of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.ColoredPrs3d.GetTitle (  )  [inherited]
      +
      +
      + +

      +Gets the title of the scalar bar. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetBarOrientation (in Orientation  theOrientation  )  [inherited]
      +
      +
      + +

      +Sets the type of orientation of the scalar bar (to provide backward compatibility).

      Parameters:
      + + +
      theOrientation This parameter defines the orientation of the scalar bar. It is taken from the Orientaton enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Orientation VISU.ColoredPrs3d.GetBarOrientation (  )  [inherited]
      +
      +
      + +

      +Gets the type of orientation of the scalar bar (to provide backward compatibility). +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.SetOffset (in float  theDx,
      in float  theDy,
      in float  theDz 
      ) [inherited]
      +
      +
      + +

      +Move the 3D presentation according to the given offset parameters +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.GetOffset (out float  theDx,
      out float  theDy,
      out float  theDz 
      ) [inherited]
      +
      +
      + +

      +Gets offset parameters for the 3D presentation +

      +

      + +

      +
      + + + + + + + + +
      float VISU.Prs3d.GetMemorySize (  )  [inherited]
      +
      +
      + +

      +Gets memory size actually used by the presentation (Mb). +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Plot3D__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Plot3D__inherit__graph.jpg new file mode 100644 index 00000000..9197fe3e Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Plot3D__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Prs3d.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Prs3d.html new file mode 100644 index 00000000..896447a5 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Prs3d.html @@ -0,0 +1,211 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.Prs3d Interface Reference

      3D presentation interface +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.Prs3d:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Member Functions

      void SetOffset (in float theDx, in float theDy, in float theDz)
      void GetOffset (out float theDx, out float theDy, out float theDz)
      float GetMemorySize ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +This is a root class for all 3D presentations, which can be displayed in VISU module. +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.SetOffset (in float  theDx,
      in float  theDy,
      in float  theDz 
      )
      +
      +
      + +

      +Move the 3D presentation according to the given offset parameters +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.GetOffset (out float  theDx,
      out float  theDy,
      out float  theDz 
      )
      +
      +
      + +

      +Gets offset parameters for the 3D presentation +

      +

      + +

      +
      + + + + + + + + +
      float VISU.Prs3d.GetMemorySize (  ) 
      +
      +
      + +

      +Gets memory size actually used by the presentation (Mb). +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Prs3d__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Prs3d__inherit__graph.jpg new file mode 100644 index 00000000..b2adc95d Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Prs3d__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1PrsObject.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1PrsObject.html new file mode 100644 index 00000000..eae17a13 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1PrsObject.html @@ -0,0 +1,111 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.PrsObject Interface Reference

      Presentable object interface. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.PrsObject:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + +

      Public Member Functions

      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +Presentable object interface is the root class of all presentable objects. +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1PrsObject__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1PrsObject__inherit__graph.jpg new file mode 100644 index 00000000..cc3fcc6d Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1PrsObject__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1RemovableObject.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1RemovableObject.html new file mode 100644 index 00000000..7242d515 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1RemovableObject.html @@ -0,0 +1,113 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.RemovableObject Interface Reference

      Removable object interface. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.RemovableObject:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Member Functions

      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +Removable object interface is the root class of all removable objects. +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  ) 
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1RemovableObject__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1RemovableObject__inherit__graph.jpg new file mode 100644 index 00000000..9da2b763 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1RemovableObject__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Result.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Result.html new file mode 100644 index 00000000..ab19f34a --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Result.html @@ -0,0 +1,313 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.Result Interface Reference

      Interface Result. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.Result:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Member Functions

      boolean BuildAll ()
      boolean Build (in boolean theIsBuildAll, in boolean theIsAtOnce)
      boolean IsDone ()
      boolean IsEntitiesDone ()
      void SetBuildFields (in boolean theIsBuildFields, in boolean theIsCalculateMinMax)
      boolean IsFieldsDone ()
      void SetBuildGroups (in boolean theIsBuildGroups)
      boolean IsGroupsDone ()
      boolean IsMinMaxDone ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +This interface serves for inner representation of data generated in other sources (MED object or file). This data is needed for further construction of graphical presentations. +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + +
      boolean VISU.Result.BuildAll (  ) 
      +
      +
      + +

      +Reads all data from the corresponding sources. By default the data is loaded on demand. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      boolean VISU.Result.Build (in boolean  theIsBuildAll,
      in boolean  theIsAtOnce 
      )
      +
      +
      + +

      +Start to parse the source MED file and publish all its entities into the study +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.Result.IsDone (  ) 
      +
      +
      + +

      +Allow to check is all requested MED entites already loaded or not +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.Result.IsEntitiesDone (  ) 
      +
      +
      + +

      +Allow to check is corresponding MED entites already loaded or not +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.Result.SetBuildFields (in boolean  theIsBuildFields,
      in boolean  theIsCalculateMinMax 
      )
      +
      +
      + +

      +Choose to parse MED fields and perform global min / max on the MED timestamps. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.Result.IsFieldsDone (  ) 
      +
      +
      + +

      +Allow to check is corresponding MED fields already loaded or not +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Result.SetBuildGroups (in boolean  theIsBuildGroups  ) 
      +
      +
      + +

      +Choose to parse MED groups. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.Result.IsGroupsDone (  ) 
      +
      +
      + +

      +Allow to check is corresponding MED groups and families already loaded or not +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.Result.IsMinMaxDone (  ) 
      +
      +
      + +

      +Allow to check is min / max calculation over field's components already perfrormed or not +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Result__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Result__inherit__graph.jpg new file mode 100644 index 00000000..00ee18dd Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Result__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMap.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMap.html new file mode 100644 index 00000000..75bc2bbb --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMap.html @@ -0,0 +1,903 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.ScalarMap Interface Reference

      Interface of the Scalar Map. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.ScalarMap:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       HORIZONTAL
       VERTICAL
      enum  Orientation { HORIZONTAL, +VERTICAL + }

      Public Member Functions

      void SetScaling (in Scaling theScaling)
      Scaling GetScaling ()
      void SetRange (in double theMin, in double theMax)
      void SetSourceRange ()
      void AddMeshOnGroup (in string theGroupName)
      void RemoveAllGeom ()
      void SetScalarMode (in long theScalarMode)
      long GetScalarMode ()
      double GetMin ()
      double GetMax ()
      double GetSourceMin ()
      double GetSourceMax ()
      boolean IsRangeFixed ()
      void SetPosition (in double X, in double Y)
       Position of the scalar bar.
      double GetPosX ()
      double GetPosY ()
      void SetSize (in double theWidth, in double theHeight)
       Size of this presentable object.
      double GetWidth ()
      double GetHeight ()
      void SetNbColors (in long theNbColors)
      long GetNbColors ()
      void SetLabels (in long theNbLabels)
      long GetLabels ()
      void SetTitle (in string theName)
      string GetTitle ()
      void SetBarOrientation (in Orientation theOrientation)
      Orientation GetBarOrientation ()
      void SetOffset (in float theDx, in float theDy, in float theDz)
      void GetOffset (out float theDx, out float theDy, out float theDz)
      float GetMemorySize ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +This interface is responsable for coloring of 3D field presentations according the scalar values applied to different cells. As well it contains presentation parameters of the scalar bar. The scalar bar is displayed along with each colored field presentation and serves for consulting the correspondance between colors and data values. +

      +


      Member Enumeration Documentation

      + +
      +
      + + + + +
      enum VISU::ColoredPrs3d::Orientation [inherited]
      +
      +
      + +

      +Orientation of the scalar bar (to provide backward compatibility).

      Enumerator:
      + + + +
      HORIZONTAL  +Horizontal orientation of the scalar bar.
      VERTICAL  +Vertical orientation of the scalar bar.
      +
      + +

      +Implemented in VISU.Plot3D, and VISU.CutPlanes. +

      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + +
      void VISU.ScalarMap.SetScaling (in Scaling  theScaling  ) 
      +
      +
      + +

      +Sets the type of scaling of the values reflected by the scalar bar.

      Parameters:
      + + +
      theScaling The value of this parameter is taken from the Scaling enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Scaling VISU.ScalarMap.GetScaling (  ) 
      +
      +
      + +

      +Gets the type of scaling of the values reflected by this presentation. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ScalarMap.SetRange (in double  theMin,
      in double  theMax 
      )
      +
      +
      + +

      +Sets scalar range - min and max boundaries of the scalar bar.

      Parameters:
      + + + +
      theMin Min boundary of the scalar bar.
      theMax Max boundary of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.SetSourceRange (  ) 
      +
      +
      + +

      +Sets scalar range that corresponds to the source data. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.AddMeshOnGroup (in string  theGroupName  ) 
      +
      +
      + +

      +Add group as geometry of presentation.

      Parameters:
      + + + +
      theMeshName - mesh name
      theGroupName - group name
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.RemoveAllGeom (  ) 
      +
      +
      + +

      +PrsMerger method: Remove all groups.(The scalar map will be placed on all mesh). +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetScalarMode (in long  theScalarMode  )  [inherited]
      +
      +
      + +

      +Sets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetScalarMode (  )  [inherited]
      +
      +
      + +

      +Gets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.ColoredPrs3d.IsRangeFixed (  )  [inherited]
      +
      +
      + +

      +Defines whether the scalar range corresponds to the source data or not. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetPosition (in double  X,
      in double  Y 
      ) [inherited]
      +
      +
      + +

      +Sets the position of the scalar bar origin on the screen.

      Parameters:
      + + + +
      X Horizontal position. The value can be between 0 and 1.
      Y Vertical position. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosX (  )  [inherited]
      +
      +
      + +

      +Gets horizontal position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosY (  )  [inherited]
      +
      +
      + +

      +Gets vertical position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetSize (in double  theWidth,
      in double  theHeight 
      ) [inherited]
      +
      +
      + +

      +Sets the size of the scalar bar.

      Parameters:
      + + + +
      theWidth Width of this presentable object. The value can be between 0 and 1.
      theHeight Height of this presentable object. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetWidth (  )  [inherited]
      +
      +
      + +

      +Gets the width of this presentable object.

      Returns:
      A double value corresponding to the width of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetHeight (  )  [inherited]
      +
      +
      + +

      +Gets the height of this presentable object.

      Returns:
      A double value corresponding to the height of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetNbColors (in long  theNbColors  )  [inherited]
      +
      +
      + +

      +Sets the number of colors which will be used for presentation of this presentable object.

      Parameters:
      + + +
      theNbColors A long value defining the number of colors.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetNbColors (  )  [inherited]
      +
      +
      + +

      +Gets the number of colors which will be used for visualization of this presentable object.

      Returns:
      A long value corresponding to the number of colors which will be used for visualization of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetLabels (in long  theNbLabels  )  [inherited]
      +
      +
      + +

      +Sets the number of labels which will be used for indication of color gradation of the scalar bar.

      Parameters:
      + + +
      theNbLabels A long value defining the number of labels.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetLabels (  )  [inherited]
      +
      +
      + +

      +Gets the number of labels which will be used for indication of color gradation of the scalar bar.

      Returns:
      A long value corresponding to the number of labels which will be used for indication of color gradation of the scalar bar.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetTitle (in string  theName  )  [inherited]
      +
      +
      + +

      +Sets the title of the scalar bar. By default - the name of the selected result is used.

      Parameters:
      + + +
      theName String parameter defining the name of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.ColoredPrs3d.GetTitle (  )  [inherited]
      +
      +
      + +

      +Gets the title of the scalar bar. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetBarOrientation (in Orientation  theOrientation  )  [inherited]
      +
      +
      + +

      +Sets the type of orientation of the scalar bar (to provide backward compatibility).

      Parameters:
      + + +
      theOrientation This parameter defines the orientation of the scalar bar. It is taken from the Orientaton enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Orientation VISU.ColoredPrs3d.GetBarOrientation (  )  [inherited]
      +
      +
      + +

      +Gets the type of orientation of the scalar bar (to provide backward compatibility). +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.SetOffset (in float  theDx,
      in float  theDy,
      in float  theDz 
      ) [inherited]
      +
      +
      + +

      +Move the 3D presentation according to the given offset parameters +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.GetOffset (out float  theDx,
      out float  theDy,
      out float  theDz 
      ) [inherited]
      +
      +
      + +

      +Gets offset parameters for the 3D presentation +

      +

      + +

      +
      + + + + + + + + +
      float VISU.Prs3d.GetMemorySize (  )  [inherited]
      +
      +
      + +

      +Gets memory size actually used by the presentation (Mb). +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMapOnDeformedShape.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMapOnDeformedShape.html new file mode 100644 index 00000000..878345b4 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMapOnDeformedShape.html @@ -0,0 +1,1051 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.ScalarMapOnDeformedShape Interface Reference

      Scalar Map on Deformed shape presentation interface. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.ScalarMapOnDeformedShape:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       HORIZONTAL
       VERTICAL
      enum  Orientation { HORIZONTAL, +VERTICAL + }

      Public Member Functions

      void SetScale (in double theScale)
      double GetScale ()
      void SetScalarField (in Entity theEntity, in string theFieldName, in long theTimeStampNumber)
      Entity GetScalarEntity ()
      string GetScalarFieldName ()
      long GetScalarTimeStampNumber ()
      void SetScaling (in Scaling theScaling)
      Scaling GetScaling ()
      void SetRange (in double theMin, in double theMax)
      void SetSourceRange ()
      void AddMeshOnGroup (in string theGroupName)
      void RemoveAllGeom ()
      void SetScalarMode (in long theScalarMode)
      long GetScalarMode ()
      double GetMin ()
      double GetMax ()
      double GetSourceMin ()
      double GetSourceMax ()
      boolean IsRangeFixed ()
      void SetPosition (in double X, in double Y)
       Position of the scalar bar.
      double GetPosX ()
      double GetPosY ()
      void SetSize (in double theWidth, in double theHeight)
       Size of this presentable object.
      double GetWidth ()
      double GetHeight ()
      void SetNbColors (in long theNbColors)
      long GetNbColors ()
      void SetLabels (in long theNbLabels)
      long GetLabels ()
      void SetTitle (in string theName)
      string GetTitle ()
      void SetBarOrientation (in Orientation theOrientation)
      Orientation GetBarOrientation ()
      void SetOffset (in float theDx, in float theDy, in float theDz)
      void GetOffset (out float theDx, out float theDy, out float theDz)
      float GetMemorySize ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +Presentation parameters of the scalar map on deformed shape presentation. +

      +


      Member Enumeration Documentation

      + +
      +
      + + + + +
      enum VISU::ColoredPrs3d::Orientation [inherited]
      +
      +
      + +

      +Orientation of the scalar bar (to provide backward compatibility).

      Enumerator:
      + + + +
      HORIZONTAL  +Horizontal orientation of the scalar bar.
      VERTICAL  +Vertical orientation of the scalar bar.
      +
      + +

      +Implemented in VISU.Plot3D, and VISU.CutPlanes. +

      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + +
      void VISU.ScalarMapOnDeformedShape.SetScale (in double  theScale  ) 
      +
      +
      + +

      +Sets the scale of the presentatable object.

      Parameters:
      + + +
      theScale Double value defining the scale of this presentable object.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ScalarMapOnDeformedShape.GetScale (  ) 
      +
      +
      + +

      +Gets the scale of the presentatable object. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.ScalarMapOnDeformedShape.SetScalarField (in Entity  theEntity,
      in string  theFieldName,
      in long  theTimeStampNumber 
      )
      +
      +
      + +

      +Sets the scalar field

      Parameters:
      + + + + +
      theEntity - entity of scalar field
      theFieldName - the name of scalar field
      theTimeStampNumber - the timestamp number for the scalar field
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Entity VISU.ScalarMapOnDeformedShape.GetScalarEntity (  ) 
      +
      +
      + +

      +Get scalar entity +

      +

      + +

      +
      + + + + + + + + +
      string VISU.ScalarMapOnDeformedShape.GetScalarFieldName (  ) 
      +
      +
      + +

      +Get scalar field name +

      +

      + +

      +
      + + + + + + + + +
      long VISU.ScalarMapOnDeformedShape.GetScalarTimeStampNumber (  ) 
      +
      +
      + +

      +Get timestamp number for the scalar field +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.SetScaling (in Scaling  theScaling  )  [inherited]
      +
      +
      + +

      +Sets the type of scaling of the values reflected by the scalar bar.

      Parameters:
      + + +
      theScaling The value of this parameter is taken from the Scaling enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Scaling VISU.ScalarMap.GetScaling (  )  [inherited]
      +
      +
      + +

      +Gets the type of scaling of the values reflected by this presentation. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ScalarMap.SetRange (in double  theMin,
      in double  theMax 
      ) [inherited]
      +
      +
      + +

      +Sets scalar range - min and max boundaries of the scalar bar.

      Parameters:
      + + + +
      theMin Min boundary of the scalar bar.
      theMax Max boundary of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.SetSourceRange (  )  [inherited]
      +
      +
      + +

      +Sets scalar range that corresponds to the source data. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.AddMeshOnGroup (in string  theGroupName  )  [inherited]
      +
      +
      + +

      +Add group as geometry of presentation.

      Parameters:
      + + + +
      theMeshName - mesh name
      theGroupName - group name
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.RemoveAllGeom (  )  [inherited]
      +
      +
      + +

      +PrsMerger method: Remove all groups.(The scalar map will be placed on all mesh). +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetScalarMode (in long  theScalarMode  )  [inherited]
      +
      +
      + +

      +Sets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetScalarMode (  )  [inherited]
      +
      +
      + +

      +Gets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.ColoredPrs3d.IsRangeFixed (  )  [inherited]
      +
      +
      + +

      +Defines whether the scalar range corresponds to the source data or not. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetPosition (in double  X,
      in double  Y 
      ) [inherited]
      +
      +
      + +

      +Sets the position of the scalar bar origin on the screen.

      Parameters:
      + + + +
      X Horizontal position. The value can be between 0 and 1.
      Y Vertical position. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosX (  )  [inherited]
      +
      +
      + +

      +Gets horizontal position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosY (  )  [inherited]
      +
      +
      + +

      +Gets vertical position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetSize (in double  theWidth,
      in double  theHeight 
      ) [inherited]
      +
      +
      + +

      +Sets the size of the scalar bar.

      Parameters:
      + + + +
      theWidth Width of this presentable object. The value can be between 0 and 1.
      theHeight Height of this presentable object. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetWidth (  )  [inherited]
      +
      +
      + +

      +Gets the width of this presentable object.

      Returns:
      A double value corresponding to the width of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetHeight (  )  [inherited]
      +
      +
      + +

      +Gets the height of this presentable object.

      Returns:
      A double value corresponding to the height of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetNbColors (in long  theNbColors  )  [inherited]
      +
      +
      + +

      +Sets the number of colors which will be used for presentation of this presentable object.

      Parameters:
      + + +
      theNbColors A long value defining the number of colors.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetNbColors (  )  [inherited]
      +
      +
      + +

      +Gets the number of colors which will be used for visualization of this presentable object.

      Returns:
      A long value corresponding to the number of colors which will be used for visualization of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetLabels (in long  theNbLabels  )  [inherited]
      +
      +
      + +

      +Sets the number of labels which will be used for indication of color gradation of the scalar bar.

      Parameters:
      + + +
      theNbLabels A long value defining the number of labels.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetLabels (  )  [inherited]
      +
      +
      + +

      +Gets the number of labels which will be used for indication of color gradation of the scalar bar.

      Returns:
      A long value corresponding to the number of labels which will be used for indication of color gradation of the scalar bar.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetTitle (in string  theName  )  [inherited]
      +
      +
      + +

      +Sets the title of the scalar bar. By default - the name of the selected result is used.

      Parameters:
      + + +
      theName String parameter defining the name of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.ColoredPrs3d.GetTitle (  )  [inherited]
      +
      +
      + +

      +Gets the title of the scalar bar. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetBarOrientation (in Orientation  theOrientation  )  [inherited]
      +
      +
      + +

      +Sets the type of orientation of the scalar bar (to provide backward compatibility).

      Parameters:
      + + +
      theOrientation This parameter defines the orientation of the scalar bar. It is taken from the Orientaton enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Orientation VISU.ColoredPrs3d.GetBarOrientation (  )  [inherited]
      +
      +
      + +

      +Gets the type of orientation of the scalar bar (to provide backward compatibility). +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.SetOffset (in float  theDx,
      in float  theDy,
      in float  theDz 
      ) [inherited]
      +
      +
      + +

      +Move the 3D presentation according to the given offset parameters +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.GetOffset (out float  theDx,
      out float  theDy,
      out float  theDz 
      ) [inherited]
      +
      +
      + +

      +Gets offset parameters for the 3D presentation +

      +

      + +

      +
      + + + + + + + + +
      float VISU.Prs3d.GetMemorySize (  )  [inherited]
      +
      +
      + +

      +Gets memory size actually used by the presentation (Mb). +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMapOnDeformedShape__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMapOnDeformedShape__inherit__graph.jpg new file mode 100644 index 00000000..0418834b Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMapOnDeformedShape__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMap__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMap__inherit__graph.jpg new file mode 100644 index 00000000..50edc964 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ScalarMap__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1StreamLines.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1StreamLines.html new file mode 100644 index 00000000..250964c8 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1StreamLines.html @@ -0,0 +1,1276 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.StreamLines Interface Reference

      Interface of the stream lines representation. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.StreamLines:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       FORWARD
       BACKWARD
       BOTH
      enum  Direction { FORWARD, +BACKWARD, +BOTH + }
       HORIZONTAL
       VERTICAL
      enum  Orientation { HORIZONTAL, +VERTICAL + }

      Public Member Functions

      boolean SetParams (in double theIntStep, in double thePropogationTime, in double theStepLength, in Prs3d thePrs3d, in double thePercents, in Direction theDirection)
      double GetIntegrationStep ()
      double GetPropagationTime ()
      double GetStepLength ()
      Prs3d GetSource ()
      double GetUsedPoints ()
      Direction GetDirection ()
      void SetScale (in double theScale)
      double GetScale ()
      boolean IsColored ()
      void ShowColored (in boolean theColored)
      SALOMEDS::Color GetColor ()
      void SetColor (in SALOMEDS::Color theColor)
      void SetScaling (in Scaling theScaling)
      Scaling GetScaling ()
      void SetRange (in double theMin, in double theMax)
      void SetSourceRange ()
      void AddMeshOnGroup (in string theGroupName)
      void RemoveAllGeom ()
      void SetScalarMode (in long theScalarMode)
      long GetScalarMode ()
      double GetMin ()
      double GetMax ()
      double GetSourceMin ()
      double GetSourceMax ()
      boolean IsRangeFixed ()
      void SetPosition (in double X, in double Y)
       Position of the scalar bar.
      double GetPosX ()
      double GetPosY ()
      void SetSize (in double theWidth, in double theHeight)
       Size of this presentable object.
      double GetWidth ()
      double GetHeight ()
      void SetNbColors (in long theNbColors)
      long GetNbColors ()
      void SetLabels (in long theNbLabels)
      long GetLabels ()
      void SetTitle (in string theName)
      string GetTitle ()
      void SetBarOrientation (in Orientation theOrientation)
      Orientation GetBarOrientation ()
      void SetOffset (in float theDx, in float theDy, in float theDz)
      void GetOffset (out float theDx, out float theDy, out float theDz)
      float GetMemorySize ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +This interface contains presentation parameters of stream lines presentations.
      +Stream lines is a type of presentation transforming into lines the cells with vectors having most similar direction. A stream line can be thought of as the path that a massless particle takes in a vector field. Streamlines are used to convey the structure of a vector field. Usually streamlines are created to explore the most interesting features in the field. +

      +


      Member Enumeration Documentation

      + +
      + +
      + +

      +This enumerations contains a set of elements necessary for definition of direction of the stream lines.

      Enumerator:
      + + + + +
      FORWARD  +
      BACKWARD  +
      BOTH  +
      +
      + +
      +

      + +

      +
      + + + + +
      enum VISU::ColoredPrs3d::Orientation [inherited]
      +
      +
      + +

      +Orientation of the scalar bar (to provide backward compatibility).

      Enumerator:
      + + + +
      HORIZONTAL  +Horizontal orientation of the scalar bar.
      VERTICAL  +Vertical orientation of the scalar bar.
      +
      + +

      +Implemented in VISU.Plot3D, and VISU.CutPlanes. +

      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      boolean VISU.StreamLines.SetParams (in double  theIntStep,
      in double  thePropogationTime,
      in double  theStepLength,
      in Prs3d  thePrs3d,
      in double  thePercents,
      in Direction  theDirection 
      )
      +
      +
      + +

      +Sets the parameters of the stream lines presentation.

      Parameters:
      + + + + + +
      theIntStep Inegration step is a parameter of smoothness of the stream lines. This parameter defines the accuracy of construction of the streamlines. A smaller value of this parameter allows to construct smoother streamlines (at the cost of more computation time).
      thePropogationTime This parameter controls the maximum length of the stream line (measured in units of time).
      theStepLength This parameter defines the size of the output line segments that make up the streamline (which is represented as a polyline).
      thePrs3d The source presentation. The points of the field located on this source presentation will serve as starting points for generation of stream lines.
      +
      +
      Note:
      If this parameter is not defined, your stream lines presentation will be generated on all points of the field.
      +
      Parameters:
      + + + +
      thePercents This parameter defines the quantity of points of the field (from 0 to 100%) which will be used as starting points for construction of the stream lines. Thus, the value of this parameter can vary from 0 to 1.
      theDirection Direction of the stream lines (Forward, Backward or Both).
      +
      +
      Returns:
      True if all parameters are properly set.
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.StreamLines.GetIntegrationStep (  ) 
      +
      +
      + +

      +Gets the value of integration step of the stream lines presentation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.StreamLines.GetPropagationTime (  ) 
      +
      +
      + +

      +Gets the value of propagation time of the stream lines presentation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.StreamLines.GetStepLength (  ) 
      +
      +
      + +

      +Gets the value of step length of the stream lines presentation. +

      +

      + +

      +
      + + + + + + + + +
      Prs3d VISU.StreamLines.GetSource (  ) 
      +
      +
      + +

      +Returns the source presentation used for generation of the stream lines. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.StreamLines.GetUsedPoints (  ) 
      +
      +
      + +

      +Gets the quantity of points of the field used as starting points for generation of the stream lines presentation. +

      +

      + +

      +
      + + + + + + + + +
      Direction VISU.StreamLines.GetDirection (  ) 
      +
      +
      + +

      +Returns the direction of the stream lines. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.DeformedShape.SetScale (in double  theScale  )  [inherited]
      +
      +
      + +

      +Sets the scale of the presentatable object.

      Parameters:
      + + +
      theScale Double value defining the scale of this presentable object.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.DeformedShape.GetScale (  )  [inherited]
      +
      +
      + +

      +Gets the scale of the presentatable object. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.DeformedShape.IsColored (  )  [inherited]
      +
      +
      + +

      +This boolean method returns True if this deformed shape presentation is colored. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.DeformedShape.ShowColored (in boolean  theColored  )  [inherited]
      +
      +
      + +

      +Shows this presentation in colored mode.

      Parameters:
      + + +
      theColored If this boolean parameter is True this presentable object will be shown in colored mode.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      SALOMEDS::Color VISU.DeformedShape.GetColor (  )  [inherited]
      +
      +
      + +

      +Gets the color of this presentable object.

      Returns:
      The color of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.DeformedShape.SetColor (in SALOMEDS::Color  theColor  )  [inherited]
      +
      +
      + +

      +Sets the color of this presentation.

      Parameters:
      + + +
      theColor The color of this presentation. This parameter is taken from the Color enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.SetScaling (in Scaling  theScaling  )  [inherited]
      +
      +
      + +

      +Sets the type of scaling of the values reflected by the scalar bar.

      Parameters:
      + + +
      theScaling The value of this parameter is taken from the Scaling enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Scaling VISU.ScalarMap.GetScaling (  )  [inherited]
      +
      +
      + +

      +Gets the type of scaling of the values reflected by this presentation. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ScalarMap.SetRange (in double  theMin,
      in double  theMax 
      ) [inherited]
      +
      +
      + +

      +Sets scalar range - min and max boundaries of the scalar bar.

      Parameters:
      + + + +
      theMin Min boundary of the scalar bar.
      theMax Max boundary of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.SetSourceRange (  )  [inherited]
      +
      +
      + +

      +Sets scalar range that corresponds to the source data. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.AddMeshOnGroup (in string  theGroupName  )  [inherited]
      +
      +
      + +

      +Add group as geometry of presentation.

      Parameters:
      + + + +
      theMeshName - mesh name
      theGroupName - group name
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.RemoveAllGeom (  )  [inherited]
      +
      +
      + +

      +PrsMerger method: Remove all groups.(The scalar map will be placed on all mesh). +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetScalarMode (in long  theScalarMode  )  [inherited]
      +
      +
      + +

      +Sets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetScalarMode (  )  [inherited]
      +
      +
      + +

      +Gets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.ColoredPrs3d.IsRangeFixed (  )  [inherited]
      +
      +
      + +

      +Defines whether the scalar range corresponds to the source data or not. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetPosition (in double  X,
      in double  Y 
      ) [inherited]
      +
      +
      + +

      +Sets the position of the scalar bar origin on the screen.

      Parameters:
      + + + +
      X Horizontal position. The value can be between 0 and 1.
      Y Vertical position. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosX (  )  [inherited]
      +
      +
      + +

      +Gets horizontal position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosY (  )  [inherited]
      +
      +
      + +

      +Gets vertical position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetSize (in double  theWidth,
      in double  theHeight 
      ) [inherited]
      +
      +
      + +

      +Sets the size of the scalar bar.

      Parameters:
      + + + +
      theWidth Width of this presentable object. The value can be between 0 and 1.
      theHeight Height of this presentable object. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetWidth (  )  [inherited]
      +
      +
      + +

      +Gets the width of this presentable object.

      Returns:
      A double value corresponding to the width of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetHeight (  )  [inherited]
      +
      +
      + +

      +Gets the height of this presentable object.

      Returns:
      A double value corresponding to the height of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetNbColors (in long  theNbColors  )  [inherited]
      +
      +
      + +

      +Sets the number of colors which will be used for presentation of this presentable object.

      Parameters:
      + + +
      theNbColors A long value defining the number of colors.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetNbColors (  )  [inherited]
      +
      +
      + +

      +Gets the number of colors which will be used for visualization of this presentable object.

      Returns:
      A long value corresponding to the number of colors which will be used for visualization of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetLabels (in long  theNbLabels  )  [inherited]
      +
      +
      + +

      +Sets the number of labels which will be used for indication of color gradation of the scalar bar.

      Parameters:
      + + +
      theNbLabels A long value defining the number of labels.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetLabels (  )  [inherited]
      +
      +
      + +

      +Gets the number of labels which will be used for indication of color gradation of the scalar bar.

      Returns:
      A long value corresponding to the number of labels which will be used for indication of color gradation of the scalar bar.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetTitle (in string  theName  )  [inherited]
      +
      +
      + +

      +Sets the title of the scalar bar. By default - the name of the selected result is used.

      Parameters:
      + + +
      theName String parameter defining the name of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.ColoredPrs3d.GetTitle (  )  [inherited]
      +
      +
      + +

      +Gets the title of the scalar bar. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetBarOrientation (in Orientation  theOrientation  )  [inherited]
      +
      +
      + +

      +Sets the type of orientation of the scalar bar (to provide backward compatibility).

      Parameters:
      + + +
      theOrientation This parameter defines the orientation of the scalar bar. It is taken from the Orientaton enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Orientation VISU.ColoredPrs3d.GetBarOrientation (  )  [inherited]
      +
      +
      + +

      +Gets the type of orientation of the scalar bar (to provide backward compatibility). +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.SetOffset (in float  theDx,
      in float  theDy,
      in float  theDz 
      ) [inherited]
      +
      +
      + +

      +Move the 3D presentation according to the given offset parameters +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.GetOffset (out float  theDx,
      out float  theDy,
      out float  theDz 
      ) [inherited]
      +
      +
      + +

      +Gets offset parameters for the 3D presentation +

      +

      + +

      +
      + + + + + + + + +
      float VISU.Prs3d.GetMemorySize (  )  [inherited]
      +
      +
      + +

      +Gets memory size actually used by the presentation (Mb). +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1StreamLines__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1StreamLines__inherit__graph.jpg new file mode 100644 index 00000000..9d1b480f Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1StreamLines__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Table.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Table.html new file mode 100644 index 00000000..5077e256 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Table.html @@ -0,0 +1,278 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.Table Interface Reference

      Table representation interface +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.Table:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       HORIZONTAL
       VERTIACAL
      enum  Orientation { HORIZONTAL, +VERTIACAL + }

      Public Member Functions

      void SetTitle (in string theTitle)
      string GetTitle ()
      void SetOrientation (in Orientation theOrientation)
      Orientation GetOrientation ()
      long GetNbRows ()
      long GetNbColumns ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +Presentation parameters of the Table view. +

      +


      Member Enumeration Documentation

      + +
      +
      + + + + +
      enum VISU::Table::Orientation
      +
      +
      + +

      +This enumeration contains a set of elements defining the orientation of the table.

      Enumerator:
      + + + +
      HORIZONTAL  +Horizontal orientation of the table.
      VERTIACAL  +Vertical orientation of the table.
      +
      + +
      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + +
      void VISU.Table.SetTitle (in string  theTitle  ) 
      +
      +
      + +

      +Sets the title of the table.

      Parameters:
      + + +
      theTitle String parameter defining the title of this table.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.Table.GetTitle (  ) 
      +
      +
      + +

      +Gets the title of the table.

      Returns:
      A string value containing the title of the table.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.Table.SetOrientation (in Orientation  theOrientation  ) 
      +
      +
      + +

      +Sets orientation of the table.

      Parameters:
      + + +
      theOrientation This input parameter defines the orientation of the table. It is taken from the Orientation enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Orientation VISU.Table.GetOrientation (  ) 
      +
      +
      + +

      +Gets orientation of the table.

      Returns:
      Orientation of the table. The returned value will correspond to one of the elements the Orientation enumeration.
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.Table.GetNbRows (  ) 
      +
      +
      + +

      +Gets the number of rows of the table.

      Returns:
      Long value corresponding to the number of rows of the table
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.Table.GetNbColumns (  ) 
      +
      +
      + +

      +Gets the number of columns of the table.

      Returns:
      Long value corresponding to the number of columns of the table
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1TableView.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1TableView.html new file mode 100644 index 00000000..6e183f1a --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1TableView.html @@ -0,0 +1,1075 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.TableView Interface Reference

      Interface of the Table view. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.TableView:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       OBJECTBROWSER
       VIEWER
       PYTHON
       MESSAGES
       TOP
       CENTER
       BOTTOM
       RIGHT
       LEFT
      enum  ViewRepresentation { OBJECTBROWSER, +VIEWER, +PYTHON, +MESSAGES + }
       ViewRepresentation enumeration More...
      enum  ViewPosition {
      +  TOP, +CENTER, +BOTTOM, +RIGHT, +
      +  LEFT +
      + }

      Public Member Functions

      void ShowPart (in ViewRepresentation ViewRepr, in boolean state)
      boolean IsPartShown (in ViewRepresentation ViewRepr)
      void SplitRight ()
       Split workarea of this view.
      void SplitLeft ()
       Split workarea of this view.
      void SplitBottom ()
       Split workarea of this view.
      void SplitTop ()
       Split workarea of this view.
      void OnTop ()
      void Attract (in View theView)
      void AttractAll (in View theView)
      void SetRelativePositionInSplitter (in double thePosition)
      void SetRelativeSizeInSplitter (in double theSize)
      void SetRelativePositionX (in double thePosition)
      void SetRelativePositionY (in double thePosition)
      void SetRelativeSizeX (in double theSize)
      void SetRelativeSizeY (in double theSize)
      void SetViewWidth (in long Width)
      void SetViewHeight (in long Height)
      long GetViewWidth ()
      long GetViewHeight ()
      void SetViewPositionHorizontal (in ViewPosition ViewPosHor)
      void SetViewPositionVertical (in ViewPosition ViewPosVer)
      void SetRelativePosition (in double x, in double y)
      void SetRelativeSize (in double x, in double y)
      void Minimize ()
      void Restore ()
      void Maximize ()
      void SetTitle (in string theTitle)
      string GetTitle ()
      void SetBackground (in SALOMEDS::Color theColor)
      SALOMEDS::Color GetBackground ()
      void EraseAll ()
      void DisplayAll ()
      void Erase (in PrsObject thePrsObj)
      void Display (in PrsObject thePrsObj)
      void DisplayOnly (in PrsObject thePrsObj)
      void Update ()
      boolean SavePicture (in string theFileName)
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +This interface is used for creation of a view necessary for presentation of a table. +

      +


      Member Enumeration Documentation

      + +
      +
      + + + + +
      enum VISU::View::ViewRepresentation [inherited]
      +
      +
      + +

      +displaying part ("ALL" isn't setable)

      Enumerator:
      + + + + + +
      OBJECTBROWSER  +
      VIEWER  +
      PYTHON  +
      MESSAGES  +
      +
      + +
      +

      + +

      +
      + + + + +
      enum VISU::View::ViewPosition [inherited]
      +
      +
      + +

      +

      Enumerator:
      + + + + + + +
      TOP  +
      CENTER  +
      BOTTOM  +
      RIGHT  +
      LEFT  +
      +
      + +
      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.View.ShowPart (in ViewRepresentation  ViewRepr,
      in boolean  state 
      ) [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      boolean VISU.View.IsPartShown (in ViewRepresentation  ViewRepr  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitRight (  )  [inherited]
      +
      +
      + +

      +Horizontally split workarea of this view. This view is moved in a new right area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitLeft (  )  [inherited]
      +
      +
      + +

      +Horizontally split workarea of this view. This view stays in an old left area, others are moved in a new right area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitBottom (  )  [inherited]
      +
      +
      + +

      +Vertically split workarea of this view. This view is moved in a new bottom area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitTop (  )  [inherited]
      +
      +
      + +

      +Vertically split workarea of this view. This view stays in an old top area, others are moved in a new bottom area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.OnTop (  )  [inherited]
      +
      +
      + +

      +Put this view window on top of its work area. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.Attract (in View  theView  )  [inherited]
      +
      +
      + +

      +Put theView in workarea of this view right after it. If theView was alone in its workarea, workarea of theView will be destroyed. If theView was in the same workarea with this view, simple reordering will take place.

      Parameters:
      + + +
      theView A view window to be attracted to this one.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.AttractAll (in View  theView  )  [inherited]
      +
      +
      + +

      +Put all the view windows from workarea of theView in workarea of this view right after it. Workarea of theView will be destroyed. If theView was in the same workarea with this view, simple reordering will take place.

      Parameters:
      + + +
      theView A view window to be attracted to this one together with all its workarea.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativePositionInSplitter (in double  thePosition  )  [inherited]
      +
      +
      + +

      +Set position of this view window relatively its splitter.

      Parameters:
      + + +
      thePosition Desired position of this view window relatively its splitter. Meaningfull values lays in range [0..1].
      +
      +Direction of positioning is defined by the splitter orientation. +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativeSizeInSplitter (in double  theSize  )  [inherited]
      +
      +
      + +

      +Set size of this view window relatively its splitter.

      Parameters:
      + + +
      theSize Desired size of this view window relatively its splitter. Meaningfull values lays in range [0..1].
      +
      +Direction of resizing is defined by the splitter orientation. +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativePositionX (in double  thePosition  )  [inherited]
      +
      +
      + +

      +Set horizontal position of this view window relatively its workstack.

      Parameters:
      + + +
      thePosition Desired horizontal position of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativePositionY (in double  thePosition  )  [inherited]
      +
      +
      + +

      +Set vertical position of this view window relatively its workstack.

      Parameters:
      + + +
      thePosition Desired vertical position of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativeSizeX (in double  theSize  )  [inherited]
      +
      +
      + +

      +Set horizontal size of this view window relatively its workstack.

      Parameters:
      + + +
      theSize Desired horizontal size of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativeSizeY (in double  theSize  )  [inherited]
      +
      +
      + +

      +Set vertical size of this view window relatively its workstack.

      Parameters:
      + + +
      theSize Desired vertical size of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewWidth (in long  Width  )  [inherited]
      +
      +
      + +

      +Old methods for view parameters management, they don't work now +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewHeight (in long  Height  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      long VISU.View.GetViewWidth (  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      long VISU.View.GetViewHeight (  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewPositionHorizontal (in ViewPosition  ViewPosHor  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewPositionVertical (in ViewPosition  ViewPosVer  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.View.SetRelativePosition (in double  x,
      in double  y 
      ) [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.View.SetRelativeSize (in double  x,
      in double  y 
      ) [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Minimize (  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Restore (  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Maximize (  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetTitle (in string  theTitle  )  [inherited]
      +
      +
      + +

      +Sets the title of the View frame.

      Parameters:
      + + +
      theTitle String parameter defining the title of the View frame.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.View.GetTitle (  )  [inherited]
      +
      +
      + +

      +Gets the title of the View frame. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetBackground (in SALOMEDS::Color  theColor  )  [inherited]
      +
      +
      + +

      +Sets background color of the View frame.

      Parameters:
      + + +
      theColor Background color defined in SALOMEDS.Color enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      SALOMEDS::Color VISU.View.GetBackground (  )  [inherited]
      +
      +
      + +

      +Gets background color of the View frame. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.EraseAll (  )  [inherited]
      +
      +
      + +

      +Removes all presentations (presentable objects) from the view. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.DisplayAll (  )  [inherited]
      +
      +
      + +

      +Displays all presentations (presentable objects) in the view. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.Erase (in PrsObject  thePrsObj  )  [inherited]
      +
      +
      + +

      +Removes a definite presentation (presentable object) from the view.

      Parameters:
      + + +
      thePrsObj The presentation (presentable object) which should be deleted.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.Display (in PrsObject  thePrsObj  )  [inherited]
      +
      +
      + +

      +Displays a definite presentation (presentable object) in the view.

      Parameters:
      + + +
      thePrsObj The presentation (presentable object) which should be displayed.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.DisplayOnly (in PrsObject  thePrsObj  )  [inherited]
      +
      +
      + +

      +Allows to display only a definite presentation (presentable object) in the view. All other presentations are removed from the view.

      Parameters:
      + + +
      thePrsObj The presentation (presentable object) which should be displayed.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Update (  )  [inherited]
      +
      +
      + +

      +Updates the view. +

      +

      + +

      +
      + + + + + + + + + +
      boolean VISU.View.SavePicture (in string  theFileName  )  [inherited]
      +
      +
      + +

      +Saves the view.

      Parameters:
      + + +
      theFileName The name of the file where the view will be saved.
      +
      +
      Returns:
      True, if the view have been saved successfully.
      + +
      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1TableView__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1TableView__inherit__graph.jpg new file mode 100644 index 00000000..d7b2a076 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1TableView__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Table__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Table__inherit__graph.jpg new file mode 100644 index 00000000..9e349760 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Table__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1VISU__Gen.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1VISU__Gen.html new file mode 100644 index 00000000..704c79dc --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1VISU__Gen.html @@ -0,0 +1,1422 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.VISU_Gen Interface Reference

      VISU_Gen interface +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.VISU_Gen:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Member Functions

      void SetCurrentStudy (in SALOMEDS::Study theStudy)
      SALOMEDS::Study GetCurrentStudy ()
      ViewManager GetViewManager ()
      SALOMEDS::SObject ImportTables (in string theFileName)
      boolean ExportTableToFile (in SALOMEDS::SObject theTable, in string theFileName)
      Result ImportFile (in string theFileName)
      Result CreateResult (in string theFileName)
      Result CopyAndImportFile (in string theFileName)
      Result ImportMed (in SALOMEDS::SObject theMedSObject)
      Result ImportMedField (in SALOME_MED::FIELD theField)
      void RenameEntityInStudy (in Result theResult, in string theMeshName, in Entity theEntity, in string theNewName)
      void RenameFamilyInStudy (in Result theResult, in string theMeshName, in Entity theEntity, in string theSubMeshName, in string theNewName)
      void RenameGroupInStudy (in Result theResult, in string theMeshName, in string theSubMeshName, in string theNewName)
      Mesh MeshOnEntity (in Result theResult, in string theMeshName, in Entity theEntity)
      Mesh FamilyMeshOnEntity (in Result theResult, in string theMeshName, in Entity theEntity, in string theFamilyName)
      Mesh GroupMesh (in Result theResult, in string theMeshName, in string theGroupName)
      ScalarMap ScalarMapOnField (in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in long theIteration)
      GaussPoints GaussPointsOnField (in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in long theIteration)
      DeformedShape DeformedShapeOnField (in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in long theIteration)
      ScalarMapOnDeformedShape ScalarMapOnDeformedShapeOnField (in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in long theIteration)
      Vectors VectorsOnField (in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in long theIteration)
      IsoSurfaces IsoSurfacesOnField (in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in long theIteration)
      StreamLines StreamLinesOnField (in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in long theIteration)
      CutPlanes CutPlanesOnField (in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in long theIteration)
      CutLines CutLinesOnField (in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in long theIteration)
      Plot3D Plot3DOnField (in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in long theIteration)
      Table CreateTable (in string theTableEntry)
      Curve CreateCurve (in Table theTable, in long theHRow, in long theVRow)
      Curve CreateCurveWithZ (in Table theTable, in long theHRow, in long theVRow, in long theZRow)
      Container CreateContainer ()
      Animation CreateAnimation (in View3D theView3d)
      void DeleteResult (in Result theResult)
      void DeletePrs3d (in Prs3d thePrs3d)
      ColoredPrs3dCache GetColoredPrs3dCache (in SALOMEDS::Study theStudy)
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +This is the main interface of VISU component. It is necessary for creation of post-processing presentations from given Result and Table object reference, using the views provided by ViewManager. +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + +
      void VISU.VISU_Gen.SetCurrentStudy (in SALOMEDS::Study  theStudy  ) 
      +
      +
      + +

      +Sets a definite study to be current. +

      +

      + +

      +
      + + + + + + + + +
      SALOMEDS::Study VISU.VISU_Gen.GetCurrentStudy (  ) 
      +
      +
      + +

      +Gets the current study. +

      +

      + +

      +
      + + + + + + + + +
      ViewManager VISU.VISU_Gen.GetViewManager (  ) 
      +
      +
      + +

      +Gets the View Manager which is used for creation of post-processing presentations. +

      +

      + +

      +
      + + + + + + + + + +
      SALOMEDS::SObject VISU.VISU_Gen.ImportTables (in string  theFileName  ) 
      +
      +
      + +

      +Imports tables from a file and create TableAttribute in Sudy +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      boolean VISU.VISU_Gen.ExportTableToFile (in SALOMEDS::SObject  theTable,
      in string  theFileName 
      )
      +
      +
      + +

      +Export table to a file +

      +

      + +

      +
      + + + + + + + + + +
      Result VISU.VISU_Gen.ImportFile (in string  theFileName  ) 
      +
      +
      + +

      +Imports data from a file. The access to this file will be conserved outside of the application.

      Parameters:
      + + +
      theFileName String parameter defining the name of the file from which the data will be imported.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      Result VISU.VISU_Gen.CreateResult (in string  theFileName  ) 
      +
      +
      + +

      +Create result and initialize its with the file. The access to this file will be conserved outside of the application.

      Parameters:
      + + +
      theFileName String parameter defining the name of the file from which the data will be imported.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      Result VISU.VISU_Gen.CopyAndImportFile (in string  theFileName  ) 
      +
      +
      + +

      +Imports data from a file. The access to this file will closed.

      Parameters:
      + + +
      theFileName String parameter defining the name of the file from which the data will be imported.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      Result VISU.VISU_Gen.ImportMed (in SALOMEDS::SObject  theMedSObject  ) 
      +
      +
      + +

      +Imports data from a MED object. +

      +

      + +

      +
      + + + + + + + + + +
      Result VISU.VISU_Gen.ImportMedField (in SALOME_MED::FIELD  theField  ) 
      +
      +
      + +

      +Imports data from a MED field. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.VISU_Gen.RenameEntityInStudy (in Result  theResult,
      in string  theMeshName,
      in Entity  theEntity,
      in string  theNewName 
      )
      +
      +
      + +

      +Rename a study object, representing a mesh, specified by given values.

      Parameters:
      + + + + + + +
      theResult Data generated in other sources (MED object or file).
      theMeshName One of the meshes presented in MED file.
      theEntity Type of entity where the field is defined.
      theSubMeshName Name of sub-mesh (group or family).
      theNewName Name to be given to the study object.
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.VISU_Gen.RenameFamilyInStudy (in Result  theResult,
      in string  theMeshName,
      in Entity  theEntity,
      in string  theSubMeshName,
      in string  theNewName 
      )
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.VISU_Gen.RenameGroupInStudy (in Result  theResult,
      in string  theMeshName,
      in string  theSubMeshName,
      in string  theNewName 
      )
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      Mesh VISU.VISU_Gen.MeshOnEntity (in Result  theResult,
      in string  theMeshName,
      in Entity  theEntity 
      )
      +
      +
      + +

      +Creates a mesh on the basis of the data generated in other sources (MED object or file).

      Parameters:
      + + + + +
      theResult Data generated in other sources. (MED object or file)
      theMeshName One of the meshes presented in MED file
      theEntity Type of entity where the field is defined
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Mesh VISU.VISU_Gen.FamilyMeshOnEntity (in Result  theResult,
      in string  theMeshName,
      in Entity  theEntity,
      in string  theFamilyName 
      )
      +
      +
      + +

      +Creates on the basis of a family a mesh which will be composed of geometrical elements, corresponding to the type of cells (node, edge, face or cell) of this family.

      Parameters:
      + + + + +
      theResult Data generated in other sources. (MED object or file)
      theMeshName One of the meshes presented in MED file
      theEntity Type of entity where the field is defined.
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      Mesh VISU.VISU_Gen.GroupMesh (in Result  theResult,
      in string  theMeshName,
      in string  theGroupName 
      )
      +
      +
      + +

      +Creates a mesh on the basis of a group of families.

      Parameters:
      + + + + +
      theResult Data generated in other sources. (MED object or file)
      theMeshName One of the meshes presented in MED file
      theGroupName Name of the group.
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      ScalarMap VISU.VISU_Gen.ScalarMapOnField (in Result  theResult,
      in string  theMeshName,
      in Entity  theEntity,
      in string  theFieldName,
      in long  theIteration 
      )
      +
      +
      + +

      +Creates a scalar map presentation.

      Parameters:
      + + + + + + +
      theResult Data generated in other sources. (MED object or file)
      theMeshName One of the meshes presented in MED file
      theEntity Type of entity where the field is defined
      theFieldName Group of data attributed to the MESH. The data can be scalar or vector.
      theIteration Number of iteration on the field
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      GaussPoints VISU.VISU_Gen.GaussPointsOnField (in Result  theResult,
      in string  theMeshName,
      in Entity  theEntity,
      in string  theFieldName,
      in long  theIteration 
      )
      +
      +
      + +

      +Creates a Gauss Points presentation.

      Parameters:
      + + + + + + +
      theResult Data generated in other sources. (MED object or file)
      theMeshName One of the meshes presented in MED file
      theEntity Type of entity where the field is defined
      theFieldName Group of data attributed to the MESH. The data can be scalar or vector.
      theIteration Number of iteration on the field
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      DeformedShape VISU.VISU_Gen.DeformedShapeOnField (in Result  theResult,
      in string  theMeshName,
      in Entity  theEntity,
      in string  theFieldName,
      in long  theIteration 
      )
      +
      +
      + +

      +Creates a deformed shape presentation.

      Parameters:
      + + + + + + +
      theResult Data generated in other sources. (MED object or file)
      theMeshName One of the meshes presented in MED file
      theEntity Type of entity where the field is defined
      theFieldName Group of data attributed to the MESH. The data can be scalar or vector.
      theIteration Number of iteration on the field
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      ScalarMapOnDeformedShape VISU.VISU_Gen.ScalarMapOnDeformedShapeOnField (in Result  theResult,
      in string  theMeshName,
      in Entity  theEntity,
      in string  theFieldName,
      in long  theIteration 
      )
      +
      +
      + +

      +Creates a deformed shape presentation.

      Parameters:
      + + + + + + +
      theResult Data generated in other sources. (MED object or file)
      theMeshName One of the meshes presented in MED file
      theEntity Type of entity where the field is defined
      theFieldName Group of data attributed to the MESH. The data can be scalar or vector.
      theIteration Number of iteration on the field
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Vectors VISU.VISU_Gen.VectorsOnField (in Result  theResult,
      in string  theMeshName,
      in Entity  theEntity,
      in string  theFieldName,
      in long  theIteration 
      )
      +
      +
      + +

      +Creates a vector presentation.

      Parameters:
      + + + + + + +
      theResult Data generated in other sources. (MED object or file)
      theMeshName One of the meshes presented in MED file
      theEntity Type of entity where the field is defined
      theFieldName Group of data attributed to the MESH. The data can be scalar or vector.
      theIteration Number of iteration on the field
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      IsoSurfaces VISU.VISU_Gen.IsoSurfacesOnField (in Result  theResult,
      in string  theMeshName,
      in Entity  theEntity,
      in string  theFieldName,
      in long  theIteration 
      )
      +
      +
      + +

      +Creates an iso surface presentation.

      Parameters:
      + + + + + + +
      theResult Data generated in other sources. (MED object or file)
      theMeshName One of the meshes presented in MED file
      theEntity Type of entity where the field is defined
      theFieldName Group of data attributed to the MESH. The data can be scalar or vector.
      theIteration Number of iteration on the field
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      StreamLines VISU.VISU_Gen.StreamLinesOnField (in Result  theResult,
      in string  theMeshName,
      in Entity  theEntity,
      in string  theFieldName,
      in long  theIteration 
      )
      +
      +
      + +

      +Creates an stream lines presentation.

      Parameters:
      + + + + + + +
      theResult Data generated in other sources. (MED object or file)
      theMeshName One of the meshes presented in MED file
      theEntity Type of entity where the field is defined
      theFieldName Group of data attributed to the MESH. The data can be scalar or vector.
      theIteration Number of iteration on the field
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      CutPlanes VISU.VISU_Gen.CutPlanesOnField (in Result  theResult,
      in string  theMeshName,
      in Entity  theEntity,
      in string  theFieldName,
      in long  theIteration 
      )
      +
      +
      + +

      +Creates a presentation of cut planes.

      Parameters:
      + + + + + + +
      theResult Data generated in other sources. (MED object or file)
      theMeshName One of the meshes presented in MED file
      theEntity Type of entity where the field is defined
      theFieldName Group of data attributed to the MESH. The data can be scalar or vector.
      theIteration Number of iteration on the field
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      CutLines VISU.VISU_Gen.CutLinesOnField (in Result  theResult,
      in string  theMeshName,
      in Entity  theEntity,
      in string  theFieldName,
      in long  theIteration 
      )
      +
      +
      + +

      +Creates a presentation of cut lines.

      Parameters:
      + + + + + + +
      theResult Data generated in other sources. (MED object or file)
      theMeshName One of the meshes presented in MED file
      theEntity Type of entity where the field is defined
      theFieldName Group of data attributed to the MESH. The data can be scalar or vector.
      theIteration Number of iteration on the field
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Plot3D VISU.VISU_Gen.Plot3DOnField (in Result  theResult,
      in string  theMeshName,
      in Entity  theEntity,
      in string  theFieldName,
      in long  theIteration 
      )
      +
      +
      + +

      +Creates a Plot3D presentation.

      Parameters:
      + + + + + + +
      theResult Data generated in other sources. (MED object or file)
      theMeshName One of the meshes presented in MED file
      theEntity Type of entity where the field is defined
      theFieldName Group of data attributed to the MESH. The data can be scalar or vector.
      theIteration Number of iteration on the field
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      Table VISU.VISU_Gen.CreateTable (in string  theTableEntry  ) 
      +
      +
      + +

      +Creates a table presentation.

      Parameters:
      + + +
      theTableEntry The entry of the table which will be displayed.
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      Curve VISU.VISU_Gen.CreateCurve (in Table  theTable,
      in long  theHRow,
      in long  theVRow 
      )
      +
      +
      + +

      +Creates a curve on the basis of points, whose values are taken from the table.

      Parameters:
      + + + + +
      theTable Table containing the data for construction of curves.
      HRow Index of the row in the table: abscissa of the point.
      VRow Index of the row in the table: ordinate of the point.
      +
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Curve VISU.VISU_Gen.CreateCurveWithZ (in Table  theTable,
      in long  theHRow,
      in long  theVRow,
      in long  theZRow 
      )
      +
      +
      + +

      +Creates a curve on the basis of points, whose values are taken from the table. Each point has also assigned value, that will be shown as tooltip in Plot2d

      Parameters:
      + + + + + +
      theTable Table containing the data for construction of curves.
      HRow Index of the row in the table: abscissa of the point.
      VRow Index of the row in the table: ordinate of the point.
      ZRow Index of the row in the table: assigned value (so-called as Z).
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Container VISU.VISU_Gen.CreateContainer (  ) 
      +
      +
      + +

      +Creates a presentation form containing an array of references to the curves. +

      +

      + +

      +
      + + + + + + + + + +
      Animation VISU.VISU_Gen.CreateAnimation (in View3D  theView3d  ) 
      +
      +
      + +

      +Creates an animation in the 3D view.

      Parameters:
      + + +
      theView3d The 3D view, where the animation will be rendered.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.VISU_Gen.DeleteResult (in Result  theResult  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.VISU_Gen.DeletePrs3d (in Prs3d  thePrs3d  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      ColoredPrs3dCache VISU.VISU_Gen.GetColoredPrs3dCache (in SALOMEDS::Study  theStudy  ) 
      +
      +
      + +

      +Get or create ColoredPrs3dCache object. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1VISU__Gen__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1VISU__Gen__inherit__graph.jpg new file mode 100644 index 00000000..f07bf4d7 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1VISU__Gen__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Vectors.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Vectors.html new file mode 100644 index 00000000..6d1d99e9 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Vectors.html @@ -0,0 +1,1263 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.Vectors Interface Reference

      Interface of the vector presentation. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.Vectors:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       ARROW
       CONE2
       CONE6
       NONE
       CENTER
       TAIL
       HEAD
      enum  GlyphType { ARROW, +CONE2, +CONE6, +NONE + }
      enum  GlyphPos { CENTER, +TAIL, +HEAD + }
       HORIZONTAL
       VERTICAL
      enum  Orientation { HORIZONTAL, +VERTICAL + }

      Public Member Functions

      void SetLineWidth (in double theWidth)
      double GetLineWidth ()
      void SetGlyphType (in GlyphType theType)
      GlyphType GetGlyphType ()
      void SetGlyphPos (in GlyphPos thePos)
      GlyphPos GetGlyphPos ()
      void SetScale (in double theScale)
      double GetScale ()
      boolean IsColored ()
      void ShowColored (in boolean theColored)
      SALOMEDS::Color GetColor ()
      void SetColor (in SALOMEDS::Color theColor)
      void SetScaling (in Scaling theScaling)
      Scaling GetScaling ()
      void SetRange (in double theMin, in double theMax)
      void SetSourceRange ()
      void AddMeshOnGroup (in string theGroupName)
      void RemoveAllGeom ()
      void SetScalarMode (in long theScalarMode)
      long GetScalarMode ()
      double GetMin ()
      double GetMax ()
      double GetSourceMin ()
      double GetSourceMax ()
      boolean IsRangeFixed ()
      void SetPosition (in double X, in double Y)
       Position of the scalar bar.
      double GetPosX ()
      double GetPosY ()
      void SetSize (in double theWidth, in double theHeight)
       Size of this presentable object.
      double GetWidth ()
      double GetHeight ()
      void SetNbColors (in long theNbColors)
      long GetNbColors ()
      void SetLabels (in long theNbLabels)
      long GetLabels ()
      void SetTitle (in string theName)
      string GetTitle ()
      void SetBarOrientation (in Orientation theOrientation)
      Orientation GetBarOrientation ()
      void SetOffset (in float theDx, in float theDy, in float theDz)
      void GetOffset (out float theDx, out float theDy, out float theDz)
      float GetMemorySize ()
      void RemoveFromStudy ()
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +This interface contains presentation parameters of vector presentations. +

      +


      Member Enumeration Documentation

      + +
      +
      + + + + +
      enum VISU::Vectors::GlyphType
      +
      +
      + +

      +This enumeration contains a set of elements defining the type of representation of the vector head.

      Enumerator:
      + + + + + +
      ARROW  +
      CONE2  +
      CONE6  +
      NONE  +
      +
      + +
      +

      + +

      +
      + + + + +
      enum VISU::Vectors::GlyphPos
      +
      +
      + +

      +This enumeration contains a set of elements defining the position of the vector head.

      Enumerator:
      + + + + +
      CENTER  +In the center of the vector.
      TAIL  +In the tail of the vector.
      HEAD  +In the head of the vector.
      +
      + +
      +

      + +

      +
      + + + + +
      enum VISU::ColoredPrs3d::Orientation [inherited]
      +
      +
      + +

      +Orientation of the scalar bar (to provide backward compatibility).

      Enumerator:
      + + + +
      HORIZONTAL  +Horizontal orientation of the scalar bar.
      VERTICAL  +Vertical orientation of the scalar bar.
      +
      + +

      +Implemented in VISU.Plot3D, and VISU.CutPlanes. +

      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + +
      void VISU.Vectors.SetLineWidth (in double  theWidth  ) 
      +
      +
      + +

      +Sets the width of the lines of the vectors.

      Parameters:
      + + +
      theWidth A double value defining the width of the lines of the vectors.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.Vectors.GetLineWidth (  ) 
      +
      +
      + +

      +Gets the width of the lines of the vectors. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Vectors.SetGlyphType (in GlyphType  theType  ) 
      +
      +
      + +

      +Sets the type of representation of the vector head.

      Parameters:
      + + +
      theType This parameter defines the type of representation of the vector head. This value is taken from the GlyphType enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      GlyphType VISU.Vectors.GetGlyphType (  ) 
      +
      +
      + +

      +Gets the type of representation of the vector head. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.Vectors.SetGlyphPos (in GlyphPos  thePos  ) 
      +
      +
      + +

      +Sets the position of the vector head.

      Parameters:
      + + +
      thePos This parameter defines the position of the vector head. This value is taken from the GlyphPos enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      GlyphPos VISU.Vectors.GetGlyphPos (  ) 
      +
      +
      + +

      +Gets the position of the vector head. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.DeformedShape.SetScale (in double  theScale  )  [inherited]
      +
      +
      + +

      +Sets the scale of the presentatable object.

      Parameters:
      + + +
      theScale Double value defining the scale of this presentable object.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.DeformedShape.GetScale (  )  [inherited]
      +
      +
      + +

      +Gets the scale of the presentatable object. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.DeformedShape.IsColored (  )  [inherited]
      +
      +
      + +

      +This boolean method returns True if this deformed shape presentation is colored. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.DeformedShape.ShowColored (in boolean  theColored  )  [inherited]
      +
      +
      + +

      +Shows this presentation in colored mode.

      Parameters:
      + + +
      theColored If this boolean parameter is True this presentable object will be shown in colored mode.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      SALOMEDS::Color VISU.DeformedShape.GetColor (  )  [inherited]
      +
      +
      + +

      +Gets the color of this presentable object.

      Returns:
      The color of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.DeformedShape.SetColor (in SALOMEDS::Color  theColor  )  [inherited]
      +
      +
      + +

      +Sets the color of this presentation.

      Parameters:
      + + +
      theColor The color of this presentation. This parameter is taken from the Color enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.SetScaling (in Scaling  theScaling  )  [inherited]
      +
      +
      + +

      +Sets the type of scaling of the values reflected by the scalar bar.

      Parameters:
      + + +
      theScaling The value of this parameter is taken from the Scaling enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Scaling VISU.ScalarMap.GetScaling (  )  [inherited]
      +
      +
      + +

      +Gets the type of scaling of the values reflected by this presentation. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ScalarMap.SetRange (in double  theMin,
      in double  theMax 
      ) [inherited]
      +
      +
      + +

      +Sets scalar range - min and max boundaries of the scalar bar.

      Parameters:
      + + + +
      theMin Min boundary of the scalar bar.
      theMax Max boundary of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.SetSourceRange (  )  [inherited]
      +
      +
      + +

      +Sets scalar range that corresponds to the source data. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ScalarMap.AddMeshOnGroup (in string  theGroupName  )  [inherited]
      +
      +
      + +

      +Add group as geometry of presentation.

      Parameters:
      + + + +
      theMeshName - mesh name
      theGroupName - group name
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.ScalarMap.RemoveAllGeom (  )  [inherited]
      +
      +
      + +

      +PrsMerger method: Remove all groups.(The scalar map will be placed on all mesh). +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetScalarMode (in long  theScalarMode  )  [inherited]
      +
      +
      + +

      +Sets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetScalarMode (  )  [inherited]
      +
      +
      + +

      +Gets the method of coloring of the elements composing a 3D presentation. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMin (  )  [inherited]
      +
      +
      + +

      +Gets the min boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetSourceMax (  )  [inherited]
      +
      +
      + +

      +Gets the max boundary of the scalar bar from source data. +

      +

      + +

      +
      + + + + + + + + +
      boolean VISU.ColoredPrs3d.IsRangeFixed (  )  [inherited]
      +
      +
      + +

      +Defines whether the scalar range corresponds to the source data or not. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetPosition (in double  X,
      in double  Y 
      ) [inherited]
      +
      +
      + +

      +Sets the position of the scalar bar origin on the screen.

      Parameters:
      + + + +
      X Horizontal position. The value can be between 0 and 1.
      Y Vertical position. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosX (  )  [inherited]
      +
      +
      + +

      +Gets horizontal position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetPosY (  )  [inherited]
      +
      +
      + +

      +Gets vertical position of the scalar bar origin. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.ColoredPrs3d.SetSize (in double  theWidth,
      in double  theHeight 
      ) [inherited]
      +
      +
      + +

      +Sets the size of the scalar bar.

      Parameters:
      + + + +
      theWidth Width of this presentable object. The value can be between 0 and 1.
      theHeight Height of this presentable object. The value can be between 0 and 1.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetWidth (  )  [inherited]
      +
      +
      + +

      +Gets the width of this presentable object.

      Returns:
      A double value corresponding to the width of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + +
      double VISU.ColoredPrs3d.GetHeight (  )  [inherited]
      +
      +
      + +

      +Gets the height of this presentable object.

      Returns:
      A double value corresponding to the height of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetNbColors (in long  theNbColors  )  [inherited]
      +
      +
      + +

      +Sets the number of colors which will be used for presentation of this presentable object.

      Parameters:
      + + +
      theNbColors A long value defining the number of colors.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetNbColors (  )  [inherited]
      +
      +
      + +

      +Gets the number of colors which will be used for visualization of this presentable object.

      Returns:
      A long value corresponding to the number of colors which will be used for visualization of this presentable object.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetLabels (in long  theNbLabels  )  [inherited]
      +
      +
      + +

      +Sets the number of labels which will be used for indication of color gradation of the scalar bar.

      Parameters:
      + + +
      theNbLabels A long value defining the number of labels.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.ColoredPrs3d.GetLabels (  )  [inherited]
      +
      +
      + +

      +Gets the number of labels which will be used for indication of color gradation of the scalar bar.

      Returns:
      A long value corresponding to the number of labels which will be used for indication of color gradation of the scalar bar.
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetTitle (in string  theName  )  [inherited]
      +
      +
      + +

      +Sets the title of the scalar bar. By default - the name of the selected result is used.

      Parameters:
      + + +
      theName String parameter defining the name of the scalar bar.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.ColoredPrs3d.GetTitle (  )  [inherited]
      +
      +
      + +

      +Gets the title of the scalar bar. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ColoredPrs3d.SetBarOrientation (in Orientation  theOrientation  )  [inherited]
      +
      +
      + +

      +Sets the type of orientation of the scalar bar (to provide backward compatibility).

      Parameters:
      + + +
      theOrientation This parameter defines the orientation of the scalar bar. It is taken from the Orientaton enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Orientation VISU.ColoredPrs3d.GetBarOrientation (  )  [inherited]
      +
      +
      + +

      +Gets the type of orientation of the scalar bar (to provide backward compatibility). +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.SetOffset (in float  theDx,
      in float  theDy,
      in float  theDz 
      ) [inherited]
      +
      +
      + +

      +Move the 3D presentation according to the given offset parameters +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.Prs3d.GetOffset (out float  theDx,
      out float  theDy,
      out float  theDz 
      ) [inherited]
      +
      +
      + +

      +Gets offset parameters for the 3D presentation +

      +

      + +

      +
      + + + + + + + + +
      float VISU.Prs3d.GetMemorySize (  )  [inherited]
      +
      +
      + +

      +Gets memory size actually used by the presentation (Mb). +

      +

      + +

      +
      + + + + + + + + +
      void VISU.RemovableObject.RemoveFromStudy (  )  [inherited]
      +
      +
      + +

      +Remove object from study. +

      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Vectors__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Vectors__inherit__graph.jpg new file mode 100644 index 00000000..5341b71c Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1Vectors__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View.html new file mode 100644 index 00000000..22bf9725 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View.html @@ -0,0 +1,1077 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.View Interface Reference

      View interface +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.View:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       OBJECTBROWSER
       VIEWER
       PYTHON
       MESSAGES
       TOP
       CENTER
       BOTTOM
       RIGHT
       LEFT
      enum  ViewRepresentation { OBJECTBROWSER, +VIEWER, +PYTHON, +MESSAGES + }
       ViewRepresentation enumeration More...
      enum  ViewPosition {
      +  TOP, +CENTER, +BOTTOM, +RIGHT, +
      +  LEFT +
      + }

      Public Member Functions

      void ShowPart (in ViewRepresentation ViewRepr, in boolean state)
      boolean IsPartShown (in ViewRepresentation ViewRepr)
      void SplitRight ()
       Split workarea of this view.
      void SplitLeft ()
       Split workarea of this view.
      void SplitBottom ()
       Split workarea of this view.
      void SplitTop ()
       Split workarea of this view.
      void OnTop ()
      void Attract (in View theView)
      void AttractAll (in View theView)
      void SetRelativePositionInSplitter (in double thePosition)
      void SetRelativeSizeInSplitter (in double theSize)
      void SetRelativePositionX (in double thePosition)
      void SetRelativePositionY (in double thePosition)
      void SetRelativeSizeX (in double theSize)
      void SetRelativeSizeY (in double theSize)
      void SetViewWidth (in long Width)
      void SetViewHeight (in long Height)
      long GetViewWidth ()
      long GetViewHeight ()
      void SetViewPositionHorizontal (in ViewPosition ViewPosHor)
      void SetViewPositionVertical (in ViewPosition ViewPosVer)
      void SetRelativePosition (in double x, in double y)
      void SetRelativeSize (in double x, in double y)
      void Minimize ()
      void Restore ()
      void Maximize ()
      void SetTitle (in string theTitle)
      string GetTitle ()
      void SetBackground (in SALOMEDS::Color theColor)
      SALOMEDS::Color GetBackground ()
      void EraseAll ()
      void DisplayAll ()
      void Erase (in PrsObject thePrsObj)
      void Display (in PrsObject thePrsObj)
      void DisplayOnly (in PrsObject thePrsObj)
      void Update ()
      boolean SavePicture (in string theFileName)
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +Contains a set of methods used by the View frame, which can be one of the following types: 3d, Table, XY plot. View interface is a base for all types of view interfaces. +

      +


      Member Enumeration Documentation

      + +
      + +
      + +

      +displaying part ("ALL" isn't setable)

      Enumerator:
      + + + + + +
      OBJECTBROWSER  +
      VIEWER  +
      PYTHON  +
      MESSAGES  +
      +
      + +
      +

      + +

      +
      + + + + +
      enum VISU::View::ViewPosition
      +
      +
      + +

      +

      Enumerator:
      + + + + + + +
      TOP  +
      CENTER  +
      BOTTOM  +
      RIGHT  +
      LEFT  +
      +
      + +
      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.View.ShowPart (in ViewRepresentation  ViewRepr,
      in boolean  state 
      )
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      boolean VISU.View.IsPartShown (in ViewRepresentation  ViewRepr  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitRight (  ) 
      +
      +
      + +

      +Horizontally split workarea of this view. This view is moved in a new right area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitLeft (  ) 
      +
      +
      + +

      +Horizontally split workarea of this view. This view stays in an old left area, others are moved in a new right area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitBottom (  ) 
      +
      +
      + +

      +Vertically split workarea of this view. This view is moved in a new bottom area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitTop (  ) 
      +
      +
      + +

      +Vertically split workarea of this view. This view stays in an old top area, others are moved in a new bottom area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.OnTop (  ) 
      +
      +
      + +

      +Put this view window on top of its work area. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.Attract (in View  theView  ) 
      +
      +
      + +

      +Put theView in workarea of this view right after it. If theView was alone in its workarea, workarea of theView will be destroyed. If theView was in the same workarea with this view, simple reordering will take place.

      Parameters:
      + + +
      theView A view window to be attracted to this one.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.AttractAll (in View  theView  ) 
      +
      +
      + +

      +Put all the view windows from workarea of theView in workarea of this view right after it. Workarea of theView will be destroyed. If theView was in the same workarea with this view, simple reordering will take place.

      Parameters:
      + + +
      theView A view window to be attracted to this one together with all its workarea.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativePositionInSplitter (in double  thePosition  ) 
      +
      +
      + +

      +Set position of this view window relatively its splitter.

      Parameters:
      + + +
      thePosition Desired position of this view window relatively its splitter. Meaningfull values lays in range [0..1].
      +
      +Direction of positioning is defined by the splitter orientation. +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativeSizeInSplitter (in double  theSize  ) 
      +
      +
      + +

      +Set size of this view window relatively its splitter.

      Parameters:
      + + +
      theSize Desired size of this view window relatively its splitter. Meaningfull values lays in range [0..1].
      +
      +Direction of resizing is defined by the splitter orientation. +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativePositionX (in double  thePosition  ) 
      +
      +
      + +

      +Set horizontal position of this view window relatively its workstack.

      Parameters:
      + + +
      thePosition Desired horizontal position of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativePositionY (in double  thePosition  ) 
      +
      +
      + +

      +Set vertical position of this view window relatively its workstack.

      Parameters:
      + + +
      thePosition Desired vertical position of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativeSizeX (in double  theSize  ) 
      +
      +
      + +

      +Set horizontal size of this view window relatively its workstack.

      Parameters:
      + + +
      theSize Desired horizontal size of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativeSizeY (in double  theSize  ) 
      +
      +
      + +

      +Set vertical size of this view window relatively its workstack.

      Parameters:
      + + +
      theSize Desired vertical size of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewWidth (in long  Width  ) 
      +
      +
      + +

      +Old methods for view parameters management, they don't work now +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewHeight (in long  Height  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      long VISU.View.GetViewWidth (  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      long VISU.View.GetViewHeight (  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewPositionHorizontal (in ViewPosition  ViewPosHor  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewPositionVertical (in ViewPosition  ViewPosVer  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.View.SetRelativePosition (in double  x,
      in double  y 
      )
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.View.SetRelativeSize (in double  x,
      in double  y 
      )
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Minimize (  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Restore (  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Maximize (  ) 
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetTitle (in string  theTitle  ) 
      +
      +
      + +

      +Sets the title of the View frame.

      Parameters:
      + + +
      theTitle String parameter defining the title of the View frame.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.View.GetTitle (  ) 
      +
      +
      + +

      +Gets the title of the View frame. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetBackground (in SALOMEDS::Color  theColor  ) 
      +
      +
      + +

      +Sets background color of the View frame.

      Parameters:
      + + +
      theColor Background color defined in SALOMEDS.Color enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      SALOMEDS::Color VISU.View.GetBackground (  ) 
      +
      +
      + +

      +Gets background color of the View frame. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.EraseAll (  ) 
      +
      +
      + +

      +Removes all presentations (presentable objects) from the view. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.DisplayAll (  ) 
      +
      +
      + +

      +Displays all presentations (presentable objects) in the view. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.Erase (in PrsObject  thePrsObj  ) 
      +
      +
      + +

      +Removes a definite presentation (presentable object) from the view.

      Parameters:
      + + +
      thePrsObj The presentation (presentable object) which should be deleted.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.Display (in PrsObject  thePrsObj  ) 
      +
      +
      + +

      +Displays a definite presentation (presentable object) in the view.

      Parameters:
      + + +
      thePrsObj The presentation (presentable object) which should be displayed.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.DisplayOnly (in PrsObject  thePrsObj  ) 
      +
      +
      + +

      +Allows to display only a definite presentation (presentable object) in the view. All other presentations are removed from the view.

      Parameters:
      + + +
      thePrsObj The presentation (presentable object) which should be displayed.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Update (  ) 
      +
      +
      + +

      +Updates the view. +

      +

      + +

      +
      + + + + + + + + + +
      boolean VISU.View.SavePicture (in string  theFileName  ) 
      +
      +
      + +

      +Saves the view.

      Parameters:
      + + +
      theFileName The name of the file where the view will be saved.
      +
      +
      Returns:
      True, if the view have been saved successfully.
      + +
      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View3D.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View3D.html new file mode 100644 index 00000000..6b980479 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View3D.html @@ -0,0 +1,1834 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.View3D Interface Reference

      3D view interface +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.View3D:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

      typedef double XYZ [3]
       FRONT
       BACK
       LEFT
       RIGHT
       TOP
       BOTTOM
       XAxis
       YAxis
       ZAxis
      enum  ViewType {
      +  FRONT, +BACK, +LEFT, +RIGHT, +
      +  TOP, +BOTTOM +
      + }
      enum  Axis { XAxis, +YAxis, +ZAxis + }
       OBJECTBROWSER
       VIEWER
       PYTHON
       MESSAGES
       CENTER
      enum  ViewRepresentation { OBJECTBROWSER, +VIEWER, +PYTHON, +MESSAGES + }
       ViewRepresentation enumeration More...
      enum  ViewPosition {
      +  TOP, +CENTER, +BOTTOM, +RIGHT, +
      +  LEFT +
      + }

      Public Member Functions

      void FitAll ()
      void SetView (in ViewType theType)
      void SetPointOfView (in XYZ theCoord)
      XYZ GetPointOfView ()
      void SetViewUp (in XYZ theDir)
      XYZ GetViewUp ()
      void SetFocalPoint (in XYZ theDir)
      XYZ GetFocalPoint ()
      void SetParallelScale (in double theScale)
      double GetParallelScale ()
      void ScaleView (in Axis theAxis, in double theParam)
      void RemoveScale ()
      boolean SaveViewParams (in string theName)
      boolean RestoreViewParams (in string theName)
      PresentationType GetPresentationType (in ScalarMap thePrs)
      string SetPresentationType (in ScalarMap thePrs, in PresentationType thePrsType)
      boolean IsShrinked (in ScalarMap thePrs)
      string SetShrinked (in ScalarMap thePrs, in boolean isShrinked)
      boolean IsShaded (in ScalarMap thePrs)
      string SetShaded (in ScalarMap thePrs, in boolean isShaded)
      double GetOpacity (in ScalarMap thePrs)
      string SetOpacity (in ScalarMap thePrs, in double theOpacity)
      double GetLineWidth (in ScalarMap thePrs)
      string SetLineWidth (in ScalarMap thePrs, in double theLineWidth)
      void ShowPart (in ViewRepresentation ViewRepr, in boolean state)
      boolean IsPartShown (in ViewRepresentation ViewRepr)
      void SplitRight ()
       Split workarea of this view.
      void SplitLeft ()
       Split workarea of this view.
      void SplitBottom ()
       Split workarea of this view.
      void SplitTop ()
       Split workarea of this view.
      void OnTop ()
      void Attract (in View theView)
      void AttractAll (in View theView)
      void SetRelativePositionInSplitter (in double thePosition)
      void SetRelativeSizeInSplitter (in double theSize)
      void SetRelativePositionX (in double thePosition)
      void SetRelativePositionY (in double thePosition)
      void SetRelativeSizeX (in double theSize)
      void SetRelativeSizeY (in double theSize)
      void SetViewWidth (in long Width)
      void SetViewHeight (in long Height)
      long GetViewWidth ()
      long GetViewHeight ()
      void SetViewPositionHorizontal (in ViewPosition ViewPosHor)
      void SetViewPositionVertical (in ViewPosition ViewPosVer)
      void SetRelativePosition (in double x, in double y)
      void SetRelativeSize (in double x, in double y)
      void Minimize ()
      void Restore ()
      void Maximize ()
      void SetTitle (in string theTitle)
      string GetTitle ()
      void SetBackground (in SALOMEDS::Color theColor)
      SALOMEDS::Color GetBackground ()
      void EraseAll ()
      void DisplayAll ()
      void Erase (in PrsObject thePrsObj)
      void Display (in PrsObject thePrsObj)
      void DisplayOnly (in PrsObject thePrsObj)
      void Update ()
      boolean SavePicture (in string theFileName)
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +This interface contains a set of methods necessary for representation of objects in 3D space. +

      +


      Member Typedef Documentation

      + +
      +
      + + + + +
      typedef double VISU.View3D.XYZ[3]
      +
      +
      + +

      +Data type defining coordinates in 3D space. +

      +

      +


      Member Enumeration Documentation

      + +
      +
      + + + + +
      enum VISU::View3D::ViewType
      +
      +
      + +

      +This enumeration contains a set of elements determining a predefined point of view (position of the camera in 3D space relative to the presentable object).

      Enumerator:
      + + + + + + + +
      FRONT  +
      BACK  +
      LEFT  +
      RIGHT  +
      TOP  +
      BOTTOM  +
      +
      + +
      +

      + +

      +
      + + + + +
      enum VISU::View3D::Axis
      +
      +
      + +

      +This enumeration contains a set of elements determining the axis

      Enumerator:
      + + + + +
      XAxis  +
      YAxis  +
      ZAxis  +
      +
      + +
      +

      + +

      +
      + + + + +
      enum VISU::View::ViewRepresentation [inherited]
      +
      +
      + +

      +displaying part ("ALL" isn't setable)

      Enumerator:
      + + + + + +
      OBJECTBROWSER  +
      VIEWER  +
      PYTHON  +
      MESSAGES  +
      +
      + +
      +

      + +

      +
      + + + + +
      enum VISU::View::ViewPosition [inherited]
      +
      +
      + +

      +

      Enumerator:
      + + + + + + +
      TOP  +
      CENTER  +
      BOTTOM  +
      RIGHT  +
      LEFT  +
      +
      + +
      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + +
      void VISU.View3D.FitAll (  ) 
      +
      +
      + +

      +Makes all presentations, which are currently present in the view, completely visible. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View3D.SetView (in ViewType  theType  ) 
      +
      +
      + +

      +Sets a predefined point of view (FRONT, BACK, LEFT, RIGHT, TOP, BOTTOM). (In other words it means a predefined position of the camera in 3D space with respect to the object which is represented.) +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View3D.SetPointOfView (in XYZ  theCoord  ) 
      +
      +
      + +

      +Sets the position of the camera in 3D space. This point is used as the first point of the vector defining the view direction of the camera. +

      +

      + +

      +
      + + + + + + + + +
      XYZ VISU.View3D.GetPointOfView (  ) 
      +
      +
      + +

      +Gets the position of the camera in 3D space. This point is used as the first point of the vector defining the view direction of the camera. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View3D.SetViewUp (in XYZ  theDir  ) 
      +
      +
      + +

      +Sets the vertical line of the camera in 3D space. +

      +

      + +

      +
      + + + + + + + + +
      XYZ VISU.View3D.GetViewUp (  ) 
      +
      +
      + +

      +Gets the vertical line of the camera in 3D space. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View3D.SetFocalPoint (in XYZ  theDir  ) 
      +
      +
      + +

      +Sets the point of sight of the camera. This point is used as the second point of the vector defining the view direction of the camera. +

      +

      + +

      +
      + + + + + + + + +
      XYZ VISU.View3D.GetFocalPoint (  ) 
      +
      +
      + +

      +Gets the point of sight of the camera. This point is used as the second point of the vector defining the view direction of the camera. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View3D.SetParallelScale (in double  theScale  ) 
      +
      +
      + +

      +Zooming of the presentable object. Sets the scale. +

      +

      + +

      +
      + + + + + + + + +
      double VISU.View3D.GetParallelScale (  ) 
      +
      +
      + +

      +Zooming of the presentable object. Gets the scale. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.View3D.ScaleView (in Axis  theAxis,
      in double  theParam 
      )
      +
      +
      + +

      +Scaling of the view along a definite axis.

      Parameters:
      + + + +
      theAxis The axis of the scaling
      theParam The coefficient of the scaling
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.View3D.RemoveScale (  ) 
      +
      +
      + +

      +Removes the scaling of the view. +

      +

      + +

      +
      + + + + + + + + + +
      boolean VISU.View3D.SaveViewParams (in string  theName  ) 
      +
      +
      + +

      +Saves view parameters.

      Returns:
      True if the view parameters have been created, False if the parameters have been modified.
      +
      Parameters:
      + + +
      theName The name under which the view parameters will be saved.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      boolean VISU.View3D.RestoreViewParams (in string  theName  ) 
      +
      +
      + +

      +Restores view parameters.

      Returns:
      True if the view parameters have been found and applied to the view, False if the parameters with this name don't exist.
      +
      Parameters:
      + + +
      theName The name of the view parameters which will be restored.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      PresentationType VISU.View3D.GetPresentationType (in ScalarMap  thePrs  ) 
      +
      +
      + +

      +Get representation type of the given presentation in this view.

      Parameters:
      + + +
      thePrs Object to get a representation type of.
      +
      +
      Returns:
      PresentationType Representation type of object in this view.
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      string VISU.View3D.SetPresentationType (in ScalarMap  thePrs,
      in PresentationType  thePrsType 
      )
      +
      +
      + +

      +Set representation type of the given presentation in this view.

      Parameters:
      + + + +
      thePrs Object to set a representation type of.
      thePrsType Representation type to be set to the given object.
      +
      +
      Returns:
      Empty string in case of success, error description in case of failure.
      + +
      +

      + +

      +
      + + + + + + + + + +
      boolean VISU.View3D.IsShrinked (in ScalarMap  thePrs  ) 
      +
      +
      + +

      +Get shrink state of the given presentation in this view.

      Parameters:
      + + +
      thePrs Object to get a shrink state of.
      +
      +
      Returns:
      TRUE if thePrs is shrinked in this view, FALSE overwise.
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      string VISU.View3D.SetShrinked (in ScalarMap  thePrs,
      in boolean  isShrinked 
      )
      +
      +
      + +

      +Make the given presentation shrinked or not shrinked in this view.

      Parameters:
      + + + +
      thePrs Object to change a shrink state of.
      isShrinked Pass TRUE to make thePrs shrinked, FALSE overwise.
      +
      +
      Returns:
      Empty string in case of success, error description in case of failure.
      + +
      +

      + +

      +
      + + + + + + + + + +
      boolean VISU.View3D.IsShaded (in ScalarMap  thePrs  ) 
      +
      +
      + +

      +Get shading state of the given presentation in this view.

      Parameters:
      + + +
      thePrs Object to get a shading state of.
      +
      +
      Returns:
      TRUE if thePrs is shaded in this view, FALSE overwise.
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      string VISU.View3D.SetShaded (in ScalarMap  thePrs,
      in boolean  isShaded 
      )
      +
      +
      + +

      +Make the given presentation shaded or not shaded in this view.

      Parameters:
      + + + +
      thePrs Object to set a shading state of.
      isShaded Pass TRUE to make thePrs shaded, FALSE overwise.
      +
      +
      Returns:
      Empty string in case of success, error description in case of failure.
      + +
      +

      + +

      +
      + + + + + + + + + +
      double VISU.View3D.GetOpacity (in ScalarMap  thePrs  ) 
      +
      +
      + +

      +Get opacity of the given presentation in this view.

      Parameters:
      + + +
      thePrs Object to get an opacity of.
      +
      +
      Returns:
      Opacity value in range [0, 1], 0 - transparent, 1 - opaque.
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      string VISU.View3D.SetOpacity (in ScalarMap  thePrs,
      in double  theOpacity 
      )
      +
      +
      + +

      +Set opacity of the given presentation in this view.

      Parameters:
      + + + +
      thePrs Object to set an opacity of.
      theOpacity Opacity value [0, 1]. 0 - transparent, 1 - opaque.
      +
      +
      Returns:
      Empty string in case of success, error description in case of failure.
      + +
      +

      + +

      +
      + + + + + + + + + +
      double VISU.View3D.GetLineWidth (in ScalarMap  thePrs  ) 
      +
      +
      + +

      +Get line width of the given presentation in this view.

      Parameters:
      + + +
      thePrs Object to get a line width of.
      +
      +
      Returns:
      Line width of thePrs in this view.
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      string VISU.View3D.SetLineWidth (in ScalarMap  thePrs,
      in double  theLineWidth 
      )
      +
      +
      + +

      +Set line width of the given presentation in this view.

      Parameters:
      + + + +
      thePrs Object to set a line width of.
      theLineWidth Line width value. Recommended values are in range [1, 10].
      +
      +
      Returns:
      Empty string in case of success, error description in case of failure.
      + +
      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.View.ShowPart (in ViewRepresentation  ViewRepr,
      in boolean  state 
      ) [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      boolean VISU.View.IsPartShown (in ViewRepresentation  ViewRepr  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitRight (  )  [inherited]
      +
      +
      + +

      +Horizontally split workarea of this view. This view is moved in a new right area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitLeft (  )  [inherited]
      +
      +
      + +

      +Horizontally split workarea of this view. This view stays in an old left area, others are moved in a new right area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitBottom (  )  [inherited]
      +
      +
      + +

      +Vertically split workarea of this view. This view is moved in a new bottom area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitTop (  )  [inherited]
      +
      +
      + +

      +Vertically split workarea of this view. This view stays in an old top area, others are moved in a new bottom area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.OnTop (  )  [inherited]
      +
      +
      + +

      +Put this view window on top of its work area. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.Attract (in View  theView  )  [inherited]
      +
      +
      + +

      +Put theView in workarea of this view right after it. If theView was alone in its workarea, workarea of theView will be destroyed. If theView was in the same workarea with this view, simple reordering will take place.

      Parameters:
      + + +
      theView A view window to be attracted to this one.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.AttractAll (in View  theView  )  [inherited]
      +
      +
      + +

      +Put all the view windows from workarea of theView in workarea of this view right after it. Workarea of theView will be destroyed. If theView was in the same workarea with this view, simple reordering will take place.

      Parameters:
      + + +
      theView A view window to be attracted to this one together with all its workarea.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativePositionInSplitter (in double  thePosition  )  [inherited]
      +
      +
      + +

      +Set position of this view window relatively its splitter.

      Parameters:
      + + +
      thePosition Desired position of this view window relatively its splitter. Meaningfull values lays in range [0..1].
      +
      +Direction of positioning is defined by the splitter orientation. +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativeSizeInSplitter (in double  theSize  )  [inherited]
      +
      +
      + +

      +Set size of this view window relatively its splitter.

      Parameters:
      + + +
      theSize Desired size of this view window relatively its splitter. Meaningfull values lays in range [0..1].
      +
      +Direction of resizing is defined by the splitter orientation. +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativePositionX (in double  thePosition  )  [inherited]
      +
      +
      + +

      +Set horizontal position of this view window relatively its workstack.

      Parameters:
      + + +
      thePosition Desired horizontal position of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativePositionY (in double  thePosition  )  [inherited]
      +
      +
      + +

      +Set vertical position of this view window relatively its workstack.

      Parameters:
      + + +
      thePosition Desired vertical position of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativeSizeX (in double  theSize  )  [inherited]
      +
      +
      + +

      +Set horizontal size of this view window relatively its workstack.

      Parameters:
      + + +
      theSize Desired horizontal size of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativeSizeY (in double  theSize  )  [inherited]
      +
      +
      + +

      +Set vertical size of this view window relatively its workstack.

      Parameters:
      + + +
      theSize Desired vertical size of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewWidth (in long  Width  )  [inherited]
      +
      +
      + +

      +Old methods for view parameters management, they don't work now +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewHeight (in long  Height  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      long VISU.View.GetViewWidth (  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      long VISU.View.GetViewHeight (  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewPositionHorizontal (in ViewPosition  ViewPosHor  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewPositionVertical (in ViewPosition  ViewPosVer  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.View.SetRelativePosition (in double  x,
      in double  y 
      ) [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.View.SetRelativeSize (in double  x,
      in double  y 
      ) [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Minimize (  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Restore (  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Maximize (  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetTitle (in string  theTitle  )  [inherited]
      +
      +
      + +

      +Sets the title of the View frame.

      Parameters:
      + + +
      theTitle String parameter defining the title of the View frame.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.View.GetTitle (  )  [inherited]
      +
      +
      + +

      +Gets the title of the View frame. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetBackground (in SALOMEDS::Color  theColor  )  [inherited]
      +
      +
      + +

      +Sets background color of the View frame.

      Parameters:
      + + +
      theColor Background color defined in SALOMEDS.Color enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      SALOMEDS::Color VISU.View.GetBackground (  )  [inherited]
      +
      +
      + +

      +Gets background color of the View frame. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.EraseAll (  )  [inherited]
      +
      +
      + +

      +Removes all presentations (presentable objects) from the view. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.DisplayAll (  )  [inherited]
      +
      +
      + +

      +Displays all presentations (presentable objects) in the view. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.Erase (in PrsObject  thePrsObj  )  [inherited]
      +
      +
      + +

      +Removes a definite presentation (presentable object) from the view.

      Parameters:
      + + +
      thePrsObj The presentation (presentable object) which should be deleted.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.Display (in PrsObject  thePrsObj  )  [inherited]
      +
      +
      + +

      +Displays a definite presentation (presentable object) in the view.

      Parameters:
      + + +
      thePrsObj The presentation (presentable object) which should be displayed.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.DisplayOnly (in PrsObject  thePrsObj  )  [inherited]
      +
      +
      + +

      +Allows to display only a definite presentation (presentable object) in the view. All other presentations are removed from the view.

      Parameters:
      + + +
      thePrsObj The presentation (presentable object) which should be displayed.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Update (  )  [inherited]
      +
      +
      + +

      +Updates the view. +

      +

      + +

      +
      + + + + + + + + + +
      boolean VISU.View.SavePicture (in string  theFileName  )  [inherited]
      +
      +
      + +

      +Saves the view.

      Parameters:
      + + +
      theFileName The name of the file where the view will be saved.
      +
      +
      Returns:
      True, if the view have been saved successfully.
      + +
      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View3D__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View3D__inherit__graph.jpg new file mode 100644 index 00000000..ddfcb301 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View3D__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ViewManager.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ViewManager.html new file mode 100644 index 00000000..b7d573f5 --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ViewManager.html @@ -0,0 +1,198 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.ViewManager Interface Reference

      Interface of the ViewManager. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.ViewManager:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Member Functions

      View GetCurrentView ()
       Getting an active View Frame.
      View3D Create3DView ()
       Creation of a 3d View.
      TableView CreateTableView (in Table theTable)
       Creation of a Table View.
      XYPlot CreateXYPlot ()
       Creation of a 2D plot View.
      void Destroy (in View theView)
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +The ViewManager is necessary for work with view windows (creation and deletion). +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + +
      View VISU.ViewManager.GetCurrentView (  ) 
      +
      +
      + +

      +Returns an object reference to the active View Frame. Type of the View must be checked.

      Note:

      +Returns nil if there are no views currently opened.
      + +
      +

      + +

      +
      + + + + + + + + +
      View3D VISU.ViewManager.Create3DView (  ) 
      +
      +
      + +

      +Returns an object reference to the newly created 3D View. +

      +

      + +

      +
      + + + + + + + + + +
      TableView VISU.ViewManager.CreateTableView (in Table  theTable  ) 
      +
      +
      + +

      +Returns an object reference to the newly created Table View. +

      +

      + +

      +
      + + + + + + + + +
      XYPlot VISU.ViewManager.CreateXYPlot (  ) 
      +
      +
      + +

      +Returns an object reference to the newly created 2D plot View. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.ViewManager.Destroy (in View  theView  ) 
      +
      +
      + +

      +Deletes a definite view.

      Parameters:
      + + +
      theView The view which should be deleted.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ViewManager__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ViewManager__inherit__graph.jpg new file mode 100644 index 00000000..e02fe030 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1ViewManager__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View__inherit__graph.jpg new file mode 100644 index 00000000..6f161cfa Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1View__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1XYPlot.html b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1XYPlot.html new file mode 100644 index 00000000..9c519f2b --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1XYPlot.html @@ -0,0 +1,1724 @@ + + + + + + Main Page + + + + +  + + + + +

      VISU.XYPlot Interface Reference

      Interface of the 2D plot view. +More... +

      +import "VISU_Gen.idl"; +

      +Inheritance diagram for VISU.XYPlot:

      Inheritance graph
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Types

       POINTS
       MULTYLINE
       SPLINE
      enum  CurveType { POINTS, +MULTYLINE, +SPLINE + }
       OBJECTBROWSER
       VIEWER
       PYTHON
       MESSAGES
       TOP
       CENTER
       BOTTOM
       RIGHT
       LEFT
      enum  ViewRepresentation { OBJECTBROWSER, +VIEWER, +PYTHON, +MESSAGES + }
       ViewRepresentation enumeration More...
      enum  ViewPosition {
      +  TOP, +CENTER, +BOTTOM, +RIGHT, +
      +  LEFT +
      + }

      Public Member Functions

      void SetSubTitle (in string theTitle)
      string GetSubTitle ()
      void SetCurveType (in CurveType theType)
      CurveType GetCurveType ()
      void SetMarkerSize (in long theSize)
      long GetMarkerSize ()
      void EnableXGrid (in boolean theMajor, in long theNumMajor, in boolean theMinor, in long theNumMinor)
      void EnableYGrid (in boolean theMajor, in long theNumMajor, in boolean theMinor, in long theNumMinor)
      void SetHorScaling (in Scaling theScaling)
      Scaling GetHorScaling ()
      void SetVerScaling (in Scaling theScaling)
      Scaling GetVerScaling ()
      void SetXTitle (in string theTitle)
      string GetXTitle ()
      void SetYTitle (in string theTitle)
      string GetYTitle ()
      void ShowLegend (in boolean theShowing)
      void FitAll ()
      void FitXRange (in double xMin, in double xMax)
      void FitYRange (in double yMin, in double yMax)
      void FitRange (in double xMin, in double xMax, in double yMin, in double yMax)
      void GetFitRanges (out double xMin, out double xMax, out double yMin, out double yMax)
      void ShowPart (in ViewRepresentation ViewRepr, in boolean state)
      boolean IsPartShown (in ViewRepresentation ViewRepr)
      void SplitRight ()
       Split workarea of this view.
      void SplitLeft ()
       Split workarea of this view.
      void SplitBottom ()
       Split workarea of this view.
      void SplitTop ()
       Split workarea of this view.
      void OnTop ()
      void Attract (in View theView)
      void AttractAll (in View theView)
      void SetRelativePositionInSplitter (in double thePosition)
      void SetRelativeSizeInSplitter (in double theSize)
      void SetRelativePositionX (in double thePosition)
      void SetRelativePositionY (in double thePosition)
      void SetRelativeSizeX (in double theSize)
      void SetRelativeSizeY (in double theSize)
      void SetViewWidth (in long Width)
      void SetViewHeight (in long Height)
      long GetViewWidth ()
      long GetViewHeight ()
      void SetViewPositionHorizontal (in ViewPosition ViewPosHor)
      void SetViewPositionVertical (in ViewPosition ViewPosVer)
      void SetRelativePosition (in double x, in double y)
      void SetRelativeSize (in double x, in double y)
      void Minimize ()
      void Restore ()
      void Maximize ()
      void SetTitle (in string theTitle)
      string GetTitle ()
      void SetBackground (in SALOMEDS::Color theColor)
      SALOMEDS::Color GetBackground ()
      void EraseAll ()
      void DisplayAll ()
      void Erase (in PrsObject thePrsObj)
      void Display (in PrsObject thePrsObj)
      void DisplayOnly (in PrsObject thePrsObj)
      void Update ()
      boolean SavePicture (in string theFileName)
      IdType GetID ()
      VISUType GetType ()
      +

      Detailed Description

      +This interface is used for creation of a view necessary for presentation of a XY plot generated on the basis of one or several curve lines. +

      +


      Member Enumeration Documentation

      + +
      +
      + + + + +
      enum VISU::XYPlot::CurveType
      +
      +
      + +

      +This enumeration contains a set of elements determining the type of the curve lines, which will be displayed in your XY plot.

      Enumerator:
      + + + + +
      POINTS  +
      MULTYLINE  +
      SPLINE  +
      +
      + +
      +

      + +

      +
      + + + + +
      enum VISU::View::ViewRepresentation [inherited]
      +
      +
      + +

      +displaying part ("ALL" isn't setable)

      Enumerator:
      + + + + + +
      OBJECTBROWSER  +
      VIEWER  +
      PYTHON  +
      MESSAGES  +
      +
      + +
      +

      + +

      +
      + + + + +
      enum VISU::View::ViewPosition [inherited]
      +
      +
      + +

      +

      Enumerator:
      + + + + + + +
      TOP  +
      CENTER  +
      BOTTOM  +
      RIGHT  +
      LEFT  +
      +
      + +
      +

      +


      Member Function Documentation

      + +
      +
      + + + + + + + + + +
      void VISU.XYPlot.SetSubTitle (in string  theTitle  ) 
      +
      +
      + +

      +Sets the title of the XY plot

      Parameters:
      + + +
      theTitle The title of the XY plot
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.XYPlot.GetSubTitle (  ) 
      +
      +
      + +

      +Gets the title of the XY plot +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.XYPlot.SetCurveType (in CurveType  theType  ) 
      +
      +
      + +

      +Sets the type of the curve lines.

      Parameters:
      + + +
      theType The type of the curve lines taken from CurveType enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      CurveType VISU.XYPlot.GetCurveType (  ) 
      +
      +
      + +

      +Gets the type of the curve lines. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.XYPlot.SetMarkerSize (in long  theSize  ) 
      +
      +
      + +

      +Sets the size of the markers (data points) with help of which the curve is constructed on the graphics.

      Parameters:
      + + +
      theSize Long value defining the size of the markers.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      long VISU.XYPlot.GetMarkerSize (  ) 
      +
      +
      + +

      +Gets the size of the markers (data points) with help of which the curve is constructed on the graphics. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.XYPlot.EnableXGrid (in boolean  theMajor,
      in long  theNumMajor,
      in boolean  theMinor,
      in long  theNumMinor 
      )
      +
      +
      + +

      +Enable/disables X-axis grid of the 2D plot. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.XYPlot.EnableYGrid (in boolean  theMajor,
      in long  theNumMajor,
      in boolean  theMinor,
      in long  theNumMinor 
      )
      +
      +
      + +

      +Enable/disables Y-axis grid of the 2D plot. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.XYPlot.SetHorScaling (in Scaling  theScaling  ) 
      +
      +
      + +

      +Sets horizontal scaling of the 2D plot.

      Parameters:
      + + +
      theScaling Type of scaling taken from Scaling enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Scaling VISU.XYPlot.GetHorScaling (  ) 
      +
      +
      + +

      +Gets the type horizontal scaling of the 2D plot. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.XYPlot.SetVerScaling (in Scaling  theScaling  ) 
      +
      +
      + +

      +Sets vertical scaling of the 2D plot.

      Parameters:
      + + +
      theScaling Type of scaling taken from Scaling enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      Scaling VISU.XYPlot.GetVerScaling (  ) 
      +
      +
      + +

      +Gets the type vertical scaling of the 2D plot. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.XYPlot.SetXTitle (in string  theTitle  ) 
      +
      +
      + +

      +Sets the title of the X-axis of the plot.

      Parameters:
      + + +
      theTitle String value defining the title of the X-axis of the plot.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.XYPlot.GetXTitle (  ) 
      +
      +
      + +

      +Gets the title of the X-axis of the plot. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.XYPlot.SetYTitle (in string  theTitle  ) 
      +
      +
      + +

      +Sets the title of the Y-axis of the plot.

      Parameters:
      + + +
      theTitle String value defining the title of the X-axis of the plot.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.XYPlot.GetYTitle (  ) 
      +
      +
      + +

      +Gets the title of the Y-axis of the plot. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.XYPlot.ShowLegend (in boolean  theShowing  ) 
      +
      +
      + +

      +Shows/hides the legend (description) of the 2D plot. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.XYPlot.FitAll (  ) 
      +
      +
      + +

      +Shrinks and enlarges the 2D plot to fit the 2D viewer. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.XYPlot.FitXRange (in double  xMin,
      in double  xMax 
      )
      +
      +
      + +

      +Set range of the 2D plot to X axis of the 2D viewer. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.XYPlot.FitYRange (in double  yMin,
      in double  yMax 
      )
      +
      +
      + +

      +Set range of the 2D plot to Y axis of the 2D viewer. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.XYPlot.FitRange (in double  xMin,
      in double  xMax,
      in double  yMin,
      in double  yMax 
      )
      +
      +
      + +

      +Set range of the 2D plot to XY axis of the 2D viewer. +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      void VISU.XYPlot.GetFitRanges (out double  xMin,
      out double  xMax,
      out double  yMin,
      out double  yMax 
      )
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.View.ShowPart (in ViewRepresentation  ViewRepr,
      in boolean  state 
      ) [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      boolean VISU.View.IsPartShown (in ViewRepresentation  ViewRepr  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitRight (  )  [inherited]
      +
      +
      + +

      +Horizontally split workarea of this view. This view is moved in a new right area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitLeft (  )  [inherited]
      +
      +
      + +

      +Horizontally split workarea of this view. This view stays in an old left area, others are moved in a new right area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitBottom (  )  [inherited]
      +
      +
      + +

      +Vertically split workarea of this view. This view is moved in a new bottom area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.SplitTop (  )  [inherited]
      +
      +
      + +

      +Vertically split workarea of this view. This view stays in an old top area, others are moved in a new bottom area. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.OnTop (  )  [inherited]
      +
      +
      + +

      +Put this view window on top of its work area. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.Attract (in View  theView  )  [inherited]
      +
      +
      + +

      +Put theView in workarea of this view right after it. If theView was alone in its workarea, workarea of theView will be destroyed. If theView was in the same workarea with this view, simple reordering will take place.

      Parameters:
      + + +
      theView A view window to be attracted to this one.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.AttractAll (in View  theView  )  [inherited]
      +
      +
      + +

      +Put all the view windows from workarea of theView in workarea of this view right after it. Workarea of theView will be destroyed. If theView was in the same workarea with this view, simple reordering will take place.

      Parameters:
      + + +
      theView A view window to be attracted to this one together with all its workarea.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativePositionInSplitter (in double  thePosition  )  [inherited]
      +
      +
      + +

      +Set position of this view window relatively its splitter.

      Parameters:
      + + +
      thePosition Desired position of this view window relatively its splitter. Meaningfull values lays in range [0..1].
      +
      +Direction of positioning is defined by the splitter orientation. +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativeSizeInSplitter (in double  theSize  )  [inherited]
      +
      +
      + +

      +Set size of this view window relatively its splitter.

      Parameters:
      + + +
      theSize Desired size of this view window relatively its splitter. Meaningfull values lays in range [0..1].
      +
      +Direction of resizing is defined by the splitter orientation. +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativePositionX (in double  thePosition  )  [inherited]
      +
      +
      + +

      +Set horizontal position of this view window relatively its workstack.

      Parameters:
      + + +
      thePosition Desired horizontal position of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativePositionY (in double  thePosition  )  [inherited]
      +
      +
      + +

      +Set vertical position of this view window relatively its workstack.

      Parameters:
      + + +
      thePosition Desired vertical position of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativeSizeX (in double  theSize  )  [inherited]
      +
      +
      + +

      +Set horizontal size of this view window relatively its workstack.

      Parameters:
      + + +
      theSize Desired horizontal size of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetRelativeSizeY (in double  theSize  )  [inherited]
      +
      +
      + +

      +Set vertical size of this view window relatively its workstack.

      Parameters:
      + + +
      theSize Desired vertical size of this view window relatively its workstack. Meaningfull values lays in range [0..1].
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewWidth (in long  Width  )  [inherited]
      +
      +
      + +

      +Old methods for view parameters management, they don't work now +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewHeight (in long  Height  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      long VISU.View.GetViewWidth (  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      long VISU.View.GetViewHeight (  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewPositionHorizontal (in ViewPosition  ViewPosHor  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetViewPositionVertical (in ViewPosition  ViewPosVer  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.View.SetRelativePosition (in double  x,
      in double  y 
      ) [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + + + + + + + + + + +
      void VISU.View.SetRelativeSize (in double  x,
      in double  y 
      ) [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Minimize (  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Restore (  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Maximize (  )  [inherited]
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetTitle (in string  theTitle  )  [inherited]
      +
      +
      + +

      +Sets the title of the View frame.

      Parameters:
      + + +
      theTitle String parameter defining the title of the View frame.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      string VISU.View.GetTitle (  )  [inherited]
      +
      +
      + +

      +Gets the title of the View frame. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.SetBackground (in SALOMEDS::Color  theColor  )  [inherited]
      +
      +
      + +

      +Sets background color of the View frame.

      Parameters:
      + + +
      theColor Background color defined in SALOMEDS.Color enumeration.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      SALOMEDS::Color VISU.View.GetBackground (  )  [inherited]
      +
      +
      + +

      +Gets background color of the View frame. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.EraseAll (  )  [inherited]
      +
      +
      + +

      +Removes all presentations (presentable objects) from the view. +

      +

      + +

      +
      + + + + + + + + +
      void VISU.View.DisplayAll (  )  [inherited]
      +
      +
      + +

      +Displays all presentations (presentable objects) in the view. +

      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.Erase (in PrsObject  thePrsObj  )  [inherited]
      +
      +
      + +

      +Removes a definite presentation (presentable object) from the view.

      Parameters:
      + + +
      thePrsObj The presentation (presentable object) which should be deleted.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.Display (in PrsObject  thePrsObj  )  [inherited]
      +
      +
      + +

      +Displays a definite presentation (presentable object) in the view.

      Parameters:
      + + +
      thePrsObj The presentation (presentable object) which should be displayed.
      +
      + +
      +

      + +

      +
      + + + + + + + + + +
      void VISU.View.DisplayOnly (in PrsObject  thePrsObj  )  [inherited]
      +
      +
      + +

      +Allows to display only a definite presentation (presentable object) in the view. All other presentations are removed from the view.

      Parameters:
      + + +
      thePrsObj The presentation (presentable object) which should be displayed.
      +
      + +
      +

      + +

      +
      + + + + + + + + +
      void VISU.View.Update (  )  [inherited]
      +
      +
      + +

      +Updates the view. +

      +

      + +

      +
      + + + + + + + + + +
      boolean VISU.View.SavePicture (in string  theFileName  )  [inherited]
      +
      +
      + +

      +Saves the view.

      Parameters:
      + + +
      theFileName The name of the file where the view will be saved.
      +
      +
      Returns:
      True, if the view have been saved successfully.
      + +
      +

      + +

      +
      + + + + + + + + +
      IdType VISU.Base.GetID (  )  [inherited]
      +
      +
      + +

      +Returns ID of the object. +

      +

      + +

      +
      + + + + + + + + +
      VISUType VISU.Base.GetType (  )  [inherited]
      +
      +
      + +

      +Returns the type of the presentable object +

      +

      + +

      + + diff --git a/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1XYPlot__inherit__graph.jpg b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1XYPlot__inherit__graph.jpg new file mode 100644 index 00000000..ba97d424 Binary files /dev/null and b/doc/salome/gui/VISU/visugenidl_doc/interfaceVISU_1_1XYPlot__inherit__graph.jpg differ diff --git a/doc/salome/gui/VISU/visugenidl_doc/namespaceVISU.html b/doc/salome/gui/VISU/visugenidl_doc/namespaceVISU.html new file mode 100644 index 00000000..9543044b --- /dev/null +++ b/doc/salome/gui/VISU/visugenidl_doc/namespaceVISU.html @@ -0,0 +1,380 @@ + + + + + + Main Page + + + + +  + + + +

      Package VISU

      +

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

      Data Structures

      interface  Base
      interface  RemovableObject
       Removable object interface. More...
      interface  PrsObject
       Presentable object interface. More...
      interface  Table
       Table representation interface More...
      interface  Curve
       Interface of curve representation. More...
      interface  Container
       Container presentable object interface More...
      interface  Prs3d
       3D presentation interface More...
      interface  Mesh
       Interface of the mesh. More...
      interface  ColoredPrs3d
       Basic Interface for the Colored 3D Presentations. More...
      interface  ColoredPrs3dHolder
       ColoredPrs3dHolder interface. Interface of 3d presentation's holder, which represents colored 3d presentations, created on fields. It is publishing in the object browser in a separate folder and can be controled by viewer's slider. More...
      interface  ColoredPrs3dCache
       ColoredPrs3dCache interface. This interface is responsible for memory management of 3d presentations. One cache corresponds to one study. More...
      interface  ScalarMap
       Interface of the Scalar Map. More...
      interface  GaussPoints
       Gauss Points presentation interface. More...
      interface  DeformedShape
       Deformed shape presentation interface. More...
      interface  ScalarMapOnDeformedShape
       Scalar Map on Deformed shape presentation interface. More...
      interface  Plot3D
       Plot3D interface. More...
      interface  CutPlanes
       Cut planes interface. More...
      interface  CutLines
       Cut lines presentation. More...
      interface  StreamLines
       Interface of the stream lines representation. More...
      interface  IsoSurfaces
       Interface of the isometric surface presentation. More...
      interface  Vectors
       Interface of the vector presentation. More...
      interface  Animation
       Animation class More...
      interface  Result
       Interface Result. More...
      interface  VISU_Gen
       VISU_Gen interface More...
      interface  View
       View interface More...
      interface  View3D
       3D view interface More...
      interface  TableView
       Interface of the Table view. More...
      interface  XYPlot
       Interface of the 2D plot view. More...
      interface  ViewManager
       Interface of the ViewManager. More...

      Typedefs

      typedef string IdType
      typedef sequence< string > string_array

      Enumerations

      enum  Scaling { LINEAR, +LOGARITHMIC + }
      enum  Entity { NODE, +EDGE, +FACE, +CELL + }
      enum  VISUType {
      +  TNONE, +TCURVE, +TTABLE, +TCONTAINER, +
      +  TMESH, +TSCALARMAP, +TISOSURFACES, +TDEFORMEDSHAPE, +
      +  TSCALARMAPONDEFORMEDSHAPE, +TGAUSSPOINTS, +TPLOT3D, +TCUTPLANES, +
      +  TCUTLINES, +TVECTORS, +TSTREAMLINES, +TVISUGEN, +
      +  TVIEWMANAGER, +TRESULT, +TXYPLOT, +TTABLEVIEW, +
      +  TVIEW3D, +TGAUSSVIEW, +TENTITY, +TFAMILY, +
      +  TGROUP, +TFIELD, +TTIMESTAMP, +TANIMATION, +
      +  TCOLOREDPRS3DHOLDER, +TCOLOREDPRS3DCACHE, +TPART, +TALL +
      + }
      enum  PresentationType {
      +  POINT, +WIREFRAME, +SHADED, +INSIDEFRAME, +
      +  SURFACEFRAME, +SHRINK +
      + }
      +


      Detailed Description

      +The main package of interfaces of the post-processing module VISU. +

      +


      Typedef Documentation

      + +
      +
      + + + + +
      typedef string VISU.IdType
      +
      +
      + +

      + +

      +

      + +

      +
      + + + + +
      typedef sequence<string> VISU.string_array
      +
      +
      + +

      + +

      +

      +


      Enumeration Type Documentation

      + +
      +
      + + + + +
      enum VISU::Scaling
      +
      +
      + +

      +This enumeration contains a set of elements defining the type of the scaling, which can be applied on different presentations.

      Enumerator:
      + + + +
      LINEAR  +Linear type of scaling.
      LOGARITHMIC  +Logarithmic type of scaling.
      +
      + +
      +

      + +

      +
      + + + + +
      enum VISU::Entity
      +
      +
      + +

      +This enumeration contains a set of elements defining the type of the entity (topological units) constituting a mesh.

      Enumerator:
      + + + + + +
      NODE  +Node corresponds to a geometrical point.
      EDGE  +Edge corresponds to a geometrical line connecting two points.
      FACE  +Face corresponds to a geometrical plane bounded by several lines.
      CELL  +Cell is a volumic element of a mesh
      +
      + +
      +

      + +

      +
      + + + + +
      enum VISU::VISUType
      +
      +
      + +

      +This enumeration contains a set of elements defining the type of the VISU object. This enumeration is used for navigation between a set of VISU interfaces.

      Enumerator:
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      TNONE  +Not a VISU object
      TCURVE  +Curve line object for construction of 2D XY plots
      TTABLE  +Table containing numerical data
      TCONTAINER  +Container object used for storing a set of curve lines
      TMESH  +Meshing object
      TSCALARMAP  +Scalarmap 3D presentation object
      TISOSURFACES  +Iso surface 3D presentation object
      TDEFORMEDSHAPE  +Deformed shape 3D presentation object
      TSCALARMAPONDEFORMEDSHAPE  +Scalar map on deformed shape 3D presentation object
      TGAUSSPOINTS  +Gauss Points 3D presentation object
      TPLOT3D  +Plot3D 3D presentation object
      TCUTPLANES  +Cut planes 3D presentation object
      TCUTLINES  +Cut lines 3D presentation object
      TVECTORS  +Vectors 3D presentation object
      TSTREAMLINES  +Streamlines 3D presentation object
      TVISUGEN  +VISU generator used for performing operations with different VISU objects
      TVIEWMANAGER  +View manager used for performing operations with different views
      TRESULT  +The data on which different presentations are based
      TXYPLOT  +2D XY plot consisting of one or several curve lines
      TTABLEVIEW  +Table view is used for displaying data tables
      TVIEW3D  +3D view is used for displaying 3D graphical presentations
      TGAUSSVIEW  +3D view is used for displaying Gauss Points graphical presentations
      TENTITY  +An element composing a mesh: node, edge, face or cell
      TFAMILY  +The whole mesh can be divided into one or several submeshes, called families, which are defined by the user. Each family in its turn is composed of entities of a definite type.
      TGROUP  +A group of families
      TFIELD  +Field represents the results of calculations (it can be scalar or vector values), grouped together under one physical concept.
      TTIMESTAMP  +Time stamp represents a subfield: the results of calculations are taken in one definite moment.
      TANIMATION  +Represents Animation object.
      TCOLOREDPRS3DHOLDER  +Colored 3D presentation holder
      TCOLOREDPRS3DCACHE  +Colored 3D presentation cache
      TPART  +MULTIPR: part of a mesh
      TALL  +
      +
      + +
      +

      + +

      +
      + + + + +
      enum VISU::PresentationType
      +
      +
      + +

      +This enumeration contains a set of elements defining the type of presentation of the mesh.

      Enumerator:
      + + + + + + + +
      POINT  +
      WIREFRAME  +
      SHADED  +
      INSIDEFRAME  +
      SURFACEFRAME  +
      SHRINK  +
      +
      + +
      +

      + +

      + + diff --git a/doc/salome/gui/VISU/whdata/whftdata.js b/doc/salome/gui/VISU/whdata/whftdata.js new file mode 100755 index 00000000..addf2622 --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whftdata.js @@ -0,0 +1,25 @@ +// WebHelp 5.10.001 +var gTEA = new Array(); +function aTE(sTopicTitle, sTopicURL) +{ + var len = gTEA.length; + gTEA[len] = new topicEntry(sTopicTitle, sTopicURL); +} + +function topicEntry(sTopicTitle, sTopicURL) +{ + this.sTopicTitle = sTopicTitle; + this.sTopicURL = sTopicURL; +} + +function window_OnLoad() +{ + if (parent && parent != this) { + if (parent.putFtsTData) + { + parent.putFtsTData(gTEA); + } + } +} + +window.onload = window_OnLoad; \ No newline at end of file diff --git a/doc/salome/gui/VISU/whdata/whftdata0.htm b/doc/salome/gui/VISU/whdata/whftdata0.htm new file mode 100755 index 00000000..eae6a624 --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whftdata0.htm @@ -0,0 +1,59 @@ + + + + + + + + + + + diff --git a/doc/salome/gui/VISU/whdata/whfts.htm b/doc/salome/gui/VISU/whdata/whfts.htm new file mode 100755 index 00000000..15fe687b --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whfts.htm @@ -0,0 +1,18 @@ + + + + + + + + + + + diff --git a/doc/salome/gui/VISU/whdata/whfts.js b/doc/salome/gui/VISU/whdata/whfts.js new file mode 100755 index 00000000..54246f69 --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whfts.js @@ -0,0 +1,40 @@ +// WebHelp 5.10.001 +var gaFileMapping = new Array(); +var gaFileTopicMapping = new Array(); + +function fileMapping(sStartKey, sEndKey, sFileName) +{ + this.sStartKey = sStartKey; + this.sEndKey = sEndKey; + this.sFileName = sFileName; + this.aFtsKeys = null; +} + +function fileTopicMapping(nIdBegin, nIdEnd, sFileName) +{ + this.nBegin = nIdBegin; + this.nEnd = nIdEnd; + this.sFileName = sFileName; + this.aTopics = null; +} + + +function iWM(sStartKey, sEndKey, sFileName) +{ + gaFileMapping[gaFileMapping.length] = new fileMapping(sStartKey, sEndKey, sFileName); +} + +function window_OnLoad() +{ + if (parent && parent != this && parent.ftsReady) + { + parent.ftsReady(gaFileMapping, gaFileTopicMapping); + } +} + +function iTM(nIdBegin, nIdEnd, sFileName) +{ + gaFileTopicMapping[gaFileTopicMapping.length] = new fileTopicMapping(nIdBegin, nIdEnd, sFileName); +} + +window.onload = window_OnLoad; diff --git a/doc/salome/gui/VISU/whdata/whfwdata.js b/doc/salome/gui/VISU/whdata/whfwdata.js new file mode 100755 index 00000000..8340b59d --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whfwdata.js @@ -0,0 +1,37 @@ +// WebHelp 5.10.001 +var gWEA = new Array(); +function aWE() +{ + var len = gWEA.length; + gWEA[len] = new ftsEntry(aWE.arguments); +} + +function ftsEntry(fn_arguments) +{ + if (fn_arguments.length && fn_arguments.length >= 1) + { + this.sItemName = fn_arguments[0]; + this.aTopics = null; + var nLen = fn_arguments.length; + if (nLen > 1) + { + this.aTopics = new Array(); + for (var i = 0; i < nLen - 1; i ++ ) + { + this.aTopics[i] = fn_arguments[i + 1]; + } + } + } +} + +function window_OnLoad() +{ + if (parent && parent != this) { + if (parent.putFtsWData) + { + parent.putFtsWData(gWEA); + } + } +} + +window.onload = window_OnLoad; \ No newline at end of file diff --git a/doc/salome/gui/VISU/whdata/whfwdata0.htm b/doc/salome/gui/VISU/whdata/whfwdata0.htm new file mode 100755 index 00000000..3307ee33 --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whfwdata0.htm @@ -0,0 +1,902 @@ + + + + + + + + + + + diff --git a/doc/salome/gui/VISU/whdata/whgdata.js b/doc/salome/gui/VISU/whdata/whgdata.js new file mode 100755 index 00000000..e38a107b --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whgdata.js @@ -0,0 +1,26 @@ +// WebHelp 5.10.001 +var gIEA = new Array(); +function aGE(sName, sDef) +{ + var len = gIEA.length; + gIEA[len] = new gloEntry(sName, sDef); +} + +function gloEntry(sName, sDef) +{ + this.sName = sName; + this.sDef = sDef; + this.nNKOff = 0; +} + +function window_OnLoad() +{ + if (parent && parent != this) { + if (parent.putData) + { + parent.putData(gIEA); + } + } +} + +window.onload = window_OnLoad; \ No newline at end of file diff --git a/doc/salome/gui/VISU/whdata/whgdata0.htm b/doc/salome/gui/VISU/whdata/whgdata0.htm new file mode 100755 index 00000000..3865725f --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whgdata0.htm @@ -0,0 +1,33 @@ + + + + + + + + + + + diff --git a/doc/salome/gui/VISU/whdata/whglo.htm b/doc/salome/gui/VISU/whdata/whglo.htm new file mode 100755 index 00000000..9d7ac79f --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whglo.htm @@ -0,0 +1,16 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/gui/VISU/whdata/whglo.js b/doc/salome/gui/VISU/whdata/whglo.js new file mode 100755 index 00000000..c34fb24b --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whglo.js @@ -0,0 +1,34 @@ +// WebHelp 5.10.001 +var gaFileMapping = new Array(); +function fileMapping(sBK, sEK, sFileName, nNum) +{ + this.sBK = sBK; + this.sEK = sEK; + this.sFileName = sFileName; + this.aKs = null; + this.nNum = nNum; + this.oUsedItems = null; +} + + +function iFM(sBK, sEK, sFileName, nNum) +{ + var i = gaFileMapping.length; + gaFileMapping[i] = new fileMapping(sBK, sEK, sFileName, nNum); + if (i == 0) { + gaFileMapping[i].nTotal = nNum; + } + else { + gaFileMapping[i].nTotal = nNum + gaFileMapping[i - 1].nTotal; + } +} + +function window_OnLoad() +{ + if (parent && parent != this && parent.projReady) + { + parent.projReady(gaFileMapping); + } +} + +window.onload = window_OnLoad; diff --git a/doc/salome/gui/VISU/whdata/whidata.js b/doc/salome/gui/VISU/whdata/whidata.js new file mode 100755 index 00000000..a9218473 --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whidata.js @@ -0,0 +1,89 @@ +// WebHelp 5.10.001 +// const strings +var gIEA = new Array(); +function aIE() +{ + var len = gIEA.length; + gIEA[len] = new indexEntry(aIE.arguments); +} + +function topic(sName, sURL) +{ + this.sName = sName; + this.sURL = sURL; +} + +function indexEntry(fn_arguments) +{ + if (fn_arguments.length && fn_arguments.length >= 3) + { + this.nType = fn_arguments[0]; + this.nPKOff = 0; + this.nNKOff = fn_arguments[1]; + this.sName = fn_arguments[2]; + this.aTopics = null; + var nLen = fn_arguments.length; + if (Math.floor(nLen / 2) * 2 == nLen) + { + this.sTarget = fn_arguments[3]; + if (nLen > 5) + { + this.aTopics = new Array(); + for (var i = 0; i < (nLen - 5)/2; i++) + { + this.aTopics[i] = new topic(fn_arguments[i * 2 + 4], fn_arguments[i * 2 + 5]); + } + } + + } + else + { + if (nLen > 4) + { + this.aTopics = new Array(); + for (var i = 0; i < (nLen - 4)/2; i++) + { + this.aTopics[i] = new topic(fn_arguments[i * 2 + 3], fn_arguments[i * 2 + 4]); + } + } + } + } +} + +function getIndexTopicMappingList(nItemIndex) +{ + var sTopics = ""; + if (gIEA.length > nItemIndex) + { + if (gIEA[nItemIndex].aTopics) + { + var i = 0; + var nLen = gIEA[nItemIndex].aTopics.length; + for (i = 0; i < nLen; i ++) + { + sTopics += "," + gIEA[nItemIndex].aTopics[i]; + } + } + } + return sTopics; +} + +function window_OnLoad() +{ + if (parent && parent != this) { + if (parent.putData) + { + for (var i = 0; i < gIEA.length; i ++ ) + { + if (gIEA[i].nNKOff != 0 && i + gIEA[i].nNKOff + 1 < gIEA.length) + { + + gIEA[i + gIEA[i].nNKOff + 1].nPKOff = gIEA[i].nNKOff; + } + } + parent.putData(gIEA); + } + } +} + +window.onload = window_OnLoad; \ No newline at end of file diff --git a/doc/salome/gui/VISU/whdata/whidx.htm b/doc/salome/gui/VISU/whdata/whidx.htm new file mode 100755 index 00000000..a049a96f --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whidx.htm @@ -0,0 +1,15 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/gui/VISU/whdata/whidx.js b/doc/salome/gui/VISU/whdata/whidx.js new file mode 100755 index 00000000..c34fb24b --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whidx.js @@ -0,0 +1,34 @@ +// WebHelp 5.10.001 +var gaFileMapping = new Array(); +function fileMapping(sBK, sEK, sFileName, nNum) +{ + this.sBK = sBK; + this.sEK = sEK; + this.sFileName = sFileName; + this.aKs = null; + this.nNum = nNum; + this.oUsedItems = null; +} + + +function iFM(sBK, sEK, sFileName, nNum) +{ + var i = gaFileMapping.length; + gaFileMapping[i] = new fileMapping(sBK, sEK, sFileName, nNum); + if (i == 0) { + gaFileMapping[i].nTotal = nNum; + } + else { + gaFileMapping[i].nTotal = nNum + gaFileMapping[i - 1].nTotal; + } +} + +function window_OnLoad() +{ + if (parent && parent != this && parent.projReady) + { + parent.projReady(gaFileMapping); + } +} + +window.onload = window_OnLoad; diff --git a/doc/salome/gui/VISU/whdata/whtdata.js b/doc/salome/gui/VISU/whdata/whtdata.js new file mode 100755 index 00000000..0558e198 --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whtdata.js @@ -0,0 +1,64 @@ +// WebHelp 5.10.001 +var gTEA = new Array(); +function aTE() +{ + gTEA[gTEA.length] = new tocEntry(aTE.arguments); +} + +function tocEntry(fn_arguments) +{ + if (fn_arguments.length < 3) + { + alert ("data format wrong!!!"); + return; + } + + this.nType = fn_arguments[0]; + this.nContents = fn_arguments[1]; + this.sItemName = fn_arguments[2]; + + if (this.nType == 1 || this.nType == 2 || this.nType == 16) + { + if (fn_arguments.length > 3) + { + this.sItemURL = fn_arguments[3]; + if (fn_arguments.length > 4) + { + this.sTarget = fn_arguments[4]; + if (fn_arguments.length > 5) + this.sIconRef = fn_arguments[5]; + } + } + } + if (this.nType == 4 || this.nType == 8) + { + if (fn_arguments.length > 3) + { + this.sRefURL = fn_arguments[3]; + if (this.nType == 4) + { + if(this.sRefURL.lastIndexOf("/")!=this.sRefURL.length-1) + this.sRefURL+="/"; + } + if (fn_arguments.length > 4) + { + this.sItemURL = fn_arguments[4]; + if (fn_arguments.length > 5) + { + this.sTarget = fn_arguments[5]; + if (fn_arguments.length > 6) + this.sIconRef = fn_arguments[6]; + } + } + } + } +} + + +function window_OnLoad() +{ + if (parent && parent != this && parent.putData) { + parent.putData(gTEA); + } +} +window.onload = window_OnLoad; \ No newline at end of file diff --git a/doc/salome/gui/VISU/whdata/whtdata0.htm b/doc/salome/gui/VISU/whdata/whtdata0.htm new file mode 100755 index 00000000..fe3b5c79 --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whtdata0.htm @@ -0,0 +1,60 @@ + + + + + + + + + + + diff --git a/doc/salome/gui/VISU/whdata/whtoc.htm b/doc/salome/gui/VISU/whdata/whtoc.htm new file mode 100755 index 00000000..459c3e31 --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whtoc.htm @@ -0,0 +1,16 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/gui/VISU/whdata/whtoc.js b/doc/salome/gui/VISU/whdata/whtoc.js new file mode 100755 index 00000000..62de5a13 --- /dev/null +++ b/doc/salome/gui/VISU/whdata/whtoc.js @@ -0,0 +1,31 @@ +// WebHelp 5.10.001 +// const strings +var gaProj = new Array(); +var gsRoot = ""; + +function setRoot(sRoot) +{ + gsRoot = sRoot +} + +function aPE(sProjPath, sRootPath) +{ + gaProj[gaProj.length] = new tocProjEntry(sProjPath, sRootPath); +} + +function tocProjEntry(sProjPath, sRootPath) +{ + if(sProjPath.lastIndexOf("/")!=sProjPath.length-1) + sProjPath+="/"; + this.sPPath = sProjPath; + this.sRPath = sRootPath; +} + + +function window_OnLoad() +{ + if (parent && parent != this && parent.projReady) { + parent.projReady(gsRoot, gaProj); + } +} +window.onload = window_OnLoad; \ No newline at end of file diff --git a/doc/salome/gui/VISU/whgdata/whexpbar.gif b/doc/salome/gui/VISU/whgdata/whexpbar.gif new file mode 100755 index 00000000..e677dc6f Binary files /dev/null and b/doc/salome/gui/VISU/whgdata/whexpbar.gif differ diff --git a/doc/salome/gui/VISU/whgdata/whlstf0.htm b/doc/salome/gui/VISU/whgdata/whlstf0.htm new file mode 100755 index 00000000..1d484228 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstf0.htm @@ -0,0 +1,46 @@ + + +Search Words List + + + + + + + +

      + + +10n
      2d 1 2 3 4 5 6 7
      3d 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
      +

      +able 1 2 3
      above
      abscissa
      absolute
      acceptable 1 2
      access 1 2 3 4
      accessed 1 2
      accessible
      accordance
      according 1 2 3 4 5 6
      accuracy
      action
      actions 1 2 3
      activated 1 2 3
      activates
      active 1 2 3 4
      activity
      actor
      actors
      actually
      addition 1 2
      additional 1 2 3 4 5 6 7 8 9 10 11
      adjust 1 2 3
      adjusted
      adjusting
      advanced 1 2
      again
      algorithm
      allow 1 2 3 4 5
      allowing 1 2 3 4 5 6 7
      allows 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
      along 1 2 3 4 5
      alpha
      already 1 2
      alternatively
      always
      analog
      angle 1 2 3 4
      animate
      animating
      animation 1 2 3 4
      animations
      another 1 2 3 4
      any 1 2 3 4 5 6 7 8
      apexes
      api
      appear 1 2 3 4 5 6
      application 1 2
      applied 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
      applies
      apply 1 2 3 4
      area 1 2 3
      around 1 2 3 4 5
      arrange
      array
      arrows
      asked
      assign
      assigned
      associated 1 2
      attributes 1 2 3
      auto 1 2 3
      automatically 1 2 3 4 5 6 7 8
      available 1 2 3 4 5 6
      average
      avi
      avoid
      axes 1 2 3 4 5 6 7 8 9
      axis 1 2 3 4 5 6 7 8 9
      +

      +back 1 2
      background 1 2 3 4
      backward 1 2
      bar 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
      bars 1 2 3
      base 1 2 3 4
      based 1 2 3 4 5 6 7
      basic 1 2 3
      basing
      basis 1 2 3 4 5 6 7 8
      become
      becomes
      before
      begin
      beginning
      being
      belonging 1 2
      belongs
      below 1 2
      better
      bicolor 1 2
      big
      bigger
      black 1 2
      blue 1 2
      bmp 1 2 3 4 5
      both 1 2 3 4 5 6 7
      bottom 1 2 3
      bound
      boundaries
      boundary 1 2
      box 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
      boxes 1 2 3


      >> + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstf1.htm b/doc/salome/gui/VISU/whgdata/whlstf1.htm new file mode 100755 index 00000000..26a1ba2e --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstf1.htm @@ -0,0 +1,43 @@ + + +Search Words List + + + + + + + +

      <<

      +

      +browse 1 2
      browser 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
      build
      builds
      built 1 2
      button 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
      buttons 1 2 3 4
      +

      +calculation
      calculations 1 2
      called
      calls
      camera 1 2
      cancel 1 2 3
      cannot
      case 1 2 3
      cases
      cause
      cell
      cells 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
      center 1 2 3
      centered
      central 1 2
      centred
      certain
      change 1 2 3 4 5 6 7 8
      changed
      changes 1 2 3 4
      channel
      characteristic
      characteristics 1 2
      check 1 2 3 4 5 6 7 8 9 10
      checkbox
      checked 1 2 3 4
      checking
      checkmark
      choice 1 2 3
      choices
      choose 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
      chosen 1 2 3 4 5 6
      circle
      clamp
      click 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
      clicking 1 2
      clip
      clipping 1 2 3
      clips
      clockwise
      clone
      close 1 2
      closed
      color 1 2 3 4 5 6 7 8 9 10 11
      colored 1 2 3
      coloring 1 2 3 4 5
      colors 1 2
      coloured
      column 1 2
      columns
      combine
      combined
      combines
      command 1 2
      common 1 2
      compare
      comparison 1 2
      compatible
      complete
      completely
      complicated
      component 1 2 3 4
      components 1 2 3
      compose
      composed 1 2 3
      composing
      computation
      computed 1 2
      concept
      conditions
      cones
      configuration 1 2
      configure
      confirm 1 2 3
      considered
      consist 1 2
      consisting
      consists 1 2
      construct 1 2
      constructed 1 2 3 4
      construction 1 2
      constructs
      consuming
      contain 1 2
      contained
      container 1 2
      containing 1 2 3 4
      contains 1 2 3
      content
      contents 1 2 3
      context
      continue 1 2
      contour
      contours
      control 1 2 3
      controller
      controls 1 2
      convey
      coordinate 1 2 3
      coordinates 1 2 3 4 5 6
      copies
      copy 1 2 3
      corner
      correspond 1 2 3
      correspondence 1 2
      corresponding 1 2 3 4
      corresponds 1 2 3 4
      corrupt
      cost
      counterclockwise
      course


      >> + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstf2.htm b/doc/salome/gui/VISU/whgdata/whlstf2.htm new file mode 100755 index 00000000..692e2e0e --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstf2.htm @@ -0,0 +1,45 @@ + + +Search Words List + + + + + + + +

      <<

      +

      +create 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
      created 1 2 3 4 5 6 7 8 9 10 11 12
      creating 1 2 3 4 5 6 7 8 9 10
      creation 1 2 3 4 5 6
      cross 1 2 3
      ctrl 1 2 3
      current 1 2 3 4 5 6
      cursor 1 2 3
      curve 1 2 3 4 5
      curves 1 2 3 4
      customize
      cut 1 2 3 4 5
      cutting
      cycled
      +

      +dash
      data 1 2 3 4 5 6 7 8
      decimal
      decrease 1 2 3 4
      default 1 2 3 4 5 6 7 8 9 10 11 12 13
      definable
      define 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
      defined 1 2 3 4 5 6 7 8 9 10 11 12 13
      defines 1 2 3 4 5 6 7 8
      defining 1 2 3 4
      definite 1 2 3 4 5
      definition
      definitions
      deformation
      deformed 1 2 3
      degrees 1 2 3 4 5
      delete 1 2
      depend
      depending 1 2 3
      depends 1 2
      depth
      described
      description 1 2
      design
      desktop
      destined 1 2 3
      developed
      diagonal
      dialog 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
      diamond
      different 1 2 3 4
      differently
      dimensions 1 2
      direction 1 2 3 4
      directly
      directory
      disable
      disabled 1 2
      displacement 1 2
      display 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
      displayed 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
      displaying 1 2 3 4 5 6
      displays 1 2 3 4 5
      distance 1 2 3 4 5 6
      divide 1 2
      divided 1 2
      divisions
      does
      doesn
      dominant
      don 1 2 3
      dot
      down 1 2 3
      downward 1 2
      drag 1 2
      dragging
      draw
      drawn 1 2
      dump 1 2 3 4 5
      duplicate
      duplicated
      dynamic
      dynamically 1 2
      +

      +e 1 2
      edges 1 2
      edit 1 2 3 4 5 6 7
      editable
      edition
      effect
      either
      elapsed
      element 1 2 3
      elements 1 2 3 4
      else
      empty
      end 1 2 3 4
      ended
      enter 1 2 3 4 5
      entered 1 2
      entities 1 2
      entity


      >> + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstf3.htm b/doc/salome/gui/VISU/whgdata/whlstf3.htm new file mode 100755 index 00000000..3378fe9e --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstf3.htm @@ -0,0 +1,49 @@ + + +Search Words List + + + + + + + +

      <<

      +

      +equal 1 2 3
      erase 1 2 3 4
      erased
      etc
      every 1 2
      everything
      exactly 1 2
      examine
      exceed
      exceeds
      except 1 2
      exist 1 2
      existing 1 2
      exit
      exits
      explore
      export
      exported
      exporting
      exports 1 2 3 4
      expressed
      extended
      extent
      extremities
      +

      +faces 1 2
      factor 1 2 3 4 5 6
      families 1 2
      family 1 2
      fast
      feature 1 2
      features
      field 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
      fields 1 2 3 4 5 6 7 8 9 10 11
      file 1 2 3 4 5 6
      files 1 2 3 4 5
      finding
      finish 1 2
      finished 1 2 3 4 5 6 7 8 9
      first 1 2 3
      fit 1 2 3
      fits
      fixed 1 2
      focal 1 2
      folder 1 2
      folders
      following 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
      follows 1 2 3
      font 1 2 3
      format 1 2 3 4
      forming 1 2 3
      forms
      formula
      forth
      forward 1 2
      founded
      fps
      frame 1 2 3 4
      frames 1 2 3
      framework
      free
      freedom
      fully
      function
      functionalities
      functionality 1 2 3 4 5 6 7
      +

      +g
      gauss 1 2 3 4 5 6 7 8 9 10
      general
      generate 1 2
      generated 1 2 3 4 5 6
      generates
      generating
      generation 1 2
      geom
      geometrical 1 2 3 4
      geometry
      get 1 2 3
      given 1 2 3 4 5
      gives 1 2 3 4 5 6 7
      gl
      global 1 2 3
      glyph
      glyphs
      graduate
      graduated
      graduation
      graph 1 2
      graphic
      graphical
      graphs 1 2
      greater 1 2 3 4 5
      grey
      grid
      group
      grouped
      groups 1 2
      +

      +h
      half
      halves 1 2
      hardware
      having 1 2 3 4
      head 1 2
      height 1 2 3
      help
      here 1 2 3 4 5
      hidden
      hide 1 2 3 4 5
      hides 1 2 3
      hiding 1 2
      high
      highest
      highlight
      highlighted 1 2
      hold
      horizontal 1 2 3 4
      how 1 2
      +

      +i
      icon 1 2 3 4 5 6 7 8 9 10 11
      id 1 2


      >> + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstf4.htm b/doc/salome/gui/VISU/whgdata/whlstf4.htm new file mode 100755 index 00000000..d00844d2 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstf4.htm @@ -0,0 +1,49 @@ + + +Search Words List + + + + + + + +

      <<

      +

      +if 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
      ijk
      image 1 2 3 4 5
      images
      immediately 1 2 3 4 5 6 7 8 9 10 11 12 13 14
      import 1 2 3 4
      imported 1 2 3 4
      importing 1 2 3
      imposed
      impossible
      inactive 1 2
      included
      including 1 2 3 4
      increase 1 2 3 4
      increment
      independent
      independently
      index
      indicated
      indicating
      individually
      info 1 2
      information 1 2 3 4 5 6 7
      initial 1 2 3
      input
      inside 1 2
      insideframe
      inspected 1 2 3
      integration
      intended
      interaction 1 2
      interesting
      interpolation
      interval 1 2
      intervals
      introduces
      introduction
      invert
      iso
      isobaric
      isometric
      item 1 2
      items
      iterations
      +

      +jpeg 1 2 3 4
      jpg 1 2 3 4 5
      just
      +

      +key 1 2
      keyboard 1 2 3 4
      keys 1 2
      +

      +labels 1 2 3 4
      larger
      largest
      last
      latest
      latitude
      launch 1 2
      launching
      layout 1 2
      learn
      least
      left 1 2 3 4 5 6 7
      leftward
      legend 1 2
      length 1 2 3
      less 1 2
      level
      like 1 2
      limited
      limits
      line 1 2 3 4 5 6 7
      linear 1 2 3
      lined
      lines 1 2 3 4 5 6 7 8 9 10
      list 1 2 3 4 5
      ll 1 2 3
      loaded
      loading
      loads
      local 1 2
      located 1 2 3 4 5 6 7 8 9 10 11
      location 1 2 3
      locked
      locking 1 2 3
      logarithmic 1 2 3
      longitude
      look
      lookout
      lot
      lower 1 2
      lowest
      lying 1 2
      +

      +m
      magnification 1 2 3
      magnitude 1 2 3
      main 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
      major
      make 1 2
      management
      manipulate 1 2
      manipulation
      manipulations
      manipulator
      manual 1 2
      manually 1 2 3
      map 1 2
      marked 1 2 3
      marker 1 2
      markers 1 2 3
      marks 1 2
      massless
      matrix 1 2
      max 1 2 3
      maximal
      maximum 1 2 3 4 5 6
      mean 1 2
      meaning
      means
      measured 1 2
      menu 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
      menus
      merge
      mesh 1 2 3 4 5 6 7 8 9 10 11 12 13
      meshes 1 2
      methods


      >> + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstf5.htm b/doc/salome/gui/VISU/whgdata/whlstf5.htm new file mode 100755 index 00000000..faf9e093 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstf5.htm @@ -0,0 +1,47 @@ + + +Search Words List + + + + + + + +

      <<

      +

      +might
      min 1 2 3
      minimal
      minimum 1 2 3 4 5
      minor
      mix
      mode 1 2 3 4 5 6 7 8 9
      model
      models
      modes 1 2
      modify 1 2
      module 1 2 3 4 5 6 7 8 9 10 11
      modules
      modulus
      moment
      momentarily
      monitor
      mouse 1 2 3 4 5 6 7 8
      move 1 2 3
      moved
      movement 1 2
      movements
      moving
      multiple
      multiplied 1 2 3
      multiply 1 2
      +

      +n 1 2 3
      name 1 2 3 4 5 6 7
      names 1 2
      natural
      navigation
      nb 1 2
      nbrfaces
      necessary 1 2 3
      need
      negative 1 2
      new 1 2 3 4 5 6 7 8 9
      newly
      next 1 2
      nodes
      none 1 2
      normal
      note 1 2 3
      notify
      now 1 2 3
      nth
      null
      number 1 2 3 4 5 6 7 8 9 10 11 12 13
      numbers
      numerical
      +

      +object 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
      objects 1 2 3 4 5 6 7
      observe 1 2
      obtained
      offset
      often
      ok 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
      once 1 2 3 4
      oncells
      one 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
      onedges
      onfaces
      onnodes
      opacity
      opaque 1 2
      open 1 2 3 4
      opengl
      opens
      operation 1 2 3
      operations 1 2 3 4
      opposite
      optimization
      option 1 2 3 4 5 6 7 8 9 10 11
      options 1 2 3 4 5
      ordinary
      ordinate
      orientate
      orientation 1 2 3 4 5 6 7
      oriented
      origin 1 2 3
      otherwise
      out 1 2 3
      output
      outside
      overview
      own 1 2
      +

      +pagedn
      pageup
      palette
      panning 1 2 3
      parameter 1 2 3 4
      parameters 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
      parent
      parses
      part 1 2 3
      particle
      particular 1 2 3
      parts 1 2 3
      path 1 2
      pause
      paused
      per
      perform
      performed 1 2
      period
      periods
      perpendicular
      personal


      >> + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstf6.htm b/doc/salome/gui/VISU/whgdata/whlstf6.htm new file mode 100755 index 00000000..edfe649a --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstf6.htm @@ -0,0 +1,45 @@ + + +Search Words List + + + + + + + +

      <<

      +

      +physical
      picking 1 2
      picture
      pictures 1 2
      pixels
      place 1 2 3
      placed
      placement
      plane 1 2 3 4 5
      planes 1 2 3 4 5 6
      plate
      platform 1 2
      play
      plot 1 2 3 4 5 6 7
      plot2d 1 2
      plot2dview
      plots 1 2 3 4 5
      png 1 2 3 4 5
      point 1 2 3 4 5 6 7 8 9
      pointers
      points 1 2 3 4 5 6 7 8 9 10 11 12 13 14
      polyline
      pop 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
      position 1 2 3 4 5 6 7 8 9
      positions 1 2
      positive
      possesses
      possessing
      possibility 1 2
      possible 1 2 3 4 5
      post 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
      preferences 1 2 3 4 5 6 7
      present
      presentation 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
      presentations 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
      presents
      press 1 2 3 4
      pressed 1 2 3
      presume
      preview 1 2 3 4
      previous
      previously 1 2 3 4 5
      primitive
      primitives 1 2 3 4
      pro 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
      problem
      procedure
      process 1 2
      processed 1 2
      processing 1 2
      produced
      produces
      progress 1 2
      progression
      progressive
      prompts
      propagation
      properties 1 2 3 4 5 6 7 8 9 10 11 12
      proportional
      provides 1 2 3
      pseudo 1 2
      publish
      published
      pull
      purpose
      purposes
      push
      put
      pyramid
      pyramids
      python
      +

      +quadrangles
      quality
      quit 1 2 3
      +

      +radio 1 2 3
      radius
      rainbow 1 2
      range 1 2 3 4 5 6 7 8 9
      ranged
      ranges
      ranging 1 2 3 4
      rarefied
      rate 1 2
      ratio 1 2 3 4
      real 1 2 3 4
      record
      recorded
      recording 1 2
      records
      rectangle
      rectangles
      red
      redefine
      reference 1 2
      references
      refining
      regarding
      regimes
      regular 1 2
      related
      relative 1 2 3 4
      relevant 1 2
      relief
      remain
      remote 1 2
      remove
      rename 1 2 3 4
      render 1 2
      rendering 1 2 3
      represent 1 2
      representation 1 2 3 4
      representations
      representative
      represented 1 2 3 4 5
      representing 1 2 3 4 5
      represents 1 2 3 4
      required 1 2 3 4
      requires 1 2
      reset 1 2
      resizes 1 2
      resolution
      resources 1 2
      respective 1 2
      respectively 1 2
      restore
      restores
      result 1 2 3
      resulting 1 2 3
      results 1 2 3 4 5
      return 1 2 3
      reuses
      reveals
      reverse


      >> + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstf7.htm b/doc/salome/gui/VISU/whgdata/whlstf7.htm new file mode 100755 index 00000000..ff4ee7f8 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstf7.htm @@ -0,0 +1,43 @@ + + +Search Words List + + + + + + + +

      <<

      +

      +right 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
      rightward
      rotate 1 2 3 4
      rotating
      rotation 1 2 3 4 5 6 7
      rotations 1 2 3
      row 1 2
      running 1 2
      +

      +s 1 2
      salome 1 2 3 4 5 6 7 8
      same 1 2 3 4 5 6 7 8 9
      save 1 2 3 4 5 6 7
      saves
      saving
      scalar 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
      scale 1 2 3 4 5 6 7 8 9
      scales
      scaling 1 2 3 4 5 6 7 8
      scene 1 2 3 4 5
      screen
      script
      search
      second 1 2 3
      secondary
      section 1 2
      see 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
      seen
      segmentation 1 2 3 4
      segments 1 2
      select 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
      selectable
      selected 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
      selecting
      selection 1 2 3 4
      semi 1 2
      sensitive
      separate 1 2
      separately 1 2
      serve
      session
      sessions
      set 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
      setting 1 2 3 4 5 6 7 8 9 10 11 12
      settings 1 2 3 4 5
      setup
      shader
      shading
      shape 1 2 3 4 5
      shifting
      should 1 2 3 4 5 6 7 8 9 10 11
      show 1 2 3 4 5 6 7 8
      shows 1 2 3 4 5 6 7
      shrink
      side 1 2
      similar 1 2
      simple
      simultaneous
      simultaneously 1 2 3 4
      size 1 2 3 4 5 6 7
      sizes
      slow
      small 1 2
      smaller 1 2
      smallest
      smooth
      smoother
      smoothness 1 2
      so 1 2 3 4
      solid
      solve
      sometimes
      source
      space 1 2 3 4 5 6
      spacemouse
      spacing
      special 1 2
      specially
      specified 1 2 3 4
      specify 1 2 3
      specifying
      speed 1 2
      spent
      sphere 1 2
      spheres
      spline
      splines
      split
      sprite 1 2
      sprites


      >> + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstf8.htm b/doc/salome/gui/VISU/whgdata/whlstf8.htm new file mode 100755 index 00000000..0dc0d1c7 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstf8.htm @@ -0,0 +1,45 @@ + + +Search Words List + + + + + + + +

      <<

      +

      +stamp 1 2 3 4 5 6 7
      stamps 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
      standard 1 2 3 4 5 6 7 8
      star
      start 1 2 3 4 5
      starting
      state
      step 1 2 3 4
      steps 1 2 3 4
      stop
      store
      stored
      stream
      streamline
      streamlines
      strictly
      structure 1 2 3 4 5
      structured
      study 1 2 3 4 5 6
      style 1 2
      subfolder 1 2 3 4 5
      subfolders
      submenu
      submesh 1 2 3 4 5
      submeshes 1 2 3
      substituted
      suggests
      superposition
      supported
      surface 1 2 3
      surfaces 1 2
      suspend
      sweep 1 2 3
      sweeping 1 2 3
      switch 1 2 3
      switching
      system 1 2 3 4
      systematically
      +

      +t 1 2 3 4
      tab 1 2 3 4 5 6 7 8 9 10 11 12
      table 1 2 3 4 5 6 7 8 9 10
      tables 1 2 3 4 5 6 7 8
      tail
      take
      taken 1 2 3 4
      takes
      technically
      tensor 1 2
      text 1 2
      texture
      textures
      them 1 2 3 4 5 6 7 8 9 10
      therefore
      thick
      thin
      thought 1 2
      three 1 2 3 4 5 6 7 8
      threshold
      tick
      tilt
      time 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
      timing
      title 1 2
      titles
      together
      toggle
      tolerance
      toolbar 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
      toolbars
      top 1 2 3
      total
      touch
      touches
      transformation 1 2
      transforming
      translate 1 2 3
      translation 1 2 3
      transparency 1 2
      transparent 1 2 3
      tree
      triangle
      triangles 1 2
      triangular
      triggers
      trihedron
      truncated
      twice
      two 1 2 3 4 5 6 7 8 9 10 11 12 13
      txt 1 2
      type 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
      types 1 2 3 4 5 6
      +

      +unchecked
      unique
      units 1 2 3
      unwanted
      up 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
      update
      updated 1 2 3 4
      upper
      upward


      >> + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstf9.htm b/doc/salome/gui/VISU/whgdata/whlstf9.htm new file mode 100755 index 00000000..09fb2ddc --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstf9.htm @@ -0,0 +1,50 @@ + + +Search Words List + + + + + + + +

      <<

      +

      +usage
      used 1 2 3 4 5 6 7 8 9 10 11 12 13
      user 1 2 3 4 5 6 7 8
      using 1 2 3 4 5 6 7 8 9 10 11 12
      usually
      +

      +v 1 2
      validate
      value 1 2 3 4 5 6 7 8 9 10 11 12 13 14
      values 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
      variable
      variables
      various
      vary
      ve
      vector 1 2 3 4 5 6 7 8 9 10 11 12
      vectors 1 2 3
      verbal
      vertex
      vertical 1 2 3 4
      very 1 2
      via 1 2 3
      video
      view 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
      viewer 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
      viewers
      viewing 1 2
      views 1 2
      visible 1 2 3
      visualisation
      visualised
      visualization 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
      visualize 1 2 3
      visualized 1 2
      visualizes
      vtk 1 2 3 4 5
      +

      +way 1 2 3
      well 1 2
      what
      whatever
      wheel
      while
      whole 1 2
      why
      width 1 2 3 4 5
      will 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
      window 1 2 3 4 5 6
      windows 1 2
      wireframe
      wires
      wish 1 2 3
      within 1 2 3 4
      without 1 2 3
      would 1 2
      written
      +

      +x 1 2 3 4 5 6 7 8
      xls 1 2
      xy 1 2 3 4 5 6 7
      +

      +y 1 2 3 4 5 6 7
      your 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
      yz 1 2 3
      +

      +z 1 2
      zoom 1 2 3 4 5 6
      zoomed
      zx 1 2 3


      + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl0.htm b/doc/salome/gui/VISU/whgdata/whlstfl0.htm new file mode 100755 index 00000000..fa92b031 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl0.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ { {D ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl1.htm b/doc/salome/gui/VISU/whgdata/whlstfl1.htm new file mode 100755 index 00000000..c67a440d --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl1.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ AB AC AD AG AL AN AP AR AS AT AU AV AX ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl10.htm b/doc/salome/gui/VISU/whgdata/whlstfl10.htm new file mode 100755 index 00000000..f74abfa3 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl10.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ JP JU ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl11.htm b/doc/salome/gui/VISU/whgdata/whlstfl11.htm new file mode 100755 index 00000000..4e25be0c --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl11.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ LA LE LI LL LO LY ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl12.htm b/doc/salome/gui/VISU/whgdata/whlstfl12.htm new file mode 100755 index 00000000..58cf0df4 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl12.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ M MA ME MI MO MU ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl13.htm b/doc/salome/gui/VISU/whgdata/whlstfl13.htm new file mode 100755 index 00000000..535ef53f --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl13.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ N NA NB NE NO NT NU ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl14.htm b/doc/salome/gui/VISU/whgdata/whlstfl14.htm new file mode 100755 index 00000000..afb03430 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl14.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ OB OF OK ON OP OR OT OU OV OW ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl15.htm b/doc/salome/gui/VISU/whgdata/whlstfl15.htm new file mode 100755 index 00000000..a305ce69 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl15.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ PA PE PH PI PL PN PO PR PS PU PY ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl16.htm b/doc/salome/gui/VISU/whgdata/whlstfl16.htm new file mode 100755 index 00000000..b669c28b --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl16.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ RA RE RI RO RU ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl17.htm b/doc/salome/gui/VISU/whgdata/whlstfl17.htm new file mode 100755 index 00000000..3debf65a --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl17.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ S SA SC SE SH SI SL SM SO SP ST SU SW SY ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl18.htm b/doc/salome/gui/VISU/whgdata/whlstfl18.htm new file mode 100755 index 00000000..442ea3a9 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl18.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ T TA TE TH TI TO TR TW TX TY ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl19.htm b/doc/salome/gui/VISU/whgdata/whlstfl19.htm new file mode 100755 index 00000000..58e56242 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl19.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ UN UP US ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl2.htm b/doc/salome/gui/VISU/whgdata/whlstfl2.htm new file mode 100755 index 00000000..fc29bf06 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl2.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ BA BE BI BL BM BO BR BU ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl20.htm b/doc/salome/gui/VISU/whgdata/whlstfl20.htm new file mode 100755 index 00000000..7bf2ba0a --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl20.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ V VA VE VI VT ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl21.htm b/doc/salome/gui/VISU/whgdata/whlstfl21.htm new file mode 100755 index 00000000..e0db75af --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl21.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ WA WE WH WI WO WR ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl22.htm b/doc/salome/gui/VISU/whgdata/whlstfl22.htm new file mode 100755 index 00000000..bf63ff86 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl22.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ X XL XY ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl23.htm b/doc/salome/gui/VISU/whgdata/whlstfl23.htm new file mode 100755 index 00000000..a1727a4e --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl23.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ Y YO YZ ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl24.htm b/doc/salome/gui/VISU/whgdata/whlstfl24.htm new file mode 100755 index 00000000..a231fb7a --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl24.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ Z ZO ZX ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl3.htm b/doc/salome/gui/VISU/whgdata/whlstfl3.htm new file mode 100755 index 00000000..6d15fbe5 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl3.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ CA CE CH CI CL CO CR CT CU CY ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl4.htm b/doc/salome/gui/VISU/whgdata/whlstfl4.htm new file mode 100755 index 00000000..8d50fb3b --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl4.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ DA DE DI DO DR DU DY ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl5.htm b/doc/salome/gui/VISU/whgdata/whlstfl5.htm new file mode 100755 index 00000000..b1449c92 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl5.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ E ED EF EI EL EM EN EQ ER ET EV EX ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl6.htm b/doc/salome/gui/VISU/whgdata/whlstfl6.htm new file mode 100755 index 00000000..8bf4a47c --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl6.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ FA FE FI FO FP FR FU ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl7.htm b/doc/salome/gui/VISU/whgdata/whlstfl7.htm new file mode 100755 index 00000000..2c668045 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl7.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ G GA GE GI GL GR ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl8.htm b/doc/salome/gui/VISU/whgdata/whlstfl8.htm new file mode 100755 index 00000000..fb648464 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl8.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ H HA HE HI HO ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstfl9.htm b/doc/salome/gui/VISU/whgdata/whlstfl9.htm new file mode 100755 index 00000000..6c5b1c8f --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstfl9.htm @@ -0,0 +1,45 @@ + + +Search Words letter + + + + + + + + + +

      ^ I IC ID IF IJ IM IN IS IT ^

      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstg0.htm b/doc/salome/gui/VISU/whgdata/whlstg0.htm new file mode 100755 index 00000000..193fb7c6 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstg0.htm @@ -0,0 +1,75 @@ + + +Glossary words list + + + + + + + +

      Cell

      +

      Element of a mesh. Cells are determined by their connectivity. They can have 0,1,2 or 3 dimension.

      +

      Component

      +

      One integer or real value can correspond to each component of a field and to each entity of a mesh

      +

      Descendant connectivity

      +

      It is a description of the entities of the mesh with dimension N. This description is made by an ordered list of geometrical entities (nodes, edges, or faces) with dimension N-1.

      +

      Edge

      +

      An edge of a volumetric or surface mesh. It is composed of 2 or 3 nodes (2 vertex nodes and optionally one middle node).

      +

      Entity of a mesh

      +

      Geometrical component of the mesh: node, cell, face and edge. Faces and edges are only intermediate entities allowing to define the cells in descendant connectivity.

      +

      Equivalence

      +

      Equivalence represents a list of correspondance 2 by 2 of the entities of the same dimension.

      +

      Face

      +

      Face of a volumetrical cell (triangle, quadrangle).

      +

      Family

      +

      Entities of a mesh are described by a certain number  of characteristics (boundary conditions, groups membership). Families represent classes equivalent to these characteristics (two entities of a mesh can belong to the same family if they have the same characteristics). Every family is determined by a set of attributes and a list of groups membership.

      +

      Field

      +

      Field consists of one or several scalar components. One definite type is associated to the given field and the values corresponding to different components are all of the same type.

      +

      Field profile

      +

      Fields can be defined only on one part of the mesh. Profile  of the field or profile of the component of a field indicates which entities of the mesh contain values.

      +

      Group

      +

      Unordered set of entities of a mesh. One entity can belong to  several groups.

      +

      Mesh

      +

      Mesh is described by its geometry: list of nodes and list of cells which constitute this mesh. Supplementary information is added with the help of families (initial, boundary conditions).

      +

      Nodal connectivity

      +

      It is a description of an entity of the mesh by an ordered list of nodes constituting this entity.

      +

      Node

      +

      Node can be an isolated node of a mesh, a vertex or middle node of an edge. A node is associated to a point.

      +

      Point

      +

      Geometrical entity determined by its coordinates in the space.

      +

      Reference connectivity

      +

      For each type of entity of a mesh, reference connectivity define the topology of an entity.

      +

      Result

      +

      List of fields referring to one mesh.

      +

      Study

      +

      Study represents a chain of sequences of calculations.

      +



      + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlsti0.htm b/doc/salome/gui/VISU/whgdata/whlsti0.htm new file mode 100755 index 00000000..32e2c7fd --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlsti0.htm @@ -0,0 +1,39 @@ + + + +Index words list + + + + + + + + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstt0.htm b/doc/salome/gui/VISU/whgdata/whlstt0.htm new file mode 100755 index 00000000..512f86b3 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstt0.htm @@ -0,0 +1,51 @@ + + + +Content + + + + + + + + + + +
      +

      + Post-Pro module
      +

      + +
      +

      +

      + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstt1.htm b/doc/salome/gui/VISU/whgdata/whlstt1.htm new file mode 100755 index 00000000..28818033 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstt1.htm @@ -0,0 +1,58 @@ + + + +Content + + + + + + + + + + +
      +

      + Post-Pro module
      +    Introduction to Post-Pro
      +    Running Post-Pro
      +    Importing MED files
      +    Structure of MED objects
      +    3D presentations
      +    Table presentations
      +    XY plots
      +

      + +
      +

      +

      + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstt2.htm b/doc/salome/gui/VISU/whgdata/whlstt2.htm new file mode 100755 index 00000000..85cd9299 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstt2.htm @@ -0,0 +1,61 @@ + + + +Content + + + + + + + + + + +
      +

      + Post-Pro module
      +    Introduction to Post-Pro
      +    Running Post-Pro
      +    Importing MED files
      +    Structure of MED objects
      +    3D presentations
      +       Presentation of a submesh
      +       Field presentations
      +       Viewing 3D presentations
      +    Table presentations
      +    XY plots
      +

      + +
      +

      +

      + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstt3.htm b/doc/salome/gui/VISU/whgdata/whlstt3.htm new file mode 100755 index 00000000..d960e94d --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstt3.htm @@ -0,0 +1,73 @@ + + + +Content + + + + + + + + + + +
      +

      + Post-Pro module
      +    Introduction to Post-Pro
      +    Running Post-Pro
      +    Importing MED files
      +    Structure of MED objects
      +    3D presentations
      +       Presentation of a submesh
      +       Field presentations
      +          Creating field presentations
      +          Scalar Map presentation
      +          Iso Surfaces presentation
      +          Cut Lines presentation
      +          Cut Planes presentation
      +          Deformed Shape presentation
      +          Vectors Presentation
      +          Stream Lines presentation
      +          Scalar Map on Deformed Shape presentation
      +          Plot 3D presentation
      +          Animating presentations
      +          Gauss Points Presentations
      +       Viewing 3D presentations
      +    Table presentations
      +    XY plots
      +

      + +
      +

      +

      + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstt4.htm b/doc/salome/gui/VISU/whgdata/whlstt4.htm new file mode 100755 index 00000000..253afb61 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstt4.htm @@ -0,0 +1,82 @@ + + + +Content + + + + + + + + + + +
      +

      + Post-Pro module
      +    Introduction to Post-Pro
      +    Running Post-Pro
      +    Importing MED files
      +    Structure of MED objects
      +    3D presentations
      +       Presentation of a submesh
      +       Field presentations
      +          Creating field presentations
      +          Scalar Map presentation
      +          Iso Surfaces presentation
      +          Cut Lines presentation
      +          Cut Planes presentation
      +          Deformed Shape presentation
      +          Vectors Presentation
      +          Stream Lines presentation
      +          Scalar Map on Deformed Shape presentation
      +          Plot 3D presentation
      +          Animating presentations
      +          Gauss Points Presentations
      +             Creating a Gauss Points Presentation
      +             Primitive Types
      +             Types of Gauss Points Presentations
      +             Scalar Bar
      +             Gauss Viewer
      +             Navigation in the Gauss viewer
      +             Picking
      +             Segmentation
      +             Recording in Gauss Viewer
      +       Viewing 3D presentations
      +    Table presentations
      +    XY plots
      +

      + +
      +

      +

      + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstt5.htm b/doc/salome/gui/VISU/whgdata/whlstt5.htm new file mode 100755 index 00000000..1cbf89de --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstt5.htm @@ -0,0 +1,67 @@ + + + +Content + + + + + + + + + + +
      +

      + Post-Pro module
      +    Introduction to Post-Pro
      +    Running Post-Pro
      +    Importing MED files
      +    Structure of MED objects
      +    3D presentations
      +       Presentation of a submesh
      +       Field presentations
      +       Viewing 3D presentations
      +          Viewing 3D Presentations
      +          VTK 3D Viewer
      +          Translate Presentation
      +          Clipping
      +          Sweeping
      +          Selection Info
      +    Table presentations
      +    XY plots
      +

      + +
      +

      +

      + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstt6.htm b/doc/salome/gui/VISU/whgdata/whlstt6.htm new file mode 100755 index 00000000..b98ace8f --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstt6.htm @@ -0,0 +1,62 @@ + + + +Content + + + + + + + + + + +
      +

      + Post-Pro module
      +    Introduction to Post-Pro
      +    Running Post-Pro
      +    Importing MED files
      +    Structure of MED objects
      +    3D presentations
      +    Table presentations
      +       About tables
      +       Importing/exporting tables
      +       Displaying tables
      +       Creating tables from Cut Lines presentations
      +    XY plots
      +

      + +
      +

      +

      + + + + diff --git a/doc/salome/gui/VISU/whgdata/whlstt7.htm b/doc/salome/gui/VISU/whgdata/whlstt7.htm new file mode 100755 index 00000000..d048d938 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whlstt7.htm @@ -0,0 +1,63 @@ + + + +Content + + + + + + + + + + +
      +

      + Post-Pro module
      +    Introduction to Post-Pro
      +    Running Post-Pro
      +    Importing MED files
      +    Structure of MED objects
      +    3D presentations
      +    Table presentations
      +    XY plots
      +       Creating curves
      +       Creating XY plots
      +       Plot2D Viewer
      +       Setting properties of XY plots
      +       Access to Post-Pro module functionality from Python (using VISU_Gen.idl)
      +

      + +
      +

      +

      + + + + diff --git a/doc/salome/gui/VISU/whgdata/whnvf30.htm b/doc/salome/gui/VISU/whgdata/whnvf30.htm new file mode 100755 index 00000000..7cff7ce5 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whnvf30.htm @@ -0,0 +1,13 @@ + + + +toc frame + + + + + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whnvf31.htm b/doc/salome/gui/VISU/whgdata/whnvf31.htm new file mode 100755 index 00000000..91a985f9 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whnvf31.htm @@ -0,0 +1,15 @@ + + + +Index frame + + + + + + + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whnvf32.htm b/doc/salome/gui/VISU/whgdata/whnvf32.htm new file mode 100755 index 00000000..bc2231fb --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whnvf32.htm @@ -0,0 +1,15 @@ + + + +search frame + + + + + + + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whnvf33.htm b/doc/salome/gui/VISU/whgdata/whnvf33.htm new file mode 100755 index 00000000..6c091d82 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whnvf33.htm @@ -0,0 +1,15 @@ + + + +Glossary frame + + + + + + + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whnvl31.htm b/doc/salome/gui/VISU/whgdata/whnvl31.htm new file mode 100755 index 00000000..e29abc01 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whnvl31.htm @@ -0,0 +1,43 @@ + + + +Index Letters + + + + + + + + + + + + diff --git a/doc/salome/gui/VISU/whgdata/whnvl32.htm b/doc/salome/gui/VISU/whgdata/whnvl32.htm new file mode 100755 index 00000000..3c83f31c --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whnvl32.htm @@ -0,0 +1,72 @@ + + + +Search Letters + + + + + + + + +

      + # + A + B + C + D + E + F + G + H + I + J + K + L + M + N + O + P + Q + R + S + T + U + V + W + X + Y + Z +

      + + + + diff --git a/doc/salome/gui/VISU/whgdata/whnvl33.htm b/doc/salome/gui/VISU/whgdata/whnvl33.htm new file mode 100755 index 00000000..d6f20c33 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whnvl33.htm @@ -0,0 +1,72 @@ + + + +Glossary Letters + + + + + + + + +

      + # + A + B + C + D + E + F + G + H + I + J + K + L + M + N + O + P + Q + R + S + T + U + V + W + X + Y + Z +

      + + + + diff --git a/doc/salome/gui/VISU/whgdata/whnvp30.htm b/doc/salome/gui/VISU/whgdata/whnvp30.htm new file mode 100755 index 00000000..0c9cb814 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whnvp30.htm @@ -0,0 +1,16 @@ + + + + Content Navigation Pane + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/gui/VISU/whgdata/whnvp31.htm b/doc/salome/gui/VISU/whgdata/whnvp31.htm new file mode 100755 index 00000000..87921c0b --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whnvp31.htm @@ -0,0 +1,16 @@ + + + + Index Navigation Pane + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/gui/VISU/whgdata/whnvp32.htm b/doc/salome/gui/VISU/whgdata/whnvp32.htm new file mode 100755 index 00000000..90697b01 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whnvp32.htm @@ -0,0 +1,16 @@ + + + + Search Navigation Pane + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/gui/VISU/whgdata/whnvp33.htm b/doc/salome/gui/VISU/whgdata/whnvp33.htm new file mode 100755 index 00000000..8351bcbe --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whnvp33.htm @@ -0,0 +1,16 @@ + + + + Glossary Navigation Pane + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/gui/VISU/whgdata/whnvt30.htm b/doc/salome/gui/VISU/whgdata/whnvt30.htm new file mode 100755 index 00000000..ec1bb840 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whnvt30.htm @@ -0,0 +1,47 @@ + + + +Content Navigation Tab + + + + + + + + + + + +
      + +
      + + + + diff --git a/doc/salome/gui/VISU/whgdata/whnvt31.htm b/doc/salome/gui/VISU/whgdata/whnvt31.htm new file mode 100755 index 00000000..e17d8254 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whnvt31.htm @@ -0,0 +1,45 @@ + + + +Index Navigation Tab + + + + + + + + + + + +
      + +
      + + + + diff --git a/doc/salome/gui/VISU/whgdata/whnvt32.htm b/doc/salome/gui/VISU/whgdata/whnvt32.htm new file mode 100755 index 00000000..d6389253 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whnvt32.htm @@ -0,0 +1,45 @@ + + + +Search Navigation Tab + + + + + + + + + + + +
      + +
      + + + + diff --git a/doc/salome/gui/VISU/whgdata/whnvt33.htm b/doc/salome/gui/VISU/whgdata/whnvt33.htm new file mode 100755 index 00000000..af63a025 --- /dev/null +++ b/doc/salome/gui/VISU/whgdata/whnvt33.htm @@ -0,0 +1,45 @@ + + + +Glossary Navigation Tab + + + + + + + + + + + +
      + +
      + + + + diff --git a/doc/salome/gui/VISU/whxdata/whftdata0.xml b/doc/salome/gui/VISU/whxdata/whftdata0.xml new file mode 100755 index 00000000..18b3f31d --- /dev/null +++ b/doc/salome/gui/VISU/whxdata/whftdata0.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/salome/gui/VISU/whxdata/whfts.xml b/doc/salome/gui/VISU/whxdata/whfts.xml new file mode 100755 index 00000000..fd4d35be --- /dev/null +++ b/doc/salome/gui/VISU/whxdata/whfts.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/doc/salome/gui/VISU/whxdata/whfwdata0.xml b/doc/salome/gui/VISU/whxdata/whfwdata0.xml new file mode 100755 index 00000000..49225222 --- /dev/null +++ b/doc/salome/gui/VISU/whxdata/whfwdata0.xml @@ -0,0 +1,888 @@ + + + 5,0,1,11,32,34,35,38,6,26,39, + 32, + 39, + 4,5,0,7,2,10,11,15,14,19,31,32,34,33,35,6,27, + 31,32,39, + 0,32,6,26,39, + 33, + 31, + 35, + 4,5,7,2,10,15,14,19,31,33,35,36,27,39, + 7,39, + 36, + 7,11,17,34,33,25,39, + 4,5,7,10,19,24,27, + 39, + 3,0,1,11,12,14,30,16,20,31,32,34,35,23,24,38,6,39,40, + 5,7,10,24, + 5,1,34,33, + 39, + 35, + 31,35, + 5,0,35, + 18,33,40, + 38, + 36, + 11,39, + 27,39, + 30,33,6,25,39,40, + 14, + 12,13,23,26,39,28, + 3, + 26, + 0,31,24, + 32,34,36,39, + 5,0,30,32,38, + 0, + 16,6, + 38, + 5,0, + 23, + 0,32, + 5,12,13,14,21,34,22,37,23,26,28, + 5,1,32,25, + 31,33, + 5, + 5, + 11, + 4,5,0,1,7,11,12,13,14,30,18,21,31,32,34,33,36,37,23,24,38,6,25,26,27,39,28,40, + 16,33,24,38,6, + 35, + 5,26, + 6, + 0, + 39, + 1,11,12,34, + 5,17, + 5,0,6,27, + 5,12,26,27, + 3,4,0,7,30,16,18,31,35, + 1,29,23,24, + 32, + 0, + 5,7,10,14,23,25, + 3,8,2,11,12,13,16,21,34,35,37,23,26,27,39,28, + 18,22, + 33,26,40, + 11,12,32,34,38,40, + 6, + 11, + 28, + 0, + 7,30, + 36,39, + 7,16,6, + 1,7,6, + 1,7,11,14,30,18,38,27, + 0,30,16,31,6,40, + 39, + 5,0, + 6, + 1,11,12,34,33,24,6,25,40, + 7,11,12,31,34,33,38,6,40, + 5,10, + 30,33,6,25, + 31,26, + 5,11,12,13,29,21,32,34,36,37,23,38,6,26,39,28, + 3,5,10,11,17,20,23,26,27, + 3,4,7,11,21,33,23,26, + 35,23,27, + 32, + 18,32, + 22, + 5, + 11,35,23, + 32,38, + 0, + 36,39, + 35,28, + 5,0, + 32,36, + 18,36, + 30,33,35,6,40, + 8,30,34,36,25,26,39, + 33,36,38, + 26,40, + 38, + 3,32, + 5,0,7,10,11,12,13,14,16,18,19,34,33,23,24,38,26,39,28,40, + 3,5,0,7,8,9,2,10,11,12,13,15,14,29,30,18,19,21,34,35,37,23,24,6,25,26,27,28, + 18,23, + 18,37,23, + 5,0,1,10,14,29,30,19,21,31,32,34,33,23,24,38,6,26,39,28,40, + 33,38, + 3,35,23, + 32,35, + 29,35,24, + 35, + 5,30,32,23,39, + 6, + 3,4,8,2,11,12,13,16,21,34,37,23,26,27,39,28, + 16, + 33,28,40, + 32, + 32, + 30,31, + 6, + 5,0,14,29,30,31,33,24,38,6,25,39,40, + 35, + 16,36,38, + 5,0,7,11,12,13,18,34,33,36,23,6,26,28,40, + 34, + 7, + 1,14,29,18, + 0,1,7,8,9,10,11,12,13,15,14,29,30,16,18,19,21,34,36,37,23,26,28,40, + 3,0,10,16,24,26, + 7, + 35, + 5, + 5,0,1,7,8,9,2,10,11,12,13,15,14,29,30,16,18,19,21,32,34,33,22,37,23,24,38,6,25,26,27,28,40, + 0,1,38,6, + 31, + 33, + 18,35, + 7, + 7,11,12,13,32,34,33,35,36,23,26,39,28,40, + 18, + 4,7, + 3,21,31, + 5,0,31,38, + 30,6, + 37, + 5,27, + 3, + 18, + 1, + 26, + 4,5,20,32,35,22,36,23, + 3,5,2,10,27, + 5,0,35,39, + 26, + 28, + 3, + 3, + 38, + 30,39, + 14,18,24, + 36, + 10,11,33,23, + 3,7,11,21,33,23,26, + 11,26, + 26, + 3,7,8,10,11,18,19,23, + 0,33,38,40, + 6, + 0,35, + 34, + 30,31,36,26,39, + 26, + 7,16,31,32,23,38,6,40, + 0, + 14,30,6, + 32, + 3,7,13,32,34,35,36,39,28, + 3,23, + 0, + 26, + 31, + 35, + 3,4,5,1,7,8,9,2,10,11,12,13,29,30,17,19,21,34,22,37,23,38,6,26,27,39,28, + 10,11,14,22,23,27, + 1,7,6, + 14,30,31, + 7,30,31,32,35,36,25, + 32,35,38, + 7,10,11,33,25, + 32, + 4,2,11,12,34, + 5, + 7, + 3,4,7,11,17,18,20,23, + 34, + 5,30,31,34, + 7,11,12,13,18,31,33,35,22,36,23,39,40, + 3,0,1,7,11,12,13,21,31,32,34,33,35,36,37,23,38,25,26,27,39,28,40, + 38, + 3,5,10,12,16, + 34,35, + 13,37,39, + 5, + 1,11,12,31,34, + 1,14, + 5,31,35,38,39, + 38, + 4,30,6, + 31,33, + 36, + 22, + 5,20,33, + 30,6, + 30, + 7, + 5,0,7,10,11,14,29,16,18,19,35,36,23,24,38,39, + 7, + 3,5,30,36,38,39, + 36,23, + 38, + 30,31,38,26, + 5, + 0,34,36,39, + 11,12, + 4,5,0,1,7,8,9,2,10,11,12,13,15,14,30,16,18,21,32,34,33,35,36,37,23,38,6,25,26,27,28,40, + 1,32,35,24,6,40, + 3,31,39, + 33, + 31, + 30,6, + 33, + 31, + 33,35,40, + 7, + 5,14,31, + 5,0, + 7,40, + 33,38,40, + 33, + 33,40, + 30,33,6,25,40, + 14,33, + 31, + 32,39, + 35,36, + 3,6, + 10,11,12,14,30,38,6, + 39, + 39, + 39, + 1, + 18, + 3,16,32,38,6, + 36, + 4,7, + 5,32,35,38,27, + 14,16,19,21,23, + 11,12, + 3,18, + 26, + 21,35,23, + 14,30,38,6,25, + 30, + 7, + 3,5, + 18, + 0,18, + 16, + 33, + 35, + 39,40, + 14,34,6,39, + 29,38, + 26, + 5,0,30,19,33,6,40, + 16, + 40, + 16, + 1, + 3,35, + 13,34,35,37,39,28, + 3,26, + 3,18, + 33, + 36,24,26, + 3,5,8,11,12,13,14,29,16,17,18,20,21,34,37,23,24,6,26,27,28, + 3,4,5,0,17,18,19,35,23,25, + 18, + 0,11,12,13,18,21,34,37,23,26,28, + 5,32,38, + 33,25,40, + 32,39, + 31,32, + 3,19, + 3, + 3,5,0,1,7,8,10,14,30,16,19,31,32,33,22,23,6,25, + 36,23,40, + 2,16,20,33, + 30,33,6,40, + 35, + 39, + 31,26, + 36, + 0, + 5,0,33,27,40, + 21, + 30, + 31, + 18, + 38, + 30,40, + 4,0,7,34,33,38,40, + 35, + 0,29,30,31,32,35,36,38,39,40, + 3, + 5,11,21,32,26,27, + 5,26, + 38, + 3,18,35,39, + 39, + 5,16,32, + 0,1,30,33,6,25,39, + 0,7,12,35,36, + 35, + 33,36,40, + 28, + 40, + 23, + 33,25, + 25, + 28, + 0,32,33,35,40, + 36, + 33, + 3,18,23,26, + 30,6, + 7, + 39, + 1,34, + 26, + 10,11,19,26, + 31,28, + 32,36,23, + 4, + 5,11,33,23,39, + 1,14,30,32,6,25,40, + 14, + 35, + 18, + 16,32, + 14, + 7, + 1,33,36,23, + 17,18, + 5,0, + 16,36, + 11,12,13,29,21,34,22,37,23,26,28, + 16,32, + 5,0,1,7,11,14,16,18,32,34,33,35,36,23,26,28,40, + 1, + 0,30,33,6,40, + 1,11,12,13,14,16,18,21,34,37,23,26,39,28, + 4,7,9,17,18,19, + 23, + 6, + 36,23, + 3,0,20,26,39, + 5,30,31,34, + 31, + 3,31, + 1,16, + 3,5,0,7,23, + 32, + 16,6, + 3,16,32,33,35,6,39, + 3,22,27, + 0, + 11,38, + 6, + 32,36,38, + 5,0, + 5,0, + 11, + 26, + 5, + 30,31, + 26, + 3, + 0,11,33,35, + 31, + 20, + 11, + 21, + 21, + 40, + 10,18,19, + 32, + 16, + 30,33,6,40, + 5,0, + 30,33,35,6,40, + 0, + 16, + 31,32,39, + 30,31,32,39, + 5, + 36,23,25,40, + 23, + 39, + 5, + 0, + 35, + 17,22, + 30,16, + 38, + 7, + 10,30,31,32,33,36,23,40, + 7, + 33,25, + 11,26,39,40, + 0,23, + 35, + 3,22, + 35,36, + 4,7,2,10,11,32,33,36,6,26,28, + 33,36,25, + 3,5,1,10,23,26, + 0,33,40, + 18, + 31,36, + 8,11,12,19,32,34,36,38,6,26,39,40, + 5,0,35,38, + 30,31,40, + 33,23,25, + 35, + 22, + 36, + 26, + 0,38, + 18, + 34,6, + 39, + 31,35,39, + 13,26,28, + 3,5,8,10,11,12,13,14,29,16,19,21,34,33,35,37,23,38,26,28, + 33, + 8,26, + 5, + 30,31, + 30,31, + 31, + 4,11,12,38,6,40, + 37,23, + 7,11,33,40, + 32,33,36, + 26, + 35,36, + 18,36,39, + 23, + 21,33,35,36,26,39, + 5,32,39, + 35,26, + 5, + 5,1,7,8,9,2,10,11,12,13,15,14,29,30,16,18,19,21,34,33,35,22,37,23,38,6,25,26,27,39,28, + 6, + 3,11,12,13,16,17,32,34,37,23,38,26,39,28, + 4, + 6, + 18,36,39, + 23, + 21,36,38,27,39, + 33, + 5,0, + 37, + 5,0, + 5,0, + 0,1,30,31,32,33,36,23,6,28, + 31, + 14,39, + 3,5,30,17,20,33,35,22,23,38,6,40, + 36, + 3, + 32, + 18, + 14,30,31,32,33,38,6,40, + 5,10,31,24,38, + 31,32, + 31,39, + 26, + 32,35,39, + 33,36,39, + 0,10,14,16,19,32,33,40, + 33, + 31, + 36,23, + 35, + 5,0,1, + 5,16,18,19, + 36,39, + 5,0, + 1,8,2,10,17,19,33,22,38,6, + 5,32, + 3, + 7,26, + 1, + 0,18,23, + 35, + 1,29,32, + 36, + 39, + 5,12,16,21,32,34,33,35,36,23,26,27,39,40, + 32, + 33, + 3,5,1,7,8,9,2,10,11,12,13,15,14,29,30,16,18,19,21,31,34,33,37,23,24,6,25,26,27,28,40, + 11,12, + 35, + 40, + 3, + 5,0,7,10,11,12,13,14,29,19,21,34,37,23,24,26,28, + 3,5,1,7,8,10,11,12,13,14,29,19,21,34,35,37,23,26,27,28, + 7,18,32,38, + 3, + 3, + 3, + 3, + 6, + 32,6, + 18,19,33,35, + 35, + 5,11,14,30,18,31,33,35, + 1, + 5, + 26, + 5,7,13,15,14,30,18,31,33,36,6,25,26,27,28, + 37, + 36, + 1, + 40, + 1,11,12,34,36,23,38, + 36,23,38,40, + 18, + 33,23,40, + 26, + 38, + 17, + 3,23, + 5,0, + 31, + 31, + 36, + 31,33,40, + 5, + 11,12,35,26, + 5,1,7,11,12,13,14,30,17,21,34,35,36,37,23,38,6,26,28,40, + 32, + 18, + 3,5,0,1,7,33,38,40, + 26, + 3,10,26, + 5,0, + 5,0,26, + 0, + 0, + 3,0,18,40, + 5, + 3,5, + 1, + 14, + 3, + 30,32, + 5,35, + 35, + 11,33,6,40, + 36, + 1,11,12,30,34,38,6, + 34, + 20,22, + 0, + 7,10,11,17,20,34,33,25, + 7,10, + 7, + 30,33,35,6,40, + 3,7,29,30,16,31,32,33,35,36,38,6,26,39,40, + 28, + 26, + 5,7,8,9,2,10,11,12,13,15,14,29,21,34,37,23,6,26,27,28, + 1,11,12,30,32,34,33,39,28,40, + 36, + 16,31, + 0,25, + 5,1,7,8,31,38,39, + 3,4,5,0,7,8,2,10,11,30,17,18,19,20,33,22,23,6,26,27,40, + 18,31,32,35,22,23,6, + 5,0,29,30,32,33,40, + 5,23, + 3,4,5,0,1,8,9,2,11,12,13,14,29,30,16,17,20,21,32,34,35,22,36,37,23,24,38,6,26,27,39,28,40, + 36, + 1,11,12,34, + 5, + 4,10,21,31,25, + 29,35,38,39, + 3,4,5,0,7,8,2,10,11,30,17,18,19,20,33,22,23,6,26,27,40, + 6, + 11, + 18,20,27,39, + 0,20, + 5,0, + 18,35, + 36, + 0, + 35, + 26, + 5,0, + 5,0,13,29,30,33,36,23,6,25,28,40, + 5, + 20,31,6, + 6,27, + 5, + 31, + 35,26, + 31, + 3, + 32, + 4, + 3, + 0, + 10,29,24, + 34,6,39, + 38, + 36,39, + 4,5,13,21,32,34,35,36,23,6,25,39,28, + 4, + 0,18, + 30,31,32,39, + 5,11,33,38,39, + 0,30, + 7,18, + 36, + 40, + 4,10,39, + 36, + 27, + 0, + 11,36, + 22, + 12,34,35,6, + 35,23, + 34, + 35, + 33,40, + 7, + 14,30,6,25, + 5,36, + 35,36,39, + 3,4,7,34,33,23,6,25,26,28,40, + 3,14,33,6,25, + 39, + 5,0,7,8,15,16,26, + 24,40, + 33,40, + 35, + 0,26, + 18,39, + 31,39, + 6,40, + 3,11,32,34,35,36,38,39, + 5,30,6, + 11, + 33, + 1, + 5,7,8,9,2,10,11,12,13,15,14,29,30,18,19,21,31,34,33,36,37,23,24,6,25,26,27,28, + 7, + 1,30,31,38,40, + 1,11,12,30,31,34,40, + 4,7, + 5,0,22, + 3,32,23, + 7,30,20,31,35,22,23,24, + 5,7,11,14,30,31,23,38,6,39, + 5,0,30,33,36,23,25, + 13,34,33,36,37,23,24,6,25,39,28, + 3,5,8,2,11,12,13,29,16,21,32,34,35,36,37,23,38,6,26,39,28, + 33,35,36,39,40, + 31, + 4, + 3,4,5,0,8,11,13,18,21,34,33,35,22,37,38,6,26,28,40, + 18, + 0,36,38, + 38, + 1,6, + 36, + 3,26, + 0,30,35,38, + 5,1,7,8,2,10,11,12,13,14,29,30,16,18,19,21,32,34,33,36,37,23,24,6,25,26,27,39,28,40, + 5,1, + 30,16,32,6, + 32,38, + 6, + 15,6, + 33,6, + 26, + 0,23, + 5,0,1,11,12,13,14,29,17,18,21,32,34,35,22,37,23,6,25,26,39,28,40, + 0,30,18,33,25, + 5, + 35,6, + 12,13,35,37,39, + 13, + 3,5,0,1,7,11,12,16,18,34,22,6,27, + 5,1,11,12,15,18,32,33,36,38,25,39,40, + 6, + 12,36, + 38,26, + 35, + 5,11,12,36,6, + 0,16,32,33,35,26,39, + 32, + 35,26, + 28,40, + 39, + 34,26, + 32,26, + 5,32,35,39, + 7, + 6, + 26, + 26, + 5,0, + 11,12,16,34,36,39, + 31, + 5,31, + 4,30,32, + 5,0,33,24, + 33,6,26, + 18, + 35,38, + 33, + 1, + 32,35, + 3,5,0,8,11,12,13,14,29,30,18,21,34,36,37,23,6,26,28, + 0,7,30,18,19,31,35,39, + 31, + 5,0,1,22,26,27, + 27, + 5,11,18,32,34,26,27, + 0, + 3,30, + 26, + 26, + 40, + 3,1,7,11,16,18,26, + 5,7,10,11,17,22, + 30,31, + 3,8,14,30,6, + 3, + 8, + 3,8,9,16,17,20,24, + 0, + 5, + 35, + 6, + 31, + 12,21,34,6, + 0, + 5,17,18,6,27, + 30,31,6, + 5,0, + 0,31,35,39, + 36, + 18,33,35,40, + 4,11,12,13,19,21,34,37,23,38,26,28, + 3,4,7,2,11,15,16,17,19,20,33,25, + 28, + 26,27, + 7,11,13,36, + 35, + 35,36, + 36,23, + 35, + 4,5,1,7,21,31,32,35,23,6,40, + 35, + 6, + 6, + 5,0, + 35,26, + 3,4,11,12,34,35,23,39, + 35, + 40, + 31, + 3,5,0,8,11,12,13,14,29,30,18,21,34,36,37,23,38,6,26,27,28, + 7, + 4,33,23, + 3, + 31, + 32, + 5,0,7, + 8,11,12,13,14,29,30,21,31,32,34,33,22,37,23,38,26,28,40, + 32,33,38, + 35, + 32, + 26, + 23,27, + 30,24,6, + 30,31,38, + 32,35, + 32,38,6, + 3, + 3,7,40, + 32, + 25, + 40, + 1, + 39, + 0,1,7,10,11,12,30,32,34,35,36,37,38, + 4,19, + 3,5,7,8,11,12,13,29,16,34,33,35,37,23,6,25,26,27,39,28, + 18,40, + 39, + 4,7,26, + 1, + 5,7,8,9,2,10,11,12,13,15,14,29,21,31,34,35,36,37,23,38,6,26,27,28, + 21,32,22,38,39, + 7, + 3,5,0,1,7,10,11,13,29,30,16,31,32,35,36,23,38,26,27,39,28,40, + 17, + 26, + 5,0, + 7,38, + 5, + 3,4,0,7,8,2,11,12,13,16,18,21,32,34,35,36,37,23,6,26,27,39,28, + 5,0,36,38, + 20, + 39, + 0, + 3,8,13,16,21,34,35,36,37,23,26,28, + 33, + 35, + 1,7,33,36,23, + 32,26, + 30,25,40, + 0, + 3,4,0,1,7,9,2,10,11,12,13,15,14,30,16,17,21,31,32,34,33,35,22,37,23,24,38,6,25,26,27,39,28,40, + 31, + 33,35,40, + 35, + 29, + 11,13,32,35,28, + 8,11,12,13,29,20,21,34,37,23,38,6,26,28,40, + 30,35,22,6,40, + 1,32,38, + 8,23, + 18, + 35, + 5, + 5,0, + 5,34, + 3,35,23, + 3, + 7,36,23,6,28, + 3,5,0,1,7,8,9,2,10,11,12,13,15,14,16,18,19,21,32,34,33,35,22,36,37,23,24,6,25,26,27,39,28, + 0,10,15,30,32,22,38, + 6, + 6, + 33,6,40, + 32,35,36,6, + 4,30,31, + 5,0, + 0,35, + 36, + 1,7,31,33,35,36,23,24, + 4,19, + 10,11,12,20,34,33,25, + 1,7,31,33,36,23,24, + 5,0,1,7,2,10,11,12,13,15,14,29,18,19,21,34,33,37,23,24,25,26,28, + 11,12,34, + 1,24, + 30,31,32,33,35,40, + 11,12,34, + + diff --git a/doc/salome/gui/VISU/whxdata/whgdata0.xml b/doc/salome/gui/VISU/whxdata/whgdata0.xml new file mode 100755 index 00000000..b0993a04 --- /dev/null +++ b/doc/salome/gui/VISU/whxdata/whgdata0.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/salome/gui/VISU/whxdata/whglo.xml b/doc/salome/gui/VISU/whxdata/whglo.xml new file mode 100755 index 00000000..ac67056d --- /dev/null +++ b/doc/salome/gui/VISU/whxdata/whglo.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/doc/salome/gui/VISU/whxdata/whidx.xml b/doc/salome/gui/VISU/whxdata/whidx.xml new file mode 100755 index 00000000..44f05e5b --- /dev/null +++ b/doc/salome/gui/VISU/whxdata/whidx.xml @@ -0,0 +1,4 @@ + + + + diff --git a/doc/salome/gui/VISU/whxdata/whtdata0.xml b/doc/salome/gui/VISU/whxdata/whtdata0.xml new file mode 100755 index 00000000..14a0dff2 --- /dev/null +++ b/doc/salome/gui/VISU/whxdata/whtdata0.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/salome/gui/VISU/whxdata/whtoc.xml b/doc/salome/gui/VISU/whxdata/whtoc.xml new file mode 100755 index 00000000..871ec25b --- /dev/null +++ b/doc/salome/gui/VISU/whxdata/whtoc.xml @@ -0,0 +1,4 @@ + + + + diff --git a/doc/salome/tui/VISU/HTML/VISU_Gen.html b/doc/salome/tui/VISU/HTML/VISU_Gen.html new file mode 100644 index 00000000..5d4af0b6 --- /dev/null +++ b/doc/salome/tui/VISU/HTML/VISU_Gen.html @@ -0,0 +1,1070 @@ + + + + + + + + + + + + + + + + +
      interface Base
      IDL file
      Python
      IdType GetID ( )
      return_value = GetID ( )
      VISUType GetType ( )
      return_value = GetType ( )

      + + + + + + + +
      interface PrsObject
      IDL file
      Python

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      interface Table
      IDL file
      Python
      void SetTitle ( in string theTitle )
      SetTitle ( theTitle )
      string GetTitle ( )
      return_value = GetTitle ( )
      void SetOrientation ( in Orientation theOrientation )
      SetOrientation ( theOrientation )
      Orientation GetOrientation ( )
      return_value = GetOrientation ( )
      long GetNbRows ( )
      return_value = GetNbRows ( )
      long GetNbColumns ( )
      return_value = GetNbColumns ( )

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      interface Curve
      IDL file
      Python
      void SetTitle ( in string theTitle )
      SetTitle ( theTitle )
      string GetTitle ( )
      return_value = GetTitle ( )
      void SetColor ( in Color theColor )
      SetColor ( theColor )
      Color GetColor ( )
      return_value = GetColor ( )
      void SetMarker ( in MarkerType theType )
      SetMarker ( theType )
      MarkerType GetMarker ( )
      return_value = GetMarker ( )
      void SetLine ( in LineType theType, in long theLineWidth )
      SetLine ( theType, theLineWidth )
      LineType GetLine ( )
      return_value = GetLine ( )
      long GetLineWidth ( )
      return_value = GetLineWidth ( )

      + + + + + + + + + + + + + + + + + + + + + + + +
      interface Container
      IDL file
      Python
      void AddCurve ( in Curve theCurve )
      AddCurve ( theCurve )
      void RemoveCurve ( in Curve theCurve )
      RemoveCurve ( theCurve )
      long GetNbCurves ( )
      return_value = GetNbCurves ( )
      void Clear ( )
      Clear ( )

      + + + + + + + +
      interface Prs3d
      IDL file
      Python

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      interface Mesh
      IDL file
      Python
      void SetCellColor ( in Color theColor )
      SetCellColor ( theColor )
      Color GetCellColor ( )
      return_value = GetCellColor ( )
      void SetNodeColor ( in Color theColor )
      SetNodeColor ( theColor )
      Color GetNodeColor ( )
      return_value = GetNodeColor ( )
      void SetLinkColor ( in Color theColor )
      SetLinkColor ( theColor )
      Color GetLinkColor ( )
      return_value = GetLinkColor ( )
      void SetPresentationType ( in PresentationType theType )
      SetPresentationType ( theType )
      PresentationType GetPresentationType ( )
      return_value = GetPresentationType ( )

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      interface ScalarMap
      IDL file
      Python
      void SetScalarMode ( in long theScalarMode )
      SetScalarMode ( theScalarMode )
      long GetScalarMode ( )
      return_value = GetScalarMode ( )
      void SetScaling ( in Scaling theScaling )
      SetScaling ( theScaling )
      Scaling GetScaling ( )
      return_value = GetScaling ( )
      void SetRange ( in double theMin, in double theMax )
      SetRange ( theMin, theMax )
      double GetMin ( )
      return_value = GetMin ( )
      double GetMax ( )
      return_value = GetMax ( )
      void SetBarOrientation ( in Orientation theOrientation )
      SetBarOrientation ( theOrientation )
      Orientation GetBarOrientation ( )
      return_value = GetBarOrientation ( )
      void SetPosition ( in double X, in double Y )
      SetPosition ( X, Y )
      double GetPosX ( )
      return_value = GetPosX ( )
      double GetPosY ( )
      return_value = GetPosY ( )
      void SetSize ( in double theWidth, in double theHeight )
      SetSize ( theWidth, theHeight )
      double GetWidth ( )
      return_value = GetWidth ( )
      double GetHeight ( )
      return_value = GetHeight ( )
      void SetNbColors ( in long theNbColors )
      SetNbColors ( theNbColors )
      long GetNbColors ( )
      return_value = GetNbColors ( )
      void SetLabels ( in long theNbLabels )
      SetLabels ( theNbLabels )
      long GetLabels ( )
      return_value = GetLabels ( )
      void SetTitle ( in string theName )
      SetTitle ( theName )
      string GetTitle ( )
      return_value = GetTitle ( )

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      interface DeformedShape
      IDL file
      Python
      void SetScale ( in double theScale )
      SetScale ( theScale )
      double GetScale ( )
      return_value = GetScale ( )
      boolean IsColored ( )
      return_value = IsColored ( )
      void ShowColored ( in boolean theColored )
      ShowColored ( theColored )
      Color GetColor ( )
      return_value = GetColor ( )
      void SetColor ( in Color theColor )
      SetColor ( theColor )

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      interface CutPlanes
      IDL file
      Python
      void SetOrientation ( in Orientation theOrientation, in double theXAngle, in double theYAngle )
      SetOrientation ( theOrientation, theXAngle, theYAngle )
      Orientation GetOrientationType ( )
      return_value = GetOrientationType ( )
      double GetRotateX ( )
      return_value = GetRotateX ( )
      double GetRotateY ( )
      return_value = GetRotateY ( )
      void SetDisplacement ( in double theDisp )
      SetDisplacement ( theDisp )
      double GetDisplacement ( )
      return_value = GetDisplacement ( )
      void SetPlanePosition ( in long thePlaneNumber, in double thePlanePosition )
      SetPlanePosition ( thePlaneNumber, thePlanePosition )
      void SetDefault ( in long thePlaneNumber )
      SetDefault ( thePlaneNumber )
      double GetPlanePosition ( in long thePlaneNumber )
      return_value = GetPlanePosition ( thePlaneNumber )
      boolean IsDefault ( in long thePlaneNumber )
      return_value = IsDefault ( thePlaneNumber )
      void SetNbPlanes ( in long theNb )
      SetNbPlanes ( theNb )
      long GetNbPlanes ( )
      return_value = GetNbPlanes ( )

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      interface CutLines
      IDL file
      Python
      void SetOrientation ( in Orientation theOrientation, in double theXAngle, in double theYAngle )
      SetOrientation ( theOrientation, theXAngle, theYAngle )
      void SetOrientation2 ( in Orientation theOrientation, in double theXAngle, in double theYAngle )
      SetOrientation2 ( theOrientation, theXAngle, theYAngle )
      Orientation GetOrientationType ( )
      return_value = GetOrientationType ( )
      Orientation GetOrientationType2 ( )
      return_value = GetOrientationType2 ( )
      double GetRotateX ( )
      return_value = GetRotateX ( )
      double GetRotateX2 ( )
      return_value = GetRotateX2 ( )
      double GetRotateY ( )
      return_value = GetRotateY ( )
      double GetRotateY2 ( )
      return_value = GetRotateY2 ( )
      void SetDisplacement ( in double theDisp )
      SetDisplacement ( theDisp )
      void SetDisplacement2 ( in double theDisp )
      SetDisplacement2 ( theDisp )
      double GetDisplacement ( )
      return_value = GetDisplacement ( )
      double GetDisplacement2 ( )
      return_value = GetDisplacement2 ( )
      void SetBasePlanePosition ( in double thePlanePosition )
      SetBasePlanePosition ( thePlanePosition )
      double GetBasePlanePosition ( )
      return_value = GetBasePlanePosition ( )
      void SetLinePosition ( in long thePlaneNumber, in double thePlanePosition )
      SetLinePosition ( thePlaneNumber, thePlanePosition )
      double GetLinePosition ( in long thePlaneNumber )
      return_value = GetLinePosition ( thePlaneNumber )
      void SetDefault ( )
      SetDefault ( )
      boolean IsDefault ( )
      return_value = IsDefault ( )
      void SetDefaultPosition ( in long thePlaneNumber )
      SetDefaultPosition ( thePlaneNumber )
      boolean IsDefaultPosition ( in long thePlaneNumber )
      return_value = IsDefaultPosition ( thePlaneNumber )
      void SetNbLines ( in long theNb )
      SetNbLines ( theNb )
      long GetNbLines ( )
      return_value = GetNbLines ( )

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      interface StreamLines
      IDL file
      Python
      boolean SetParams ( in double theIntStep, in double thePropogationTime, in double theStepLength, in Prs3d thePrs3d, in double thePercents, in Direction theDirection )
      return_value = SetParams ( theIntStep, thePropogationTime, theStepLength, thePrs3d, thePercents, theDirection )
      double GetIntegrationStep ( )
      return_value = GetIntegrationStep ( )
      double GetPropagationTime ( )
      return_value = GetPropagationTime ( )
      double GetStepLength ( )
      return_value = GetStepLength ( )
      Prs3d GetSource ( )
      return_value = GetSource ( )
      double GetUsedPoints ( )
      return_value = GetUsedPoints ( )
      Direction GetDirection ( )
      return_value = GetDirection ( )

      + + + + + + + + + + + + + + + +
      interface IsoSurfaces
      IDL file
      Python
      void SetNbSurfaces ( in long theNb )
      SetNbSurfaces ( theNb )
      long GetNbSurfaces ( )
      return_value = GetNbSurfaces ( )

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      interface Vectors
      IDL file
      Python
      void SetLineWidth ( in double theWidth )
      SetLineWidth ( theWidth )
      double GetLineWidth ( )
      return_value = GetLineWidth ( )
      void SetGlyphType ( in GlyphType theType )
      SetGlyphType ( theType )
      GlyphType GetGlyphType ( )
      return_value = GetGlyphType ( )
      void SetGlyphPos ( in GlyphPos thePos )
      SetGlyphPos ( thePos )
      GlyphPos GetGlyphPos ( )
      return_value = GetGlyphPos ( )

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      interface Animation
      IDL file
      Python
      void addField ( in SObject theObject )
      addField ( theObject )
      void generatePresentations ( in long theFieldNum )
      generatePresentations ( theFieldNum )
      boolean generateFrames ( )
      return_value = generateFrames ( )
      void clearView ( )
      clearView ( )
      void startAnimation ( )
      startAnimation ( )
      void stopAnimation ( )
      stopAnimation ( )
      void nextFrame ( )
      nextFrame ( )
      void prevFrame ( )
      prevFrame ( )
      void firstFrame ( )
      firstFrame ( )
      void lastFrame ( )
      lastFrame ( )
      void gotoFrame ( in long theFrame )
      gotoFrame ( theFrame )
      long getNbFields ( )
      return_value = getNbFields ( )
      long getNbFrames ( )
      return_value = getNbFrames ( )
      boolean isRunning ( )
      return_value = isRunning ( )
      long getCurrentFrame ( )
      return_value = getCurrentFrame ( )
      ScalarMap getPresentation ( in long theField, in long theFrame )
      return_value = getPresentation ( theField, theFrame )
      void setPresentationType ( in long theFieldNum, in VISUType theType )
      setPresentationType ( theFieldNum, theType )
      VISUType getPresentationType ( in long theFieldNum )
      return_value = getPresentationType ( theFieldNum )
      void setSpeed ( in long theSpeed )
      setSpeed ( theSpeed )
      long getSpeed ( )
      return_value = getSpeed ( )
      boolean isProportional ( )
      return_value = isProportional ( )
      void setAnimationRange ( in double theMin, in double theMax )
      setAnimationRange ( theMin, theMax )
      double getMinRange ( )
      return_value = getMinRange ( )
      double getMaxRange ( )
      return_value = getMaxRange ( )
      boolean isRangeDefined ( )
      return_value = isRangeDefined ( )
      void dumpTo ( in string thePath )
      dumpTo ( thePath )
      boolean isCycling ( )
      return_value = isCycling ( )
      double getMinTime ( )
      return_value = getMinTime ( )
      double getMaxTime ( )
      return_value = getMaxTime ( )
      void setProportional ( in boolean theProp )
      setProportional ( theProp )
      void setCycling ( in boolean theCycle )
      setCycling ( theCycle )

      + + + + + + + + + + + +
      interface Result
      IDL file
      Python
      boolean BuildAll ( )
      return_value = BuildAll ( )

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      interface VISU_Gen
      IDL file
      Python
      void SetCurrentStudy ( in Study theStudy )
      SetCurrentStudy ( theStudy )
      Study GetCurrentStudy ( )
      return_value = GetCurrentStudy ( )
      ViewManager GetViewManager ( )
      return_value = GetViewManager ( )
      SObject ImportTables ( in string theFileName )
      return_value = ImportTables ( theFileName )
      boolean ExportTableToFile ( in SObject theTable, in string theFileName )
      return_value = ExportTableToFile ( theTable, theFileName )
      Result ImportFile ( in string theFileName )
      return_value = ImportFile ( theFileName )
      Result CopyAndImportFile ( in string theFileName )
      return_value = CopyAndImportFile ( theFileName )
      Result ImportMed ( in SObject theMedSObject )
      return_value = ImportMed ( theMedSObject )
      Result ImportMedField ( in FIELD theField )
      return_value = ImportMedField ( theField )
      Mesh MeshOnEntity ( in Result theResult, in string theMeshName, in Entity theEntity )
      return_value = MeshOnEntity ( theResult, theMeshName, theEntity )
      Mesh FamilyMeshOnEntity ( in Result theResult, in string theMeshName, in Entity theEntity, in string theFamilyName )
      return_value = FamilyMeshOnEntity ( theResult, theMeshName, theEntity, theFamilyName )
      Mesh GroupMesh ( in Result theResult, in string theMeshName, in string theGroupName )
      return_value = GroupMesh ( theResult, theMeshName, theGroupName )
      ScalarMap ScalarMapOnField ( in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in double theIteration )
      return_value = ScalarMapOnField ( theResult, theMeshName, theEntity, theFieldName, theIteration )
      DeformedShape DeformedShapeOnField ( in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in double theIteration )
      return_value = DeformedShapeOnField ( theResult, theMeshName, theEntity, theFieldName, theIteration )
      Vectors VectorsOnField ( in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in double theIteration )
      return_value = VectorsOnField ( theResult, theMeshName, theEntity, theFieldName, theIteration )
      IsoSurfaces IsoSurfacesOnField ( in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in double theIteration )
      return_value = IsoSurfacesOnField ( theResult, theMeshName, theEntity, theFieldName, theIteration )
      StreamLines StreamLinesOnField ( in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in double theIteration )
      return_value = StreamLinesOnField ( theResult, theMeshName, theEntity, theFieldName, theIteration )
      CutPlanes CutPlanesOnField ( in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in double theIteration )
      return_value = CutPlanesOnField ( theResult, theMeshName, theEntity, theFieldName, theIteration )
      CutLines CutLinesOnField ( in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in double theIteration )
      return_value = CutLinesOnField ( theResult, theMeshName, theEntity, theFieldName, theIteration )
      Table CreateTable ( in string theTableEntry )
      return_value = CreateTable ( theTableEntry )
      Curve CreateCurve ( in Table theTable, in long theHRow, in long theVRow )
      return_value = CreateCurve ( theTable, theHRow, theVRow )
      Container CreateContainer ( )
      return_value = CreateContainer ( )
      Animation CreateAnimation ( in View3D theView3d )
      return_value = CreateAnimation ( theView3d )
      void DeleteResult ( in Result theResult )
      DeleteResult ( theResult )
      void DeletePrs3d ( in Prs3d thePrs3d )
      DeletePrs3d ( thePrs3d )

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      interface View
      IDL file
      Python
      void ShowPart ( in ViewRepresentation ViewRepr, in boolean state )
      ShowPart ( ViewRepr, state )
      boolean IsPartShown ( in ViewRepresentation ViewRepr )
      return_value = IsPartShown ( ViewRepr )
      void SetViewWidth ( in long Width )
      SetViewWidth ( Width )
      void SetViewHeight ( in long Height )
      SetViewHeight ( Height )
      long GetViewWidth ( )
      return_value = GetViewWidth ( )
      long GetViewHeight ( )
      return_value = GetViewHeight ( )
      void SetViewPositionHorizontal ( in ViewPosition ViewPosHor )
      SetViewPositionHorizontal ( ViewPosHor )
      void SetViewPositionVertical ( in ViewPosition ViewPosVer )
      SetViewPositionVertical ( ViewPosVer )
      void SetRelativePosition ( in double x, in double y )
      SetRelativePosition ( x, y )
      void SetRelativeSize ( in double x, in double y )
      SetRelativeSize ( x, y )
      void SetTitle ( in string theTitle )
      SetTitle ( theTitle )
      string GetTitle ( )
      return_value = GetTitle ( )
      void SetBackground ( in Color theColor )
      SetBackground ( theColor )
      Color GetBackground ( )
      return_value = GetBackground ( )
      void Minimize ( )
      Minimize ( )
      void Restore ( )
      Restore ( )
      void Maximize ( )
      Maximize ( )
      void EraseAll ( )
      EraseAll ( )
      void DisplayAll ( )
      DisplayAll ( )
      void Erase ( in PrsObject thePrsObj )
      Erase ( thePrsObj )
      void Display ( in PrsObject thePrsObj )
      Display ( thePrsObj )
      void DisplayOnly ( in PrsObject thePrsObj )
      DisplayOnly ( thePrsObj )
      void Update ( )
      Update ( )
      boolean SavePicture ( in string theFileName )
      return_value = SavePicture ( theFileName )

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      interface View3D
      IDL file
      Python
      void FitAll ( )
      FitAll ( )
      void SetView ( in ViewType theType )
      SetView ( theType )
      void SetPointOfView ( in XYZ theCoord )
      SetPointOfView ( theCoord )
      XYZ GetPointOfView ( )
      return_value = GetPointOfView ( )
      void SetViewUp ( in XYZ theDir )
      SetViewUp ( theDir )
      XYZ GetViewUp ( )
      return_value = GetViewUp ( )
      void SetFocalPoint ( in XYZ theDir )
      SetFocalPoint ( theDir )
      XYZ GetFocalPoint ( )
      return_value = GetFocalPoint ( )
      void SetParallelScale ( in double theScale )
      SetParallelScale ( theScale )
      double GetParallelScale ( )
      return_value = GetParallelScale ( )
      void ScaleView ( in Axis theAxis, in double theParam )
      ScaleView ( theAxis, theParam )
      void RemoveScale ( )
      RemoveScale ( )
      boolean SaveViewParams ( in string theName )
      return_value = SaveViewParams ( theName )
      boolean RestoreViewParams ( in string theName )
      return_value = RestoreViewParams ( theName )

      + + + + + + + +
      interface TableView
      IDL file
      Python

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      interface XYPlot
      IDL file
      Python
      void SetSubTitle ( in string theTitle )
      SetSubTitle ( theTitle )
      string GetSubTitle ( )
      return_value = GetSubTitle ( )
      void SetCurveType ( in CurveType theType )
      SetCurveType ( theType )
      CurveType GetCurveType ( )
      return_value = GetCurveType ( )
      void SetMarkerSize ( in long theSize )
      SetMarkerSize ( theSize )
      long GetMarkerSize ( )
      return_value = GetMarkerSize ( )
      void EnableXGrid ( in boolean theMajor, in long theNumMajor, in boolean theMinor, in long theNumMinor )
      EnableXGrid ( theMajor, theNumMajor, theMinor, theNumMinor )
      void EnableYGrid ( in boolean theMajor, in long theNumMajor, in boolean theMinor, in long theNumMinor )
      EnableYGrid ( theMajor, theNumMajor, theMinor, theNumMinor )
      void SetHorScaling ( in Scaling theScaling )
      SetHorScaling ( theScaling )
      Scaling GetHorScaling ( )
      return_value = GetHorScaling ( )
      void SetVerScaling ( in Scaling theScaling )
      SetVerScaling ( theScaling )
      Scaling GetVerScaling ( )
      return_value = GetVerScaling ( )
      void SetXTitle ( in string theTitle )
      SetXTitle ( theTitle )
      string GetXTitle ( )
      return_value = GetXTitle ( )
      void SetYTitle ( in string theTitle )
      SetYTitle ( theTitle )
      string GetYTitle ( )
      return_value = GetYTitle ( )
      void ShowLegend ( in boolean theShowing )
      ShowLegend ( theShowing )
      void FitAll ( )
      FitAll ( )

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      interface ViewManager
      IDL file
      Python
      View GetCurrentView ( )
      return_value = GetCurrentView ( )
      View3D Create3DView ( )
      return_value = Create3DView ( )
      TableView CreateTableView ( in Table theTable )
      return_value = CreateTableView ( theTable )
      XYPlot CreateXYPlot ( )
      return_value = CreateXYPlot ( )
      void Destroy ( in View theView )
      Destroy ( theView )

      +
      diff --git a/doc/salome/tui/VISU/doxyfile.in b/doc/salome/tui/VISU/doxyfile.in new file mode 100755 index 00000000..b6574417 --- /dev/null +++ b/doc/salome/tui/VISU/doxyfile.in @@ -0,0 +1,241 @@ +# Doxyfile 1.4.6 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = "SALOME - VISU - v.@VERSION@" +PROJECT_NUMBER = +OUTPUT_DIRECTORY = ../ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = NO +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = NO +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = YES +INLINE_INHERITED_MEMB = YES +FULL_PATH_NAMES = YES +STRIP_FROM_PATH = ../../../share/salome \ + ../../../build/salome +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = YES +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +SEPARATE_MEMBER_PAGES = NO +TAB_SIZE = 5 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = YES +BUILTIN_STL_SUPPORT = NO +DISTRIBUTE_GROUP_DOC = NO +SUBGROUPING = YES + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = YES +EXTRACT_STATIC = YES +EXTRACT_LOCAL_CLASSES = YES +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = NO +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = YES +GENERATE_TESTLIST = YES +GENERATE_BUGLIST = YES +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 25 +SHOW_USED_FILES = NO +SHOW_DIRECTORIES = NO +FILE_VERSION_FILTER = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = log.txt + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = ../../../share/salome/src \ + ../../../share/salome/idl +FILE_PATTERNS = *.idl *.h *.hh *.hxx *.c *.cc *.cxx *.ixx *.jxx python_extension_must_be_here +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = sources/ +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = YES + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = NO +REFERENCES_RELATION = YES +USE_HTAGS = NO +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = YES +COLS_IN_ALPHA_INDEX = 3 +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = YES +HTML_OUTPUT = VISU +HTML_FILE_EXTENSION = .html +HTML_HEADER = sources/myheader.html +HTML_FOOTER = sources/footer.html +HTML_STYLESHEET = sources/static/doxygen.css +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = NO +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = YES +TOC_EXPAND = YES +DISABLE_INDEX = NO +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = NO +TREEVIEW_WIDTH = 250 + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = NO +RTF_OUTPUT = rtf +COMPACT_RTF = NO +RTF_HYPERLINKS = NO +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = NO +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = NO + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = NO +HAVE_DOT = YES +CLASS_GRAPH = YES +COLLABORATION_GRAPH = NO +GROUP_GRAPHS = NO +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = NO +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = jpg +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1200 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = NO +DOT_CLEANUP = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff --git a/doc/salome/tui/VISU/sources/Application-About.png b/doc/salome/tui/VISU/sources/Application-About.png new file mode 100755 index 00000000..7b58330d Binary files /dev/null and b/doc/salome/tui/VISU/sources/Application-About.png differ diff --git a/doc/salome/tui/VISU/sources/Application-About1.jpg b/doc/salome/tui/VISU/sources/Application-About1.jpg new file mode 100755 index 00000000..cf7ab8ba Binary files /dev/null and b/doc/salome/tui/VISU/sources/Application-About1.jpg differ diff --git a/doc/salome/tui/VISU/sources/application.gif b/doc/salome/tui/VISU/sources/application.gif new file mode 100644 index 00000000..0b05d5c1 Binary files /dev/null and b/doc/salome/tui/VISU/sources/application.gif differ diff --git a/doc/salome/tui/VISU/sources/application.jpg b/doc/salome/tui/VISU/sources/application.jpg new file mode 100755 index 00000000..a6979ab9 Binary files /dev/null and b/doc/salome/tui/VISU/sources/application.jpg differ diff --git a/doc/salome/tui/VISU/sources/bg_salome.gif b/doc/salome/tui/VISU/sources/bg_salome.gif new file mode 100644 index 00000000..c7e03068 Binary files /dev/null and b/doc/salome/tui/VISU/sources/bg_salome.gif differ diff --git a/doc/salome/tui/VISU/sources/footer.html b/doc/salome/tui/VISU/sources/footer.html new file mode 100755 index 00000000..cb55f397 --- /dev/null +++ b/doc/salome/tui/VISU/sources/footer.html @@ -0,0 +1,5 @@ + + + + diff --git a/doc/salome/tui/VISU/sources/logocorp.gif b/doc/salome/tui/VISU/sources/logocorp.gif new file mode 100755 index 00000000..7697e083 Binary files /dev/null and b/doc/salome/tui/VISU/sources/logocorp.gif differ diff --git a/doc/salome/tui/VISU/sources/myheader.html b/doc/salome/tui/VISU/sources/myheader.html new file mode 100755 index 00000000..d2efb75f --- /dev/null +++ b/doc/salome/tui/VISU/sources/myheader.html @@ -0,0 +1,13 @@ + + + + + + Main Page + + + + +  + + diff --git a/doc/salome/tui/VISU/sources/occ.gif b/doc/salome/tui/VISU/sources/occ.gif new file mode 100755 index 00000000..ce017c8a Binary files /dev/null and b/doc/salome/tui/VISU/sources/occ.gif differ diff --git a/doc/salome/tui/VISU/sources/static/DataStruct.gif b/doc/salome/tui/VISU/sources/static/DataStruct.gif new file mode 100755 index 00000000..bec28ad2 Binary files /dev/null and b/doc/salome/tui/VISU/sources/static/DataStruct.gif differ diff --git a/doc/salome/tui/VISU/sources/static/PrsObj.gif b/doc/salome/tui/VISU/sources/static/PrsObj.gif new file mode 100755 index 00000000..a8aa81fe Binary files /dev/null and b/doc/salome/tui/VISU/sources/static/PrsObj.gif differ diff --git a/doc/salome/tui/VISU/sources/static/View.gif b/doc/salome/tui/VISU/sources/static/View.gif new file mode 100755 index 00000000..b6aa909e Binary files /dev/null and b/doc/salome/tui/VISU/sources/static/View.gif differ diff --git a/doc/salome/tui/VISU/sources/static/doxygen.css b/doc/salome/tui/VISU/sources/static/doxygen.css new file mode 100755 index 00000000..88e613d2 --- /dev/null +++ b/doc/salome/tui/VISU/sources/static/doxygen.css @@ -0,0 +1,170 @@ +H1 { + text-align: center; +} + +CAPTION { + font-weight: bold +} + +/* Link in the top navbar */ +A.qindex {} + +A.qindexRef {} + +/* Link to any cross-referenced Doxygen element */ +A.el { + text-decoration: none; + font-weight: bold +} + +A.elRef { + font-weight: bold +} + +/* Link to any cross-referenced Doxygen element inside a code section + (ex: header) +*/ +A.code { + text-decoration: none; + font-weight: normal; + color: #4444ee +} + +A.codeRef { + font-weight: normal; + color: #4444ee +} + +A:hover { + text-decoration: none; + background-color: lightblue +} + +DL.el { + margin-left: -1cm +} + +/* A code fragment (ex: header) */ +DIV.fragment { + width: 100%; + border: none; + background-color: #CCCCCC +} + +/* In the alpha list (coumpound index), style of an alphabetical index letter */ +DIV.ah { + background-color: #CCCCCC; + font-weight: bold; + color: #ffffff; + margin-bottom: 3px; + margin-top: 3px +} + +/* Method name (+ type) */ +TD.md { + background-color: lightblue; + font-weight: bold; +} + +/* Method parameter (some of them) */ +TD.mdname1 { + background-color: lightblue; + font-weight: bold; color: #602020; +} + +/* Method parameter (some of them) */ +TD.mdname { + background-color: lightblue; + font-weight: bold; + color: #602020; + width: 600px; +} + +/* Separator between methods group (usually empty, seems not supported by IE) */ +DIV.groupHeader { + margin-left: 16px; + margin-top: 12px; + margin-bottom: 6px; + font-weight: bold +} + +DIV.groupText { + margin-left: 16px; + font-style: italic; + font-size: smaller +} + +BODY { + background: #FFFFFF; +} + +/*div.div-page { + background-color: #FFFFFF; + margin-left: 1em; + margin-right: 1em; + margin-top: 1em; + margin-bottom: 0.1em; + + padding-left: 1em; + padding-right: 1em; + padding-top: 0.5em; + padding-bottom: 0.5em; + + border: 2px solid #0D299A; + border-width: 2px; + border-color: #0D299A; +}*/ + +div.tabs { + text-align: justify; + margin-left : 2px; + margin-right : 2px; + margin-top : 2px; + margin-bottom : 2px + font-weight: bold; + color: #FFFFFF; +} + +DIV.div-footer { + margin-left: 1em; + margin-right: 1em; + margin-bottom: 0.2em; + text-align: right; + font-size: 9pt; +} + +/* In File List, Coumpound List, etc, 1st column of the index */ +TD.indexkey { + background-color: #CCCCCC; + font-weight: bold; + padding-right : 10px; + padding-top : 2px; + padding-left : 10px; + padding-bottom : 2px; + margin-left : 0px; + margin-right : 0px; + margin-top : 2px; + margin-bottom : 2px +} + +/* In File List, Coumpound List, etc, 2nd column of the index */ +TD.indexvalue { + background-color: #CCCCCC; + font-style: italic; + padding-right : 10px; + padding-top : 2px; + padding-left : 10px; + padding-bottom : 2px; + margin-left : 0px; + margin-right : 0px; + margin-top : 2px; + margin-bottom : 2px +} + +span.keyword { color: #008000 } +span.keywordtype { color: #604020 } +span.keywordflow { color: #e08000 } +span.comment { color: #800000 } +span.preprocessor { color: #806020 } +span.stringliteral { color: #002080 } +span.charliteral { color: #008080 } diff --git a/doc/salome/tui/VISU/sources/static/examples_VISU.html b/doc/salome/tui/VISU/sources/static/examples_VISU.html new file mode 100755 index 00000000..bd5bca94 --- /dev/null +++ b/doc/salome/tui/VISU/sources/static/examples_VISU.html @@ -0,0 +1,1270 @@ + + + + + + + + Main Page + + + + +   +
      + + + + + + + + +
      + + +
      +
      + +

      Examples

      +      Interfaces:
      +
      + VISU::Base

      + VISU::VISU_Gen
      + VISU::PrsObject
      +

      + VISU::Result
      +
      + VISU::Prs3d

      + VISU::Mesh
      + VISU::ScalarMap
      + VISU::CutPlanes
      + VISU::CutLines
      + VISU::IsoSurfaces
      + VISU::DeformedShape
      + VISU::Vectors
      + VISU::StreamLines
      +
      + VISU::Table
      + VISU::Curve
      + VISU::Container
      +
      + VISU::ViewManager

      + VISU::View
      + VISU::View3D
      + VISU::TableView
      + VISU::XYPlot
      + +

      Base

      + + + + + + + + + + + + +
      IdType + VISU::Base::GetID   +
      +
      + +

      #Returns ID of the object. That is IOR of CORBA representation a VISU +object.
      +

      + +

      aSObject = myLocalStudy.FindObjectIOR(theResult.GetID())
      +

      + + + + + + + + + + + +
      VISUType + VISU::Base::GetType   +
      + +

      #Returns the type of the presentable object. It can be used for quick +class definition of an VISU object
      +
      + if aVISUObject.GetType() == VISU.TSCALARMAP :
      +     #do something ...
      +

      + +


      +

      +

      VISU_Gen
      +

      + + + + + + + + + + + + + +
      void VISU::VISU_Gen::SetCurrentStudy + in SALOMEDS::Study   theStudy +
      +
      +
      + +

      + + + + + + + +
      + + + + + + + + + + + +
      SALOMEDS::Study +VISU::VISU_Gen::GetCurrentStudy   +
      +
      +
      +
      + #It is very important to set SALOMEDS::Study for VISU Engine before you +start any work with them.
      + #Every object that you will create will be assigned to the study you set +before.
      + #It can be done like this:
      +

      + +

      aStudy = myStudyManager.NewStudy("A foo Study")
      + if aStudy is None : raise RuntimeError, "Error"
      + else : print "OK"
      +     theVisuGen.SetCurrentStudy(aStudy)
      +     #to do every things you like
      +     ...
      +

      + +

      + + + + + + + +
      + + + + + + + + + + + +
      ViewManager +VISU::VISU_Gen::GetViewManager   +
      +
      +
      + + + + + + + + + +
        +

      Gets the ViewManager which is used for creation of post-processing +presentations.

      +
      +
      + #In order to display any VISU::PrsObject in propriate viewer you must take +VISU::ViewManager interface
      +

      + +

      aViewManager = myVisuGen.GetViewManager()
      + #to do something for displaing some presentation
      + ...
      +

      + +

      + + + + + + + +
      + + + + + + + + + + + + +
      SALOMEDS::SObject +VISU::VISU_Gen::ImportTables in string   theFileName +
      +
      +
      + + + + + + + + + +
        +

      Imports tables from a file and create TableAttribute in Sudy +

      +
      +
      + #It is possible to import some ASCII files that include text table representation. +One file can consist from more than one table.
      +

      + +

      aSObject = myVisuGen.ImportTables("/MyPresicousFileOfTables.txt")
      +

      + +

      + + + + + + + +
      + + + + + + + + + + + + +
      Result +VISU::VISU_Gen::ImportFile in string   theFileName +
      +
      +
      + + + + + + + + + +
        +

      Imports data from a file.

      +
      +
      + #It is possible import a med files to VISU
      +

      + +

      aResult = myVisuGen.ImportFile("/ItIsDreamOfMyLife.med")
      +

      + +

      + + + + + + + +
      + + + + + + + + + + + + +
      Result +VISU::VISU_Gen::ImportMed in SALOMEDS::SObject   theMedSObject +
      +
      +
      + + + + + + + + + +
        +

      Imports data from a MED object.

      +
      +
      + #
      +

      + +

      + + + + + + + +
      + + + + + + + + + + + + +
      Result +VISU::VISU_Gen::ImportMedField in SALOME_MED::FIELD   theField +
      +
      +
      + + + + + + + + + +
        +

      Imports data from a MED field.

      +
      +

      + +

      + + + + + + + +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Mesh +VISU::VISU_Gen::MeshOnEntity in Result   theResult, +

      +

      +
      in string   theMeshName, +

      +

      +
      in Entity   theEntity

      +

      +
      +
      + + + + + + + + + +
        +

      Creates a Mesh on the basis of the data generated in other sources +(MED object or file).

      +
      +

      + +

      + + + + + + + +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Mesh +VISU::VISU_Gen::FamilyMeshOnEntity in Result   theResult, +

      +

      +
      in string   theMeshName, +

      +

      +
      in Entity   theEntity, +

      +

      +
      in string   theFamilyName

      +

      +
      +
      +

      + +

      + + + + + + + +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Mesh +VISU::VISU_Gen::GroupMesh in Result   theResult, +

      +

      +
      in string   theMeshName, +

      +

      +
      in string   theGroupName

      +

      +
      +
      +

      + +

      + + + + + + + +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      ScalarMap +VISU::VISU_Gen::ScalarMapOnField in Result   theResult, +

      +

      +
      in string   theMeshName, +

      +

      +
      in Entity   theEntity, +

      +

      +
      in string   theFieldName, +

      +

      +
      in double   theIteration

      +

      +
      +
      + + + + + + + + + +
        +

      Creates a scalar bar presentation.

      + +
      +
      Parameters:
      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      theResult  Data generated in other sources. (MED object or file) +
      theMeshName  One of the meshes presented in MED file
      theEntity  Type of entity where the field is defined
      theFieldName  Group of data attributed to the MESH. The data can +be scalar or vector.
      theIteration  Number of iteration on the field
      +
      +
      +
      +

      + +

      + + + + + + + +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      DeformedShape +VISU::VISU_Gen::DeformedShapeOnField in Result   theResult, +

      +

      +
      in string   theMeshName, +

      +

      +
      in Entity   theEntity, +

      +

      +
      in string   theFieldName, +

      +

      +
      in double   theIteration

      +

      +
      +
      + + + + + + + + + +
        +

      Creates a deformed shape presentation.

      + +
      +
      Parameters:
      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      theResult  Data generated in other sources. (MED object or file) +
      theMeshName  One of the meshes presented in MED file
      theEntity  Type of entity where the field is defined
      theFieldName  Group of data attributed to the MESH. The data can +be scalar or vector.
      theIteration  Number of iteration on the field
      +
      +
      +
      +

      + +

      + + + + + + + +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Vectors +VISU::VISU_Gen::VectorsOnField in Result   theResult, +

      +

      +
      in string   theMeshName, +

      +

      +
      in Entity   theEntity, +

      +

      +
      in string   theFieldName, +

      +

      +
      in double   theIteration

      +

      +
      +
      + + + + + + + + + +
        +

      Creates a vector presentation.

      + +
      +
      Parameters:
      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      theResult  Data generated in other sources. (MED object or file) +
      theMeshName  One of the meshes presented in MED file
      theEntity  Type of entity where the field is defined
      theFieldName  Group of data attributed to the MESH. The data can +be scalar or vector.
      theIteration  Number of iteration on the field
      +
      +
      +
      +

      + +

      + + + + + + + +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      IsoSurfaces +VISU::VISU_Gen::IsoSurfacesOnField in Result   theResult, +

      +

      +
      in string   theMeshName, +

      +

      +
      in Entity   theEntity, +

      +

      +
      in string   theFieldName, +

      +

      +
      in double   theIteration

      +

      +
      +
      + + + + + + + + + +
        +

      Creates an iso surface presentation.

      + +
      +
      Parameters:
      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      theResult  Data generated in other sources. (MED object or file) +
      theMeshName  One of the meshes presented in MED file
      theEntity  Type of entity where the field is defined
      theFieldName  Group of data attributed to the MESH. The data can +be scalar or vector.
      theIteration  Number of iteration on the field
      +
      +
      +
      +

      + +

      + + + + + + + +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      StreamLines +VISU::VISU_Gen::StreamLinesOnField in Result   theResult, +

      +

      +
      in string   theMeshName, +

      +

      +
      in Entity   theEntity, +

      +

      +
      in string   theFieldName, +

      +

      +
      in double   theIteration

      +

      +
      +
      + + + + + + + + + +
        +

      Creates an stream lines presentation.

      + +
      +
      Parameters:
      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      theResult  Data generated in other sources. (MED object or file) +
      theMeshName  One of the meshes presented in MED file
      theEntity  Type of entity where the field is defined
      theFieldName  Group of data attributed to the MESH. The data can +be scalar or vector.
      theIteration  Number of iteration on the field
      +
      +
      +
      +

      + +

      + + + + + + + +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      CutPlanes +VISU::VISU_Gen::CutPlanesOnField in Result   theResult, +

      +

      +
      in string   theMeshName, +

      +

      +
      in Entity   theEntity, +

      +

      +
      in string   theFieldName, +

      +

      +
      in double   theIteration

      +

      +
      +
      + + + + + +
        +

      Creates a presentation of cut planes.

      + +
      +
      Parameters:
      +
      + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/tui/VISU/sources/static/overview_VISU.html b/doc/salome/tui/VISU/sources/static/overview_VISU.html new file mode 100755 index 00000000..f6f54eaa --- /dev/null +++ b/doc/salome/tui/VISU/sources/static/overview_VISU.html @@ -0,0 +1,252 @@ + + + + + + Main Page + + + +  +
      theResult  Data generated in other sources. (MED object or file) +
      theMeshName  One of the meshes presented in MED file
      theEntity  Type of entity where the field is defined
      theFieldName 
      + + + + + + +
      +
      +
      + + +

      General overview +

      +

      Table of contents

      + + +
      +

      1. Introduction

      +

      Post-processing module VISU for SALOME is destined for visualization of data + produced by other components. VISU provides various forms of data visualization + including:

      + +
        +
      • Data tables,
      • +
      • XY plots based on data from tables,
      • +
      • 3D presentations,
      • +
          +
        • Scalar Map,
        • +
        • Deformed Shape,
        • +
        • Vectors,
        • +
        • Iso Surfaces,
        • +
        • Cut Planes,
        • +
        • Stream Lines,
        • +
        • Cut Lines.
        • +
        +
      +Back to the contents +

      2. Defintions

      +

      The following terms are used for presentation of the VISU module:

      +
      +
      Study
      +
      manages data produced by various component of SALOME platform. More detailed description of the SALOME Study can be found in the document named "Data Structure and Persistence Specifications".
      +
      Component
      +
      a SALOME software module that implements predefined interfaces. +The component provides the data for the SALOME study in a form of links (stored in the Study) +to the specific data stored in the component. All components are CORBA servers and it allows them +to be running on different host stations.
      +
      Geometry
      a coherent set of data produced by component GEOM or any other geometry tool +and imported using geometry exchange interface (like BRep, IGES and so on).
      +
      Mesh
      a collection of elements used as a support for numeric simulation.
      +
      Field
      the set of results of the same type allocated to mesh elements. +Fields can be one of next types: scalars, vectors, tensors, matrices, character strings.
      +
      +Back to the contents +

      3. Forms of data visualization

      +

      3.1 Data tables

      +

      Table represents data in spreadsheet-like form. For these purposes the QTable + widget will be provided. This widget can be reused in any module for any dialog + box as a control. For post-processing data visualization needs this widget is + used inside of Table window (based on non-modal window frame). Data represented + in Table window of post-processing module is be editable.

      +

      3.2 XY plots

      +

      XY plot represents calculation data in form of 2D (XY) plotting. +XY plot view is shown in a separated view window (non-modal dialog box), which can be moved in any position of the screen for convenience. +The QWT extension of QT toolkit is used for XY plotting. +QWT provides unlimited number of displayed curves (data sets) and supports logarithmic scale, zooming, and selection.

      + +

      3.3 3D presentations

      +

      A 3D presentation shows geometry, mesh and fields in 3D space. +Provides selection, rotation, zooming, scaling, and panning of 3d scene. +Color bar for scalar data presentation is supplied. +For 3D presentation window of the current implementation of VTK viewer in study window is used.

      +Back to the contents +

      4. Data structure

      +

      Source data for post-processing module can be imported from MED file or MED object in study data structure (CORBA object) can be used for this purposes.

      +

      In case of import MED file the data from this file will be converted in form of VTK Data Source format and stored in VISU data structure. In case of using of MED object from study the label in VISU data structure will be created with reference to the corresponded MED object.

      +

      Available result data is displayed under corresponded MED data label. For every result the number of presentations can be created dependently on result type.

      +

      Presentation is represented in data structure in form of list of presentation creation parameters. This could be:

      +
        +
      • Presentation type (table, XY plot, 3d view);
      • +
      • Presentation subtype (for example for 3d: scalar map, iso-surfaces, combined view and so on);
      • +
      • Parameters of the presentation dependently on its type (number of colors, type of scale, font parameters, grid parameters and so on).
      • +
      +

      Parameters of presentation are persistent data, which will be stored in study file.

      + + +
      +Back to the contents +

      5. VISU module features and services

      +

      The functionality of the VISU module is provided by a set of classes which are combined into +the VISU package. +

      The API reference of the VISU component can be found here.

      +

      5.1 Base class

      +

      This is a root class for all objects of the VISU module.

      +

      The API reference for this class can be found here.

      + +

      5.2 ViewManager class

      +

      This class is used for management of the view windows (creation and deletion).

      +

      The API reference for this class can be found here.

      + +

      5.3 View class

      +

      View class is a base for all other classes, necessary for creation of different views .

      + +
      +

      The API reference for this class can be found here.

      + +

      5.3.1 3dView class

      +

      This class provides a set of methods for creation of a 3d view window.

      +

      The API reference for this class can be found here.

      + +

      5.3.2 TableView class

      +

      This class provides a set of methods for creation of a Table view window.

      +

      The API reference for this class can be found here.

      + +

      5.3.3 XYPlotView class

      +

      This class provides a set of methods for creation of a XYPlot view window.

      +

      The API reference for this class can be found here.

      + +

      5.4 Result class

      +

      This class serves for inner representation of data generated in other sources. +(MED object or file) This data is needed for further construction of graphical presentations.

      +

      The API reference for this class can be found here.

      +

      5.5 PrsObject class

      +

      It is the root class of all presentable objects.

      +
      +

      The API reference for this class can be found here.

      + +

      5.5.1 Curve class

      +

      Manages presentation parameters of one curve. +This object can be used for presentation of set of curves using Container class.

      +

      The API reference for this class can be found here.

      + +

      5.5.2 Table class

      +

      Manages presentation parameters of a table.

      +

      The API reference for this class can be found here.

      + +

      5.5.3 Container class

      +

      This class is provided in order to create one presentation using several presentable objects. This can provide combination of a set of curves to display them in XY plot view. +

      +

      The API reference for this class can be found here.

      + +

      5.5.4 Prs3d class

      +

      Root class for all 3D presentations.

      +

      The API reference for this class can be found here.

      + +

      5.5.5 Mesh class

      +

      Manages presentation parameters of a 3D presentattion of a mesh. +This object can be used for presentation of set of curves using Container class.

      +

      The API reference for this class can be found here.

      + +

      5.5.6 ScalarMap class

      +

      Manages presentation parameters of the scalar bar.

      +

      The API reference for this class can be found here.

      + +

      5.5.7 CutLines class

      +

      Manages presentation parameters of the cut lines presentation.

      +

      The API reference for this class can be found here.

      + +

      5.5.8 CutPlanes class

      +

      Manages presentation parameters of the cut planes presentation.

      +

      The API reference for this class can be found here.

      + +

      5.5.9 IsoSurfaces class

      +

      Manages presentation parameters of the iso surfaces presentation.

      +

      The API reference for this class can be found here.

      + +

      5.5.10 DeformedShape class

      +

      Manages presentation parameters of the deformed shape presentation.

      +

      The API reference for this class can be found here.

      + +

      5.5.11 Vectors class

      +

      Manages presentation parameters of the vector presentation.

      +

      The API reference for this class can be found here.

      + +

      5.5.12 StreamLines class

      +

      Manages presentation parameters of the streamlines presentation.

      +

      The API reference for this class can be found here.

      + +

      5.6 Animation class

      +

      This class provides a set of methods used for:

      +
        +
      • generating different animations,
      • +
      • setting the parameters of the animations,
      • +
      • playing these animations in the VISU module.
      • +
      +

      The API reference for this class can be found here.

      + +

      5.7 VISU_Gen class

      +

      This is the main clas of the VISU component in SALOME application. It is used for , +using the views provided by ViewManager. This class provides a set of methods used for:

      +
        +
      • creation of all types of post-processing presentations from given Result and Table object reference
      • +
      • creation of animations
      • + +
      +

      The API reference for this class can be found here.

      +Back to the contents + + diff --git a/doc/salome/tui/VISU/sources/static/page2.html b/doc/salome/tui/VISU/sources/static/page2.html new file mode 100755 index 00000000..d31cf0c4 --- /dev/null +++ b/doc/salome/tui/VISU/sources/static/page2.html @@ -0,0 +1,31 @@ + + + + + + Main Page + + + +  +
      + + + + + + +
      +
      +
      + + + + + + + + diff --git a/doc/salome/tui/VISU/sources/static/tree.js.in b/doc/salome/tui/VISU/sources/static/tree.js.in new file mode 100755 index 00000000..8903b2ab --- /dev/null +++ b/doc/salome/tui/VISU/sources/static/tree.js.in @@ -0,0 +1,85 @@ +foldersTree = gFld("SALOME v.@VERSION@ ", "", "") + insDoc(foldersTree, gLnk("Main Page", "", "main.html")) + +aux1 = insFld(foldersTree, gFld("TUI Reference Guide", "")) + aux2 = insFld(aux1, gFld("Modules", "")) + aux3 = insFld(aux2, gFld("SALOME VISU module", "")) + insDoc(aux3, gLnk("Overview", "", "overview_VISU.html")) + aux4 = insFld(aux3, gFld("Packages", "")) + insDoc(aux4, gLnk("VISU", "", "namespaceVISU.html")) + insDoc(aux3, gLnk("Examples", "", "examples_VISU.html")) + + +/*! Data structures +*/ + insDoc(aux1, gLnk("Data Structures", "", "annotated.html")) + +/*! insDoc(aux1, gLnk("VISU::Animation", "", "interfaceVISU_1_1Animation.html")) + insDoc(aux1, gLnk("VISU::Base", "", "interfaceVISU_1_1Base.html")) + insDoc(aux1, gLnk("VISU::Container", "", "interfaceVISU_1_1Container.html")) + insDoc(aux1, gLnk("VISU::Curve", "", "interfaceVISU_1_1Curve.html")) + insDoc(aux1, gLnk("VISU::CutLines", "", "interfaceVISU_1_1CutLines.html")) + insDoc(aux1, gLnk("VISU::CutPlanes", "", "interfaceVISU_1_1CutPlanes.html")) + insDoc(aux1, gLnk("VISU::DeformedShape", "", "interfaceVISU_1_1DeformedShape.html")) + insDoc(aux1, gLnk("VISU::IsoSurfaces", "", "interfaceVISU_1_1IsoSurfaces.html")) + insDoc(aux1, gLnk("VISU::Mesh", "", "interfaceVISU_1_1Mesh.html")) + insDoc(aux1, gLnk("VISU::Prs3d", "", "interfaceVISU_1_1Prs3d.html")) + insDoc(aux1, gLnk("VISU::PrsObject", "", "interfaceVISU_1_1PrsObject.html")) + insDoc(aux1, gLnk("VISU::Result", "", "interfaceVISU_1_1Result.html")) + insDoc(aux1, gLnk("VISU::ScalarMap", "", "interfaceVISU_1_1ScalarMap.html")) + insDoc(aux1, gLnk("VISU::StreamLines", "", "interfaceVISU_1_1StreamLines.html")) + insDoc(aux1, gLnk("VISU::Table", "", "interfaceVISU_1_1Table.html")) + insDoc(aux1, gLnk("VISU::TableView", "", "interfaceVISU_1_1TableView.html")) + insDoc(aux1, gLnk("VISU::Vectors", "", "interfaceVISU_1_1Vectors.html")) + insDoc(aux1, gLnk("VISU::View", "", "interfaceVISU_1_1View.html")) + insDoc(aux1, gLnk("VISU::View3D", "", "interfaceVISU_1_1View3D.html")) + insDoc(aux1, gLnk("VISU::ViewManager", "", "interfaceVISU_1_1ViewManager.html")) + insDoc(aux1, gLnk("VISU::VISU_Gen", "", "interfaceVISU_1_1VISU__Gen.html")) + insDoc(aux1, gLnk("VISU::XYPlot", "", "interfaceVISU_1_1XYPlot.html")) +*/ + insDoc(aux1, gLnk("Class Hierarchy", "", "hierarchy.html")) + +/*! + aux2 = insFld(aux1, gFld("VISU::Base", "", "interfaceVISU_1_1Base.html")) + insDoc(aux2, gLnk("VISU::Animation", "", "interfaceVISU_1_1Animation.html")) + aux3 = insFld(aux2, gFld("VISU::PrsObject", "", "interfaceVISU_1_1PrsObject.html")) + insDoc(aux3, gLnk("VISU::Container", "", "interfaceVISU_1_1Container.html")) + insDoc(aux3, gLnk("VISU::Curve", "", "interfaceVISU_1_1Curve.html")) + aux4 = insFld(aux3, gFld("VISU::Prs3d", "", "interfaceVISU_1_1Prs3d.html")) + insDoc(aux4, gLnk("VISU::Mesh", "", "interfaceVISU_1_1Mesh.html")) + aux5 = insFld(aux4, gFld("VISU::ScalarMap", "", "interfaceVISU_1_1ScalarMap.html")) + insDoc(aux5, gLnk("VISU::CutLines", "", "interfaceVISU_1_1CutLines.html")) + insDoc(aux5, gLnk("VISU::CutPlanes", "", "interfaceVISU_1_1CutPlanes.html")) + aux6 = insFld(aux5, gFld("VISU::DeformedShape", "", "interfaceVISU_1_1DeformedShape.html")) + insDoc(aux6, gLnk("VISU::StreamLines", "", "interfaceVISU_1_1StreamLines.html")) + insDoc(aux6, gLnk("VISU::Vectors", "", "interfaceVISU_1_1Vectors.html")) + insDoc(aux5, gLnk("VISU::IsoSurfaces", "", "interfaceVISU_1_1IsoSurfaces.html")) + insDoc(aux3, gLnk("VISU::Table", "", "interfaceVISU_1_1Table.html")) + insDoc(aux2, gLnk("VISU::Result", "", "interfaceVISU_1_1Result.html")) + aux3 = insFld(aux2, gFld("VISU::View", "", "interfaceVISU_1_1View.html")) + insDoc(aux3, gLnk("VISU::TableView", "", "interfaceVISU_1_1TableView.html")) + insDoc(aux3, gLnk("VISU::View3D", "", "interfaceVISU_1_1View3D.html")) + insDoc(aux3, gLnk("VISU::XYPlot", "", "interfaceVISU_1_1XYPlot.html")) + insDoc(aux2, gLnk("VISU::ViewManager", "", "interfaceVISU_1_1ViewManager.html")) + insDoc(aux2, gLnk("VISU::VISU_Gen", "", "interfaceVISU_1_1VISU__Gen.html")) + insDoc(aux2, gLnk("VISU::VISU_Gen", "", "interfaceVISU_1_1VISU__Gen.html")) + insDoc(aux2, gLnk("VISU::VISU_Gen", "", "interfaceVISU_1_1VISU__Gen.html")) +*/ + insDoc(aux1, gLnk("Class methods list", "", "functions.html")) +/*! +aux1 = insFld(foldersTree, gFld("Namespace List", "", "namespaces.html")) + insDoc(aux1, gLnk("VISU", "", "namespaceVISU.html")) +*/ + insDoc(aux1, gLnk("Namespace Members", "", "namespacemembers.html")) + + insDoc(aux1, gLnk("File List", "", "files.html")) + +/*! + insDoc(aux1, gLnk("VISU_Gen.idl", "", "VISU__Gen_8idl.html")) +*/ + +aux1 = insFld(foldersTree, gFld("IDL/Python mapping", "")) + insDoc(aux1, gLnk("Mapping of VISU IDL definitions to Python language", "", "page2.html")) + +/*! insDoc(foldersTree, gLnk("Graphical Class Hierarchy", "", "inherits.html")) +*/ diff --git a/doc/salome/tui/VISU/sources/static/treeview.js b/doc/salome/tui/VISU/sources/static/treeview.js new file mode 100644 index 00000000..55eb43d0 --- /dev/null +++ b/doc/salome/tui/VISU/sources/static/treeview.js @@ -0,0 +1,505 @@ +//**************************************************************** +// You are free to copy the "Folder-Tree" script as long as you +// keep this copyright notice: +// Script found in: http://www.geocities.com/Paris/LeftBank/2178/ +// Author: Marcelino Alves Martins (martins@hks.com) December '97. +//**************************************************************** + +//Log of changes: +// 17 Feb 98 - Fix initialization flashing problem with Netscape +// +// 27 Jan 98 - Root folder starts open; support for USETEXTLINKS; +// make the ftien4 a js file +// +// DvH: Dec 2000 - Made some minor changes to support external +// references + +// Definition of class Folder +// ***************************************************************** + +function Folder(folderDescription, tagName, hreference) //constructor +{ + //constant data + this.desc = folderDescription + this.tagName = tagName + this.hreference = hreference + this.id = -1 + this.navObj = 0 + this.iconImg = 0 + this.nodeImg = 0 + this.isLastNode = 0 + + //dynamic data + this.isOpen = true + this.iconSrc = "ftv2folderopen.png" + this.children = new Array + this.nChildren = 0 + + //methods + this.initialize = initializeFolder + this.setState = setStateFolder + this.addChild = addChild + this.createIndex = createEntryIndex + this.hide = hideFolder + this.display = display + this.renderOb = drawFolder + this.totalHeight = totalHeight + this.subEntries = folderSubEntries + this.outputLink = outputFolderLink +} + +function setStateFolder(isOpen) +{ + var subEntries + var totalHeight + var fIt = 0 + var i=0 + + if (isOpen == this.isOpen) + return + + if (browserVersion == 2) + { + totalHeight = 0 + for (i=0; i < this.nChildren; i++) + totalHeight = totalHeight + this.children[i].navObj.clip.height + subEntries = this.subEntries() + if (this.isOpen) + totalHeight = 0 - totalHeight + for (fIt = this.id + subEntries + 1; fIt < nEntries; fIt++) + indexOfEntries[fIt].navObj.moveBy(0, totalHeight) + } + this.isOpen = isOpen + propagateChangesInState(this) +} + +function propagateChangesInState(folder) +{ + var i=0 + + if (folder.isOpen) + { + if (folder.nodeImg) + if (folder.isLastNode) + folder.nodeImg.src = "ftv2mlastnode.png" + else + folder.nodeImg.src = "ftv2mnode.png" + folder.iconImg.src = "ftv2folderopen.png" + for (i=0; i 0) + auxEv = "" + else + auxEv = "" + + if (level>0) + if (lastNode) //the last 'brother' in the children array + { + this.renderOb(leftSide + auxEv + "") +// leftSide = leftSide + "" + this.isLastNode = 1 + } + else + { + this.renderOb(leftSide + auxEv + "") + leftSide = leftSide + "" + this.isLastNode = 0 + } + else + this.renderOb("") + + if (nc > 0) + { + level = level + 1 + for (i=0 ; i < this.nChildren; i++) + { + if (i == this.nChildren-1) + this.children[i].initialize(level, 1, leftSide) + else + this.children[i].initialize(level, 0, leftSide) + } + } +} + +function drawFolder(leftSide) +{ + if (browserVersion == 2) { + if (!doc.yPos) + doc.yPos=8 + doc.write("") + } + if (browserVersion == 3) + { + doc.write("
      ") + } + + doc.write("\n") + doc.write("\n\n") + doc.write("\n
      ") + doc.write(leftSide) + this.outputLink() + doc.write("") + doc.write("") + if (USETEXTLINKS) + { + this.outputLink() + doc.write(this.desc + "") + } + else + doc.write(this.desc) + +/*! + if (this.tagName!="") + { + doc.write(" [external]") + } +*/ + doc.write("
      \n") + + if (browserVersion == 2) { + doc.write("") + } + if (browserVersion == 3) { + doc.write("
      ") + } + + if (browserVersion == 1) { + this.navObj = doc.all["folder"+this.id] + this.iconImg = doc.all["folderIcon"+this.id] + this.nodeImg = doc.all["nodeIcon"+this.id] + } else if (browserVersion == 2) { + this.navObj = doc.layers["folder"+this.id] + this.iconImg = this.navObj.document.images["folderIcon"+this.id] + this.nodeImg = this.navObj.document.images["nodeIcon"+this.id] + doc.yPos=doc.yPos+this.navObj.clip.height + } else if (browserVersion == 3) { + this.navObj = doc.getElementById("folder"+this.id) + this.iconImg = doc.images.namedItem("folderIcon"+this.id) + this.nodeImg = doc.images.namedItem("nodeIcon"+this.id) + } +} + +function outputFolderLink() +{ + if (this.hreference) + { + doc.write(" 0) + doc.write("onClick='javascript:clickOnFolder("+this.id+")'") + doc.write(">") + } + else + doc.write("") +} + +function addChild(childNode) +{ + this.children[this.nChildren] = childNode + this.nChildren++ + return childNode +} + +function folderSubEntries() +{ + var i = 0 + var se = this.nChildren + + for (i=0; i < this.nChildren; i++){ + if (this.children[i].children) //is a folder + se = se + this.children[i].subEntries() + } + + return se +} + + +// Definition of class Item (a document or link inside a Folder) +// ************************************************************* + +function Item(itemDescription, tagName, itemLink) // Constructor +{ + // constant data + this.desc = itemDescription + this.tagName = tagName + this.link = itemLink + this.id = -1 //initialized in initalize() + this.navObj = 0 //initialized in render() + this.iconImg = 0 //initialized in render() + this.iconSrc = "ftv2doc.png" + + // methods + this.initialize = initializeItem + this.createIndex = createEntryIndex + this.hide = hideItem + this.display = display + this.renderOb = drawItem + this.totalHeight = totalHeight +} + +function hideItem() +{ + if (browserVersion == 1 || browserVersion == 3) { + if (this.navObj.style.display == "none") + return + this.navObj.style.display = "none" + } else { + if (this.navObj.visibility == "hidden") + return + this.navObj.visibility = "hidden" + } +} + +function initializeItem(level, lastNode, leftSide) +{ + this.createIndex() + + if (level>0) + if (lastNode) //the last 'brother' in the children array + { + this.renderOb(leftSide + "") + leftSide = leftSide + "" + } + else + { + this.renderOb(leftSide + "") + leftSide = leftSide + "" + } + else + this.renderOb("") +} + +function drawItem(leftSide) +{ + if (browserVersion == 2) + doc.write("") + if (browserVersion == 3) + doc.write("
      ") + + doc.write("\n\n") + doc.write("\n
      ") + doc.write(leftSide) + if (this.link!="") + { + doc.write("") + } + doc.write("") + if (this.link!="") + { + doc.write("") + } + doc.write("") + if (USETEXTLINKS && this.link!="") + doc.write("" + this.desc + "") + else + doc.write(this.desc) +/*! + if (this.tagName!="") + { + doc.write(" [external]"); + } +*/ + doc.write("\n
      \n") + + if (browserVersion == 2) + doc.write("") + if (browserVersion == 3) + doc.write("
      ") + + if (browserVersion == 1) { + this.navObj = doc.all["item"+this.id] + this.iconImg = doc.all["itemIcon"+this.id] + } else if (browserVersion == 2) { + this.navObj = doc.layers["item"+this.id] + this.iconImg = this.navObj.document.images["itemIcon"+this.id] + doc.yPos=doc.yPos+this.navObj.clip.height + } else if (browserVersion == 3) { + this.navObj = doc.getElementById("item"+this.id) + this.iconImg = doc.images.namedItem("itemIcon"+this.id) + } +} + + +// Methods common to both objects (pseudo-inheritance) +// ******************************************************** + +function display() +{ + if (browserVersion == 1 || browserVersion == 3) + this.navObj.style.display = "block" + else + this.navObj.visibility = "show" +} + +function createEntryIndex() +{ + this.id = nEntries + indexOfEntries[nEntries] = this + nEntries++ +} + +// total height of subEntries open +function totalHeight() //used with browserVersion == 2 +{ + var h = this.navObj.clip.height + var i = 0 + + if (this.isOpen) //is a folder and _is_ open + for (i=0 ; i < this.nChildren; i++) + h = h + this.children[i].totalHeight() + + return h +} + + +// Events +// ********************************************************* + +function clickOnFolder(folderId) +{ + var clicked = indexOfEntries[folderId] + + if (!clicked.isOpen) + clickOnNode(folderId) + + return + + if (clicked.isSelected) + return +} + +function clickOnNode(folderId) +{ + var clickedFolder = 0 + var state = 0 + + clickedFolder = indexOfEntries[folderId] + state = clickedFolder.isOpen + + clickedFolder.setState(!state) //open<->close +} + +function initializeDocument() +{ + doc = document; + if (doc.all) + browserVersion = 1 //IE4 + else + if (doc.layers) + browserVersion = 2 //NS4 + else if(navigator.userAgent.toLowerCase().indexOf('gecko') != -1) + browserVersion = 3 //mozilla + else + browserVersion = 0 //other + + foldersTree.initialize(0, 1, "") + foldersTree.display() + + if (browserVersion > 0) + { + if(browserVersion != 3) + doc.write(" ") + + // close the whole tree + clickOnNode(0) + // open the root folder + clickOnNode(0) + } +} + +// Auxiliary Functions for Folder-Treee backward compatibility +// ********************************************************* + +function gFld(description, tagName, hreference) +{ + folder = new Folder(description, tagName, hreference) + return folder +} + +function gLnk(description, tagName, linkData) +{ + fullLink = "" + + if (linkData!="") + { + fullLink = "'"+linkData+"' target=\"basefrm\"" + } + + linkItem = new Item(description, tagName, fullLink) + return linkItem +} + +function insFld(parentFolder, childFolder) +{ + return parentFolder.addChild(childFolder) +} + +function insDoc(parentFolder, document) +{ + parentFolder.addChild(document) +} + +// Global variables +// **************** + +USETEXTLINKS = 1 +indexOfEntries = new Array +nEntries = 0 +doc = document +browserVersion = 0 +selectedFolder=0 diff --git a/doc/salome/tui/doxyfile.in b/doc/salome/tui/doxyfile.in deleted file mode 100755 index b07d9949..00000000 --- a/doc/salome/tui/doxyfile.in +++ /dev/null @@ -1,263 +0,0 @@ -# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -# Doxyfile 1.4.6 - -#--------------------------------------------------------------------------- -# Project related configuration options -#--------------------------------------------------------------------------- -PROJECT_NAME = "Post-Pro Module Programming Guide v.@VERSION@" -PROJECT_NUMBER = -OUTPUT_DIRECTORY = VISU -CREATE_SUBDIRS = NO -OUTPUT_LANGUAGE = English -USE_WINDOWS_ENCODING = NO -BRIEF_MEMBER_DESC = YES -REPEAT_BRIEF = NO -ABBREVIATE_BRIEF = -ALWAYS_DETAILED_SEC = YES -INLINE_INHERITED_MEMB = YES -FULL_PATH_NAMES = YES -STRIP_FROM_PATH = @top_srcdir@ @top_builddir@ -STRIP_FROM_INC_PATH = -SHORT_NAMES = NO -JAVADOC_AUTOBRIEF = YES -MULTILINE_CPP_IS_BRIEF = NO -DETAILS_AT_TOP = NO -INHERIT_DOCS = YES -SEPARATE_MEMBER_PAGES = NO -TAB_SIZE = 5 -ALIASES = -OPTIMIZE_OUTPUT_FOR_C = YES -OPTIMIZE_OUTPUT_JAVA = YES -BUILTIN_STL_SUPPORT = @DOXYGEN_SUPPORT_STL@ -DISTRIBUTE_GROUP_DOC = NO -SUBGROUPING = YES - -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- -EXTRACT_ALL = YES -EXTRACT_PRIVATE = YES -EXTRACT_STATIC = YES -EXTRACT_LOCAL_CLASSES = YES -EXTRACT_LOCAL_METHODS = NO -HIDE_UNDOC_MEMBERS = NO -HIDE_UNDOC_CLASSES = NO -HIDE_FRIEND_COMPOUNDS = NO -HIDE_IN_BODY_DOCS = NO -INTERNAL_DOCS = YES -CASE_SENSE_NAMES = YES -HIDE_SCOPE_NAMES = NO -SHOW_INCLUDE_FILES = YES -INLINE_INFO = YES -SORT_MEMBER_DOCS = NO -SORT_BRIEF_DOCS = NO -SORT_BY_SCOPE_NAME = NO -GENERATE_TODOLIST = YES -GENERATE_TESTLIST = YES -GENERATE_BUGLIST = YES -GENERATE_DEPRECATEDLIST= YES -ENABLED_SECTIONS = -MAX_INITIALIZER_LINES = 25 -SHOW_USED_FILES = NO -SHOW_DIRECTORIES = NO -FILE_VERSION_FILTER = - -#--------------------------------------------------------------------------- -# configuration options related to warning and progress messages -#--------------------------------------------------------------------------- -QUIET = NO -WARNINGS = YES -WARN_IF_UNDOCUMENTED = YES -WARN_IF_DOC_ERROR = YES -WARN_NO_PARAMDOC = NO -WARN_FORMAT = "$file:$line: $text" -WARN_LOGFILE = - -#--------------------------------------------------------------------------- -# configuration options related to the input files -#--------------------------------------------------------------------------- -INPUT = @top_srcdir@/src \ - @top_srcdir@/bin \ - @top_srcdir@/idl \ - @top_builddir@/bin -FILE_PATTERNS = *.idl *.hxx *.cxx *.h *.c *.hh *.cc @DOXYGEN_PYTHON_EXTENSION@ -RECURSIVE = YES -EXCLUDE = -EXCLUDE_SYMLINKS = NO -EXCLUDE_PATTERNS = -EXAMPLE_PATH = -EXAMPLE_PATTERNS = -EXAMPLE_RECURSIVE = NO -IMAGE_PATH = @srcdir@/images -INPUT_FILTER = -FILTER_PATTERNS = -FILTER_SOURCE_FILES = YES - -#--------------------------------------------------------------------------- -# configuration options related to source browsing -#--------------------------------------------------------------------------- -SOURCE_BROWSER = NO -INLINE_SOURCES = NO -STRIP_CODE_COMMENTS = YES -REFERENCED_BY_RELATION = NO -REFERENCES_RELATION = YES -USE_HTAGS = NO -VERBATIM_HEADERS = YES - -#--------------------------------------------------------------------------- -# configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- -ALPHABETICAL_INDEX = YES -COLS_IN_ALPHA_INDEX = 3 -IGNORE_PREFIX = - -#--------------------------------------------------------------------------- -# configuration options related to the HTML output -#--------------------------------------------------------------------------- -GENERATE_HTML = YES -HTML_OUTPUT = . -HTML_FILE_EXTENSION = .html -HTML_HEADER = @srcdir@/static/myheader.html -HTML_FOOTER = @srcdir@/static/footer.html -HTML_STYLESHEET = @srcdir@/static/doxygen.css -HTML_ALIGN_MEMBERS = YES -GENERATE_HTMLHELP = NO -CHM_FILE = -HHC_LOCATION = -GENERATE_CHI = NO -BINARY_TOC = YES -TOC_EXPAND = YES -DISABLE_INDEX = NO -ENUM_VALUES_PER_LINE = 4 -GENERATE_TREEVIEW = NO -TREEVIEW_WIDTH = 250 - -#--------------------------------------------------------------------------- -# configuration options related to the LaTeX output -#--------------------------------------------------------------------------- -GENERATE_LATEX = NO -LATEX_OUTPUT = latex -LATEX_CMD_NAME = latex -MAKEINDEX_CMD_NAME = makeindex -COMPACT_LATEX = NO -PAPER_TYPE = a4wide -EXTRA_PACKAGES = -LATEX_HEADER = -PDF_HYPERLINKS = NO -USE_PDFLATEX = NO -LATEX_BATCHMODE = NO -LATEX_HIDE_INDICES = NO - -#--------------------------------------------------------------------------- -# configuration options related to the RTF output -#--------------------------------------------------------------------------- -GENERATE_RTF = NO -RTF_OUTPUT = rtf -COMPACT_RTF = NO -RTF_HYPERLINKS = NO -RTF_STYLESHEET_FILE = -RTF_EXTENSIONS_FILE = - -#--------------------------------------------------------------------------- -# configuration options related to the man page output -#--------------------------------------------------------------------------- -GENERATE_MAN = NO -MAN_OUTPUT = man -MAN_EXTENSION = .3 -MAN_LINKS = NO - -#--------------------------------------------------------------------------- -# configuration options related to the XML output -#--------------------------------------------------------------------------- -GENERATE_XML = NO -XML_OUTPUT = xml -XML_SCHEMA = -XML_DTD = -XML_PROGRAMLISTING = YES - -#--------------------------------------------------------------------------- -# configuration options for the AutoGen Definitions output -#--------------------------------------------------------------------------- -GENERATE_AUTOGEN_DEF = NO - -#--------------------------------------------------------------------------- -# configuration options related to the Perl module output -#--------------------------------------------------------------------------- -GENERATE_PERLMOD = NO -PERLMOD_LATEX = NO -PERLMOD_PRETTY = YES -PERLMOD_MAKEVAR_PREFIX = - -#--------------------------------------------------------------------------- -# Configuration options related to the preprocessor -#--------------------------------------------------------------------------- -ENABLE_PREPROCESSING = YES -MACRO_EXPANSION = NO -EXPAND_ONLY_PREDEF = NO -SEARCH_INCLUDES = YES -INCLUDE_PATH = -INCLUDE_FILE_PATTERNS = -PREDEFINED = -EXPAND_AS_DEFINED = -SKIP_FUNCTION_MACROS = NO - -#--------------------------------------------------------------------------- -# Configuration::additions related to external references -#--------------------------------------------------------------------------- -TAGFILES = -GENERATE_TAGFILE = -ALLEXTERNALS = NO -EXTERNAL_GROUPS = YES -PERL_PATH = /usr/bin/perl - -#--------------------------------------------------------------------------- -# Configuration options related to the dot tool -#--------------------------------------------------------------------------- -CLASS_DIAGRAMS = YES -HIDE_UNDOC_RELATIONS = NO -HAVE_DOT = YES -CLASS_GRAPH = YES -COLLABORATION_GRAPH = NO -GROUP_GRAPHS = NO -UML_LOOK = NO -TEMPLATE_RELATIONS = YES -INCLUDE_GRAPH = YES -INCLUDED_BY_GRAPH = NO -CALL_GRAPH = NO -GRAPHICAL_HIERARCHY = YES -DIRECTORY_GRAPH = YES -DOT_IMAGE_FORMAT = jpg -DOT_PATH = -DOTFILE_DIRS = -MAX_DOT_GRAPH_WIDTH = 1024 -MAX_DOT_GRAPH_HEIGHT = 1200 -MAX_DOT_GRAPH_DEPTH = 0 -DOT_TRANSPARENT = NO -DOT_MULTI_TARGETS = NO -GENERATE_LEGEND = NO -DOT_CLEANUP = YES - -#--------------------------------------------------------------------------- -# Configuration::additions related to the search engine -#--------------------------------------------------------------------------- -SEARCHENGINE = NO diff --git a/doc/salome/tui/images/application.jpg b/doc/salome/tui/images/application.jpg deleted file mode 100755 index a6979ab9..00000000 Binary files a/doc/salome/tui/images/application.jpg and /dev/null differ diff --git a/doc/salome/tui/images/logocorp.gif b/doc/salome/tui/images/logocorp.gif deleted file mode 100755 index 7697e083..00000000 Binary files a/doc/salome/tui/images/logocorp.gif and /dev/null differ diff --git a/doc/salome/tui/images/occ.gif b/doc/salome/tui/images/occ.gif deleted file mode 100755 index ce017c8a..00000000 Binary files a/doc/salome/tui/images/occ.gif and /dev/null differ diff --git a/doc/salome/tui/static/doxygen.css b/doc/salome/tui/static/doxygen.css deleted file mode 100755 index 88e613d2..00000000 --- a/doc/salome/tui/static/doxygen.css +++ /dev/null @@ -1,170 +0,0 @@ -H1 { - text-align: center; -} - -CAPTION { - font-weight: bold -} - -/* Link in the top navbar */ -A.qindex {} - -A.qindexRef {} - -/* Link to any cross-referenced Doxygen element */ -A.el { - text-decoration: none; - font-weight: bold -} - -A.elRef { - font-weight: bold -} - -/* Link to any cross-referenced Doxygen element inside a code section - (ex: header) -*/ -A.code { - text-decoration: none; - font-weight: normal; - color: #4444ee -} - -A.codeRef { - font-weight: normal; - color: #4444ee -} - -A:hover { - text-decoration: none; - background-color: lightblue -} - -DL.el { - margin-left: -1cm -} - -/* A code fragment (ex: header) */ -DIV.fragment { - width: 100%; - border: none; - background-color: #CCCCCC -} - -/* In the alpha list (coumpound index), style of an alphabetical index letter */ -DIV.ah { - background-color: #CCCCCC; - font-weight: bold; - color: #ffffff; - margin-bottom: 3px; - margin-top: 3px -} - -/* Method name (+ type) */ -TD.md { - background-color: lightblue; - font-weight: bold; -} - -/* Method parameter (some of them) */ -TD.mdname1 { - background-color: lightblue; - font-weight: bold; color: #602020; -} - -/* Method parameter (some of them) */ -TD.mdname { - background-color: lightblue; - font-weight: bold; - color: #602020; - width: 600px; -} - -/* Separator between methods group (usually empty, seems not supported by IE) */ -DIV.groupHeader { - margin-left: 16px; - margin-top: 12px; - margin-bottom: 6px; - font-weight: bold -} - -DIV.groupText { - margin-left: 16px; - font-style: italic; - font-size: smaller -} - -BODY { - background: #FFFFFF; -} - -/*div.div-page { - background-color: #FFFFFF; - margin-left: 1em; - margin-right: 1em; - margin-top: 1em; - margin-bottom: 0.1em; - - padding-left: 1em; - padding-right: 1em; - padding-top: 0.5em; - padding-bottom: 0.5em; - - border: 2px solid #0D299A; - border-width: 2px; - border-color: #0D299A; -}*/ - -div.tabs { - text-align: justify; - margin-left : 2px; - margin-right : 2px; - margin-top : 2px; - margin-bottom : 2px - font-weight: bold; - color: #FFFFFF; -} - -DIV.div-footer { - margin-left: 1em; - margin-right: 1em; - margin-bottom: 0.2em; - text-align: right; - font-size: 9pt; -} - -/* In File List, Coumpound List, etc, 1st column of the index */ -TD.indexkey { - background-color: #CCCCCC; - font-weight: bold; - padding-right : 10px; - padding-top : 2px; - padding-left : 10px; - padding-bottom : 2px; - margin-left : 0px; - margin-right : 0px; - margin-top : 2px; - margin-bottom : 2px -} - -/* In File List, Coumpound List, etc, 2nd column of the index */ -TD.indexvalue { - background-color: #CCCCCC; - font-style: italic; - padding-right : 10px; - padding-top : 2px; - padding-left : 10px; - padding-bottom : 2px; - margin-left : 0px; - margin-right : 0px; - margin-top : 2px; - margin-bottom : 2px -} - -span.keyword { color: #008000 } -span.keywordtype { color: #604020 } -span.keywordflow { color: #e08000 } -span.comment { color: #800000 } -span.preprocessor { color: #806020 } -span.stringliteral { color: #002080 } -span.charliteral { color: #008080 } diff --git a/doc/salome/tui/static/footer.html b/doc/salome/tui/static/footer.html deleted file mode 100755 index cb55f397..00000000 --- a/doc/salome/tui/static/footer.html +++ /dev/null @@ -1,5 +0,0 @@ - -
      - - diff --git a/doc/salome/tui/static/myheader.html b/doc/salome/tui/static/myheader.html deleted file mode 100755 index d2efb75f..00000000 --- a/doc/salome/tui/static/myheader.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - Main Page - - - - -  - - diff --git a/resources/Visu_DeactivatePlane.png b/resources/Visu_DeactivatePlane.png deleted file mode 100644 index e4c21908..00000000 Binary files a/resources/Visu_DeactivatePlane.png and /dev/null differ diff --git a/resources/Visu_actor_selection.png b/resources/Visu_actor_selection.png deleted file mode 100644 index f94b29d1..00000000 Binary files a/resources/Visu_actor_selection.png and /dev/null differ diff --git a/resources/Visu_apply.png b/resources/Visu_apply.png deleted file mode 100644 index 3a225a1d..00000000 Binary files a/resources/Visu_apply.png and /dev/null differ diff --git a/resources/Visu_cell_selection.png b/resources/Visu_cell_selection.png deleted file mode 100644 index 8e2dc4f5..00000000 Binary files a/resources/Visu_cell_selection.png and /dev/null differ diff --git a/resources/Visu_close.png b/resources/Visu_close.png deleted file mode 100644 index d5f353e3..00000000 Binary files a/resources/Visu_close.png and /dev/null differ diff --git a/resources/Visu_cutplane.png b/resources/Visu_cutplane.png new file mode 100644 index 00000000..5e92cf65 Binary files /dev/null and b/resources/Visu_cutplane.png differ diff --git a/resources/Visu_gauss_point_selection.png b/resources/Visu_gauss_point_selection.png deleted file mode 100644 index 8129a9e2..00000000 Binary files a/resources/Visu_gauss_point_selection.png and /dev/null differ diff --git a/resources/Visu_help.png b/resources/Visu_help.png deleted file mode 100644 index 452b45f6..00000000 Binary files a/resources/Visu_help.png and /dev/null differ diff --git a/resources/Visu_ok.png b/resources/Visu_ok.png deleted file mode 100644 index 8ce1457b..00000000 Binary files a/resources/Visu_ok.png and /dev/null differ diff --git a/resources/Visu_planemanager.png b/resources/Visu_planemanager.png deleted file mode 100644 index 7e8895ea..00000000 Binary files a/resources/Visu_planemanager.png and /dev/null differ diff --git a/resources/Visu_point_selection.png b/resources/Visu_point_selection.png deleted file mode 100644 index bcc92033..00000000 Binary files a/resources/Visu_point_selection.png and /dev/null differ diff --git a/resources/Visu_selection_panel.png b/resources/Visu_selection_panel.png deleted file mode 100644 index 4c95efe1..00000000 Binary files a/resources/Visu_selection_panel.png and /dev/null differ diff --git a/resources/Visu_slider_panel.png b/resources/Visu_slider_panel.png deleted file mode 100644 index 748bb5fe..00000000 Binary files a/resources/Visu_slider_panel.png and /dev/null differ diff --git a/resources/Visu_sweep_panel.png b/resources/Visu_sweep_panel.png deleted file mode 100644 index fbcddc07..00000000 Binary files a/resources/Visu_sweep_panel.png and /dev/null differ diff --git a/src/CONVERTOR/VISU_ElnoMeshValue.hxx b/src/CONVERTOR/VISU_ElnoMeshValue.hxx deleted file mode 100644 index 1e7c32f8..00000000 --- a/src/CONVERTOR/VISU_ElnoMeshValue.hxx +++ /dev/null @@ -1,163 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// File : VISU_ElnoMeshValue.hxx -// Author : Alexey PETROV -// Module : VISU -// -#ifndef VISU_ElnoMeshValue_HeaderFile -#define VISU_ElnoMeshValue_HeaderFile - -#include "VISU_VTKTypeList.hxx" -#include - - -/*! - \file VISU_ElnoMeshValue.hxx - \brief The file contains declarations for the acess to the specific ELNO MED data -*/ - -namespace VISU -{ - //--------------------------------------------------------------- - template< int elno_type > - struct TGetElnoNodeData - { - typedef typename TL::TEnum2VTKArrayType< elno_type >::TResult TVTKDataArray; - typedef typename TL::TEnum2VTKBasicType< elno_type >::TResult TDataType; - TVTKDataArray *myElnoDataArray; - vtkIntArray *myElnoDataMapper; - int myElemInfo[3]; - - - //---------------------------------------------------------------------------- - TGetElnoNodeData( vtkDataArray *theElnoDataArray, - vtkDataArray *theElnoDataMapper ) - : myElnoDataArray( TVTKDataArray::SafeDownCast( theElnoDataArray ) ) - , myElnoDataMapper( vtkIntArray::SafeDownCast( theElnoDataMapper ) ) - {} - - - //---------------------------------------------------------------------------- - TDataType* - operator () ( vtkIdType theCellId, vtkIdType theLocalPntId ) - { - myElnoDataMapper->GetTupleValue( theCellId, myElemInfo ); - - vtkIdType aPos = myElemInfo[ 0 ] + theLocalPntId * myElemInfo[ 1 ]; - - return myElnoDataArray->GetPointer( aPos ); - } - - - //---------------------------------------------------------------------------- - int - getNbComp() - { - myElnoDataMapper->GetTupleValue( 0, myElemInfo ); - - return myElemInfo[ 1 ]; - } - }; - - - //---------------------------------------------------------------------------------------------- - template< int elno_type > - struct TSetElnoNodeData - { - typedef typename TL::TEnum2VTKArrayType< elno_type >::TResult TVTKDataArray; - typedef typename TL::TEnum2VTKBasicType< elno_type >::TResult TDataType; - - //---------------------------------------------------------------------------------------------- - TSetElnoNodeData( vtkIdType theEffectNbComp, - vtkIdType theRealNbComp, - vtkIdType theNbTuples, - const char* theDataArrayName, - const char* theMapperArrayName ) - : myElnoDataArray( TVTKDataArray::New() ) - , myElnoDataMapper( vtkIntArray::New() ) - { - myElnoDataArray->SetNumberOfComponents( theEffectNbComp ); - myElnoDataArray->SetNumberOfTuples( theNbTuples ); - myElnoDataArray->SetName( theDataArrayName ); - - myElnoDataMapper->SetNumberOfComponents( 3 ); - myElnoDataMapper->Allocate( theNbTuples * 3 ); - myElnoDataMapper->SetName( theMapperArrayName ); - - myElemInfo[ 0 ] = 0; - myElemInfo[ 1 ] = theRealNbComp; - myElemInfo[ 2 ] = 0; - } - - - //---------------------------------------------------------------------------------------------- - ~TSetElnoNodeData() - { - myElnoDataArray->Delete(); - myElnoDataMapper->Delete(); - } - - - //---------------------------------------------------------------------------------------------- - int - AddNextPointData( TDataType* theDataPtr ) - { - vtkIdType aPos = myElemInfo[ 0 ] + myElemInfo[ 2 ] * myElemInfo[ 1 ]; - - TDataType* aDataPtr = myElnoDataArray->GetPointer( aPos ); - - for ( vtkIdType aCompId = 0; aCompId < myElemInfo[ 1 ]; aCompId++ ) - *aDataPtr++ = *theDataPtr++; - - return myElemInfo[ 2 ]++; - } - - - //---------------------------------------------------------------------------------------------- - void - InsertNextCellData() - { - myElnoDataMapper->InsertNextTupleValue( myElemInfo ); - myElemInfo[ 0 ] += myElemInfo[ 2 ] * myElemInfo[ 1 ]; - myElemInfo[ 2 ] = 0; - } - - - //---------------------------------------------------------------------------------------------- - void - AddData( vtkDataSetAttributes* theDataSetAttributes ) - { - theDataSetAttributes->AddArray( myElnoDataArray ); - theDataSetAttributes->AddArray( myElnoDataMapper ); - } - - protected: - TVTKDataArray *myElnoDataArray; - vtkIntArray *myElnoDataMapper; - int myElemInfo[ 3 ]; - }; - - - //--------------------------------------------------------------- -} - -#endif diff --git a/src/CONVERTOR/VISU_TableReader.cxx b/src/CONVERTOR/VISU_TableReader.cxx deleted file mode 100644 index 475771ee..00000000 --- a/src/CONVERTOR/VISU_TableReader.cxx +++ /dev/null @@ -1,401 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File: -// Author: -// Module : VISU -// -#include "VISU_TableReader.hxx" - -#include -#include -#include -#include -#include - -#include -#include -#include - -#include -#include -#include -#include -#include - -#include -#include - -#ifdef _DEBUG_ -static int MYDEBUG = 0; -#else -static int MYDEBUG = 0; -#endif - - -//--------------------------------------------------------------- -int -VISU::TTable2D -::Check() -{ - if ( myRows.empty() ) - return 0; - - int iEnd = myRows[0].myValues.size(); - if ( iEnd == 0 ) - return 0; - - if ( myColumnTitles.size() != iEnd ) - myColumnTitles.resize( iEnd ); - - if ( myColumnUnits.size() != iEnd ) - myColumnUnits.resize( iEnd ); - - int jEnd = myRows.size(); - for ( int j = 0; j < jEnd; j++ ) - if ( myRows[j].myValues.size() != iEnd ) - return 0; - - return 1; -} - - -//--------------------------------------------------------------- -void -VISU::TTable2D -::getColumns(VISU::TTable2D& theTable2D) const -{ - TRows& aRows = theTable2D.myRows; - aRows.clear(); - if ( myRows.empty() ) - return; - - int jEnd = myRows.size(); - - //Define Titles & Units - theTable2D.myColumnTitles.resize(jEnd); - theTable2D.myColumnUnits.resize(jEnd); - for ( int j = 0; j < jEnd; j++ ) { - theTable2D.myColumnTitles[j] = myRows[j].myTitle; - theTable2D.myColumnUnits[j] = myRows[j].myUnit; - } - - //Define Rows - int iEnd = myRows[0].myValues.size(); - for ( int i = 0; i < iEnd; i++ ) { - TRow aNewRow; - aNewRow.myTitle = myColumnTitles[i]; - aNewRow.myUnit = myColumnUnits[i]; - aNewRow.myValues.resize(jEnd); - for ( int j = 0; j < jEnd; j++ ) { - aNewRow.myValues[j] = myRows[j].myValues[i]; - } - aRows.push_back(aNewRow); - } -} - - -//--------------------------------------------------------------- -namespace -{ - int getLine( std::ifstream& theStmIn, QString& theString ) - { - char tmp; - std::ostrstream aStrOut; - - while ( theStmIn.get( tmp ) ) { - aStrOut<= 0 ) { - data = aTmp.left( index ).trimmed(); - cmt = aTmp.mid( index+1 ).trimmed(); - } - // if comment is not empty, try to get keyword from it (separated by ':' symbol) - if ( !cmt.isEmpty() ) { - int index1 = cmt.indexOf( ":" ); - if ( index1 >= 0 ) { - QString tmpstr = cmt.left( index1 ).trimmed(); - if ( tmpstr == QString( "TITLE" ) || - tmpstr == QString( "COLUMN_TITLES" ) || - tmpstr == QString( "COLUMN_UNITS" ) || - tmpstr == QString( "COMMENT" ) ) { - keyword = tmpstr; - cmt = cmt.mid( index1+1 ).trimmed(); - } - } - } - // if data is empty, process only comment - if ( data.isEmpty() ) { - // if keyword is found, try to process it - // elsewise it is a simple comment, just ignore it - if ( !keyword.isEmpty() ) { - if ( keyword == QString( "TITLE" ) ) { - QString title = cmt; - if ( aTable2D.myTitle != "" ) - title = QString( aTable2D.myTitle.c_str() ) + QString( " " ) + title; - if(MYDEBUG) std::cout << "...Table TITLE is: " << title.toLatin1().constData() << std::endl; - aTable2D.myTitle = title.toLatin1().constData(); - } - else if ( keyword == QString( "COLUMN_TITLES" ) ) { - // comment may contain column headers - QStringList aStrList = cmt.split( "|", QString::SkipEmptyParts ); - if(MYDEBUG) std::cout << "...Column TITLES are: "; - for ( int i = 0; i < aStrList.count(); i++ ) { - QString tmpstr = aStrList[ i ].trimmed(); - if(MYDEBUG) std::cout << tmpstr.toLatin1().constData() << " "; - aTable2D.myColumnTitles.push_back( tmpstr.toLatin1().constData() ); - } - if(MYDEBUG) std::cout << std::endl; - } - else if ( keyword == QString( "COLUMN_UNITS" ) ) { - // comment may contain column units - QStringList aStrList = cmt.split( " ", QString::SkipEmptyParts ); - if(MYDEBUG) std::cout << "...Column UNITS are: "; - for ( int i = 0; i < aStrList.count(); i++ ) { - QString tmpstr = aStrList[ i ].trimmed(); - if(MYDEBUG) std::cout << tmpstr.toLatin1().constData() << " "; - aTable2D.myColumnUnits.push_back( tmpstr.toLatin1().constData() ); - } - if(MYDEBUG) std::cout << std::endl; - } - else if ( keyword == QString( "COMMENT" ) ) { - // keyword 'COMMENT' processing can be here - // currently it is ignored - if(MYDEBUG) std::cout << "...COMMENT: " << cmt.toLatin1().constData() << std::endl; - } - } - else { - if(MYDEBUG) std::cout << "...comment: " << cmt.toLatin1().constData() << std::endl; - // simple comment processing can be here - // currently it is ignored - } - } - // if data is not empty, try to process it - else { - TTable2D::TRow aRow; - if(MYDEBUG) std::cout << "...New row is found: " << std::endl; - if ( !cmt.isEmpty() ) { - aRow.myTitle = cmt.toLatin1().constData(); - if(MYDEBUG) std::cout << "......ROW TITLE is: " << cmt.toLatin1().constData() << std::endl; - } - QString datar1 = data.replace(QRegExp("\t"), " "); - QStringList aValList = datar1.split( " ", QString::SkipEmptyParts ); - for ( int i = 0; i < aValList.count(); i++ ) { - if ( aValList[i].trimmed() != "" ) { - TTable2D::TValue aVal = aValList[i].trimmed().toLatin1().constData(); - aRow.myValues.push_back( aVal ); - } - } - if( aRow.myValues.size() > 0 ) - aTable2D.myRows.push_back( aRow ); - // ************** OLD CODE ****************** - /* - TValue aVal; - istrstream aStream( data ); - aStream.precision( STRPRECISION ); - while( aStream >> aVal ) { - aRow.myValues.push_back( aVal ); - } - if( aRow.myValues.size() > 0 ) - aTable2D.myRows.push_back( aRow ); - */ - // ************** OLD CODE ****************** - } - ::getLine( aStmIn, aTmp ); - } - if( aTable2D.Check() ) { - if(MYDEBUG) std::cout << "aTable2D is checked OK " << aTable2D.myTitle << std::endl; - theContainer.push_back( aTableIDMapper ); - } - } while ( !aStmIn.eof() ); - aStmIn.close(); - - if(MYDEBUG) std::cout << "After close" << std::endl; -} - - -//--------------------------------------------------------------- -VISU::TTableIDMapper -::TTableIDMapper(): - myOutput( vtkPolyData::New() ), - myXAxisPosition( -1 ) -{} - -VISU::TTableIDMapper -::~TTableIDMapper() -{ - myOutput->Delete(); -} - -vtkPolyData* -VISU::TTableIDMapper -::GetPolyDataOutput() -{ - if ( myXAxisPosition == -1 ) - SetXAxisPosition( 0 ); - - return myOutput; -} - -long unsigned int -VISU::TTableIDMapper -::GetMemorySize() -{ - return myOutput->GetActualMemorySize() * 1024; -} - -void -VISU::TTableIDMapper -::SetXAxisPosition( vtkIdType theAxisPosition ) -{ - if ( myXAxisPosition == theAxisPosition || !Check() ) - return; - - myOutput->Initialize(); - - if ( !Check() ) - return; - - TTable2D aTable2D; - getColumns( aTable2D ); - - vtkIdType aXSize = aTable2D.myRows[0].myValues.size(); - - // It is necessary to decrease the size at 1 take intoa account X axis - vtkIdType anYSize = aTable2D.myRows.size() - 1; - - vtkIdType aNbPoints = aXSize * anYSize; - - std::vector anXAxis(aXSize); - const TTable2D::TValues& aValues = aTable2D.myRows[theAxisPosition].myValues; - for ( vtkIdType aX = 0; aX < aXSize; aX++ ) - anXAxis[aX] = atof( aValues[aX].c_str() ); - - double aXRange = anXAxis[aXSize - 1] - anXAxis[0]; - double anYDelta = aXRange / anYSize; - std::vector anYAxis(anYSize); - for ( vtkIdType anY = 0; anY < anYSize; anY++ ) - anYAxis[anY] = anY * anYDelta; - - vtkPoints* aPoints = vtkPoints::New(); - aPoints->SetNumberOfPoints( aNbPoints ); - - vtkIntArray *aPointsIDMapper = vtkIntArray::New(); - aPointsIDMapper->SetName("VISU_POINTS_MAPPER"); - aPointsIDMapper->SetNumberOfComponents(2); - aPointsIDMapper->SetNumberOfTuples(aNbPoints); - int *aPointsIDMapperPtr = aPointsIDMapper->GetPointer(0); - - //vtkIntArray *aCellIDMapper = vtkIntArray::New(); - //aCellIDMapper->SetName("VISU_POINTS_MAPPER"); - //aCellIDMapper->SetNumberOfComponents(2); - //aCellIDMapper->SetNumberOfTuples(aNbPoints); - //int *aCellIDMapperPtr = aCellIDMapper->GetPointer(0); - - for ( vtkIdType aY = 0, aPntId = 0; aY < anYSize; aY++ ) { - for ( vtkIdType aX = 0; aX < aXSize; aX++, aPntId++ ) { - aPoints->SetPoint( aPntId, anXAxis[aX], anYAxis[aY], 0.0 ); - - *aPointsIDMapperPtr++ = aPntId; - *aPointsIDMapperPtr++ = 0; - - //*aCellIDMapperPtr++ = aPntId; - //*aCellIDMapperPtr++ = 0; - } - } - - std::vector anYData; - for ( vtkIdType anY = 0; anY < anYSize + 1; anY++ ) { - if ( anY == theAxisPosition ) - continue; - anYData.push_back( aTable2D.myRows[anY].myValues ); - } - - vtkDoubleArray* aScalars = vtkDoubleArray::New(); - aScalars->SetNumberOfComponents( 1 ); - aScalars->SetNumberOfTuples( aNbPoints ); - double *aScalarsPtr = aScalars->GetPointer(0); - for ( vtkIdType anY = 0; anY < anYSize; anY++ ) { - const TTable2D::TValues& aValues = anYData[anY]; - for ( vtkIdType aX = 0; aX < aXSize; aX++ ) { - double aValue = atof( aValues[aX].c_str() ); - *aScalarsPtr++ = aValue; - } - } - - vtkStructuredGrid* aStructuredGrid = vtkStructuredGrid::New(); - aStructuredGrid->SetPoints( aPoints ); - aPoints->Delete(); - - aStructuredGrid->SetDimensions( aXSize, anYSize, 1 ); - - aStructuredGrid->GetPointData()->AddArray( aPointsIDMapper ); - aPointsIDMapper->Delete(); - - //aStructuredGrid->GetCellData()->AddArray( aCellIDMapper ); - //aCellIDMapper->Delete(); - - aStructuredGrid->GetPointData()->SetScalars( aScalars ); - aScalars->Delete(); - - vtkStructuredGridGeometryFilter* aFilter = vtkStructuredGridGeometryFilter::New(); - aFilter->SetInput( aStructuredGrid ); - aFilter->Update(); - myOutput->ShallowCopy( aFilter->GetOutput() ); - aFilter->Delete(); -} diff --git a/src/CONVERTOR/VISU_TableReader.hxx b/src/CONVERTOR/VISU_TableReader.hxx deleted file mode 100644 index d01d916d..00000000 --- a/src/CONVERTOR/VISU_TableReader.hxx +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU CONVERTOR : -// File : VISU_TableReader.hxx -// Author : Alexey PETROV -// Module : VISU -// -#ifndef VISU_TableReader_HeaderFile -#define VISU_TableReader_HeaderFile - -/*! - \file VISU_TableReader.hxx - \brief The file contains definition of the Table reading functionlity -*/ - -#include "VISUConvertor.hxx" - -#include "VISU_IDMapper.hxx" - -#include -#include - -namespace VISU -{ - //--------------------------------------------------------------- - struct VISU_CONVERTOR_EXPORT TTable2D - { - typedef std::string TValue; - typedef std::vector TValues; - - struct TRow - { - std::string myTitle; - std::string myUnit; - TValues myValues; - }; - - std::string myTitle; - std::vector myColumnUnits; - std::vector myColumnTitles; - - typedef std::vector TRows; - TRows myRows; - - int - Check(); - - void - getColumns( TTable2D& theTable2D ) const; - }; - - - //--------------------------------------------------------------- - class VISU_CONVERTOR_EXPORT TTableIDMapper: - public virtual TPolyDataIDMapper, - public virtual TTable2D - { - public: - TTableIDMapper(); - ~TTableIDMapper(); - - virtual - vtkPolyData* - GetPolyDataOutput(); - - virtual - long unsigned int - GetMemorySize(); - - void - SetXAxisPosition( vtkIdType theAxisPosition ); - - vtkIdType - GetXAxisPosition(); - - protected: - vtkIdType myXAxisPosition; - vtkPolyData* myOutput; - }; - typedef MED::SharedPtr PTableIDMapper; - - - //--------------------------------------------------------------- - typedef std::vector TTableContainer; - VISU_CONVERTOR_EXPORT - void ImportTables( const char* theFileName, TTableContainer& theContainer ); - - - //--------------------------------------------------------------- -} - -#endif diff --git a/src/CONVERTOR/VISU_VTKTypeList.hxx b/src/CONVERTOR/VISU_VTKTypeList.hxx deleted file mode 100644 index b76d7797..00000000 --- a/src/CONVERTOR/VISU_VTKTypeList.hxx +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File : VISU_VTKTypeList.hxx -// Author : Oleg UVAROV -// Module : VISU -// -#ifndef VISU_VTKTypeList_HeaderFile -#define VISU_VTKTypeList_HeaderFile - -#include "VISU_TypeList.hxx" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -//---------------------------------------------------------------------------- -namespace VISU -{ - //---------------------------------------------------------------------------- - namespace TL - { - //---------------------------------------------------------------------------- - typedef TSequence< char, - unsigned char, - short, - unsigned short, - int, - unsigned int, - long, - unsigned long, - float, - double >::TResult TVTKBasicTypeList; - - - //---------------------------------------------------------------------------- - typedef TSequence< vtkCharArray, - vtkUnsignedCharArray, - vtkShortArray, - vtkUnsignedShortArray, - vtkIntArray, - vtkUnsignedIntArray, - vtkLongArray, - vtkUnsignedLongArray, - vtkFloatArray, - vtkDoubleArray >::TResult TVTKArrayTypeList; - - - //---------------------------------------------------------------------------- - typedef TSequence< TInt2Type< VTK_CHAR >, - TInt2Type< VTK_UNSIGNED_CHAR >, - TInt2Type< VTK_SHORT >, - TInt2Type< VTK_UNSIGNED_SHORT >, - TInt2Type< VTK_INT >, - TInt2Type< VTK_UNSIGNED_INT >, - TInt2Type< VTK_LONG >, - TInt2Type< VTK_UNSIGNED_LONG >, - TInt2Type< VTK_FLOAT >, - TInt2Type< VTK_DOUBLE > >::TResult TVTKBasicEnumList; - - - //---------------------------------------------------------------------------- - template< unsigned int type_enum > - struct TEnum2VTKBasicType - { - typedef typename TTypeAt< TVTKBasicTypeList, TIndexOf< TVTKBasicEnumList, TInt2Type< type_enum > >::value >::TResult TResult; - }; - - - //---------------------------------------------------------------------------- - template< unsigned int type_enum > - struct TEnum2VTKArrayType - { - typedef typename TTypeAt< TVTKArrayTypeList, TIndexOf< TVTKBasicEnumList, TInt2Type< type_enum > >::value >::TResult TResult; - }; - - - //---------------------------------------------------------------------------- - template< class T > - struct TVTKBasicType2Enum - { - typedef typename TTypeAt< TVTKBasicEnumList, TIndexOf< TVTKBasicTypeList, T >::value >::TResult TResult; - }; - - - //---------------------------------------------------------------------------- - } - - - //---------------------------------------------------------------------------- -} - -#endif diff --git a/src/CONVERTOR/VISU_Vtk2MedConvertor.cxx b/src/CONVERTOR/VISU_Vtk2MedConvertor.cxx deleted file mode 100644 index f50d10e3..00000000 --- a/src/CONVERTOR/VISU_Vtk2MedConvertor.cxx +++ /dev/null @@ -1,1332 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// File : VISU_Vtk2MedConvertor.cxx -// Author : Eugeny NIKOLAEV, Open CASCADE SAS -// - -#include "VISU_Vtk2MedConvertor.hxx" - -// QT includes -#include -#include -#include - -// VTK includes -#include -#include - -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include - -// MED Warpper includes -#include "MED_Factory.hxx" - -// STL includes -#include -#include -#include -#include -#include -#include -//#include - -#ifdef _DEBUG_ -static int MYDEBUG = 0; -static int MYDEBUG_VALUES = 0; -#else -static int MYDEBUG = 0; -static int MYDEBUG_VALUES = 0; -#endif - -using namespace std; - -/* -# = dynamic_cast( );define VTK_EMPTY_CELL 0 -#define VTK_VERTEX 1 -#define VTK_POLY_VERTEX 2 -#define VTK_LINE 3 -#define VTK_POLY_LINE 4 -#define VTK_TRIANGLE 5 -#define VTK_TRIANGLE_STRIP 6 -#define VTK_POLYGON 7 -#define VTK_PIXEL 8 -#define VTK_QUAD 9 -#define VTK_TETRA 10 -#define VTK_VOXEL 11 -#define VTK_HEXAHEDRON 12 -#define VTK_WEDGE 13 -#define VTK_PYRAMID 14 -#define VTK_QUADRATIC_EDGE 21 -#define VTK_QUADRATIC_TRiTSIANGLE 22 -#define VTK_QUADRATIC_QUAD 23 -#define VTK_QUADRATIC_TETRA 24 -#define VTK_QUADRATIC_HEXAHEDRON 25 -#define VTK_CONVEX_POINT_SET 41 -#define VTK_PARAMETRIC_CURVE 51 -#define VTK_PARAMETRIC_SURFACE 52 -#define VTK_PARAMETRIC_TRI_SURFACE 53 -#define VTK_PARAMETRIC_QUAD_SURFACE 54 -#define VTK_PARAMETRIC_TETRA_REGION 55 -#define VTK_PARAMETRIC_HEX_REGION 56 -*/ - -static MED::EGeometrieElement VTK2MED( const int theGeom ) -{ - // Ignoring vtk types: - // VTK_PIXEL, - // VTK_VERTEX, - // VTK_POLY_VERTEX - // VTK_VOXEL - // VTK_POLY_LINE - // VTK_TRIANGLE_STRIP - // VTK_PARAMETRIC_CURVE - // VTK_PARAMETRIC_SURFACE - // VTK_PARAMETRIC_TRI_SURFACE - // VTK_PARAMETRIC_QUAD_SURFACE - // VTK_PARAMETRIC_TETRA_REGION - // VTK_PARAMETRIC_HEX_REGION - - MED::EGeometrieElement aEmptyGeom = MED::EGeometrieElement(-1); - switch(theGeom){ - case VTK_LINE: return MED::eSEG2; - case VTK_TRIANGLE: return MED::eTRIA3; - case VTK_POLYGON: return MED::ePOLYGONE; - case VTK_QUAD: return MED::eQUAD4; - case VTK_TETRA: return MED::eTETRA4; - case VTK_HEXAHEDRON: return MED::eHEXA8; - case VTK_WEDGE: return MED::ePENTA6; - case VTK_PYRAMID: return MED::ePYRA5; - // QUADRATIC elements - case VTK_QUADRATIC_EDGE: return MED::eSEG3; - case VTK_QUADRATIC_TRIANGLE: return MED::eTRIA6; - case VTK_QUADRATIC_QUAD: return MED::eQUAD8; - case VTK_QUADRATIC_TETRA: return MED::eTETRA10; - case VTK_QUADRATIC_HEXAHEDRON:return MED::eHEXA20; - case VTK_CONVEX_POINT_SET: return MED::ePOLYEDRE; - } - - return aEmptyGeom; -} - -/*! - \class VISU_Vtk2MedConvertor - \brief The general main of the class VISU_Vtk2MedConvertor is converting from - one or several VTK files to the one MED file... - - The VISU_Vtk2MedConvertor interface allows us to create the MED file according - to VTK files in next ways: - - Extract geometry and fields from one VTK file. - - Extract geometry and fields from first VTK file and fields from others - VTK files (geometry ignoring). Also the fields which have same names join into - corresponding fields with different time stamp -*/ - -/*! - \brief Constructor - - Sets default output mesh name - - Sets default version of output MED file. - - Sets default ignoring fields list - - Sets default points and cells ids mapping field names. - -*/ -VISU_Vtk2MedConvertor -::VISU_Vtk2MedConvertor(): - myVersion(MED::eV2_2), - myMeshName("vtk2med") -{ - myIgnoringFieldList.insert("VISU_POINTS_MAPPER"); - myIgnoringFieldList.insert("VISU_CELLS_MAPPER"); - myIgnoringFieldList.insert("VISU_FIELD"); - setCellDataFieldNameIDS("VISU_CELLS_MAPPER"); - setPointDataFieldNameIDS("VISU_POINTS_MAPPER"); -} - -/*! - \brief Constructor - - Sets default output mesh name - - Sets default version of output MED file. - - Sets default ignoring fields list - - Sets default points and cells ids mapping field names. - - \param theMEDFileName output med file name - \param theFirstVTKFileName first vtk file name -*/ -VISU_Vtk2MedConvertor -::VISU_Vtk2MedConvertor(const string theMEDFileName, - const string theFirstVTKFileName): - myVersion(MED::eV2_2), - myMeshName("vtk2med") -{ - myMEDFileName = theMEDFileName; - myFirstVTKFileName = theFirstVTKFileName; - myIgnoringFieldList.insert("VISU_POINTS_MAPPER"); - myIgnoringFieldList.insert("VISU_CELLS_MAPPER"); - myIgnoringFieldList.insert("VISU_FIELD"); - setCellDataFieldNameIDS("VISU_CELLS_MAPPER"); - setPointDataFieldNameIDS("VISU_POINTS_MAPPER"); -} - -/*! - \brief Constructor - - Sets default output mesh name - - Sets default version of output MED file. - - Sets default ignoring fields list - - Sets default points and cells ids mapping field names. - - \param theMEDFileName output med file name - \param theFirstVTKFileName first vtk file name - \param theDataVTKFileNames of vtk file names, which will be using as values on points and cells -*/ -VISU_Vtk2MedConvertor -::VISU_Vtk2MedConvertor(const string theMEDFileName, - const string theFirstVTKFileName, - const TVectorString theDataVTKFileNames): - myVersion(MED::eV2_2), - myMeshName("vtk2med") -{ - myMEDFileName = theMEDFileName; - myFirstVTKFileName = theFirstVTKFileName; - myDataVTKFileNames = theDataVTKFileNames; - myIgnoringFieldList.insert("VISU_POINTS_MAPPER"); - myIgnoringFieldList.insert("VISU_CELLS_MAPPER"); - myIgnoringFieldList.insert("VISU_FIELD"); - setMeshName("vtk2med"); - setCellDataFieldNameIDS("VISU_CELLS_MAPPER"); - setPointDataFieldNameIDS("VISU_POINTS_MAPPER"); -} - -/*! - \brief Adds field names, which used as specific fields with ids or elements - (or something else). (Default: “VISU_CELLS_MAPPER”,”VISU_POINTS_MAPPER”,”VISU_FILED”) - \param theFieldName field name - \sa eraseFromIgnoringFieldList() -*/ -void -VISU_Vtk2MedConvertor -::addToIgnoringFieldList( const string& theFieldName ) -{ - myIgnoringFieldList.insert(theFieldName); -} - -/*! - \brief Sets the output MED file name - \param theFileName file name - \sa getMEDFileName() -*/ -void -VISU_Vtk2MedConvertor -::setMEDFileName( const string theFileName ) -{ - myMEDFileName=theFileName; -}; - -/*! - \brief Gets the output MED file name - \return output MED file name - \sa setMEDFileName() -*/ -string -VISU_Vtk2MedConvertor -::getMEDFileName() const -{ - return myMEDFileName; -} - -/*! - \brief Sets the first input vtk file name - \param theFileName file name - \sa getFirstVTKFileName() -*/ -void -VISU_Vtk2MedConvertor -::setFirstVTKFileName( const string theFileName ) -{ - myFirstVTKFileName=theFileName; -}; - -/*! - \brief Fets the first input vtk file name - \return first input vtk file name - \sa setFirstVTKFileName() -*/ -string -VISU_Vtk2MedConvertor -::getFirstVTKFileName() const -{ - return myFirstVTKFileName; -} - -/*! - \brief Sets list of vtk file names, which will be using as values on points and cells - \param theFileNames list of vtk file names - \sa getDataVTKFileNames() -*/ -void -VISU_Vtk2MedConvertor -::setDataVTKFileNames( const TVectorString theFileNames ) -{ - myDataVTKFileNames = theFileNames; -}; - -/*! - \brief Gets list of vtk file names, which will be using as values on points and cells - \param theFileNames out list of vtk file names - \sa setDataVTKFileNames() -*/ -void -VISU_Vtk2MedConvertor -::getDataVTKFileNames( TVectorString& theDataVTKFileNames ) const -{ - theDataVTKFileNames = myDataVTKFileNames; -}; - -/*! - \brief Sets version of the output MED file MED::V2_2(is default) or MED::V2_1 - \param theVersion version of the output MED file -*/ -void -VISU_Vtk2MedConvertor -::setVersion( const MED::EVersion theVersion ) -{ - myVersion = theVersion; -} - -/*! - \brief Gets version of the output MED file MED::V2_2(is default) or MED::V2_1 - \return version of the output MED file -*/ -MED::EVersion -VISU_Vtk2MedConvertor -::getVersion() const -{ - return myVersion; -} - -/*! - \brief Sets output mesh name. (“vtk2med” - default) - \param theMeshName mesh name - \sa getMeshName() -*/ -void -VISU_Vtk2MedConvertor -::setMeshName( const string theMeshName ) -{ - myMeshName = theMeshName; -} - -/*! - \brief Gets output mesh name. (“vtk2med” - default) - \return mesh name - \sa setMeshName() -*/ -string -VISU_Vtk2MedConvertor -::getMeshName() const -{ - return myMeshName; -} - -/*! - \brief Sets field name with cell ids (Default - VISU_CELLS_MAPPER) - \param theFieldName field name - \sa getCellDataFieldNameIDS -*/ -void -VISU_Vtk2MedConvertor -::setCellDataFieldNameIDS( const string& theFieldName ) -{ - myCellDataFieldNameIDS = theFieldName; -} - -/*! - \brief Gets field name with cell ids (Default - VISU_CELLS_MAPPER) - \return field name - \sa setCellDataFieldNameIDS() -*/ -const string& -VISU_Vtk2MedConvertor -::getCellDataFieldNameIDS() const -{ - return myCellDataFieldNameIDS; -} - -/*! - \brief Erases field names which used as specific fields with ids or elements - (or something else) - \param theFieldName field name - \sa addToIgnoringFieldList() -*/ -void -VISU_Vtk2MedConvertor -::eraseFromIgnoringFieldList(const string& theFieldName) -{ - myIgnoringFieldList.erase(theFieldName); -} - -/*! - \brief Gets list of field names which used as specific fields with ids or elements - \return list of field names -*/ -const std::set& -VISU_Vtk2MedConvertor -::getIgnoringFieldList() const -{ - return myIgnoringFieldList; -} - -/*! - \brief Sets field name with point ids - \param theFieldName field name - \sa getPointDataFieldNameIDS() -*/ -void -VISU_Vtk2MedConvertor -::setPointDataFieldNameIDS( const string& theFieldName ) -{ - myPointDataFieldNameIDS = theFieldName; -} - -/*! - \brief Gets field name with point ids - \return field name - \sa setPointDataFieldNameIDS() -*/ -const string& -VISU_Vtk2MedConvertor -::getPointDataFieldNameIDS() const -{ - return myPointDataFieldNameIDS; -} - -/*! - \brief Sets values of time stamps If this array is not specified values of time - stamps are generated automatically ( 0, 1, 2 ... ) - \param theTStamps vector of time stamps - \sa getTimeStamps() -*/ -void -VISU_Vtk2MedConvertor -::setTimeStamps( const TVectorDouble& theTStamps ) -{ - myTStamps = theTStamps; -} - -/*! - \brief Gets values of time stamps If this array is not specified values of time - stamps are generated automatically ( 0, 1, 2 ... ) - \param theTStamps out vector of time stamps - \sa setTimeStamps() -*/ -void -VISU_Vtk2MedConvertor -::getTimeStamps( TVectorDouble& theTStamps ) const -{ - theTStamps = myTStamps; -} - -/*! - \brief Retrieves identifiers of cells from input data set corresponding to given type - \param theInput input data set - \param type type - \param array out array -*/ -void -VISU_Vtk2MedConvertor -::GetIdsOfCellsOfType(vtkDataSet* theInput, - const int type, - vtkIntArray *array) -{ - for (int cellId = 0; cellId < theInput->GetNumberOfCells(); cellId++) - if (theInput->GetCellType(cellId) == type) - array->InsertNextValue(cellId); -} - -/*! - \brief Creates elements (private auxiliary method) - \return 0 if operation has been completed successfully, 1 otherwise -*/ -int -VISU_Vtk2MedConvertor -::CreateElements(vtkDataSet* theInput, - MED::PMeshInfo theMeshInfo, - MED::PWrapper theMed, - vtkIntArray* theCellsMapper, - MED::EEntiteMaillage theEntity, - int theVTKGeom, - int nbPointsInGeom, - std::vector& theNumberingConvertor, - TGeom2CellIds& theGeom2CellIdMap) -{ - bool aIdsConvert = (theNumberingConvertor.size() > 0); - vtkIntArray* aCellIds = vtkIntArray::New(); - const MED::EConnectivite aConnType = MED::eNOD; - - MED::TIntVector aConn; - MED::TIntVector aFamilyNums;// -1 - MED::TIntVector aElemNums; - - this->GetIdsOfCellsOfType(theInput,theVTKGeom,aCellIds); - int nbElems = aCellIds->GetNumberOfTuples(); - if(MYDEBUG) cout << "\tnbElems in geom:"<0){ - TCellIds& aCellIdsMapper = theGeom2CellIdMap[VTK2MED(theVTKGeom)]; - int* aPointer = aCellIds->GetPointer(0); - for(int i=0;iGetCell(aCellId); - int nbPointsInCell = aCell->GetNumberOfPoints(); - if(nbPointsInCell!=nbPointsInGeom){ - cout << "Error in file=|" << __FILE__<<"| line:[" << __LINE__ << "]" << endl; - cout << "Must be "<Delete(); - return 1; // exit - } - aFamilyNums.push_back(-1); - for(int j=0;jGetPointId(theNumberingConvertor[j])+1); - else - aConn.push_back(aCell->GetPointId(j)+1); - } - if(theCellsMapper){ - if(theCellsMapper->GetNumberOfComponents()==2) - aElemNums.push_back(*theCellsMapper->GetPointer(aCellId*2)); - else if(theCellsMapper->GetNumberOfComponents()==1) - aElemNums.push_back(*theCellsMapper->GetPointer(aCellId)); - } - } - - - MED::PCellInfo aCellInfo = theMed->CrCellInfo(theMeshInfo, - theEntity, - VTK2MED(theVTKGeom), - aConn, - aConnType, - aFamilyNums, - aElemNums); - theMed->SetCellInfo(aCellInfo); - } - - aCellIds->Delete(); - - return 0; -} - -/*! - \brief Creates polygons (private auxiliary method) - \return 0 if operation has been completed successfully, 1 otherwise -*/ -int -VISU_Vtk2MedConvertor -::CreatePolygons(vtkDataSet* theInput, - MED::PMeshInfo theMeshInfo, - MED::PWrapper theMed, - vtkIntArray* theCellsMapper, - MED::EEntiteMaillage theEntity, - TGeom2CellIds& theGeom2CellIdMap) -{ - int theVTKGeom = VTK_POLYGON; - vtkIntArray* aCellIds = vtkIntArray::New(); - const MED::EConnectivite aConnType = MED::eNOD; - - MED::TIntVector aConn; - MED::TIntVector aFamilyNums;// -1 - MED::TIntVector aElemNums; - MED::TIntVector aPolygoneInds; - aPolygoneInds.push_back(1); // reference on the first element in the connectivities - - this->GetIdsOfCellsOfType(theInput,theVTKGeom,aCellIds); - int nbElems = aCellIds->GetNumberOfTuples(); - if(MYDEBUG) cout << "\tnbElems in geom:"<0){ - TCellIds& aCellIdsMapper = theGeom2CellIdMap[VTK2MED(theVTKGeom)]; - int* aPointer = aCellIds->GetPointer(0); - for(int i=0;iGetCell(aCellId); - int nbPointsInCell = aCell->GetNumberOfPoints(); - aFamilyNums.push_back(-1); - int aPrevPos = aPolygoneInds.back(); - aPolygoneInds.push_back(aPrevPos+nbPointsInCell); - for(int j=0;jGetPointId(j)+1); - if(theCellsMapper){ - if(theCellsMapper->GetNumberOfComponents()==2) - aElemNums.push_back(*theCellsMapper->GetPointer(aCellId*2)); - else if(theCellsMapper->GetNumberOfComponents()==1) - aElemNums.push_back(*theCellsMapper->GetPointer(aCellId)); - } - } - - - MED::PPolygoneInfo aCellInfo = theMed->CrPolygoneInfo(theMeshInfo, - theEntity, - VTK2MED(theVTKGeom), - aPolygoneInds, - aConn, - aConnType, - aFamilyNums, - aElemNums); - theMed->SetPolygoneInfo(aCellInfo); - } - - aCellIds->Delete(); - - return 0; -} - -/*! - \brief Creates polyedres (private auxiliary method) - \return 0 if operation has been completed successfully, 1 otherwise -*/ -int -VISU_Vtk2MedConvertor -::CreatePolyedres(vtkDataSet* theInput, - MED::PMeshInfo theMeshInfo, - MED::PWrapper theMed, - vtkIntArray* theCellsMapper, - MED::EEntiteMaillage theEntity, - TGeom2CellIds& theGeom2CellIdMap) -{ - int theVTKGeom = VTK_CONVEX_POINT_SET; - vtkIntArray* aCellIds = vtkIntArray::New(); - const MED::EConnectivite aConnType = MED::eNOD; - - MED::TIntVector aConn; - MED::TIntVector aFamilyNums;// -1 - MED::TIntVector aElemNums; - MED::TIntVector aPolyedreInds; - MED::TIntVector aPolyedreFaces; - - aPolyedreInds.push_back(1); // reference on the first element in the connectivities - aPolyedreFaces.push_back(1); - - this->GetIdsOfCellsOfType(theInput,theVTKGeom,aCellIds); - int nbElems = aCellIds->GetNumberOfTuples(); - if(MYDEBUG) cout << "\tnbElems in geom:"<0){ - TCellIds& aCellIdsMapper = theGeom2CellIdMap[VTK2MED(theVTKGeom)]; - int* aPointer = aCellIds->GetPointer(0); - for(int i=0;iGetCell(aCellId); - int nbPointsInCell = aCell->GetNumberOfPoints(); - for(int j=0;jGetPointId(j)+1); - int aPrevPos = aPolyedreFaces.back(); - aPolyedreFaces.push_back(aPrevPos + nbPointsInCell); - aPrevPos = aPolyedreInds.back(); - aPolyedreInds.push_back(aPrevPos + 1/*aNbFaces*/); - aFamilyNums.push_back(-1); - - if(theCellsMapper){ - if(theCellsMapper->GetNumberOfComponents()==2) - aElemNums.push_back(*theCellsMapper->GetPointer(aCellId*2)); - else if(theCellsMapper->GetNumberOfComponents()==1) - aElemNums.push_back(*theCellsMapper->GetPointer(aCellId)); - } - } - - - MED::PPolyedreInfo aCellInfo = theMed->CrPolyedreInfo(theMeshInfo, - theEntity, - VTK2MED(theVTKGeom), - aPolyedreInds, - aPolyedreFaces, - aConn, - aConnType, - aFamilyNums, - aElemNums); - theMed->SetPolyedreInfo(aCellInfo); - } - - aCellIds->Delete(); - - return 0; -} - -/*! - \brief Converts geometry to med (private auxiliary method) - \return 0 if operation has been completed successfully, 1 otherwise -*/ -int -VISU_Vtk2MedConvertor -::Geometry2MED(vtkDataSet* aInput, - MED::PWrapper myMed, - MED::PMeshInfo aMeshInfo, - TGeom2CellIds& outGeom2CellIdMap) -{ - int aNbNodes = aInput->GetNumberOfPoints(); - int aMeshDimension = aMeshInfo->GetDim(); - // ----------------------- NODES ------------------------- - vtkIntArray* aPointsMapper; - if(aInput->GetPointData()) - aPointsMapper = dynamic_cast(aInput->GetPointData()->GetArray(myPointDataFieldNameIDS.c_str())); - - MED::TFloatVector aCoordinates(aNbNodes*aMeshDimension); - MED::TIntVector anElemNumsNodes; // takes from VISU_POINTS_MAPPER array - MED::TIntVector aFamilyNumsNodes; - MED::TStringVector aCoordNamesNodes; - MED::TStringVector aCoordUnitsNodes; - - vtkFloatingPointType aPntCoord[3]; - if(aPointsMapper){ - int nbComp = aPointsMapper->GetNumberOfComponents(); - int *aPointsMapperPtr = aPointsMapper->GetPointer(0); - for(int i=0;iGetPoint(i,aPntCoord); - aCoordinates[i*3] = aPntCoord[0]; - aCoordinates[i*3+1] = aPntCoord[1]; - aCoordinates[i*3+2] = aPntCoord[2]; - if(nbComp == 2){ - anElemNumsNodes.push_back(*aPointsMapperPtr); - aPointsMapperPtr++;aPointsMapperPtr++; - } - else if (nbComp == 1){ - anElemNumsNodes.push_back(*aPointsMapperPtr); - aPointsMapperPtr++; - } - else{ - cout << "Error in file=|" << __FILE__<<"| line:[" << __LINE__ << "]" << endl; - cout << "Code must be adapted for more than 2 components array |VISU_POINTS_MAPPER|" << endl; - return 1; - } - - } - } else { - for(int i=0;iGetPoint(i,aPntCoord); - aCoordinates[i*3] = aPntCoord[0]; - aCoordinates[i*3+1] = aPntCoord[1]; - aCoordinates[i*3+2] = aPntCoord[2]; - } - } - - - MED::PNodeInfo aNodeInfo = myMed->CrNodeInfo(aMeshInfo, - aCoordinates, - MED::eFULL_INTERLACE, - MED::eCART, - aCoordNamesNodes, - aCoordUnitsNodes, - aFamilyNumsNodes, - anElemNumsNodes); - myMed->SetNodeInfo(aNodeInfo); - - vtkIntArray* aCellsMapper; - if(vtkCellData* aCD = aInput->GetCellData()) - aCellsMapper = dynamic_cast(aCD->GetArray(myCellDataFieldNameIDS.c_str())); - - if(MYDEBUG) - { - // debug info - // print all cell types in the input - vtkCellTypes* aCellTypes = vtkCellTypes::New(); - aInput->GetCellTypes(aCellTypes); - cout << "Cell types in the input data:"<GetNumberOfTypes();aNbCellType++) - cout << (int)(aCellTypes->GetCellType(aNbCellType)) << endl; - aCellTypes->Delete(); - } - - //---------------------- - // Entity EDGES (eARETE) - //---------------------- - vector aNumberingConvertor; - { - // aVTKGeom->eSEG2 - MED::EEntiteMaillage aEntity = MED::eMAILLE;//eARETE; - int aVTKGeom = 0; - int nbPointsInGeom = 0; - - // aNumberingConvertor NULL - OK - aVTKGeom = VTK_LINE; - nbPointsInGeom = 2; - CreateElements(aInput, - aMeshInfo, - myMed, - aCellsMapper, - aEntity, - aVTKGeom, - nbPointsInGeom, - aNumberingConvertor, - outGeom2CellIdMap); - - // aNumberingConvertor NULL - OK - // debug info: checked - OK - aVTKGeom = VTK_QUADRATIC_EDGE; - nbPointsInGeom = 3; - CreateElements(aInput, - aMeshInfo, - myMed, - aCellsMapper, - aEntity, - aVTKGeom, - nbPointsInGeom, - aNumberingConvertor, - outGeom2CellIdMap); - - } - //---------------------------- - // Entity FACES (eFACE) - // eTRIA3,eQUAD4,eTRIA6,eQUAD8 - // ePOLYGONE - //---------------------------- - { - - MED::EEntiteMaillage aEntity = MED::eMAILLE;//MED::eFACE; - int aVTKGeom = 0; - int nbPointsInGeom = 0; - - // debug info: checked - OK - aVTKGeom = VTK_TRIANGLE; - aNumberingConvertor.clear(); - nbPointsInGeom = 3; - CreateElements(aInput, - aMeshInfo, - myMed, - aCellsMapper, - aEntity, - aVTKGeom, - nbPointsInGeom, - aNumberingConvertor, - outGeom2CellIdMap); - - // debug info: checked - OK - aVTKGeom = VTK_QUAD; - nbPointsInGeom = 4; - aNumberingConvertor.clear(); - CreateElements(aInput, - aMeshInfo, - myMed, - aCellsMapper, - aEntity, - aVTKGeom, - nbPointsInGeom, - aNumberingConvertor, - outGeom2CellIdMap); - - - // debug info: checked - OK - aVTKGeom = VTK_QUADRATIC_TRIANGLE; - nbPointsInGeom = 6; - aNumberingConvertor.clear(); - CreateElements(aInput, - aMeshInfo, - myMed, - aCellsMapper, - aEntity, - aVTKGeom, - nbPointsInGeom, - aNumberingConvertor, - outGeom2CellIdMap); - - aVTKGeom = VTK_QUADRATIC_QUAD; - nbPointsInGeom = 8; - aNumberingConvertor.clear(); - // 0,3,2,1,7,6,5,4 - CreateElements(aInput, - aMeshInfo, - myMed, - aCellsMapper, - aEntity, - aVTKGeom, - nbPointsInGeom, - aNumberingConvertor, - outGeom2CellIdMap); - - // debug info: checked - OK - CreatePolygons(aInput, - aMeshInfo, - myMed, - aCellsMapper, - aEntity, - outGeom2CellIdMap); - - } - //---------------------------- - // Entity CELLS (eMAILLE) - // eTETRA4,eHEXA8,ePENTA6,ePYRA5, - // eTETRA10,eHEXA20,ePOLYEDRE - //---------------------------- - { - - MED::EEntiteMaillage aEntity = MED::eMAILLE; - int aVTKGeom = 0; - int nbPointsInGeom = 0; - - aVTKGeom = VTK_TETRA; - nbPointsInGeom = 4; - aNumberingConvertor.clear(); - aNumberingConvertor.push_back(0); - aNumberingConvertor.push_back(2); - aNumberingConvertor.push_back(1); - aNumberingConvertor.push_back(3); - CreateElements(aInput, - aMeshInfo, - myMed, - aCellsMapper, - aEntity, - aVTKGeom, - nbPointsInGeom, - aNumberingConvertor, - outGeom2CellIdMap); - - aVTKGeom = VTK_HEXAHEDRON; - nbPointsInGeom = 8; - aNumberingConvertor.clear(); - // 0,3,2,1,4,7,6,5 - CreateElements(aInput, - aMeshInfo, - myMed, - aCellsMapper, - aEntity, - aVTKGeom, - nbPointsInGeom, - aNumberingConvertor, - outGeom2CellIdMap); - - aVTKGeom = VTK_WEDGE; - nbPointsInGeom = 6; - aNumberingConvertor.clear(); - CreateElements(aInput, - aMeshInfo, - myMed, - aCellsMapper, - aEntity, - aVTKGeom, - nbPointsInGeom, - aNumberingConvertor, - outGeom2CellIdMap); - - aVTKGeom = VTK_PYRAMID; - nbPointsInGeom = 5; - aNumberingConvertor.clear(); - aNumberingConvertor.push_back(0); - aNumberingConvertor.push_back(3); - aNumberingConvertor.push_back(2); - aNumberingConvertor.push_back(1); - aNumberingConvertor.push_back(4); - CreateElements(aInput, - aMeshInfo, - myMed, - aCellsMapper, - aEntity, - aVTKGeom, - nbPointsInGeom, - aNumberingConvertor, - outGeom2CellIdMap); - - aVTKGeom = VTK_QUADRATIC_TETRA; - nbPointsInGeom = 10; - aNumberingConvertor.clear(); - // 0,2,1,3,6,5,4,7,9,8 - CreateElements(aInput, - aMeshInfo, - myMed, - aCellsMapper, - aEntity, - aVTKGeom, - nbPointsInGeom, - aNumberingConvertor, - outGeom2CellIdMap); - - - aVTKGeom = VTK_QUADRATIC_HEXAHEDRON; - nbPointsInGeom = 20; - aNumberingConvertor.clear(); - // 0,3,2,1,4,7,6,5,11,10,9,8,15,14,13,12,16,19,18,17 - CreateElements(aInput, - aMeshInfo, - myMed, - aCellsMapper, - aEntity, - aVTKGeom, - nbPointsInGeom, - aNumberingConvertor, - outGeom2CellIdMap); - - // debug info: checked OK - CreatePolyedres(aInput, - aMeshInfo, - myMed, - aCellsMapper, - aEntity, - outGeom2CellIdMap); - } - - - return 0; -} - -/*! - \brief Converts data to med (private auxiliary method) - \return 0 if operation has been completed successfully, 1 otherwise -*/ -int -VISU_Vtk2MedConvertor -::Data2MED(std::vector theListForAdd, - MED::PWrapper myMed, - MED::PMeshInfo theMeshInfo, - TGeom2CellIds& theGeom2CellIdMap) -{ - typedef std::vector TPDVec; - typedef std::vector TCDVec; - typedef std::map TNameToPointData; - typedef std::map TNameToCellData; - - TNameToPointData aName2PointData; - TNameToCellData aName2CellData; - - MED::TErr* theErrCode = new MED::TErr(); - MED::EGeometrieElement geomType; - MED::EEntiteMaillage entity; - - // prepare data to create time stamps - const MED::TInt aNbGauss = 1; - MED::TProfileInfo::TInfo aTInfo("",0); - MED::PProfileInfo aPProfileInfo = myMed->CrProfileInfo( aTInfo ); - - MED::TGeom2Size aGeom2Size; - MED::TGeom2NbGauss aGeom2NbGauss; - MED::TGeom2Profile aTGeom2Profile; - - int nbPointsInFirstData = 0; - if(theListForAdd.size()>0) - nbPointsInFirstData = (theListForAdd[0])->GetNumberOfPoints(); - - int nbClasses = theListForAdd.size(); - - for(int iClass=0;iClassGetNumberOfPoints() != nbPointsInFirstData){ - cout << "Warning in PointData: Some vtk file consist of number of points( " <GetNumberOfPoints() - << ") not equal number of points in first file("<GetPointData()){ - int nbArrays = aPD->GetNumberOfArrays(); - - for(int aArrNum=0;aArrNumGetArray(aArrNum); - std::string aName = aArr->GetName(); - std::set::const_iterator aIgnoreIter = myIgnoringFieldList.find(aName); - if(aIgnoreIter!=myIgnoringFieldList.end()) - continue; - (aName2PointData[aName]).push_back(aPD); - } - } - - if(vtkCellData* aCD = aClassPtr->GetCellData()){ - int nbArrays = aCD->GetNumberOfArrays(); - - for(int aArrNum=0;aArrNumGetArray(aArrNum); - std::string aName = aArr->GetName(); - std::set::const_iterator aIgnoreIter = myIgnoringFieldList.find(aName); - if(aIgnoreIter!=myIgnoringFieldList.end()) - continue; - (aName2CellData[aName]).push_back(aCD); - } - } - } - - - // PointData - int aLastField = 0; - { - geomType = MED::ePOINT1; - entity = MED::eNOEUD; - aGeom2Size[geomType] = nbPointsInFirstData; - aGeom2NbGauss[geomType] = aNbGauss; - aTGeom2Profile[geomType]= aPProfileInfo; - - TNameToPointData::const_iterator aIter = aName2PointData.begin(); - for(int iField=1;aIter!=aName2PointData.end();aIter++,iField++){ - std::string aFieldName = aIter->first; - TPDVec aPD2Vec = (aIter->second); - int nbComp = 0; - if(aPD2Vec.size() >0 ){ - if(vtkPointData* aPD0 = aPD2Vec[0]){ - if(vtkDataArray* aArr0 = aPD0->GetArray(aFieldName.c_str())) - nbComp = aArr0->GetNumberOfComponents(); - } - } - - MED::PFieldInfo aFieldInfo = myMed->CrFieldInfo(theMeshInfo, - nbComp); - - string aFieldName_PD = "Point " + aFieldName; - aFieldInfo->SetName(aFieldName_PD.c_str()); - - myMed->SetFieldInfo(aFieldInfo); - - TPDVec::const_iterator aPDIter = aPD2Vec.begin(); - for(int iTStamp=0;aPDIter!=aPD2Vec.end();aPDIter++,iTStamp++){ - vtkPointData* aPD = *aPDIter; - vtkDataArray* aArr = aPD->GetArray(aFieldName.c_str()); - MED::TFloat aTS = iTStamp < (int)myTStamps.size() ? myTStamps[ iTStamp ] : iTStamp; - MED::PTimeStampInfo aTempTimeStampInfo = myMed->CrTimeStampInfo (aFieldInfo, - entity, - aGeom2Size, - aGeom2NbGauss, - iTStamp, - iTStamp, - aTS); - - MED::PTimeStampVal aTempTimeStampVal = myMed->CrTimeStampVal (aTempTimeStampInfo, - aTGeom2Profile); - - MED::TMeshValue& aTMeshValue = aTempTimeStampVal->GetMeshValue(geomType); - - MED::TValue& aValue = aTMeshValue.myValue; // float - int nbValues = aValue.size(); - for(int i=0;iGetVoidPointer(i)); - } - - myMed->SetTimeStamp( aTempTimeStampVal, theErrCode); - if(*theErrCode==0){ - cout << "Error in "<<__FILE__<<"["<<__LINE__<<"] in method SetTimeStamp(...)"<GetEntityInfo(theMeshInfo); - aGeom2Size.clear(); - aGeom2NbGauss.clear(); - aTGeom2Profile.clear(); - aGeom2Size = aEntityInfo[ MED::eMAILLE ]; - entity = MED::eMAILLE; - MED::TGeom2Size::iterator geom_nb; - for ( geom_nb = aGeom2Size.begin(); geom_nb != aGeom2Size.end(); ++geom_nb ) { // loop on geometric types of cell - aGeom2NbGauss[ geom_nb->first ] = aNbGauss; - aTGeom2Profile[ geom_nb->first ] = aPProfileInfo; - } - - - TNameToCellData::const_iterator aIter = aName2CellData.begin(); - for(int iField=1;aIter!=aName2CellData.end();aIter++,iField++){ - std::string aFieldName = aIter->first; - TCDVec aCD2Vec = (aIter->second); - int nbComp = 0; - if(aCD2Vec.size() >0 ){ - if(vtkCellData* aCD0 = aCD2Vec[0]){ - if(vtkDataArray* aArr0 = aCD0->GetArray(aFieldName.c_str())) - nbComp = aArr0->GetNumberOfComponents(); - } - } - - MED::PFieldInfo aFieldInfo = myMed->CrFieldInfo(theMeshInfo, - nbComp); - - string aFieldName_CD = "Cell " + aFieldName; - aFieldInfo->SetName(aFieldName_CD.c_str()); - - myMed->SetFieldInfo(aFieldInfo); - - TCDVec::const_iterator aCDIter = aCD2Vec.begin(); - for(int iTStamp=0;aCDIter!=aCD2Vec.end();aCDIter++,iTStamp++){ - vtkCellData* aCD = *aCDIter; - vtkDataArray* aArr = aCD->GetArray(aFieldName.c_str()); - MED::TFloat aTS = iTStamp < (int)myTStamps.size() ? myTStamps[ iTStamp ] : iTStamp; - MED::PTimeStampInfo aTempTimeStampInfo = myMed->CrTimeStampInfo (aFieldInfo, - entity, - aGeom2Size, - aGeom2NbGauss, - iTStamp, - iTStamp, - aTS); - - MED::PTimeStampVal aTempTimeStampVal = myMed->CrTimeStampVal (aTempTimeStampInfo, - aTGeom2Profile); - - for ( geom_nb = aGeom2Size.begin(); geom_nb != aGeom2Size.end(); ++geom_nb ) { // loop on geometric types of cell - geomType = geom_nb->first; - TCellIds& aCellIds = theGeom2CellIdMap[geomType]; - - MED::TMeshValue& aTMeshValue = aTempTimeStampVal->GetMeshValue(geomType); - - MED::TValue& aValue = aTMeshValue.myValue; // float - int nbValues = aValue.size(); - int nbCellIds = aCellIds.size(); - if(nbValues!=nbCellIds*nbComp){ - cout << "Warning in "<<__FILE__<<"["<<__LINE__<<"] the data for geometry:"<GetVoidPointer(nbComp*aCellIds[i]+iComp)); - if(MYDEBUG_VALUES) cout << aValue[nbComp*i+iComp] << " "; - } - if(MYDEBUG_VALUES) cout << "|" << endl; - } - - myMed->SetTimeStamp( aTempTimeStampVal, theErrCode); - if(*theErrCode==0){ - cout << "Error in "<<__FILE__<<"["<<__LINE__<<"] in method SetTimeStamp(...)"<CrMeshInfo(aMeshDimension,myMeshName.c_str()); - myMed->SetMeshInfo(aMeshInfo); - - { - typedef vtkDataSetReader TReader; - TReader* aReader = TReader::New(); - aReader->SetFileName(myFirstVTKFileName.c_str()); - aReader->Update(); - TGeom2CellIds myGeom2CellIds; - - typedef std::vector TListUG; - TListUG aList; - - if(aReader->IsFilePolyData()) - { - if(MYDEBUG) cout << "PolyData" << endl; - typedef vtkPolyData TCommonType; - TCommonType* aInput = aReader->GetPolyDataOutput(); - - aStatus = Geometry2MED(aInput, - myMed, - aMeshInfo, - myGeom2CellIds); - - - TCommonType* aUG1 = TCommonType::New(); - aUG1->ShallowCopy(aInput); - vtkDataSet* aTmp1 = dynamic_cast(aUG1); - aList.push_back(aTmp1); - - TVectorString::iterator aFilesIter = myDataVTKFileNames.begin(); - for(;aFilesIter!=myDataVTKFileNames.end();aFilesIter++){ - aReader->SetFileName((*aFilesIter).c_str()); - aReader->Update(); - TCommonType* aUG2 = TCommonType::New(); - aUG2->ShallowCopy(aReader->GetPolyDataOutput()); - vtkDataSet* aTmp2 = dynamic_cast(aUG2); - aList.push_back(aTmp2); - } - } else if (aReader->IsFileUnstructuredGrid()){ - if (MYDEBUG) cout << "UnstructuredGrid" << endl; - typedef vtkUnstructuredGrid TCommonType; - TCommonType* aInput = aReader->GetUnstructuredGridOutput(); - - aStatus = Geometry2MED(aInput, - myMed, - aMeshInfo, - myGeom2CellIds); - - - TCommonType* aUG1 = TCommonType::New(); - aUG1->ShallowCopy(aInput); - vtkDataSet* aTmp1 = dynamic_cast(aUG1); - aList.push_back(aTmp1); - - TVectorString::iterator aFilesIter = myDataVTKFileNames.begin(); - for(;aFilesIter!=myDataVTKFileNames.end();aFilesIter++){ - aReader->SetFileName((*aFilesIter).c_str()); - aReader->Update(); - TCommonType* aUG2 = TCommonType::New(); - aUG2->ShallowCopy(aReader->GetUnstructuredGridOutput()); - vtkDataSet* aTmp2 = dynamic_cast(aUG2); - aList.push_back(aTmp2); - } - } - - Data2MED(aList, - myMed, - aMeshInfo, - myGeom2CellIds); - - - // clear aList by removing of unstructured grids - TListUG::iterator aIter = aList.begin(); - for(;aIter!=aList.end();aIter++) - (*aIter)->Delete(); - - aReader->Delete(); - } - - return aStatus; -} diff --git a/src/CONVERTOR/VISU_Vtk2MedConvertor.hxx b/src/CONVERTOR/VISU_Vtk2MedConvertor.hxx deleted file mode 100644 index bf4f6bac..00000000 --- a/src/CONVERTOR/VISU_Vtk2MedConvertor.hxx +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// File : VISU_Vtk2MedConvertor.hxx -// Author : Eugeny NIKOLAEV, Open CASCADE SAS -// - -#ifndef VISU_VTK2MEDCONVERTOR_H -#define VISU_VTK2MEDCONVERTOR_H - -#include -#include -#include - -#include -#include -#include - -class vtkUnstructuredGrid; -class vtkIntArray; - -class VISU_Vtk2MedConvertor -{ -public: - - typedef std::vector TVectorString; - typedef std::vector TVectorDouble; - typedef std::vector TCellIds; - typedef std::map TGeom2CellIds; - - VISU_Vtk2MedConvertor(); - - VISU_Vtk2MedConvertor( const std::string theMEDFileName, - const std::string theFirstVTKFileName ); - - VISU_Vtk2MedConvertor( const std::string theMEDFileName, - const std::string theFirstVTKFileName, - const TVectorString theDataVTKFileNames ); - - - void setMEDFileName( const std::string theFileName ); - std::string getMEDFileName() const; - - void setFirstVTKFileName( const std::string theFileName ); - std::string getFirstVTKFileName() const; - - void setDataVTKFileNames( const TVectorString theFileNames ); - void getDataVTKFileNames( TVectorString& ) const; - - void setVersion( const MED::EVersion theVersion ); - MED::EVersion getVersion() const; - - void setMeshName( const std::string theMeshName ); - std::string getMeshName() const; - - void addToIgnoringFieldList( const std::string& theFieldName ); - void eraseFromIgnoringFieldList( const std::string& theFieldName ); - const std::set& getIgnoringFieldList() const; - - void setCellDataFieldNameIDS( const std::string& theFieldName ); - const std::string& getCellDataFieldNameIDS() const; - - void setPointDataFieldNameIDS( const std::string& theFieldName ); - const std::string& getPointDataFieldNameIDS() const; - - void setTimeStamps( const TVectorDouble& theTStamps ); - void getTimeStamps( TVectorDouble& theTStamps ) const; - - int Execute(); - -protected: - - TVectorString myDataVTKFileNames; // vtk files with data - std::string myMEDFileName; // output MED file name. - std::string myFirstVTKFileName; // vtk file with geometry,data from this file also used. - MED::EVersion myVersion; - std::string myMeshName; - std::set myIgnoringFieldList; - std::string myCellDataFieldNameIDS; - std::string myPointDataFieldNameIDS; - TVectorDouble myTStamps; - -private: - - // Fill container with indices of cells which match given type. - void - GetIdsOfCellsOfType( vtkDataSet* theInput, // input - const int type, // input - vtkIntArray *array ); // output - - - // ret value 0 - OK - // ret value 1 - ERROR - int - Geometry2MED( vtkDataSet* aInput, - MED::PWrapper myMed, - MED::PMeshInfo aMeshInfo, - TGeom2CellIds& outGeom2CellIdMap ); - - // ret value 0 - OK - // ret value 1 - ERROR - int - Data2MED( std::vector theListForAdd, - MED::PWrapper myMed, - MED::PMeshInfo theMeshInfo, - TGeom2CellIds& theGeom2CellIdMap ); - - // ret value 0 - OK - // ret value 1 - ERROR - int - CreateElements( vtkDataSet* theInput, - MED::PMeshInfo theMeshInfo, - MED::PWrapper theMed, - vtkIntArray* theCellsMapper, - MED::EEntiteMaillage theEntity, - int theVTKGeom, - int nbPointsInGeom, - std::vector& theNumberingConvertor, - TGeom2CellIds& theGeom2CellIdMap ); - - // ret value 0 - OK - // ret value 1 - ERROR - int - CreatePolygons( vtkDataSet* theInput, - MED::PMeshInfo theMeshInfo, - MED::PWrapper theMed, - vtkIntArray* theCellsMapper, - MED::EEntiteMaillage theEntity, - TGeom2CellIds& theGeom2CellIdMap ); - - // ret value 0 - OK - // ret value 1 - ERROR - int - CreatePolyedres( vtkDataSet* theInput, - MED::PMeshInfo theMeshInfo, - MED::PWrapper theMed, - vtkIntArray* theCellsMapper, - MED::EEntiteMaillage theEntity, - TGeom2CellIds& theGeom2CellIdMap ); - -}; - -#endif // VISU_VTK2MEDCONVERTOR_H diff --git a/src/OBJECT/VISU_ActorBase.cxx b/src/OBJECT/VISU_ActorBase.cxx deleted file mode 100644 index 1a09a771..00000000 --- a/src/OBJECT/VISU_ActorBase.cxx +++ /dev/null @@ -1,182 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File : -// Author : -// Module : VISU -// $Header$ -// -#include "VISU_ActorBase.h" -#include "VISU_ActorFactory.h" -#include "VTKViewer_ShrinkFilter.h" - -#include -#include -#include -#include -#include -#include -#include - -#include "utilities.h" - -#include - -VISU_ActorBase -::VISU_ActorBase() : - myActorFactory(NULL), - myShrinkFilter(VTKViewer_ShrinkFilter::New()), - myIsShrinkable(true), - myIsShrunk(false) -{ - myShrinkFilter->Delete(); - - myStoreMapping = true; - - myShrinkFilter->SetStoreMapping(true); -} - -VISU_ActorBase -::~VISU_ActorBase() -{ - myUpdateActorsConnection.disconnect(); - myRemoveFromRendererConnection.disconnect(); -} - -//---------------------------------------------------------------------------- -VISU::TActorFactory* -VISU_ActorBase -::GetFactory() -{ - return myActorFactory; -} - -void -VISU_ActorBase -::SetFactory(VISU::TActorFactory* theActorFactory) -{ - using namespace VISU; - - if(myActorFactory == theActorFactory) - return; - - if(theActorFactory) - myDestroySignal.connect(boost::bind(&TActorFactory::RemoveActor, - theActorFactory, - _1)); - - myActorFactory = theActorFactory; -} - -void -VISU_ActorBase -::UpdateFromFactory() -{ - if(myUpdateFromFactoryTime.GetMTime() < myActorFactory->GetMTime()){ - myUpdateFromFactoryTime.Modified(); - myActorFactory->UpdateActor(this); - Update(); - } -} - -//-------------------------------------------------------------------------- - -void -VISU_ActorBase -::SetLineWidth(vtkFloatingPointType theLineWidth) -{ - GetProperty()->SetLineWidth(theLineWidth); -} - -vtkFloatingPointType -VISU_ActorBase -::GetLineWidth() -{ - return GetProperty()->GetLineWidth(); -} - -//-------------------------------------------------------------------------- -void -VISU_ActorBase -::SetRepresentation(int theMode) -{ - Superclass::SetRepresentation(theMode); - if(myRepresentation == VTK_POINTS) - UnShrink(); -} - -//---------------------------------------------------------------------------- -void VISU_ActorBase::SetShrink() -{ - if(!myIsShrinkable) - return; - if(vtkDataSet* aDataSet = myPassFilter[0]->GetOutput()){ - myShrinkFilter->SetInput(aDataSet); - myPassFilter[1]->SetInput(myShrinkFilter->GetOutput()); - myIsShrunk = true; - } -} - -void VISU_ActorBase::UnShrink() -{ - if(!myIsShrunk) - return; - if(vtkDataSet* aDataSet = myPassFilter[0]->GetOutput()){ - myPassFilter[1]->SetInput(aDataSet); - myPassFilter[1]->Modified(); - myIsShrunk = false; - Modified(); - } -} - -bool VISU_ActorBase::IsShrunk() -{ - return myIsShrunk; -} - -void VISU_ActorBase::SetShrinkable(bool theIsShrinkable) -{ - myIsShrinkable = theIsShrinkable; -} - -bool VISU_ActorBase::IsShrunkable() -{ - return myIsShrinkable; -} - -//-------------------------------------------------------------------------------------- - -void VISU_ActorBase::RemoveFromRender(vtkRenderer* theRenderer) -{ - Superclass::RemoveFromRender(theRenderer); -} - -void VISU_ActorBase::RemoveFromRender() -{ - RemoveFromRender(GetRenderer()); -} - -void VISU_ActorBase::ConnectToFactory(boost::signal0& theUpdateActorSignal, boost::signal0& theRemoveFromRendererSignal) -{ - myUpdateActorsConnection = theUpdateActorSignal.connect(boost::bind(&VISU_ActorBase::UpdateFromFactory,this)); - myRemoveFromRendererConnection = theRemoveFromRendererSignal.connect(boost::bind(&VISU_ActorBase::RemoveFromRender,this)); -} diff --git a/src/OBJECT/VISU_ActorBase.h b/src/OBJECT/VISU_ActorBase.h deleted file mode 100644 index 7a39f0a5..00000000 --- a/src/OBJECT/VISU_ActorBase.h +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File : -// Author : -// Module : VISU -// $Header$ -// -#ifndef VISU_ACTOR_BASE_H -#define VISU_ACTOR_BASE_H - -#include "VISU_OBJECT.h" -#include "SALOME_Actor.h" -#include "VISU_BoostSignals.h" -#include - -class VTKViewer_ShrinkFilter; - -//---------------------------------------------------------------------------- -namespace VISU -{ - struct TActorFactory; -} - - -//! This class defines an abstaract interface to manage actors -class VISU_OBJECT_EXPORT VISU_ActorBase: public SALOME_Actor, - public boost::signalslib::trackable -{ - public: - vtkTypeMacro(VISU_ActorBase, SALOME_Actor); - - //---------------------------------------------------------------------------- - VISU::TActorFactory* GetFactory(); - virtual void SetFactory(VISU::TActorFactory* theActorFactory); - - //---------------------------------------------------------------------------- - virtual void UpdateFromFactory(); - - //---------------------------------------------------------------------------- - - virtual void SetLineWidth(vtkFloatingPointType theLineWidth); - virtual vtkFloatingPointType GetLineWidth(); - - virtual void SetShrink(); - virtual void UnShrink(); - virtual bool IsShrunkable(); - virtual bool IsShrunk(); - virtual void SetShrinkable(bool theIsShrinkable); - - virtual void SetRepresentation(int theMode); - - virtual void RemoveFromRender(vtkRenderer* theRenderer); - virtual void RemoveFromRender(); - - virtual void ConnectToFactory(boost::signal0& , boost::signal0&); - - protected: - VISU_ActorBase(); - virtual ~VISU_ActorBase(); - - VISU::TActorFactory* myActorFactory; - vtkTimeStamp myUpdateFromFactoryTime; - boost::signal1 myDestroySignal; - - boost::signalslib::connection myUpdateActorsConnection; - boost::signalslib::connection myRemoveFromRendererConnection; - - vtkSmartPointer myShrinkFilter; - - bool myIsShrinkable; - bool myIsShrunk; -}; - -#endif //VISU_ACTOR_BASE_H diff --git a/src/OBJECT/VISU_IsoSurfActor.cxx b/src/OBJECT/VISU_IsoSurfActor.cxx deleted file mode 100644 index 6a73d5ae..00000000 --- a/src/OBJECT/VISU_IsoSurfActor.cxx +++ /dev/null @@ -1,163 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File : VISU_IsoSurfActor.cxx -// Author : Vitaly Smetannikov -// Module : VISU -// -#include "VISU_IsoSurfActor.h" -#include "VISU_PipeLine.hxx" -#include "VISU_LabelPointsFilter.hxx" - - -#include -#include -#include -#include -//#include -#include -#include -#include -#include -#include - - - -//---------------------------------------------------------------------------- -vtkStandardNewMacro(VISU_IsoSurfActor); - - -//---------------------------------------------------------------------------- -VISU_IsoSurfActor::VISU_IsoSurfActor(): - VISU_ScalarMapAct(), - myIsLinesLabeled(true) -{ - myLabelsDataSet = vtkPolyData::New(); - -// myMaskPoints = vtkMaskPoints::New(); -// myMaskPoints->SetInput(myLabelsDataSet); -// myMaskPoints->SetOnRatio(100); - - myMaskPoints = VISU_LabelPointsFilter::New(); - myMaskPoints->SetInput(myLabelsDataSet); - - myLabeledDataMapper = vtkLabeledDataMapper::New(); - myLabeledDataMapper->SetInput(myMaskPoints->GetOutput()); - //myLabeledDataMapper->SetLabelFormat("%e"); - myLabeledDataMapper->SetLabelModeToLabelScalars(); - - myLabels = vtkActor2D::New(); - myLabels->SetMapper(myLabeledDataMapper); - myLabels->GetProperty()->SetColor(1,1,1); - myLabels->SetVisibility(myIsLinesLabeled); -} - - -//---------------------------------------------------------------------------- -VISU_IsoSurfActor::~VISU_IsoSurfActor() -{ - myLabelsDataSet->Delete(); - myMaskPoints->Delete(); - myLabeledDataMapper->Delete(); - myLabels->Delete(); -} - -//---------------------------------------------------------------------------- -void VISU_IsoSurfActor::SetLinesLabeled(bool theIsLinesLabeled, int theNbLbl) -{ - myIsLinesLabeled = theIsLinesLabeled; - myMaskPoints->SetPointsNb(theNbLbl); - Modified(); -} - -//---------------------------------------------------------------------------- -int VISU_IsoSurfActor::GetNbLabels() const -{ - return myMaskPoints->GetPointsNb(); -} - - -//---------------------------------------------------------------------------- -void VISU_IsoSurfActor::UpdateLabels() -{ - if (myIsLinesLabeled) { - vtkDataSet* aDataSet = GetPipeLine()->GetOutput(); - if (aDataSet != NULL) { - unsigned long aTime = myLabelsDataSet->GetMTime(); - unsigned long anObjTime = GetMTime(); - if (aTime < anObjTime) { - myLabelsDataSet->ShallowCopy(aDataSet); - myLabelsDataSet->Modified(); - } - } - } - myLabels->SetVisibility(myIsLinesLabeled); -} - - -//---------------------------------------------------------------------------- -void VISU_IsoSurfActor::AddToRender(vtkRenderer* theRenderer) -{ - VISU_ScalarMapAct::AddToRender(theRenderer); - theRenderer->AddActor2D(myLabels); -} - -//---------------------------------------------------------------------------- -void VISU_IsoSurfActor::RemoveFromRender(vtkRenderer* theRenderer) -{ - VISU_ScalarMapAct::RemoveFromRender(theRenderer); - theRenderer->RemoveActor(myLabels); -} - -//From vtkFollower -int VISU_IsoSurfActor::RenderOpaqueGeometry(vtkViewport *vp) -{ - UpdateLabels(); - return VISU_ScalarMapAct::RenderOpaqueGeometry(vp); -} - - -int VISU_IsoSurfActor::RenderTranslucentGeometry(vtkViewport *vp) -{ - UpdateLabels(); - return VISU_ScalarMapAct::RenderTranslucentGeometry(vp); -} - -void VISU_IsoSurfActor::SetVisibility(int theMode){ - VISU_ScalarMapAct::SetVisibility(theMode); - if(GetVisibility()) - myLabels->VisibilityOn(); - else - myLabels->VisibilityOff(); - Modified(); -} - - -///!!!! For test purposes only -// void VISU_IsoSurfActor::SetMapperInput(vtkDataSet* theDataSet) -// { -// VISU_ScalarMapAct::SetMapperInput(theDataSet); - -// vtkFeatureEdges* aFilter = vtkFeatureEdges::New(); -// aFilter->SetInput(VISU_ScalarMapAct::GetInput()); -// SetInput(aFilter->GetOutput()); -// } diff --git a/src/OBJECT/VISU_IsoSurfActor.h b/src/OBJECT/VISU_IsoSurfActor.h deleted file mode 100644 index 4513d42a..00000000 --- a/src/OBJECT/VISU_IsoSurfActor.h +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File : VISU_IsoSurfActor.h -// Author : Vitaly Smetannikov -// Module : VISU -// -#ifndef VISU_VectorsAct_HeaderFile -#define VISU_VectorsAct_HeaderFile - -#include "VISU_OBJECT.h" -#include "VISU_ScalarMapAct.h" - -class vtkActor2D; -//class vtkMaskPoints; -class vtkLabeledDataMapper; -class vtkPolyData; -class VISU_LabelPointsFilter; - - -class VISU_OBJECT_EXPORT VISU_IsoSurfActor : public VISU_ScalarMapAct -{ - public: - vtkTypeMacro(VISU_IsoSurfActor, VISU_ScalarMapAct); - - static VISU_IsoSurfActor* New(); - - - //---------------------------------------------------------------------------- - virtual void AddToRender( vtkRenderer* ); - - virtual void RemoveFromRender( vtkRenderer* ); - - virtual int RenderOpaqueGeometry(vtkViewport *viewport); - virtual int RenderTranslucentGeometry(vtkViewport *viewport); - - //virtual void SetPipeLine(VISU_PipeLine* thePipeLine); - - void SetLinesLabeled(bool theIsLinesLabeled, int theNbLbl); - bool GetLinesLabeled() const { return myIsLinesLabeled;} - - int GetNbLabels() const; - - - //---------------------------------------------------------------------------- - //! Visibility management - virtual void SetVisibility( int ); - - - protected: - - VISU_IsoSurfActor(); - ~VISU_IsoSurfActor(); - - void UpdateLabels(); - - vtkActor2D *myLabels; - vtkLabeledDataMapper* myLabeledDataMapper; - //vtkMaskPoints* myMaskPoints; - VISU_LabelPointsFilter* myMaskPoints; - vtkPolyData* myLabelsDataSet; - - bool myIsLinesLabeled; - //int myNbLabels; -}; - - -#endif diff --git a/src/OBJECT/VISU_OBJECT.h b/src/OBJECT/VISU_OBJECT.h deleted file mode 100755 index 95ee35aa..00000000 --- a/src/OBJECT/VISU_OBJECT.h +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -#ifdef WIN32 -# ifdef VISU_OBJECT_EXPORTS -# define VISU_OBJECT_EXPORT __declspec(dllexport) -# else -# define VISU_OBJECT_EXPORT __declspec(dllimport) -# endif -#else -# define VISU_OBJECT_EXPORT -#endif - -#if defined WIN32 -#pragma warning ( disable: 4251 ) -#endif diff --git a/src/OBJECT/VISU_PickingSettings.cxx b/src/OBJECT/VISU_PickingSettings.cxx deleted file mode 100644 index 9cbdeaed..00000000 --- a/src/OBJECT/VISU_PickingSettings.cxx +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File : VISU_PickingSettings.cxx -// Author : Oleg UVAROV -// Module : VISU -// -#include "VISU_PickingSettings.h" - -#include "SUIT_ResourceMgr.h" -#include "SUIT_Session.h" - -#include - -vtkStandardNewMacro( VISU_PickingSettings ); - -VISU_PickingSettings* VISU_PickingSettings::Get() -{ - static VISU_PickingSettings* aPickingSettings = VISU_PickingSettings::New(); - - if( aPickingSettings->GetIsInitial() ) - { - SUIT_ResourceMgr* aResourceMgr = SUIT_Session::session()->resourceMgr(); - - aPickingSettings->SetCursorSize( aResourceMgr->doubleValue( "VISU", "picking_cursor_size", 0.5 ) ); - aPickingSettings->SetPyramidHeight( aResourceMgr->doubleValue( "VISU", "picking_pyramid_height", 10.0 ) ); - aPickingSettings->SetPointTolerance( aResourceMgr->doubleValue( "VISU", "picking_point_tolerance", 0.1 ) ); - aPickingSettings->SetInfoWindowEnabled( aResourceMgr->booleanValue( "VISU", "picking_info_window", false ) ); - aPickingSettings->SetInfoWindowTransparency( aResourceMgr->integerValue( "VISU", "picking_transparency", 50 ) / 100.0 ); - aPickingSettings->SetInfoWindowPosition( aResourceMgr->integerValue( "VISU", "picking_position", VISU_PickingSettings::TopLeftCorner ) ); - aPickingSettings->SetCameraMovementEnabled( aResourceMgr->booleanValue( "VISU", "picking_camera_movement", true ) ); - aPickingSettings->SetZoomFactor( aResourceMgr->doubleValue( "VISU", "picking_zoom_factor", 1.5 ) ); - aPickingSettings->SetStepNumber( aResourceMgr->integerValue( "VISU", "picking_step_number", 10 ) ); - aPickingSettings->SetDisplayParentMesh( aResourceMgr->booleanValue( "VISU", "picking_display_parent_mesh", true ) ); - - QColor aSelectionColor = aResourceMgr->colorValue( "VISU", "picking_selection_color", Qt::yellow ); - vtkFloatingPointType aColor[3]; - aColor[0] = aSelectionColor.red() / 255.0; - aColor[1] = aSelectionColor.green() / 255.0; - aColor[2] = aSelectionColor.blue() / 255.0; - aPickingSettings->SetColor( aColor ); - - aPickingSettings->SetIsInitial( false ); - } - - return aPickingSettings; -} - -VISU_PickingSettings::VISU_PickingSettings() -{ - this->IsInitial = true; - - this->PyramidHeight = -1; - this->CursorSize = -1; - this->PointTolerance = -1; - this->Color[0] = -1; - this->Color[1] = -1; - this->Color[2] = -1; - this->InfoWindowEnabled = false; - this->InfoWindowTransparency = -1; - this->InfoWindowPosition = -1; - this->CameraMovementEnabled = false; - this->ZoomFactor = -1; - this->StepNumber = -1; - this->DisplayParentMesh = false; -} - -VISU_PickingSettings::~VISU_PickingSettings() -{ -} diff --git a/src/OBJECT/VISU_PickingSettings.h b/src/OBJECT/VISU_PickingSettings.h deleted file mode 100644 index e5b894d1..00000000 --- a/src/OBJECT/VISU_PickingSettings.h +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File : VISU_PickingSettings.cxx -// Author : Oleg UVAROV -// Module : VISU -// -#ifndef VISU_PickingSettings_HeaderFile -#define VISU_PickingSettings_HeaderFile - -#include "VISU_OBJECT.h" -#include -#include - -#include "VTKViewer.h" - -#include "VISU_Actor.h" - -//============================================================================ -namespace VISU -{ - const vtkIdType UpdatePickingSettingsEvent = vtkCommand::UserEvent + 103; -} - -//! Class of Picking settings. -/*! - * Contains information about the following parameters: - * Cursor Pyramid height, Info Window transparency, - * Info Window position, Zoom factor on first selected point, - * Camera movement steps number and Display parent mesh. - */ -class VISU_OBJECT_EXPORT VISU_PickingSettings : public vtkObject -{ - public: - enum { BelowPoint = 0, TopLeftCorner }; - - public: - vtkTypeMacro( VISU_PickingSettings, vtkObject ); - - static - VISU_PickingSettings* - Get(); - - static - VISU_PickingSettings* - New(); - - vtkSetMacro( IsInitial, bool ); - vtkGetMacro( IsInitial, bool ); - - vtkSetMacro( PyramidHeight, vtkFloatingPointType ); - vtkGetMacro( PyramidHeight, vtkFloatingPointType ); - - vtkSetMacro( CursorSize, vtkFloatingPointType ); - vtkGetMacro( CursorSize, vtkFloatingPointType ); - - vtkSetVector3Macro( Color, vtkFloatingPointType ); - vtkGetVector3Macro( Color, vtkFloatingPointType ); - - vtkSetMacro( PointTolerance, vtkFloatingPointType ); - vtkGetMacro( PointTolerance, vtkFloatingPointType ); - - vtkSetMacro( InfoWindowEnabled, bool ); - vtkGetMacro( InfoWindowEnabled, bool ); - - vtkSetMacro( InfoWindowTransparency, vtkFloatingPointType ); - vtkGetMacro( InfoWindowTransparency, vtkFloatingPointType ); - - vtkSetMacro( InfoWindowPosition, int ); - vtkGetMacro( InfoWindowPosition, int ); - - vtkSetMacro( CameraMovementEnabled, bool ); - vtkGetMacro( CameraMovementEnabled, bool ); - - vtkSetMacro( ZoomFactor, vtkFloatingPointType ); - vtkGetMacro( ZoomFactor, vtkFloatingPointType ); - - vtkSetMacro( StepNumber, int ); - vtkGetMacro( StepNumber, int ); - - vtkSetMacro( DisplayParentMesh, bool ); - vtkGetMacro( DisplayParentMesh, bool ); - -private: - VISU_PickingSettings(); - virtual ~VISU_PickingSettings(); - -private: - bool IsInitial; - - vtkFloatingPointType PyramidHeight; - vtkFloatingPointType CursorSize; - - vtkFloatingPointType PointTolerance; - - vtkFloatingPointType Color[3]; - - bool InfoWindowEnabled; - vtkFloatingPointType InfoWindowTransparency; - int InfoWindowPosition; - - bool CameraMovementEnabled; - vtkFloatingPointType ZoomFactor; - int StepNumber; - - bool DisplayParentMesh; -}; - -#endif diff --git a/src/OBJECT/VISU_PointMap3dActor.cxx b/src/OBJECT/VISU_PointMap3dActor.cxx deleted file mode 100644 index d92b698a..00000000 --- a/src/OBJECT/VISU_PointMap3dActor.cxx +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File : -// Author : -// Module : VISU -// $Header$ -// -#include "VISU_PointMap3dActor.h" -#include "VISU_PipeLine.hxx" -#include "VISU_ScalarBarActor.hxx" -#include "VISU_DeformedGridPL.hxx" - -#include - -#include "utilities.h" -#include -#include - -#ifdef _DEBUG_ -static int MYDEBUG = 0; -#else -static int MYDEBUG = 0; -#endif - -vtkStandardNewMacro(VISU_PointMap3dActor); - -//================================================================== -// function: Constructor -// purpose : -//================================================================== - -VISU_PointMap3dActor -::VISU_PointMap3dActor() -{ - if(MYDEBUG) MESSAGE("VISU_PointMap3dActor::VISU_PointMap3dActor - this = "< myPipeLine; - - VISU_ScalarBarActor* myScalarBar; -}; - -#endif diff --git a/src/PIPELINE/VISU_DeformationPL.cxx b/src/PIPELINE/VISU_DeformationPL.cxx deleted file mode 100755 index 27059816..00000000 --- a/src/PIPELINE/VISU_DeformationPL.cxx +++ /dev/null @@ -1,164 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// File: VISU_ScalarMapPL.cxx -// Author: Roman NIKOLAEV -// Module : VISU -//Salome includes -// -#include "VISU_DeformationPL.hxx" -#include "VISU_MergeFilter.hxx" -#include "VISU_DeformedShapePL.hxx" -#include "VISU_PipeLineUtils.hxx" - -//VTK includes -#include -#include -#include -#include -#include -#ifdef _DEBUG_ -static int MYDEBUG = 0; -#else -static int MYDEBUG = 0; -#endif - - -//---------------------------------------------------------------------------- -VISU_DeformationPL::VISU_DeformationPL(): - myScaleFactor(1.0), - myMapScaleFactor(1.0) -{ - if(MYDEBUG) MESSAGE("VISU_DeformationPL()::VISU_DeformationPL() - "<SetScaleFactor(myScaleFactor); - - myVectorMergeFilter = VISU_MergeFilter::New(); - myVectorMergeFilter->SetMergingInputs(true); - myInputPassFilter = vtkPassThroughFilter::New(); - myOutputPassFiler = vtkPassThroughFilter::New(); - myCellDataToPointData = vtkCellDataToPointData::New(); - myCellDataToPointData->PassCellDataOn(); - - myInputPassFilter->SetInput(vtkUnstructuredGrid::New()); - - myCellDataToPointData->SetInput(myInputPassFilter->GetOutput()); - - myWarpVector->SetInput(myCellDataToPointData->GetOutput()); - - myOutputPassFiler->SetInput(myWarpVector->GetOutput()); -} - -//---------------------------------------------------------------------------- -VISU_DeformationPL::~VISU_DeformationPL() -{ - if(MYDEBUG) MESSAGE("VISU_DeformationPL()::~VISU_DeformationPL() - "<Delete(); - myVectorMergeFilter->Delete(); - myInputPassFilter->Delete(); - myOutputPassFiler->Delete(); - myCellDataToPointData->Delete(); -} - - -//---------------------------------------------------------------------------- -unsigned long int -VISU_DeformationPL::GetMTime(){ - unsigned long int aTime = std::max(myWarpVector->GetMTime(), - myVectorMergeFilter->GetMTime()); - - aTime = std::max(aTime,myInputPassFilter->GetMTime()); - aTime = std::max(aTime,myOutputPassFiler->GetMTime()); - aTime = std::max(aTime,myCellDataToPointData->GetMTime()); - return 0; -} - -//---------------------------------------------------------------------------- -void VISU_DeformationPL::SetScale(vtkFloatingPointType theScaleFactor) -{ - if(myScaleFactor == theScaleFactor) - return; - myScaleFactor = theScaleFactor; - myWarpVector->SetScaleFactor(myScaleFactor*myMapScaleFactor); -} - -void VISU_DeformationPL::SetMapScale(vtkFloatingPointType theMapScaleFactor) -{ - if(myMapScaleFactor == theMapScaleFactor) - return; - myMapScaleFactor = theMapScaleFactor; - - myWarpVector->SetScaleFactor(myScaleFactor*myMapScaleFactor); -} - - -vtkFloatingPointType VISU_DeformationPL::GetScale() -{ - return myScaleFactor; -} - -//---------------------------------------------------------------------------- -void VISU_DeformationPL::SetWarpVectorInput(vtkDataSet *theInput) -{ - myInputPassFilter->SetInput(theInput); -} - -//---------------------------------------------------------------------------- -vtkDataSet* VISU_DeformationPL::GetWarpVectorOutput() -{ - return myOutputPassFiler->GetOutput(); -} - -//---------------------------------------------------------------------------- -void VISU_DeformationPL::SetMergeFilterInput(vtkDataSet* ScalarInput, - vtkDataSet* VectorialInput) -{ - myVectorMergeFilter->SetScalars(ScalarInput); - myVectorMergeFilter->AddField("VISU_CELLS_MAPPER",ScalarInput); - myVectorMergeFilter->AddField("VISU_POINTS_MAPPER",ScalarInput); - - myVectorMergeFilter->SetGeometry(VectorialInput); - myVectorMergeFilter->SetVectors(VectorialInput); -} - -//---------------------------------------------------------------------------- -vtkDataSet* VISU_DeformationPL::GetMergeFilterOutput(){ - return myVectorMergeFilter->GetOutput(); -} - -//---------------------------------------------------------------------------- -vtkFloatingPointType VISU_DeformationPL::GetDefaultScaleFactor(VISU_DeformationPL *thePipeLine) -{ - if(!thePipeLine || !thePipeLine->GetMergeFilterOutput()) - return 0.0; - - vtkFloatingPointType aSourceRange[2]; - thePipeLine->GetMergeFilterOutput()->GetScalarRange(aSourceRange); - - static vtkFloatingPointType EPS = 1.0 / VTK_LARGE_FLOAT; - if(fabs(aSourceRange[1]) > EPS){ - vtkDataSet* aDataSet = thePipeLine->GetMergeFilterOutput(); - vtkFloatingPointType aScaleFactor = VISU_DeformedShapePL::GetScaleFactor(aDataSet); - return aScaleFactor / aSourceRange[1]; - } - return 0.0; -} - diff --git a/src/PIPELINE/VISU_DeformationPL.hxx b/src/PIPELINE/VISU_DeformationPL.hxx deleted file mode 100755 index 85409d38..00000000 --- a/src/PIPELINE/VISU_DeformationPL.hxx +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// File : VISU_DeformationPL.hxx -// Author : -// Module : SALOME -// -#ifndef VISU_DeformationPL_HeaderFile -#define VISU_DeformationPL_HeaderFile - -#include "VISUPipeline.hxx" -#include "VISU_MapperHolder.hxx" -#include - -class vtkDataSet; -class VISU_MergeFilter; -class vtkPassThroughFilter; -class vtkWarpVector; -class vtkCellDataToPointData; - -class VISU_PIPELINE_EXPORT VISU_DeformationPL { - -public: - VISU_DeformationPL(); - virtual ~VISU_DeformationPL(); - - //----------------------------------------------------------- - virtual void SetScale(vtkFloatingPointType theScaleFactor); - virtual void SetMapScale(vtkFloatingPointType theMapScaleFactor); - virtual vtkFloatingPointType GetScale(); - - //----------------------------------------------------------- - virtual void SetVectorialField(VISU::PUnstructuredGridIDMapper theIdMapper) = 0; - virtual VISU::PUnstructuredGridIDMapper getVectorialField() = 0; - - - //----------------------------------------------------------- - virtual - unsigned - long int - GetMTime(); - - static vtkFloatingPointType GetDefaultScaleFactor(VISU_DeformationPL *thePipeLine); - - void SetWarpVectorInput(vtkDataSet *theInput); - vtkDataSet* GetWarpVectorOutput(); - - //----------------------------------------------------------- - void SetMergeFilterInput(vtkDataSet* ScalarInput, - vtkDataSet* VectorialInput); - - vtkDataSet* GetMergeFilterOutput(); - -protected: - - VISU::PUnstructuredGridIDMapper myVectorialField; - vtkWarpVector *myWarpVector; - vtkSmartPointer myVectorMergeFilter; - vtkPassThroughFilter *myInputPassFilter; - vtkPassThroughFilter *myOutputPassFiler; - vtkCellDataToPointData *myCellDataToPointData; - -private: - vtkFloatingPointType myScaleFactor; - vtkFloatingPointType myMapScaleFactor; - -}; - -#endif diff --git a/src/PIPELINE/VISU_DeformedGridPL.cxx b/src/PIPELINE/VISU_DeformedGridPL.cxx deleted file mode 100644 index e0a85cb9..00000000 --- a/src/PIPELINE/VISU_DeformedGridPL.cxx +++ /dev/null @@ -1,237 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File: VISU_DeformedGridPL.cxx -// Author: Alexey PETROV -// Module : VISU -// -#include "VISU_DeformedGridPL.hxx" -#include "VISU_FieldTransform.hxx" -#include "VISU_Plot3DPL.hxx" - -#include "VISU_PipeLineUtils.hxx" - -#include -#include -#include - - -//---------------------------------------------------------------------------- -vtkStandardNewMacro(VISU_DeformedGridPL); - - -//---------------------------------------------------------------------------- -VISU_DeformedGridPL -::VISU_DeformedGridPL(): - myContourFilter(vtkContourFilter::New()), - myWarpScalar(vtkWarpScalar::New()), - myIsContour(false), - myScaleFactor(1.0), - myMapScaleFactor(1.0) -{ - SetIsShrinkable(false); - SetNumberOfContours(32); -} - - -//---------------------------------------------------------------------------- -VISU_DeformedGridPL -::~VISU_DeformedGridPL() -{} - - -//---------------------------------------------------------------------------- -unsigned long int -VISU_DeformedGridPL -::GetMTime() -{ - unsigned long int aTime = Superclass::GetMTime(); - - aTime = std::max(aTime, myContourFilter->GetMTime()); - aTime = std::max(aTime, myWarpScalar->GetMTime()); - - return aTime; -} - - -//---------------------------------------------------------------------------- -unsigned long int -VISU_DeformedGridPL -::GetMemorySize() -{ - unsigned long int aSize = Superclass::GetMemorySize(); - - if(vtkDataObject* aDataObject = myContourFilter->GetInput()) - aSize += aDataObject->GetActualMemorySize() * 1024; - - if(vtkDataObject* aDataObject = myWarpScalar->GetInput()) - aSize += aDataObject->GetActualMemorySize() * 1024; - - return aSize; -} - - -//---------------------------------------------------------------------------- -void -VISU_DeformedGridPL -::DoShallowCopy(VISU_PipeLine *thePipeLine, - bool theIsCopyInput) -{ - Superclass::DoShallowCopy(thePipeLine, theIsCopyInput); - - if(VISU_DeformedGridPL *aPipeLine = dynamic_cast(thePipeLine)){ - SetScaleFactor( aPipeLine->GetScaleFactor() ); - SetContourPrs( aPipeLine->GetIsContourPrs() ); - SetNumberOfContours( aPipeLine->GetNumberOfContours() ); - } -} - - -//---------------------------------------------------------------------------- -void -VISU_DeformedGridPL -::Init() -{ - Superclass::Init(); - - vtkPointSet* aPointSet = GetFieldTransformFilter()->GetPolyDataOutput(); - SetScaleFactor( VISU_Plot3DPL::GetScaleFactor( this, aPointSet ) ); -} - - -//---------------------------------------------------------------------------- -void -VISU_DeformedGridPL -::Build() -{ - Superclass::Build(); - - myWarpScalar->SetInput( GetFieldTransformFilter()->GetPolyDataOutput() ); - GetPolyDataMapper()->SetInput( myWarpScalar->GetPolyDataOutput() ); -} - - -//---------------------------------------------------------------------------- -void -VISU_DeformedGridPL -::Update() -{ - vtkPointSet* aPointSet = GetFieldTransformFilter()->GetPolyDataOutput(); - if ( !myIsContour ) // surface prs - { - myWarpScalar->SetInput( aPointSet ); - } - else // contour prs - { - myContourFilter->SetInput( aPointSet ); - - vtkFloatingPointType aScalarRange[2]; - GetSourceRange( aScalarRange ); - - myContourFilter->GenerateValues( GetNumberOfContours(), aScalarRange ); - myWarpScalar->SetInput( myContourFilter->GetOutput() ); - } - - Superclass::Update(); -} - - -//---------------------------------------------------------------------------- -void -VISU_DeformedGridPL -::SetNumberOfContours(int theNumber) -{ - myContourFilter->SetNumberOfContours(theNumber); -} - - -//---------------------------------------------------------------------------- -int -VISU_DeformedGridPL -::GetNumberOfContours() -{ - return myContourFilter->GetNumberOfContours(); -} - - -//---------------------------------------------------------------------------- -void -VISU_DeformedGridPL -::SetScaleFactor(vtkFloatingPointType theScaleFactor) -{ - if ( VISU::CheckIsSameValue( myWarpScalar->GetScaleFactor(), theScaleFactor ) ) - return; - - myScaleFactor = theScaleFactor; - myWarpScalar->SetScaleFactor(theScaleFactor*myMapScaleFactor); -} - - -//---------------------------------------------------------------------------- -vtkFloatingPointType -VISU_DeformedGridPL -::GetScaleFactor() -{ - return myScaleFactor; -} - - -//---------------------------------------------------------------------------- -void -VISU_DeformedGridPL -::SetContourPrs(bool theIsContourPrs ) -{ - if(myIsContour == theIsContourPrs) - return; - - myIsContour = theIsContourPrs; - Modified(); -} - - -//---------------------------------------------------------------------------- -bool -VISU_DeformedGridPL -::GetIsContourPrs() -{ - return myIsContour; -} - - -//---------------------------------------------------------------------------- -void -VISU_DeformedGridPL -::SetMapScale(vtkFloatingPointType theMapScale) -{ - Superclass::SetMapScale(theMapScale); - myMapScaleFactor = theMapScale; - - if ( myIsContour ) { - vtkFloatingPointType aSourceRange[2]; - GetSourceRange( aSourceRange ); - vtkFloatingPointType aDeltaRange = aSourceRange[1] - aSourceRange[0]; - vtkFloatingPointType aNewRange[2] = { aSourceRange[1] - theMapScale*aDeltaRange, aSourceRange[1] }; - myContourFilter->GenerateValues( GetNumberOfContours(), aNewRange ); - } - - myWarpScalar->SetScaleFactor( myScaleFactor * theMapScale ); -} diff --git a/src/PIPELINE/VISU_DeformedGridPL.hxx b/src/PIPELINE/VISU_DeformedGridPL.hxx deleted file mode 100644 index 90c1604f..00000000 --- a/src/PIPELINE/VISU_DeformedGridPL.hxx +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File: VISU_ScalarMapPL.hxx -// Author: Alexey PETROV -// Module : VISU -// -#ifndef VISU_DeformedGridPL_HeaderFile -#define VISU_DeformedGridPL_HeaderFile - -#include "VISUPipeline.hxx" -#include "VISU_PolyDataPL.hxx" - -class vtkWarpScalar; -class vtkContourFilter; - - -//---------------------------------------------------------------------------- -class VISU_PIPELINE_EXPORT VISU_DeformedGridPL : public VISU_PolyDataPL -{ -public: - vtkTypeMacro(VISU_DeformedGridPL, VISU_PolyDataPL); - - static - VISU_DeformedGridPL* - New(); - - //---------------------------------------------------------------------------- - virtual - unsigned long int - GetMTime(); - - //! Gets memory size used by the instance (bytes). - virtual - unsigned long int - GetMemorySize(); - - //---------------------------------------------------------------------------- - void - SetScaleFactor( vtkFloatingPointType theScaleFactor ); - - vtkFloatingPointType - GetScaleFactor(); - - void - SetContourPrs( bool theIsContourPrs ); - - bool - GetIsContourPrs(); - - void - SetNumberOfContours( int theNumber ); - - int - GetNumberOfContours(); - - virtual - void - SetMapScale(vtkFloatingPointType theMapScale = 1.0); - - //---------------------------------------------------------------------------- - virtual - void - Init(); - - virtual - void - Update(); - -protected: - //---------------------------------------------------------------------------- - VISU_DeformedGridPL(); - - virtual - ~VISU_DeformedGridPL(); - - virtual - void - Build(); - - virtual - void - DoShallowCopy(VISU_PipeLine *thePipeLine, - bool theIsCopyInput); - -private: - VISU_DeformedGridPL(const VISU_DeformedGridPL&); // Not implemented. - void operator=(const VISU_DeformedGridPL&); // Not implemented. - - vtkFloatingPointType myScaleFactor; - vtkFloatingPointType myMapScaleFactor; - vtkContourFilter* myContourFilter; - vtkWarpScalar *myWarpScalar; - bool myIsContour; -}; - -#endif diff --git a/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx b/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx deleted file mode 100644 index 2165eb1c..00000000 --- a/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.cxx +++ /dev/null @@ -1,372 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU DeformedShapeAndScalarMapPL -// File: VISU_DeformedShapeAndScalarMapPL.cxx -// Author: Eugeny Nikolaev -// Module : VISU -// -#include "VISU_DeformedShapeAndScalarMapPL.hxx" -#include "VISU_FieldTransform.hxx" -#include "VISU_Extractor.hxx" -#include "VISU_LookupTable.hxx" -#include "VISU_DeformedShapePL.hxx" -#include "VTKViewer_TransformFilter.h" -#include "VTKViewer_Transform.h" -#include "VISU_MergeFilter.hxx" -#include "VISU_ElnoDisassembleFilter.hxx" -#include "VISU_PipeLineUtils.hxx" - -#include -#include -#include -#include - - -//---------------------------------------------------------------------------- -vtkStandardNewMacro(VISU_DeformedShapeAndScalarMapPL) - -//---------------------------------------------------------------------------- -/*! - * Constructor. Creating new instances of vtkWarpVector,vtkMergeFilter,vtkUnstructuredGrid - * Where: - * \li myDeformVectors is vtkWarpVector - deformation vectors data - * \li myScalarsMergeFilter is vtkMergeFilter - merge filter. - * Merge filter which unify the deformation and scalars - * \li myScalars is vtk shared pointer to vtkUnstructuredGrid - scalars data -*/ -VISU_DeformedShapeAndScalarMapPL -::VISU_DeformedShapeAndScalarMapPL(): - myScaleFactor(1.0), - myMapScaleFactor(1.0) -{ - myWarpVector = vtkWarpVector::New(); - - myScalarsMergeFilter = VISU_MergeFilter::New(); - myScalarsMergeFilter->SetMergingInputs(true); - - myScalarsExtractor = VISU_Extractor::New(); - - myScalarsFieldTransform = VISU_FieldTransform::New(); - - myCellDataToPointData = vtkCellDataToPointData::New(); - myScalarsElnoDisassembleFilter = VISU_ElnoDisassembleFilter::New(); -} - -//---------------------------------------------------------------------------- -/*! - * Destructor. - * Delete all fields. -*/ -VISU_DeformedShapeAndScalarMapPL -::~VISU_DeformedShapeAndScalarMapPL() -{ - myWarpVector->Delete(); - - myScalarsMergeFilter->Delete(); - - myScalarsExtractor->Delete(); - - myScalarsFieldTransform->Delete(); - - myCellDataToPointData->Delete(); -} - -//---------------------------------------------------------------------------- -/*! - * Initial method - */ -void -VISU_DeformedShapeAndScalarMapPL -::Init() -{ - Superclass::Init(); - - SetScale(VISU_DeformedShapePL::GetDefaultScale(this)); -} - -//---------------------------------------------------------------------------- -/*! - * Build method - * Building of deformation and puts result to merge filter. - */ -void -VISU_DeformedShapeAndScalarMapPL -::Build() -{ - Superclass::Build(); -} - - -//---------------------------------------------------------------------------- -vtkDataSet* -VISU_DeformedShapeAndScalarMapPL -::InsertCustomPL() -{ - GetMapper()->SetColorModeToMapScalars(); - GetMapper()->ScalarVisibilityOn(); - - VISU::CellDataToPoint(myWarpVector, - myCellDataToPointData, - GetMergedInput()); - - myScalars = GetMergedInput(); - - UpdateScalars(); - - myScalarsFieldTransform->SetInput(myScalarsExtractor->GetOutput()); - - // Sets geometry for merge filter - myScalarsMergeFilter->SetGeometry(myWarpVector->GetUnstructuredGridOutput()); - - vtkDataSet* aScalarsDataSet = myScalarsFieldTransform->GetOutput(); - myScalarsMergeFilter->SetScalars(aScalarsDataSet); - myScalarsMergeFilter->AddField("VISU_CELLS_MAPPER", aScalarsDataSet); - myScalarsMergeFilter->AddField("VISU_POINTS_MAPPER", aScalarsDataSet); - - return myScalarsMergeFilter->GetOutput(); -} - - -//---------------------------------------------------------------------------- -/*! - * Update method - */ -void -VISU_DeformedShapeAndScalarMapPL -::Update() -{ - Superclass::Update(); - //{ - // std::string aFileName = std::string(getenv("HOME"))+"/"+getenv("USER")+"-myScalarsExtractor.vtk"; - // VISU::WriteToFile(myScalarsExtractor->GetUnstructuredGridOutput(), aFileName); - //} - //{ - // std::string aFileName = std::string(getenv("HOME"))+"/"+getenv("USER")+"-myWarpVector.vtk"; - // VISU::WriteToFile(myWarpVector->GetUnstructuredGridOutput(), aFileName); - //} - //{ - // std::string aFileName = std::string(getenv("HOME"))+"/"+getenv("USER")+"-myScalarsMergeFilter.vtk"; - // VISU::WriteToFile(myScalarsMergeFilter->GetUnstructuredGridOutput(), aFileName); - //} -} - -//---------------------------------------------------------------------------- -unsigned long int -VISU_DeformedShapeAndScalarMapPL -::GetMemorySize() -{ - unsigned long int aSize = Superclass::GetMemorySize(); - - if(vtkDataSet* aDataSet = myWarpVector->GetOutput()) - aSize += aDataSet->GetActualMemorySize() * 1024; - - if(vtkDataSet* aDataSet = myScalarsExtractor->GetOutput()) - aSize += aDataSet->GetActualMemorySize() * 1024; - - if(vtkDataSet* aDataSet = myScalarsMergeFilter->GetOutput()) - aSize += aDataSet->GetActualMemorySize() * 1024; - - if(myCellDataToPointData->GetInput()) - if(vtkDataSet* aDataSet = myCellDataToPointData->GetOutput()) - aSize += aDataSet->GetActualMemorySize() * 1024; - - return aSize; -} - -//---------------------------------------------------------------------------- -/*! - * Update scalars method. - * Put scalars to merge filter. - */ -void -VISU_DeformedShapeAndScalarMapPL -::UpdateScalars() -{ - vtkDataSet* aScalars = GetScalars(); - myScalarsElnoDisassembleFilter->SetInput(aScalars); - myScalarsExtractor->SetInput(myScalarsElnoDisassembleFilter->GetOutput()); - - if(VISU::IsDataOnCells(myScalarsElnoDisassembleFilter->GetOutput())) - GetMapper()->SetScalarModeToUseCellData(); - else - GetMapper()->SetScalarModeToUsePointData(); -} - -//---------------------------------------------------------------------------- -/*! - * Copy information about pipline. - * Copy scale and scalars. - */ -void -VISU_DeformedShapeAndScalarMapPL -::DoShallowCopy(VISU_PipeLine *thePipeLine, - bool theIsCopyInput) -{ - Superclass::DoShallowCopy(thePipeLine, theIsCopyInput); - - if(VISU_DeformedShapeAndScalarMapPL *aPipeLine = dynamic_cast(thePipeLine)){ - SetScale(aPipeLine->GetScale()); - SetScalars(aPipeLine->GetScalars()); - } -} - -//---------------------------------------------------------------------------- -/*! - * Set scalars. - * Sets vtkDataSet with scalars values to VISU_Extractor filter for scalars extraction. - */ -void -VISU_DeformedShapeAndScalarMapPL -::SetScalars(vtkDataSet *theScalars) -{ - if(GetScalars() == theScalars) - return; - - myScalars = theScalars; - UpdateScalars(); -} - -//---------------------------------------------------------------------------- -/*! - * Get pointer to input scalars. - */ -vtkDataSet* -VISU_DeformedShapeAndScalarMapPL -::GetScalars() -{ - return myScalars.GetPointer(); -} - -//---------------------------------------------------------------------------- -/*! - * Sets scale for deformed shape - */ -void -VISU_DeformedShapeAndScalarMapPL -::SetScale(vtkFloatingPointType theScale) -{ - if(VISU::CheckIsSameValue(myScaleFactor, theScale)) - return; - - myScaleFactor = theScale; - myWarpVector->SetScaleFactor(theScale*myMapScaleFactor); -} - -//---------------------------------------------------------------------------- -/*! - * Gets scale of deformed shape. - */ -vtkFloatingPointType -VISU_DeformedShapeAndScalarMapPL -::GetScale() -{ - return myScaleFactor; -} - -//---------------------------------------------------------------------------- -/*! - * Set scale factor of deformation. - */ -void -VISU_DeformedShapeAndScalarMapPL -::SetMapScale(vtkFloatingPointType theMapScale) -{ - myMapScaleFactor = theMapScale; - Superclass::SetMapScale(theMapScale); - myWarpVector->SetScaleFactor(myScaleFactor*theMapScale); -} - -//---------------------------------------------------------------------------- -/*! - * Gets scalar mode. - */ -int -VISU_DeformedShapeAndScalarMapPL -::GetScalarMode() -{ - return myScalarsExtractor->GetScalarMode(); -} - -//---------------------------------------------------------------------------- -/*! - * Sets scalar mode. - */ -void -VISU_DeformedShapeAndScalarMapPL -::SetScalarMode(int theScalarMode) -{ - VISU_ScalarMapPL::SetScalarMode(theScalarMode, GetScalars(), myScalarsExtractor); -} - -//---------------------------------------------------------------------------- -void -VISU_DeformedShapeAndScalarMapPL -::SetScaling(int theScaling) -{ - if(GetScaling() == theScaling) - return; - - GetBarTable()->SetScale(theScaling); - - if(theScaling == VTK_SCALE_LOG10) - myScalarsFieldTransform->SetScalarTransform(&(VISU_FieldTransform::Log10)); - else - myScalarsFieldTransform->SetScalarTransform(&(VISU_FieldTransform::Ident)); -} - - -//---------------------------------------------------------------------------- -void -VISU_DeformedShapeAndScalarMapPL -::SetScalarRange(vtkFloatingPointType theRange[2]) -{ - if(VISU::CheckIsSameRange(theRange, GetScalarRange())) - return; - - myScalarsFieldTransform->SetScalarRange(theRange); - GetBarTable()->SetRange(theRange); -} - - -//---------------------------------------------------------------------------- -vtkFloatingPointType* -VISU_DeformedShapeAndScalarMapPL -::GetScalarRange() -{ - return myScalarsFieldTransform->GetScalarRange(); -} - - -//---------------------------------------------------------------------------- -/*! - * Gets ranges of extracted scalars - * \param theRange[2] - output values - * \li theRange[0] - minimum value - * \li theRange[1] - maximum value - */ -void -VISU_DeformedShapeAndScalarMapPL -::GetSourceRange(vtkFloatingPointType theRange[2]) -{ - myScalarsExtractor->Update(); - myScalarsExtractor->GetUnstructuredGridOutput()->GetScalarRange(theRange); -} diff --git a/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.hxx b/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.hxx deleted file mode 100644 index 720b531e..00000000 --- a/src/PIPELINE/VISU_DeformedShapeAndScalarMapPL.hxx +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File: VISU_DeformedShapeAndScalarMapPL.hxx -// Author: Eugeny Nikolaev -// Module : VISU -// -#ifndef VISU_DeformedShapeAndScalarMapPL_HeaderFile -#define VISU_DeformedShapeAndScalarMapPL_HeaderFile - -#include "VISUPipeline.hxx" -#include "VISU_ScalarMapPL.hxx" - -class VISU_MergeFilter; -class vtkWarpVector; -class vtkUnstructuredGrid; -class vtkCellDataToPointData; -class vtkPointDataToCellData; -class VISU_ElnoDisassembleFilter; - - -//---------------------------------------------------------------------------- -class VISU_PIPELINE_EXPORT VISU_DeformedShapeAndScalarMapPL : public VISU_ScalarMapPL -{ -public: - vtkTypeMacro(VISU_DeformedShapeAndScalarMapPL, VISU_ScalarMapPL); - - static - VISU_DeformedShapeAndScalarMapPL* - New(); - - virtual - void - SetScale(vtkFloatingPointType theScale); - - virtual - vtkFloatingPointType - GetScale(); - - virtual - int - GetScalarMode(); - - virtual - void - SetScalarMode(int theScalarMode = 0); - - virtual - void - SetScaling(int theScaling); - - virtual - void - SetScalarRange(vtkFloatingPointType theRange[2]); - - virtual - vtkFloatingPointType* - GetScalarRange(); - - virtual - void - GetSourceRange(vtkFloatingPointType theRange[2]); - - virtual - void - SetScalars(vtkDataSet *theScalars); - - virtual - vtkDataSet* - GetScalars(); - -public: - //! Redefined method for initialization of the pipeline. - virtual - void - Init(); - - //! Redefined method for building the pipeline. - virtual - void - Build(); - - //! Redefined method for updating the pipeline. - virtual - void - Update(); - - //! Gets memory size used by the instance (bytes). - virtual - unsigned long int - GetMemorySize(); - - //! Update scalars. - void - UpdateScalars(); - - virtual - void - SetMapScale(vtkFloatingPointType theMapScale = 1.0); - -protected: - VISU_DeformedShapeAndScalarMapPL(); - - virtual - ~VISU_DeformedShapeAndScalarMapPL(); - - virtual - vtkDataSet* - InsertCustomPL(); - - virtual - void - DoShallowCopy(VISU_PipeLine *thePipeLine, - bool theIsCopyInput); - -private: - VISU_DeformedShapeAndScalarMapPL(const VISU_DeformedShapeAndScalarMapPL&); - - vtkFloatingPointType myScaleFactor; - vtkFloatingPointType myMapScaleFactor; - vtkWarpVector *myWarpVector; - VISU_MergeFilter *myScalarsMergeFilter; - vtkSmartPointer myScalars; - vtkCellDataToPointData* myCellDataToPointData; - VISU_FieldTransform* myScalarsFieldTransform; - VISU_Extractor* myScalarsExtractor; - VISU_ElnoDisassembleFilter* myScalarsElnoDisassembleFilter; -}; - -#endif diff --git a/src/PIPELINE/VISU_ElnoAssembleFilter.cxx b/src/PIPELINE/VISU_ElnoAssembleFilter.cxx deleted file mode 100644 index dcebe4b4..00000000 --- a/src/PIPELINE/VISU_ElnoAssembleFilter.cxx +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -#include "VISU_ElnoAssembleFilter.hxx" -#include "VISU_PipeLineUtils.hxx" -#include "VISU_ElnoMeshValue.hxx" - -#include -#include -#include -#include -#include -#include -#include -#include - - -//---------------------------------------------------------------------------- -vtkStandardNewMacro( VISU_ElnoAssembleFilter ); - - -//---------------------------------------------------------------------------- -VISU_ElnoAssembleFilter::VISU_ElnoAssembleFilter() -{ - this->SetInputArrayToProcess( 0, // idx - 0, // port - 0, // connection - vtkDataObject::FIELD_ASSOCIATION_POINTS, // field association - "ELNO_POINT_COORDS" ); // name - - this->myIsRestorePoints = false; -} - - -//---------------------------------------------------------------------------- -VISU_ElnoAssembleFilter::~VISU_ElnoAssembleFilter() -{} - - -//---------------------------------------------------------------------------- -void VISU_ElnoAssembleFilter::SetElnoAssembleState( bool theIsRestorePoints ) -{ - if ( myIsRestorePoints == theIsRestorePoints ) - return; - - myIsRestorePoints = theIsRestorePoints; - this->Modified(); -} - -//---------------------------------------------------------------------------- -namespace -{ - //---------------------------------------------------------------------------- - template < int points_type, int elno_type > - int Execute2( vtkPointSet *theInput, - vtkPointSet *theOutput, - vtkDataArray *theElnoPointCoords ) - { - theOutput->CopyStructure( theInput ); - - vtkCellData *aCellData = theOutput->GetCellData(); - aCellData->PassData( theInput->GetCellData() ); - - vtkPointData *aPointData = theOutput->GetPointData(); - aPointData->PassData( theInput->GetPointData() ); - - vtkPoints *anInputPoints = theInput->GetPoints(); - vtkPoints *aPoints = anInputPoints->New( elno_type ); - vtkIdType aNbPoints = theInput->GetNumberOfPoints(); - aPoints->SetNumberOfPoints( aNbPoints ); - - typedef typename VISU::TL::TEnum2VTKArrayType< elno_type >::TResult TPointsDataArray; - typedef typename VISU::TL::TEnum2VTKBasicType< elno_type >::TResult TPointsDataType; - TPointsDataArray* anOutputPointsArray = TPointsDataArray::SafeDownCast( aPoints->GetData() ); - - TPointsDataArray* anElnoPointCoords = TPointsDataArray::SafeDownCast( theElnoPointCoords ); - - for ( vtkIdType aPointId = 0; aPointId < aNbPoints; aPointId++ ) { - TPointsDataType aCoords[ 3 ]; - anElnoPointCoords->GetTupleValue( aPointId, aCoords ); - anOutputPointsArray->SetTupleValue( aPointId, aCoords ); - } - - theOutput->SetPoints( aPoints ); - - return 1; - } - - - //---------------------------------------------------------------------------- - template < int points_type > - int Execute( vtkPointSet *theInput, - vtkPointSet *theOutput, - vtkDataArray *theElnoPointCoords ) - { - switch( theElnoPointCoords->GetDataType() ){ - case VTK_DOUBLE: - return Execute2< points_type, VTK_DOUBLE >( theInput, theOutput, theElnoPointCoords ); - case VTK_FLOAT: - return Execute2< points_type, VTK_FLOAT >( theInput, theOutput, theElnoPointCoords ); - case VTK_INT: - return Execute2< points_type, VTK_INT >( theInput, theOutput, theElnoPointCoords ); - case VTK_LONG: - return Execute2< points_type, VTK_LONG >( theInput, theOutput, theElnoPointCoords ); - default: - break; - } - - return 0; - } - - - //---------------------------------------------------------------------------- -} - - -//---------------------------------------------------------------------------- -int VISU_ElnoAssembleFilter::RequestData( vtkInformation *vtkNotUsed(request), - vtkInformationVector **inputVector, - vtkInformationVector *outputVector ) -{ - // get the info objects - vtkInformation *inInfo = inputVector[0]->GetInformationObject(0); - vtkInformation *outInfo = outputVector->GetInformationObject(0); - - // get the input and ouptut - vtkPointSet *anInput = vtkPointSet::SafeDownCast( inInfo->Get( vtkDataObject::DATA_OBJECT() ) ); - vtkPointSet *anOutput = vtkPointSet::SafeDownCast( outInfo->Get( vtkDataObject::DATA_OBJECT() ) ); - - vtkDataArray *anElnoPointCoords = this->GetInputArrayToProcess( 0, inputVector ); - - if ( !myIsRestorePoints || !anElnoPointCoords ) { - anOutput->ShallowCopy( anInput ); - return 1; - } - - vtkPoints *aPoints = anInput->GetPoints(); - switch( aPoints->GetDataType() ){ - case VTK_DOUBLE: - return ::Execute< VTK_DOUBLE >( anInput, anOutput, anElnoPointCoords ); - case VTK_FLOAT: - return ::Execute< VTK_FLOAT >( anInput, anOutput, anElnoPointCoords ); - case VTK_INT: - return ::Execute< VTK_INT >( anInput, anOutput, anElnoPointCoords ); - case VTK_LONG: - return ::Execute< VTK_LONG >( anInput, anOutput, anElnoPointCoords ); - default: - break; - } - - return 0; -} - - -//---------------------------------------------------------------------------- diff --git a/src/PIPELINE/VISU_ElnoAssembleFilter.hxx b/src/PIPELINE/VISU_ElnoAssembleFilter.hxx deleted file mode 100644 index ca023a3e..00000000 --- a/src/PIPELINE/VISU_ElnoAssembleFilter.hxx +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -#ifndef VISU_ElnoAssembleFilter_H -#define VISU_ElnoAssembleFilter_H - -#include - -class VISU_ElnoAssembleFilter : public vtkPointSetAlgorithm -{ -public: - typedef vtkPointSetAlgorithm Superclass; - - static VISU_ElnoAssembleFilter *New(); - - void SetElnoAssembleState( bool theIsRestorePoints ); - -protected: - VISU_ElnoAssembleFilter(); - ~VISU_ElnoAssembleFilter(); - - int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); - - bool myIsRestorePoints; - -private: - VISU_ElnoAssembleFilter(const VISU_ElnoAssembleFilter&); // Not implemented. - void operator=(const VISU_ElnoAssembleFilter&); // Not implemented. -}; - -#endif diff --git a/src/PIPELINE/VISU_ElnoDisassembleFilter.cxx b/src/PIPELINE/VISU_ElnoDisassembleFilter.cxx deleted file mode 100644 index 3c73cbf2..00000000 --- a/src/PIPELINE/VISU_ElnoDisassembleFilter.cxx +++ /dev/null @@ -1,402 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -#include "VISU_ElnoDisassembleFilter.hxx" -#include "VISU_PipeLineUtils.hxx" -#include "VISU_ElnoMeshValue.hxx" - -#include -#include -#include -#include -#include -#include -#include -#include - - -//---------------------------------------------------------------------------- -vtkStandardNewMacro( VISU_ElnoDisassembleFilter ); - - -//---------------------------------------------------------------------------- -VISU_ElnoDisassembleFilter::VISU_ElnoDisassembleFilter() -{ - this->SetInputArrayToProcess( 0, // idx - 0, // port - 0, // connection - vtkDataObject::FIELD_ASSOCIATION_CELLS, // field association - "ELNO_FIELD" ); // name - - this->SetInputArrayToProcess( 1, // idx - 0, // port - 0, // connection - vtkDataObject::FIELD_ASSOCIATION_CELLS, // field association - "ELNO_COMPONENT_MAPPER" ); // name - - this->myShrinkFactor = -0.999; -} - - -//---------------------------------------------------------------------------- -VISU_ElnoDisassembleFilter::~VISU_ElnoDisassembleFilter() -{} - - -//---------------------------------------------------------------------------- -void VISU_ElnoDisassembleFilter::SetShrinkFactor( vtkFloatingPointType theValue ) -{ - if ( VISU::CheckIsSameValue( theValue, myShrinkFactor ) ) - return; - - myShrinkFactor = theValue; - this->Modified(); -} - - -//---------------------------------------------------------------------------- -vtkFloatingPointType VISU_ElnoDisassembleFilter::GetShrinkFactor() -{ - return myShrinkFactor; -} - - -//---------------------------------------------------------------------------- -namespace -{ - //---------------------------------------------------------------------------- - template < int points_type, int elno_type > - struct TExecute2 - { - vtkUnstructuredGrid *myInput; - vtkUnstructuredGrid *myOutput; - vtkDataArray *myElnoDataArray; - vtkDataArray *myElnoDataMapper; - vtkFloatingPointType myShrinkFactor; - - typedef typename VISU::TL::TEnum2VTKArrayType< points_type >::TResult TPointsDataArray; - typedef typename VISU::TL::TEnum2VTKBasicType< points_type >::TResult TPointsDataType; - - typedef typename VISU::TL::TEnum2VTKArrayType< elno_type >::TResult TElnoDataArray; - typedef typename VISU::TL::TEnum2VTKBasicType< elno_type >::TResult TElnoDataType; - - VISU::TGetElnoNodeData< elno_type > myGetElnoNodeData; - vtkCellArray *myConnectivity; - vtkPointData *myInputPointData; - vtkPointData *myOutputPointData; - TPointsDataArray *myInputPointsArray; - TPointsDataArray *myOutputPointsArray; - TElnoDataArray* myElnoFullDataArray; - TElnoDataArray* myElnoPartialDataArray; - TPointsDataArray *myElnoPointCoords; - vtkIntArray* myInputPointsMapper; - vtkIntArray* myOutputPointsMapper; - - //---------------------------------------------------------------------------- - TExecute2( vtkUnstructuredGrid *theInput, - vtkUnstructuredGrid *theOutput, - vtkDataArray *theElnoDataArray, - vtkDataArray *theElnoDataMapper, - vtkFloatingPointType theShrinkFactor ) - : myGetElnoNodeData( theElnoDataArray, theElnoDataMapper ) - , myInput( theInput ) - , myOutput( theOutput ) - , myElnoDataArray( theElnoDataArray ) - , myElnoDataMapper( theElnoDataMapper ) - , myShrinkFactor( theShrinkFactor ) - { - myConnectivity = vtkCellArray::New(); - myConnectivity->DeepCopy( theInput->GetCells() ); - - vtkPoints *anInputPoints = theInput->GetPoints(); - vtkPoints *aPoints = anInputPoints->New( anInputPoints->GetDataType() ); - vtkIdType aNbCells = myConnectivity->GetNumberOfCells(); - vtkIdType aNbPoints = myConnectivity->GetNumberOfConnectivityEntries() - aNbCells; - aPoints->Allocate( aNbPoints ); - - myInputPointsArray = TPointsDataArray::SafeDownCast( anInputPoints->GetData() ); - myOutputPointsArray = TPointsDataArray::SafeDownCast( aPoints->GetData() ); - - myInputPointData = theInput->GetPointData(); - myOutputPointData = theOutput->GetPointData(); - myOutputPointData->Allocate( aNbPoints ); - - vtkCellData *anInputCellData = theInput->GetCellData(); - - // To create a new copy of initial data for output - myElnoFullDataArray = TElnoDataArray::New(); - myElnoFullDataArray->SetName( "VISU_FIELD" ); - myElnoFullDataArray->SetNumberOfComponents( myGetElnoNodeData.getNbComp() ); - myElnoFullDataArray->SetNumberOfTuples( aNbPoints ); - - // To create a new copy of partial initial data for output - myElnoPartialDataArray = TElnoDataArray::New(); - // This partial data can be represented as in terms of vectors as scalars - if ( anInputCellData->GetVectors() != NULL ) - myElnoPartialDataArray->SetNumberOfComponents( 3 ); - else - myElnoPartialDataArray->SetNumberOfComponents( 1 ); - myElnoPartialDataArray->SetNumberOfTuples( aNbPoints ); - - myElnoPointCoords = TPointsDataArray::New(); - myElnoPointCoords->SetName( "ELNO_POINT_COORDS" ); - myElnoPointCoords->SetNumberOfComponents( 3 ); - myElnoPointCoords->SetNumberOfTuples( aNbPoints ); - - vtkDataArray* anArray = myInputPointData->GetArray( "VISU_POINTS_MAPPER" ); - myInputPointsMapper = vtkIntArray::SafeDownCast( anArray ); - - myOutputPointsMapper = vtkIntArray::New(); - myOutputPointsMapper->SetName( myInputPointsMapper->GetName() ); - myOutputPointsMapper->SetNumberOfComponents( myInputPointsMapper->GetNumberOfComponents() ); - myOutputPointsMapper->SetNumberOfTuples( aNbPoints ); - - if ( theShrinkFactor > 0.0 ) - this->ShrinkExecute(); - else - this->SimpleExecute(); - - theOutput->SetPoints( aPoints ); - - theOutput->SetCells( theInput->GetCellTypesArray(), - theInput->GetCellLocationsArray(), - myConnectivity ); - - myConnectivity->Delete(); - - vtkCellData *anOutputCellData = theOutput->GetCellData(); - anOutputCellData->PassData( anInputCellData ); - - anOutputCellData->RemoveArray( "ELNO_COMPONENT_MAPPER" ); - anOutputCellData->RemoveArray( "ELNO_FIELD" ); - anOutputCellData->RemoveArray( "VISU_FIELD" ); - anOutputCellData->SetVectors( NULL ); - - //anOutputPointData->PassData( anInputPointData ); - - myOutputPointData->AddArray( myElnoFullDataArray ); - myElnoFullDataArray->Delete(); - - if ( anInputCellData->GetVectors() != NULL ) - myOutputPointData->SetVectors( myElnoPartialDataArray ); - else - myOutputPointData->SetScalars( myElnoPartialDataArray ); - myElnoPartialDataArray->Delete(); - - myOutputPointData->AddArray( myElnoPointCoords ); - myElnoPointCoords->Delete(); - - myOutputPointData->AddArray( myOutputPointsMapper ); - myOutputPointsMapper->Delete(); - } - - //---------------------------------------------------------------------------- - void SimpleExecute() - { - // To reserve a temproary value holder - vtkIdType aNbComp = std::max( 3, myGetElnoNodeData.getNbComp() ); - std::vector< TElnoDataType > anElnoDataValues( aNbComp ); - - std::vector< int > anPointsMapperValues( myInputPointsMapper->GetNumberOfComponents() ); - - myConnectivity->InitTraversal(); - vtkIdType aNbPts = 0, *aPts = 0; - for ( vtkIdType aCellId = 0; myConnectivity->GetNextCell( aNbPts, aPts ); aCellId++ ) { - for ( vtkIdType aPntId = 0; aPntId < aNbPts; aPntId++ ) { - TPointsDataType aCoords[ 3 ]; - vtkIdType aCurrentPntId = aPts[ aPntId ]; - myInputPointsArray->GetTupleValue( aCurrentPntId, aCoords ); - - aPts[ aPntId ] = myOutputPointsArray->InsertNextTupleValue( aCoords ); - vtkIdType aNewPntId = aPts[ aPntId ]; - - myElnoPointCoords->SetTupleValue( aNewPntId, aCoords ); - - myOutputPointData->CopyData( myInputPointData, aCurrentPntId, aNewPntId ); - - TElnoDataType* anElnoData = myGetElnoNodeData( aCellId, aPntId ); - myElnoFullDataArray->SetTupleValue( aNewPntId, anElnoData ); - - myElnoFullDataArray->GetTupleValue( aNewPntId, &anElnoDataValues[ 0 ] ); - myElnoPartialDataArray->SetTupleValue( aNewPntId, &anElnoDataValues[ 0 ] ); - - myInputPointsMapper->GetTupleValue( aCurrentPntId, &anPointsMapperValues[ 0 ] ); - myOutputPointsMapper->SetTupleValue( aNewPntId, &anPointsMapperValues[ 0 ] ); - } - } - } - - //---------------------------------------------------------------------------- - void ShrinkExecute() - { - // To reserve a temproary value holder - vtkIdType aNbComp = std::max( 3, myGetElnoNodeData.getNbComp() ); - std::vector< TElnoDataType > anElnoDataValues( aNbComp ); - - std::vector< int > anPointsMapperValues( myInputPointsMapper->GetNumberOfComponents() ); - - myConnectivity->InitTraversal(); - vtkIdType aNbPts = 0, *aPts = 0; - for ( vtkIdType aCellId = 0; myConnectivity->GetNextCell( aNbPts, aPts ); aCellId++ ) { - - TPointsDataType aCenter[ 3 ] = { TPointsDataType(), TPointsDataType(), TPointsDataType() }; - - for ( vtkIdType aPntId = 0; aPntId < aNbPts; aPntId++ ) { - TPointsDataType aCoords[ 3 ]; - myInputPointsArray->GetTupleValue( aPts[ aPntId ], aCoords ); - - aCenter[ 0 ] += aCoords[ 0 ]; - aCenter[ 1 ] += aCoords[ 1 ]; - aCenter[ 2 ] += aCoords[ 2 ]; - } - - aCenter[ 0 ] /= aNbPts; - aCenter[ 1 ] /= aNbPts; - aCenter[ 2 ] /= aNbPts; - - for ( vtkIdType aPntId = 0; aPntId < aNbPts; aPntId++ ) { - TPointsDataType aCoords[ 3 ]; - vtkIdType aCurrentPntId = aPts[ aPntId ]; - myInputPointsArray->GetTupleValue( aCurrentPntId, aCoords ); - - TPointsDataType aNewCoords[ 3 ]; - - aNewCoords[ 0 ] = aCenter[ 0 ] + - TPointsDataType( myShrinkFactor * ( aCoords[ 0 ] - aCenter[ 0 ] ) ); - aNewCoords[ 1 ] = aCenter[ 1 ] + - TPointsDataType( myShrinkFactor * ( aCoords[ 1 ] - aCenter[ 1 ] ) ); - aNewCoords[ 2 ] = aCenter[ 2 ] + - TPointsDataType( myShrinkFactor * ( aCoords[ 2 ] - aCenter[ 2 ] ) ); - - aPts[ aPntId ] = myOutputPointsArray->InsertNextTupleValue( aNewCoords ); - vtkIdType aNewPntId = aPts[ aPntId ]; - - myElnoPointCoords->SetTupleValue( aNewPntId, aCoords ); - - myOutputPointData->CopyData( myInputPointData, aCurrentPntId, aNewPntId ); - - TElnoDataType* anElnoData = myGetElnoNodeData( aCellId, aPntId ); - myElnoFullDataArray->SetTupleValue( aNewPntId, anElnoData ); - - myElnoFullDataArray->GetTupleValue( aNewPntId, &anElnoDataValues[ 0 ] ); - myElnoPartialDataArray->SetTupleValue( aNewPntId, &anElnoDataValues[ 0 ] ); - - myInputPointsMapper->GetTupleValue( aCurrentPntId, &anPointsMapperValues[ 0 ] ); - myOutputPointsMapper->SetTupleValue( aNewPntId, &anPointsMapperValues[ 0 ] ); - } - } - } - }; - - - //---------------------------------------------------------------------------- - template < int points_type, int elno_type > - int Execute2( vtkUnstructuredGrid *theInput, - vtkUnstructuredGrid *theOutput, - vtkDataArray *theElnoDataArray, - vtkDataArray *theElnoDataMapper, - vtkFloatingPointType theShrinkFactor ) - { - TExecute2< points_type, elno_type >( theInput, - theOutput, - theElnoDataArray, - theElnoDataMapper, - theShrinkFactor ); - - return 1; - } - - - //---------------------------------------------------------------------------- - template < int points_type > - int Execute( vtkUnstructuredGrid *theInput, - vtkUnstructuredGrid *theOutput, - vtkDataArray *theElnoDataArray, - vtkDataArray *theElnoDataMapper, - vtkFloatingPointType theShrinkFactor ) - { - switch( theElnoDataArray->GetDataType() ){ - case VTK_DOUBLE: - return Execute2< points_type, VTK_DOUBLE > - ( theInput, theOutput, theElnoDataArray, theElnoDataMapper, theShrinkFactor ); - case VTK_FLOAT: - return Execute2< points_type, VTK_FLOAT > - ( theInput, theOutput, theElnoDataArray, theElnoDataMapper, theShrinkFactor ); - case VTK_INT: - return Execute2< points_type, VTK_INT > - ( theInput, theOutput, theElnoDataArray, theElnoDataMapper, theShrinkFactor ); - case VTK_LONG: - return Execute2< points_type, VTK_LONG > - ( theInput, theOutput, theElnoDataArray, theElnoDataMapper, theShrinkFactor ); - default: - break; - } - - return 0; - } - - - //---------------------------------------------------------------------------- -} - - -//---------------------------------------------------------------------------- -int VISU_ElnoDisassembleFilter::RequestData( vtkInformation *vtkNotUsed(request), - vtkInformationVector **inputVector, - vtkInformationVector *outputVector ) -{ - // get the info objects - vtkInformation *inInfo = inputVector[0]->GetInformationObject(0); - vtkInformation *outInfo = outputVector->GetInformationObject(0); - - // get the input and ouptut - vtkUnstructuredGrid *anInput = - vtkUnstructuredGrid::SafeDownCast( inInfo->Get( vtkDataObject::DATA_OBJECT() ) ); - vtkUnstructuredGrid *anOutput = - vtkUnstructuredGrid::SafeDownCast( outInfo->Get( vtkDataObject::DATA_OBJECT() ) ); - - vtkDataArray *anElnoDataArray = this->GetInputArrayToProcess( 0, inputVector ); - vtkDataArray *anElnoDataMapper = this->GetInputArrayToProcess( 1, inputVector ); - - if ( !anElnoDataArray ) { - anOutput->ShallowCopy( anInput ); - return 1; - } - - vtkPoints *aPoints = anInput->GetPoints(); - switch( aPoints->GetDataType() ){ - case VTK_DOUBLE: - return ::Execute< VTK_DOUBLE >( anInput, anOutput, anElnoDataArray, anElnoDataMapper, myShrinkFactor ); - case VTK_FLOAT: - return ::Execute< VTK_FLOAT >( anInput, anOutput, anElnoDataArray, anElnoDataMapper, myShrinkFactor ); - case VTK_INT: - return ::Execute< VTK_INT >( anInput, anOutput, anElnoDataArray, anElnoDataMapper, myShrinkFactor ); - case VTK_LONG: - return ::Execute< VTK_LONG >( anInput, anOutput, anElnoDataArray, anElnoDataMapper, myShrinkFactor ); - default: - break; - } - - return 0; -} - - -//---------------------------------------------------------------------------- diff --git a/src/PIPELINE/VISU_ElnoDisassembleFilter.hxx b/src/PIPELINE/VISU_ElnoDisassembleFilter.hxx deleted file mode 100644 index 9276887d..00000000 --- a/src/PIPELINE/VISU_ElnoDisassembleFilter.hxx +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -#ifndef VISU_ElnoDisassembleFilter_H -#define VISU_ElnoDisassembleFilter_H - -#include "VISUPipeline.hxx" - -#include - -class VISU_PIPELINE_EXPORT VISU_ElnoDisassembleFilter : public vtkUnstructuredGridAlgorithm -{ -public: - typedef vtkUnstructuredGridAlgorithm Superclass; - - static VISU_ElnoDisassembleFilter *New(); - - void SetShrinkFactor( vtkFloatingPointType theValue ); - vtkFloatingPointType GetShrinkFactor(); - -protected: - VISU_ElnoDisassembleFilter(); - ~VISU_ElnoDisassembleFilter(); - - int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); - - vtkFloatingPointType myShrinkFactor; - -private: - VISU_ElnoDisassembleFilter(const VISU_ElnoDisassembleFilter&); // Not implemented. - void operator=(const VISU_ElnoDisassembleFilter&); // Not implemented. -}; - -#endif diff --git a/src/PIPELINE/VISU_LabelPointsFilter.cxx b/src/PIPELINE/VISU_LabelPointsFilter.cxx deleted file mode 100644 index b0f14eba..00000000 --- a/src/PIPELINE/VISU_LabelPointsFilter.cxx +++ /dev/null @@ -1,293 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File: VISU_LabelPointsFilter.cxx -// Author: Vitaly Smetannikov -// Module : VISU -// -#include "VISU_LabelPointsFilter.hxx" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include - - -#define CONTAINS(SET, PT) (SET.find(PT) != SET.end()) - -struct ltIdType -{ - bool operator()(const vtkIdType a1, const vtkIdType a2) const - { - return a1 < a2; - } -}; - - - -//---------------------------------------------------------------------------- -vtkStandardNewMacro(VISU_LabelPointsFilter); - - -//---------------------------------------------------------------------------- -void VISU_LabelPointsFilter::SetPointsNb(int theNb) -{ - if (myPointsNb == theNb) return; - myPointsNb = (theNb < 1)? 1:theNb; - Modified(); -} - -//---------------------------------------------------------------------------- -VISU_LabelPointsFilter::VISU_LabelPointsFilter(): - vtkPolyDataAlgorithm(), - myPointsNb(3) -{ -} - -//---------------------------------------------------------------------------- -VISU_LabelPointsFilter::~VISU_LabelPointsFilter() -{} - - - -//---------------------------------------------------------------------------- -int VISU_LabelPointsFilter::RequestData(vtkInformation* vtkNotUsed(request), - vtkInformationVector** inputVector, - vtkInformationVector* outputVector) -{ - // get the info objects - vtkInformation* inInfo = inputVector[0]->GetInformationObject(0); - vtkInformation* outInfo = outputVector->GetInformationObject(0); - - // get the input and ouptut - vtkPolyData* input = vtkPolyData::SafeDownCast(inInfo->Get(vtkDataObject::DATA_OBJECT())); - vtkPolyData* output = vtkPolyData::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())); - - GetRegions(input, output); - - return 1; -} - -int VISU_LabelPointsFilter::RequestUpdateExtent(vtkInformation* vtkNotUsed(request), - vtkInformationVector** inputVector, - vtkInformationVector* outputVector) -{ - // get the info objects - vtkInformation *inInfo = inputVector[0]->GetInformationObject(0); - vtkInformation *outInfo = outputVector->GetInformationObject(0); - - vtkPolyData* input = vtkPolyData::SafeDownCast(inInfo->Get(vtkDataObject::DATA_OBJECT())); - vtkPolyData* output = vtkPolyData::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())); - - GetRegions(input, output); - return 1; -} - - - -int VISU_LabelPointsFilter::GetRegions(vtkPolyData* theInput, - vtkPolyData* theOutput) -{ - vtkIdType cellId, i; - vtkIdType numPts, numCells; - vtkPoints *inPts; - - vtkPointData *aInpPD=theInput->GetPointData(), *aOutPD=theOutput->GetPointData(); - vtkCellData *aInpCD=theInput->GetCellData(), *aOutCD=theOutput->GetCellData(); - - // Check input/allocate storage - // - inPts = theInput->GetPoints(); - - if (inPts == NULL) - return 1; - - numPts = inPts->GetNumberOfPoints(); - numCells = theInput->GetNumberOfCells(); - - if ( numPts < 1 || numCells < 1 ) - return 1; - - // Build cell structure - // - vtkPolyData* aMesh = vtkPolyData::New(); - aMesh->CopyStructure(theInput); - aMesh->BuildLinks(); - - // Initialize. Keep track of points and cells visited. - // - vtkIdTypeArray* aRegionSizes = vtkIdTypeArray::New(); - int* aVisited = new int[numCells]; - for ( i=0; i < numCells; i++ ) - aVisited[i] = -1; - - vtkIdType* aPointMap = new vtkIdType[numPts]; - for ( i=0; i < numPts; i++ ) - aPointMap[i] = -1; - - vtkPoints* newPts = vtkPoints::New(); - newPts->Allocate(numPts); - - // Traverse all cells marking those visited. Each new search - // starts a new connected region. Connected region grows - // using a connected wave propagation. - // - vtkIdList* aWave = vtkIdList::New(); - aWave->Allocate(numPts/4+1,numPts); - vtkIdList* aWave2 = vtkIdList::New(); - aWave2->Allocate(numPts/4+1,numPts); - - vtkIdType aPointNumber = 0; - int aRegionNumber = 0; - - vtkIdList* aCellIds = vtkIdList::New(); - aCellIds->Allocate(8, VTK_CELL_SIZE); - vtkIdList* aPointIds = vtkIdList::New(); - aPointIds->Allocate(8, VTK_CELL_SIZE); - - // vtkIdType aNumCellsInRegion; - - aOutPD->CopyAllocate(aInpPD); - aOutCD->CopyAllocate(aInpCD); - - //visit all cells marking with region number - for (cellId=0; cellId < numCells; cellId++) { - if ( aVisited[cellId] < 0 ) { - aWave->InsertNextId(cellId); - aPointNumber = 0; - TraverseAndMark(aWave, aWave2, aVisited, aPointMap, - aRegionNumber, aPointNumber, aMesh); - - if (aPointNumber >= myPointsNb) { - std::set aIdxSet; - for (i=0; i < numPts; i++) { - if ( aPointMap[i] > -1 ) { - aIdxSet.insert(i); - aPointMap[i] = -1; - } - } - std::vector aIdx(aIdxSet.begin(), aIdxSet.end()); - int aActualPts = aIdx.size(); - int aNewId; - if (myPointsNb > 2) { - int k = aActualPts/(myPointsNb - 1); - int count; - for (i=0, count = 0; i < aActualPts; i+=k, count++) { - aNewId = newPts->InsertNextPoint(inPts->GetPoint(aIdx[i])); - aOutPD->CopyData(aInpPD, aIdx[i], aNewId); - } - if (count < myPointsNb) { - aNewId = newPts->InsertNextPoint(inPts->GetPoint(aIdx[aActualPts - 1])); - aOutPD->CopyData(aInpPD, aIdx[aActualPts - 1], aNewId); - } - } else { - aNewId = newPts->InsertNextPoint(inPts->GetPoint(aIdx[0])); - aOutPD->CopyData(aInpPD, aIdx[0], aNewId); - if (myPointsNb == 2) { - aNewId = newPts->InsertNextPoint(inPts->GetPoint(aIdx[aActualPts - 1])); - aOutPD->CopyData(aInpPD, aIdx[aActualPts - 1], aNewId); - } - } - } - aWave->Reset(); - aWave2->Reset(); - } - } - - aWave->Delete(); - aWave2->Delete(); - - theOutput->SetPoints(newPts); - newPts->Delete(); - - - delete [] aVisited; - delete [] aPointMap; - aMesh->Delete(); - theOutput->Squeeze(); - aCellIds->Delete(); - aPointIds->Delete(); - - return aRegionSizes->GetMaxId() + 1; -} - - -// Mark current cell as visited and assign region number. Note: -// traversal occurs across shared vertices. -// -void VISU_LabelPointsFilter::TraverseAndMark (vtkIdList* theWave, - vtkIdList* theWave2, - int* theVisited, - vtkIdType* thePointMap, - int& theRegionNumber, - vtkIdType& thePointNumber, - vtkPolyData* theMesh) -{ - vtkIdType cellId, ptId, numIds, i; - int j, k; - vtkIdType *pts, *cells, npts; - vtkIdList *tmpWave; - unsigned short ncells; - vtkIdList* aNeighborCellPointIds = vtkIdList::New(); - - - while ( (numIds=theWave->GetNumberOfIds()) > 0 ) { - for ( i=0; i < numIds; i++ ) { - cellId = theWave->GetId(i); - if ( theVisited[cellId] < 0 ) { - theVisited[cellId] = theRegionNumber; - theMesh->GetCellPoints(cellId, npts, pts); - - for (j=0; j < npts; j++) { - if ( thePointMap[ptId=pts[j]] < 0 ) { - thePointMap[ptId] = thePointNumber++; - } - theMesh->GetPointCells(ptId,ncells,cells); - - // check connectivity criterion (geometric + scalar) - for (k=0; k < ncells; k++) { - cellId = cells[k]; - theWave2->InsertNextId(cellId); - // } - }//for all cells using this point - }//for all points of this cell - }//if cell not yet visited - }//for all cells in this wave - - tmpWave = theWave; - theWave = theWave2; - theWave2 = tmpWave; - tmpWave->Reset(); - } //while wave is not empty -} diff --git a/src/PIPELINE/VISU_LabelPointsFilter.hxx b/src/PIPELINE/VISU_LabelPointsFilter.hxx deleted file mode 100644 index d2e10a89..00000000 --- a/src/PIPELINE/VISU_LabelPointsFilter.hxx +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File: VISU_LabelPointsFilter.hxx -// Author: Vitaly Smetannikov -// Module : VISU -// -#ifndef VISU_LabelPointsFilter_HeaderFile -#define VISU_LabelPointsFilter_HeaderFile - -#include "VISUPipeline.hxx" -#include - -class vtkPolyData; - -class VISU_PIPELINE_EXPORT VISU_LabelPointsFilter : public vtkPolyDataAlgorithm -{ -public: - vtkTypeMacro(VISU_LabelPointsFilter, vtkPolyDataAlgorithm); - - static VISU_LabelPointsFilter* New(); - - void SetPointsNb(int theNb); - - int GetPointsNb() const { return myPointsNb; } - -protected: - VISU_LabelPointsFilter(); - - virtual ~VISU_LabelPointsFilter(); - - virtual int RequestData(vtkInformation* request, - vtkInformationVector** inputVector, - vtkInformationVector* outputVector); - - virtual int RequestUpdateExtent(vtkInformation*, - vtkInformationVector**, - vtkInformationVector*); - - - void TraverseAndMark (vtkIdList* theWave, - vtkIdList* theWave2, - int* theVisited, - vtkIdType* thePointMap, - int& theRegionNumber, - vtkIdType& thePointNumber, - vtkPolyData* theMesh); - - int GetRegions(vtkPolyData* theInput, - vtkPolyData* theOutput); - - int myPointsNb; - -}; - - -#endif diff --git a/src/PIPELINE/VISU_MergedPL.cxx b/src/PIPELINE/VISU_MergedPL.cxx deleted file mode 100644 index ca29edeb..00000000 --- a/src/PIPELINE/VISU_MergedPL.cxx +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File: VISU_MergedPL.cxx -// Author: Alexey PETROV -// Module : VISU -// -#include "VISU_MergedPL.hxx" -#include "VISU_PipeLine.hxx" - - -//---------------------------------------------------------------------------- -void -VISU_MergedPL -::DoShallowCopy(VISU_PipeLine *thePipeLine, - bool theIsCopyInput) -{ - if(VISU_MergedPL *aPipeLine = dynamic_cast(thePipeLine)){ - if ( this == aPipeLine ) - return; - - if ( aPipeLine->IsExternalGeometryUsed() ) { - ClearGeometry(); - int aNbOfGeometry = aPipeLine->GetNumberOfGeometry(); - for ( int aGeomNumber = 0; aGeomNumber < aNbOfGeometry; aGeomNumber++ ) - AddGeometry( aPipeLine->GetGeometry( aGeomNumber ) ); - }else - SetSourceGeometry(); - } -} diff --git a/src/PIPELINE/VISU_MergedPL.hxx b/src/PIPELINE/VISU_MergedPL.hxx deleted file mode 100644 index 7c30a4c3..00000000 --- a/src/PIPELINE/VISU_MergedPL.hxx +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File: VISU_MergedPL.hxx -// Author: Alexey PETROV -// Module : VISU -// -#ifndef VISU_MergedPL_HeaderFile -#define VISU_MergedPL_HeaderFile - -#include "VISUPipeline.hxx" - -class vtkDataSet; -class vtkPointSet; -class VISU_PipeLine; - - -//---------------------------------------------------------------------------- -struct VISU_PIPELINE_EXPORT VISU_MergedPL -{ - virtual - void - SetSourceGeometry() = 0; - - virtual - int - AddGeometry( vtkDataSet* theGeometry ) = 0; - - virtual - vtkDataSet* - GetGeometry( int theGeomNumber ) = 0; - - virtual - int - GetNumberOfGeometry() = 0; - - virtual - bool - IsExternalGeometryUsed() = 0; - - virtual - void - ClearGeometry() = 0; - - virtual - vtkPointSet* - GetMergedInput() = 0; - - virtual - void - DoShallowCopy(VISU_PipeLine *thePipeLine, - bool theIsCopyInput); -}; - -#endif diff --git a/src/PIPELINE/VISU_OptionalDeformationPL.cxx b/src/PIPELINE/VISU_OptionalDeformationPL.cxx deleted file mode 100755 index 496ebd19..00000000 --- a/src/PIPELINE/VISU_OptionalDeformationPL.cxx +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// File: VISU_ScalarMapPL.cxx -// Author: Roman NIKOLAEV -// Module : VISU -//Salome includes -// -#include "VISU_OptionalDeformationPL.hxx" -#include "VISU_PipeLineUtils.hxx" - -//VTK includes -#include -#include -#include -#include -#ifdef _DEBUG_ -static int MYDEBUG = 0; -#else -static int MYDEBUG = 0; -#endif - -//---------------------------------------------------------------------------- -VISU_OptionalDeformationPL::VISU_OptionalDeformationPL(): - VISU_DeformationPL(), - myIsDeformed(true) -{ - if(MYDEBUG) MESSAGE("VISU_OptionalDeformationPL()::VISU_OptionalDeformationPL() - "<SetInput(myInputPassFilter->GetOutput()); - myWarpVector->SetInput(myCellDataToPointData->GetOutput()); - myOutputPassFiler->SetInput(myWarpVector->GetOutput()); -} - -//---------------------------------------------------------------------------- -void VISU_OptionalDeformationPL::OffDeformation(){ - myOutputPassFiler->SetInput(myInputPassFilter->GetOutput()); -} - - - -bool VISU_OptionalDeformationPL::CheckCanDeformate(vtkDataSet* theInput){ - if(theInput) { - if(VISU::IsDataOnCells(theInput)) - return theInput->GetCellData()->GetVectors() != NULL; - else if(VISU::IsDataOnPoints(theInput)) - return theInput->GetPointData()->GetVectors() != NULL; - } - return false; -} diff --git a/src/PIPELINE/VISU_OptionalDeformationPL.hxx b/src/PIPELINE/VISU_OptionalDeformationPL.hxx deleted file mode 100755 index 0bd30730..00000000 --- a/src/PIPELINE/VISU_OptionalDeformationPL.hxx +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// File : VISU_OptionalDeformationPL.hxx -// Author : -// Module : SALOME -// -#ifndef VISU_OptionalDeformationPL_HeaderFile -#define VISU_OptionalDeformationPL_HeaderFile - -#include "VISUPipeline.hxx" -#include "VISU_DeformationPL.hxx" - -class VISU_PIPELINE_EXPORT VISU_OptionalDeformationPL: public VISU_DeformationPL -{ -public: - VISU_OptionalDeformationPL(); - virtual ~VISU_OptionalDeformationPL(); - - typedef VISU_DeformationPL Superclass; - - void UseDeformation(bool flag); - bool IsDeformed(); - - virtual - unsigned - long int - GetMTime(); - -protected: - bool CheckCanDeformate(vtkDataSet* theInput); - -private: - void OnDeformation(); - void OffDeformation(); - -private: - bool myIsDeformed; -}; - -#endif diff --git a/src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.cxx b/src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.cxx new file mode 100644 index 00000000..54ff4f87 --- /dev/null +++ b/src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.cxx @@ -0,0 +1,368 @@ +// VISU ScalarMapOnDeformedShapePL +// +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// +// +// File: VISU_ScalarMapOnDeformedShapePL.cxx +// Author: Eugeny Nikolaev +// Module : VISU + +#include "VISU_ScalarMapOnDeformedShapePL.hxx" +#include "VISU_FieldTransform.hxx" +#include "VISU_Extractor.hxx" +#include "VISU_LookupTable.hxx" +#include "VISU_DeformedShapePL.hxx" +#include "VTKViewer_TransformFilter.h" +#include "VTKViewer_Transform.h" +#include "VISU_MergeFilter.hxx" + +#include "VISU_PipeLineUtils.hxx" + +#include +#include +#include +#include + + +//---------------------------------------------------------------------------- +vtkStandardNewMacro(VISU_ScalarMapOnDeformedShapePL) + +//---------------------------------------------------------------------------- +/*! + * Constructor. Creating new instances of vtkWarpVector,vtkMergeFilter,vtkUnstructuredGrid + * Where: + * \li myDeformVectors is vtkWarpVector - deformation vectors data + * \li myScalarsMergeFilter is vtkMergeFilter - merge filter. + * Merge filter which unify the deformation and scalars + * \li myScalars is vtk shared pointer to vtkUnstructuredGrid - scalars data +*/ +VISU_ScalarMapOnDeformedShapePL +::VISU_ScalarMapOnDeformedShapePL(): + myScaleFactor(0.0) +{ + myWarpVector = vtkWarpVector::New(); + + myScalarsMergeFilter = VISU_MergeFilter::New(); + myScalarsMergeFilter->SetMergingInputs(true); + + myScalarsExtractor = VISU_Extractor::New(); + + myScalarsFieldTransform = VISU_FieldTransform::New(); + + myCellDataToPointData = vtkCellDataToPointData::New(); +} + +//---------------------------------------------------------------------------- +/*! + * Destructor. + * Delete all fields. +*/ +VISU_ScalarMapOnDeformedShapePL +::~VISU_ScalarMapOnDeformedShapePL() +{ + myWarpVector->Delete(); + + myScalarsMergeFilter->Delete(); + + myScalarsExtractor->Delete(); + + myScalarsFieldTransform->Delete(); + + myCellDataToPointData->Delete(); +} + +//---------------------------------------------------------------------------- +/*! + * Initial method + */ +void +VISU_ScalarMapOnDeformedShapePL +::Init() +{ + Superclass::Init(); + + SetScale(VISU_DeformedShapePL::GetDefaultScale(this)); +} + +//---------------------------------------------------------------------------- +/*! + * Build method + * Building of deformation and puts result to merge filter. + */ +void +VISU_ScalarMapOnDeformedShapePL +::Build() +{ + Superclass::Build(); +} + + +//---------------------------------------------------------------------------- +vtkDataSet* +VISU_ScalarMapOnDeformedShapePL +::InsertCustomPL() +{ + GetMapper()->SetColorModeToMapScalars(); + GetMapper()->ScalarVisibilityOn(); + + VISU::CellDataToPoint(myWarpVector, + myCellDataToPointData, + GetMergedInput()); + + myScalars = GetMergedInput(); + + UpdateScalars(); + + myScalarsFieldTransform->SetInput(myScalarsExtractor->GetOutput()); + + // Sets geometry for merge filter + myScalarsMergeFilter->SetGeometry(myWarpVector->GetUnstructuredGridOutput()); + + vtkDataSet* aScalarsDataSet = myScalarsFieldTransform->GetOutput(); + myScalarsMergeFilter->SetScalars(aScalarsDataSet); + myScalarsMergeFilter->AddField("VISU_CELLS_MAPPER", aScalarsDataSet); + myScalarsMergeFilter->AddField("VISU_POINTS_MAPPER", aScalarsDataSet); + + return myScalarsMergeFilter->GetOutput(); +} + + +//---------------------------------------------------------------------------- +/*! + * Update method + */ +void +VISU_ScalarMapOnDeformedShapePL +::Update() +{ + Superclass::Update(); + //{ + // std::string aFileName = std::string(getenv("HOME"))+"/"+getenv("USER")+"-myScalarsExtractor.vtk"; + // VISU::WriteToFile(myScalarsExtractor->GetUnstructuredGridOutput(), aFileName); + //} + //{ + // std::string aFileName = std::string(getenv("HOME"))+"/"+getenv("USER")+"-myWarpVector.vtk"; + // VISU::WriteToFile(myWarpVector->GetUnstructuredGridOutput(), aFileName); + //} + //{ + // std::string aFileName = std::string(getenv("HOME"))+"/"+getenv("USER")+"-myScalarsMergeFilter.vtk"; + // VISU::WriteToFile(myScalarsMergeFilter->GetUnstructuredGridOutput(), aFileName); + //} +} + +//---------------------------------------------------------------------------- +unsigned long int +VISU_ScalarMapOnDeformedShapePL +::GetMemorySize() +{ + unsigned long int aSize = Superclass::GetMemorySize(); + + if(vtkDataSet* aDataSet = myWarpVector->GetOutput()) + aSize += aDataSet->GetActualMemorySize() * 1024; + + if(vtkDataSet* aDataSet = myScalarsExtractor->GetOutput()) + aSize += aDataSet->GetActualMemorySize() * 1024; + + if(vtkDataSet* aDataSet = myScalarsMergeFilter->GetOutput()) + aSize += aDataSet->GetActualMemorySize() * 1024; + + if(myCellDataToPointData->GetInput()) + if(vtkDataSet* aDataSet = myCellDataToPointData->GetOutput()) + aSize += aDataSet->GetActualMemorySize() * 1024; + + return aSize; +} + +//---------------------------------------------------------------------------- +/*! + * Update scalars method. + * Put scalars to merge filter. + */ +void +VISU_ScalarMapOnDeformedShapePL +::UpdateScalars() +{ + vtkDataSet* aScalars = GetScalars(); + myScalarsExtractor->SetInput(aScalars); + + if(VISU::IsDataOnCells(aScalars)) + GetMapper()->SetScalarModeToUseCellData(); + else + GetMapper()->SetScalarModeToUsePointData(); +} + +//---------------------------------------------------------------------------- +/*! + * Copy information about pipline. + * Copy scale and scalars. + */ +void +VISU_ScalarMapOnDeformedShapePL +::DoShallowCopy(VISU_PipeLine *thePipeLine, + bool theIsCopyInput) +{ + Superclass::DoShallowCopy(thePipeLine, theIsCopyInput); + + if(VISU_ScalarMapOnDeformedShapePL *aPipeLine = dynamic_cast(thePipeLine)){ + SetScale(aPipeLine->GetScale()); + SetScalars(aPipeLine->GetScalars()); + } +} + +//---------------------------------------------------------------------------- +/*! + * Set scalars. + * Sets vtkDataSet with scalars values to VISU_Extractor filter for scalars extraction. + */ +void +VISU_ScalarMapOnDeformedShapePL +::SetScalars(vtkDataSet *theScalars) +{ + if(GetScalars() == theScalars) + return; + + myScalars = theScalars; + UpdateScalars(); +} + +//---------------------------------------------------------------------------- +/*! + * Get pointer to input scalars. + */ +vtkDataSet* +VISU_ScalarMapOnDeformedShapePL +::GetScalars() +{ + return myScalars.GetPointer(); +} + +//---------------------------------------------------------------------------- +/*! + * Sets scale for deformed shape + */ +void +VISU_ScalarMapOnDeformedShapePL +::SetScale(vtkFloatingPointType theScale) +{ + if(VISU::CheckIsSameValue(myScaleFactor, theScale)) + return; + + myWarpVector->SetScaleFactor(theScale); + myScaleFactor = theScale; +} + +//---------------------------------------------------------------------------- +/*! + * Gets scale of deformed shape. + */ +vtkFloatingPointType +VISU_ScalarMapOnDeformedShapePL +::GetScale() +{ + return myWarpVector->GetScaleFactor(); +} + +//---------------------------------------------------------------------------- +/*! + * Set scale factor of deformation. + */ +void +VISU_ScalarMapOnDeformedShapePL +::SetMapScale(vtkFloatingPointType theMapScale) +{ + Superclass::SetMapScale(theMapScale); + myWarpVector->SetScaleFactor(myScaleFactor*theMapScale); +} + +//---------------------------------------------------------------------------- +/*! + * Gets scalar mode. + */ +int +VISU_ScalarMapOnDeformedShapePL +::GetScalarMode() +{ + return myScalarsExtractor->GetScalarMode(); +} + +//---------------------------------------------------------------------------- +/*! + * Sets scalar mode. + */ +void +VISU_ScalarMapOnDeformedShapePL +::SetScalarMode(int theScalarMode) +{ + VISU_ScalarMapPL::SetScalarMode(theScalarMode, GetScalars(), myScalarsExtractor); +} + +//---------------------------------------------------------------------------- +void +VISU_ScalarMapOnDeformedShapePL +::SetScaling(int theScaling) +{ + if(GetScaling() == theScaling) + return; + + GetBarTable()->SetScale(theScaling); + + if(theScaling == VTK_SCALE_LOG10) + myScalarsFieldTransform->SetScalarTransform(&(VISU_FieldTransform::Log10)); + else + myScalarsFieldTransform->SetScalarTransform(&(VISU_FieldTransform::Ident)); +} + + +//---------------------------------------------------------------------------- +void +VISU_ScalarMapOnDeformedShapePL +::SetScalarRange(vtkFloatingPointType theRange[2]) +{ + if(VISU::CheckIsSameRange(theRange, GetScalarRange())) + return; + + myScalarsFieldTransform->SetScalarRange(theRange); + GetBarTable()->SetRange(theRange); +} + + +//---------------------------------------------------------------------------- +vtkFloatingPointType* +VISU_ScalarMapOnDeformedShapePL +::GetScalarRange() +{ + return myScalarsFieldTransform->GetScalarRange(); +} + + +//---------------------------------------------------------------------------- +/*! + * Gets ranges of extracted scalars + * \param theRange[2] - output values + * \li theRange[0] - minimum value + * \li theRange[1] - maximum value + */ +void +VISU_ScalarMapOnDeformedShapePL +::GetSourceRange(vtkFloatingPointType theRange[2]) +{ + myScalarsExtractor->Update(); + myScalarsExtractor->GetUnstructuredGridOutput()->GetScalarRange(theRange); +} diff --git a/src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.hxx b/src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.hxx new file mode 100644 index 00000000..041a37d2 --- /dev/null +++ b/src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.hxx @@ -0,0 +1,146 @@ +// VISU OBJECT : interactive object for VISU entities implementation +// +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// +// +// File: VISU_ScalarMapOnDeformedShapePL.hxx +// Author: Eugeny Nikolaev +// Module : VISU + +#ifndef VISU_ScalarMapOnDeformedShapePL_HeaderFile +#define VISU_ScalarMapOnDeformedShapePL_HeaderFile + +#include "VISUPipeline.hxx" +#include "VISU_ScalarMapPL.hxx" + +class VISU_MergeFilter; +class vtkWarpVector; +class vtkUnstructuredGrid; +class vtkCellDataToPointData; +class vtkPointDataToCellData; + + +//---------------------------------------------------------------------------- +class VISU_PIPELINE_EXPORT VISU_ScalarMapOnDeformedShapePL : public VISU_ScalarMapPL +{ +public: + vtkTypeMacro(VISU_ScalarMapOnDeformedShapePL, VISU_ScalarMapPL); + + static + VISU_ScalarMapOnDeformedShapePL* + New(); + + virtual + void + SetScale(vtkFloatingPointType theScale); + + virtual + vtkFloatingPointType + GetScale(); + + virtual + int + GetScalarMode(); + + virtual + void + SetScalarMode(int theScalarMode = 0); + + virtual + void + SetScaling(int theScaling); + + virtual + void + SetScalarRange(vtkFloatingPointType theRange[2]); + + virtual + vtkFloatingPointType* + GetScalarRange(); + + virtual + void + GetSourceRange(vtkFloatingPointType theRange[2]); + + virtual + void + SetScalars(vtkDataSet *theScalars); + + virtual + vtkDataSet* + GetScalars(); + +public: + //! Redefined method for initialization of the pipeline. + virtual + void + Init(); + + //! Redefined method for building the pipeline. + virtual + void + Build(); + + //! Redefined method for updating the pipeline. + virtual + void + Update(); + + //! Gets memory size used by the instance (bytes). + virtual + unsigned long int + GetMemorySize(); + + //! Update scalars. + void + UpdateScalars(); + + virtual + void + SetMapScale(vtkFloatingPointType theMapScale = 1.0); + +protected: + VISU_ScalarMapOnDeformedShapePL(); + + virtual + ~VISU_ScalarMapOnDeformedShapePL(); + + virtual + vtkDataSet* + InsertCustomPL(); + + virtual + void + DoShallowCopy(VISU_PipeLine *thePipeLine, + bool theIsCopyInput); + +private: + VISU_ScalarMapOnDeformedShapePL(const VISU_ScalarMapOnDeformedShapePL&); + + vtkFloatingPointType myScaleFactor; + vtkWarpVector *myWarpVector; + VISU_MergeFilter *myScalarsMergeFilter; + vtkSmartPointer myScalars; + vtkCellDataToPointData* myCellDataToPointData; + VISU_FieldTransform* myScalarsFieldTransform; + VISU_Extractor* myScalarsExtractor; +}; + +#endif diff --git a/src/PIPELINE/VISU_XYPlotActor.cxx b/src/PIPELINE/VISU_XYPlotActor.cxx deleted file mode 100644 index a151b2fe..00000000 --- a/src/PIPELINE/VISU_XYPlotActor.cxx +++ /dev/null @@ -1,2244 +0,0 @@ -/*========================================================================= - - Program: Visualization Toolkit - Module: $RCSfile$ - - Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen - All rights reserved. - See Copyright.txt or http://www.kitware.com/Copyright.htm for details. - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the above copyright notice for more information. - -=========================================================================*/ -#include "VISU_XYPlotActor.hxx" - -#include "vtkAppendPolyData.h" -#include "vtkAxisActor2D.h" -#include "vtkCellArray.h" -#include "vtkDataObjectCollection.h" -#include "vtkDataSetCollection.h" -#include "vtkFieldData.h" -#include "vtkDoubleArray.h" -#include "vtkGlyph2D.h" -#include "vtkGlyphSource2D.h" -#include "vtkIntArray.h" -#include "vtkLegendBoxActor.h" -#include "vtkMath.h" -#include "vtkObjectFactory.h" -#include "vtkPlane.h" -#include "vtkPlanes.h" -#include "vtkPointData.h" -#include "vtkPolyData.h" -#include "vtkPolyDataMapper2D.h" -#include "vtkProperty2D.h" -#include "vtkTextMapper.h" -#include "vtkTextProperty.h" -#include "vtkViewport.h" -#include "vtkTransformPolyDataFilter.h" // RKV -#include "vtkTransform.h" // RKV - -#define VTK_MAX_PLOTS 50 - -using namespace std; - -vtkCxxRevisionMacro(VISU_XYPlotActor, "$Revision$"); -vtkStandardNewMacro(VISU_XYPlotActor); - -vtkCxxSetObjectMacro(VISU_XYPlotActor,TitleTextProperty,vtkTextProperty); -vtkCxxSetObjectMacro(VISU_XYPlotActor,AxisLabelTextProperty,vtkTextProperty); -vtkCxxSetObjectMacro(VISU_XYPlotActor,AxisTitleTextProperty,vtkTextProperty); - -//---------------------------------------------------------------------------- -// Instantiate object -VISU_XYPlotActor::VISU_XYPlotActor() -{ - this->PositionCoordinate->SetCoordinateSystemToNormalizedViewport(); - this->PositionCoordinate->SetValue(0.25,0.25); - this->Position2Coordinate->SetValue(0.5, 0.5); - - this->InputList = vtkDataSetCollection::New(); - this->SelectedInputScalars = NULL; - this->SelectedInputScalarsComponent = vtkIntArray::New(); - this->DataObjectInputList = vtkDataObjectCollection::New(); - - this->Title = NULL; - this->XTitle = new char[7]; - sprintf(this->XTitle,"%s","X Axis"); - this->YTitle = new char[7]; - sprintf(this->YTitle,"%s","Y Axis"); - - this->XValues = VTK_XYPLOT_INDEX; - this->PlotLocation = VISU_XYPLOT_BOTTOM; // RKV - - this->NumberOfXLabels = 5; - this->NumberOfYLabels = 5; - - this->TitleTextProperty = vtkTextProperty::New(); - this->TitleTextProperty->SetBold(1); - this->TitleTextProperty->SetItalic(1); - this->TitleTextProperty->SetShadow(1); - this->TitleTextProperty->SetFontFamilyToArial(); - - this->AxisLabelTextProperty = vtkTextProperty::New(); - this->AxisLabelTextProperty->ShallowCopy(this->TitleTextProperty); - - this->AxisTitleTextProperty = vtkTextProperty::New(); - this->AxisTitleTextProperty->ShallowCopy(this->AxisLabelTextProperty); - - this->LabelFormat = new char[8]; - sprintf(this->LabelFormat,"%s","%-#6.3g"); - - this->Logx = 0; - - this->XRange[0] = 0.0; - this->XRange[1] = 0.0; - this->YRange[0] = 0.0; - this->YRange[1] = 0.0; - - this->Border = 5; - this->PlotLines = 1; - this->PlotPoints = 0; - this->PlotCurveLines = 0; - this->PlotCurvePoints = 0; - this->ExchangeAxes = 0; - this->ReverseXAxis = 0; - this->ReverseYAxis = 0; - - this->TitleMapper = vtkTextMapper::New(); - this->TitleActor = vtkActor2D::New(); - this->TitleActor->SetMapper(this->TitleMapper); - this->TitleActor->GetPositionCoordinate()->SetCoordinateSystemToViewport(); - - this->XAxis = vtkAxisActor2D::New(); - this->XAxis->GetPositionCoordinate()->SetCoordinateSystemToViewport(); - this->XAxis->GetPosition2Coordinate()->SetCoordinateSystemToViewport(); - this->XAxis->SetProperty(this->GetProperty()); - - this->YAxis = vtkAxisActor2D::New(); - this->YAxis->GetPositionCoordinate()->SetCoordinateSystemToViewport(); - this->YAxis->GetPosition2Coordinate()->SetCoordinateSystemToViewport(); - this->YAxis->SetProperty(this->GetProperty()); - - this->NumberOfInputs = 0; - this->PlotData = NULL; - this->PlotGlyph = NULL; - this->PlotAppend = NULL; - this->PlotTransform = NULL; // RKV - this->PlotMapper = NULL; - this->PlotActor = NULL; - - this->ViewportCoordinate[0] = 0.0; - this->ViewportCoordinate[1] = 0.0; - this->PlotCoordinate[0] = 0.0; - this->PlotCoordinate[1] = 0.0; - - this->DataObjectPlotMode = VTK_XYPLOT_COLUMN; - this->XComponent = vtkIntArray::New(); - this->XComponent->SetNumberOfValues(VTK_MAX_PLOTS); - this->YComponent = vtkIntArray::New(); - this->YComponent->SetNumberOfValues(VTK_MAX_PLOTS); - - this->LinesOn = vtkIntArray::New(); - this->LinesOn->SetNumberOfValues(VTK_MAX_PLOTS); - this->PointsOn = vtkIntArray::New(); - this->PointsOn->SetNumberOfValues(VTK_MAX_PLOTS); - for (int i=0; iXComponent->SetValue(i,0); - this->YComponent->SetValue(i,0); - this->LinesOn->SetValue(i,this->PlotLines); - this->PointsOn->SetValue(i,this->PlotPoints); - } - - this->Legend = 0; - this->LegendPosition[0] = 0.85; - this->LegendPosition[1] = 0.75; - this->LegendPosition2[0] = 0.15; - this->LegendPosition2[1] = 0.20; - this->LegendActor = vtkLegendBoxActor::New(); - this->LegendActor->GetPositionCoordinate()->SetCoordinateSystemToViewport(); - this->LegendActor->GetPosition2Coordinate()->SetCoordinateSystemToViewport(); - this->LegendActor->GetPosition2Coordinate()->SetReferenceCoordinate(NULL); - this->LegendActor->BorderOff(); - this->LegendActor->SetNumberOfEntries(VTK_MAX_PLOTS); //initial allocation - this->GlyphSource = vtkGlyphSource2D::New(); - this->GlyphSource->SetGlyphTypeToNone(); - this->GlyphSource->DashOn(); - this->GlyphSource->FilledOff(); - this->GlyphSize = 0.020; - - this->ClipPlanes = vtkPlanes::New(); - vtkPoints *pts = vtkPoints::New(); - pts->SetNumberOfPoints(4); - this->ClipPlanes->SetPoints(pts); - pts->Delete(); - vtkDoubleArray *n = vtkDoubleArray::New(); - n->SetNumberOfComponents(3); - n->SetNumberOfTuples(4); - this->ClipPlanes->SetNormals(n); - n->Delete(); - - this->CachedSize[0] = 0; - this->CachedSize[1] = 0; -} - -//---------------------------------------------------------------------------- -VISU_XYPlotActor::~VISU_XYPlotActor() -{ - // Get rid of the list of array names. - int num = this->InputList->GetNumberOfItems(); - if (this->SelectedInputScalars) - { - for (int i = 0; i < num; ++i) - { - if (this->SelectedInputScalars[i]) - { - delete [] this->SelectedInputScalars[i]; - this->SelectedInputScalars[i] = NULL; - } - } - delete [] this->SelectedInputScalars; - this->SelectedInputScalars = NULL; - } - this->SelectedInputScalarsComponent->Delete(); - this->SelectedInputScalarsComponent = NULL; - - // Now we can get rid of the inputs. - this->InputList->Delete(); - this->InputList = NULL; - - this->DataObjectInputList->Delete(); - this->DataObjectInputList = NULL; - - this->TitleMapper->Delete(); - this->TitleMapper = NULL; - this->TitleActor->Delete(); - this->TitleActor = NULL; - - this->SetTitle(0); - this->SetXTitle(0); - this->SetYTitle(0); - this->SetLabelFormat(0); - - this->XAxis->Delete(); - this->YAxis->Delete(); - - this->InitializeEntries(); - - this->LegendActor->Delete(); - this->GlyphSource->Delete(); - this->ClipPlanes->Delete(); - - this->XComponent->Delete(); - this->YComponent->Delete(); - - this->LinesOn->Delete(); - this->PointsOn->Delete(); - - this->SetTitleTextProperty(NULL); - this->SetAxisLabelTextProperty(NULL); - this->SetAxisTitleTextProperty(NULL); -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::InitializeEntries() -{ - if ( this->NumberOfInputs > 0 ) - { - for (int i=0; iNumberOfInputs; i++) - { - this->PlotData[i]->Delete(); - this->PlotGlyph[i]->Delete(); - this->PlotAppend[i]->Delete(); - this->PlotTransform[i]->Delete(); // RKV - this->PlotMapper[i]->Delete(); - this->PlotActor[i]->Delete(); - }//for all entries - delete [] this->PlotData; this->PlotData = NULL; - delete [] this->PlotGlyph; this->PlotGlyph = NULL; - delete [] this->PlotAppend; this->PlotAppend = NULL; - delete [] this->PlotTransform; this->PlotTransform = NULL; // RKV - delete [] this->PlotMapper; this->PlotMapper = NULL; - delete [] this->PlotActor; this->PlotActor = NULL; - this->NumberOfInputs = 0; - }//if entries have been defined -} - -//---------------------------------------------------------------------------- -// Add a dataset and array to the list of data to plot. -void VISU_XYPlotActor::AddInput(vtkDataSet *ds, const char *arrayName, int component) -{ - int idx, num; - char** newNames; - - // I cannot change the input list, because the user has direct - // access to the collection. I cannot store the index of the array, - // because the index might change from render to render ... - // I have to store the list of string array names. - - // I believe idx starts at 1 and goes to "NumberOfItems". - idx = this->InputList->IsItemPresent(ds); - if (idx > 0) - { // Return if arrays are the same. - if (arrayName == NULL && this->SelectedInputScalars[idx-1] == NULL && - component == this->SelectedInputScalarsComponent->GetValue(idx-1)) - { - return; - } - if (arrayName != NULL && this->SelectedInputScalars[idx-1] != NULL && - strcmp(arrayName, this->SelectedInputScalars[idx-1]) == 0 && - component == this->SelectedInputScalarsComponent->GetValue(idx-1)) - { - return; - } - } - - // The input/array/component must be a unique combination. Add it to our input list. - - // Now reallocate the list of strings and add the new value. - num = this->InputList->GetNumberOfItems(); - newNames = new char*[num+1]; - for (idx = 0; idx < num; ++idx) - { - newNames[idx] = this->SelectedInputScalars[idx]; - } - if (arrayName == NULL) - { - newNames[num] = NULL; - } - else - { - newNames[num] = new char[strlen(arrayName)+1]; - strcpy(newNames[num],arrayName); - } - delete [] this->SelectedInputScalars; - this->SelectedInputScalars = newNames; - - // Save the component in the int array. - this->SelectedInputScalarsComponent->InsertValue(num, component); - - // Add the data set to the collection - this->InputList->AddItem(ds); - - // In case of multiple use of a XYPlotActor the NumberOfEntries could be set - // to n. Then when a call to SetEntryString(n+1, bla) was done the string was lost - // Need to update the number of entries for the legend actor - this->LegendActor->SetNumberOfEntries(this->LegendActor->GetNumberOfEntries()+1); - - this->Modified(); -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::RemoveAllInputs() -{ - int idx, num; - - num = this->InputList->GetNumberOfItems(); - this->InputList->RemoveAllItems(); - - for (idx = 0; idx < num; ++idx) - { - if (this->SelectedInputScalars[idx]) - { - delete [] this->SelectedInputScalars[idx]; - this->SelectedInputScalars[idx] = NULL; - } - } - this->SelectedInputScalarsComponent->Reset(); - - this->DataObjectInputList->RemoveAllItems(); -} - -//---------------------------------------------------------------------------- -// Remove a dataset from the list of data to plot. -void VISU_XYPlotActor::RemoveInput(vtkDataSet *ds, const char *arrayName, int component) -{ - int idx, num; - vtkDataSet *input; - int found = -1; - - // This is my own find routine, because the array names have to match also. - num = this->InputList->GetNumberOfItems(); - vtkCollectionSimpleIterator dsit; - this->InputList->InitTraversal(dsit); - for (idx = 0; idx < num && found == -1; ++idx) - { - input = this->InputList->GetNextDataSet(dsit); - if (input == ds) - { - if (arrayName == NULL && this->SelectedInputScalars[idx] == NULL && - component == this->SelectedInputScalarsComponent->GetValue(idx)) - { - found = idx; - } - if (arrayName != NULL && this->SelectedInputScalars[idx] != NULL && - strcmp(arrayName, this->SelectedInputScalars[idx]) == 0 && - component == this->SelectedInputScalarsComponent->GetValue(idx)) - { - found = idx; - } - } - } - - if (found == -1) - { - return; - } - - this->Modified(); - // Collections index their items starting at 1. - this->InputList->RemoveItem(found); - - // Do not bother reallocating the SelectedInputScalars - // string array to make it smaller. - if (this->SelectedInputScalars[found]) - { - delete [] this->SelectedInputScalars[found]; - this->SelectedInputScalars[found] = NULL; - } - for (idx = found+1; idx < num; ++idx) - { - this->SelectedInputScalars[idx-1] = this->SelectedInputScalars[idx]; - this->SelectedInputScalarsComponent->SetValue(idx-1, - this->SelectedInputScalarsComponent->GetValue(idx)); - } - // Reseting the last item is not really necessary, - // but to be clean we do it anyway. - this->SelectedInputScalarsComponent->SetValue(num-1, -1); - this->SelectedInputScalars[num-1] = NULL; -} - -//---------------------------------------------------------------------------- -// Add a data object to the list of data to plot. -void VISU_XYPlotActor::AddDataObjectInput(vtkDataObject *in) -{ - if ( ! this->DataObjectInputList->IsItemPresent(in) ) - { - this->Modified(); - this->DataObjectInputList->AddItem(in); - } -} - -//---------------------------------------------------------------------------- -// Remove a data object from the list of data to plot. -void VISU_XYPlotActor::RemoveDataObjectInput(vtkDataObject *in) -{ - if ( this->DataObjectInputList->IsItemPresent(in) ) - { - this->Modified(); - this->DataObjectInputList->RemoveItem(in); - } -} - -//---------------------------------------------------------------------------- -// Plot scalar data for each input dataset. -int VISU_XYPlotActor::RenderOverlay(vtkViewport *viewport) -{ - int renderedSomething = 0; - - // Make sure input is up to date. - if ( this->InputList->GetNumberOfItems() < 1 && - this->DataObjectInputList->GetNumberOfItems() < 1 ) - { - vtkErrorMacro(<< "Nothing to plot!"); - return 0; - } - - renderedSomething += this->XAxis->RenderOverlay(viewport); - renderedSomething += this->YAxis->RenderOverlay(viewport); - if ( this->Title ) - { - renderedSomething += this->TitleActor->RenderOverlay(viewport); - } - for (int i=0; i < this->NumberOfInputs; i++) - { - renderedSomething += this->PlotActor[i]->RenderOverlay(viewport); - } - if ( this->Legend ) - { - renderedSomething += this->LegendActor->RenderOverlay(viewport); - } - - return renderedSomething; -} - -//---------------------------------------------------------------------------- -// Plot scalar data for each input dataset. -int VISU_XYPlotActor::RenderOpaqueGeometry(vtkViewport *viewport) -{ - unsigned long mtime, dsMtime; - vtkDataSet *ds; - vtkDataObject *dobj; - int numDS, numDO, renderedSomething=0; - - // Initialize - // Make sure input is up to date. - numDS = this->InputList->GetNumberOfItems(); - numDO = this->DataObjectInputList->GetNumberOfItems(); - if ( numDS > 0 ) - { - vtkDebugMacro(<<"Plotting input data sets"); - vtkCollectionSimpleIterator dsit; - for (mtime=0, this->InputList->InitTraversal(dsit); - (ds = this->InputList->GetNextDataSet(dsit)); ) - { - ds->Update(); - dsMtime = ds->GetMTime(); - if ( dsMtime > mtime ) - { - mtime = dsMtime; - } - } - } - else if ( numDO > 0 ) - { - vtkDebugMacro(<<"Plotting input data objects"); - vtkCollectionSimpleIterator doit; - for (mtime=0, this->DataObjectInputList->InitTraversal(doit); - (dobj = this->DataObjectInputList->GetNextDataObject(doit)); ) - { - dobj->Update(); - dsMtime = dobj->GetMTime(); - if ( dsMtime > mtime ) - { - mtime = dsMtime; - } - } - } - else - { - vtkErrorMacro(<< "Nothing to plot!"); - return 0; - } - - if (this->Title && this->Title[0] && !this->TitleTextProperty) - { - vtkErrorMacro(<< "Need a title text property to render plot title"); - return 0; - } - - // Check modified time to see whether we have to rebuild. - // Pay attention that GetMTime() has been redefined (see below) - - int *size=viewport->GetSize(); - if (mtime > this->BuildTime || - size[0] != this->CachedSize[0] || size[1] != this->CachedSize[1] || - this->GetMTime() > this->BuildTime || - (this->Title && this->Title[0] && - this->TitleTextProperty->GetMTime() > this->BuildTime) || - (this->AxisLabelTextProperty && - this->AxisLabelTextProperty->GetMTime() > this->BuildTime) || - (this->AxisTitleTextProperty && - this->AxisTitleTextProperty->GetMTime() > this->BuildTime)) - { - double range[2], yrange[2], xRange[2], yRange[2], interval, *lengths=NULL; - int pos[2], pos2[2], numTicks; - int stringSize[2]; - int num = ( numDS > 0 ? numDS : numDO ); - - vtkDebugMacro(<<"Rebuilding plot"); - this->CachedSize[0] = size[0]; - this->CachedSize[1] = size[1]; - - // RKV : Begin - if ((this->PlotLocation == VISU_XYPLOT_RIGHT) || (this->PlotLocation == VISU_XYPLOT_LEFT)) - this->ReverseYAxis = 1; - else - this->ReverseYAxis = 0; - // RKV : End - - // manage legend - vtkDebugMacro(<<"Rebuilding legend"); - if ( this->Legend ) - { - int legPos[2], legPos2[2]; - int *p1 = this->PositionCoordinate->GetComputedViewportValue(viewport); - int *p2 = this->Position2Coordinate->GetComputedViewportValue(viewport); - legPos[0] = (int)(p1[0] + this->LegendPosition[0]*(p2[0]-p1[0])); - legPos2[0] = (int)(legPos[0] + this->LegendPosition2[0]*(p2[0]-p1[0])); - legPos[1] = (int)(p1[1] + this->LegendPosition[1]*(p2[1]-p1[1])); - legPos2[1] = (int)(legPos[1] + this->LegendPosition2[1]*(p2[1]-p1[1])); - - this->LegendActor->GetPositionCoordinate()->SetValue( - (double)legPos[0], (double)legPos[1]); - this->LegendActor->GetPosition2Coordinate()->SetValue( - (double)legPos2[0], (double)legPos2[1]); - this->LegendActor->SetNumberOfEntries(num); - for (int i=0; iLegendActor->GetEntrySymbol(i) ) - { - this->LegendActor->SetEntrySymbol(i,this->GlyphSource->GetOutput()); - } - if ( ! this->LegendActor->GetEntryString(i) ) - { - static char legendString[12]; - sprintf(legendString, "%s%d", "Curve ", i); - this->LegendActor->SetEntryString(i,legendString); - } - } - - this->LegendActor->SetPadding(2); - this->LegendActor->GetProperty()->DeepCopy(this->GetProperty()); - this->LegendActor->ScalarVisibilityOff(); - } - - // Rebuid text props - // Perform shallow copy here since each individual axis can be - // accessed through the class API (i.e. each individual axis text prop - // can be changed). Therefore, we can not just assign pointers otherwise - // each individual axis text prop would point to the same text prop. - - if (this->AxisLabelTextProperty && - this->AxisLabelTextProperty->GetMTime() > this->BuildTime) - { - if (this->XAxis->GetTitleTextProperty()) - { - this->XAxis->GetLabelTextProperty()->ShallowCopy( - this->AxisLabelTextProperty); - } - if (this->YAxis->GetTitleTextProperty()) - { - this->YAxis->GetLabelTextProperty()->ShallowCopy( - this->AxisLabelTextProperty); - } - } - - if (this->AxisTitleTextProperty && - this->AxisTitleTextProperty->GetMTime() > this->BuildTime) - { - if (this->XAxis->GetTitleTextProperty()) - { - this->XAxis->GetTitleTextProperty()->ShallowCopy( - this->AxisTitleTextProperty); - } - if (this->YAxis->GetTitleTextProperty()) - { - this->YAxis->GetTitleTextProperty()->ShallowCopy( - this->AxisTitleTextProperty); - } - } - - // setup x-axis - vtkDebugMacro(<<"Rebuilding x-axis"); - - this->XAxis->SetTitle(this->XTitle); - this->XAxis->SetNumberOfLabels(this->NumberOfXLabels); - this->XAxis->SetProperty(this->GetProperty()); - - vtkDebugMacro(<<"xrange = (" << range[0] << ", " << range[1] << ")"); // RKV - lengths = new double[num]; - if ( numDS > 0 ) //plotting data sets - { - this->ComputeXRange(range, lengths); - } - else - { - this->ComputeDORange(range, yrange, lengths); - } - if ( this->XRange[0] < this->XRange[1] ) - { - range[0] = this->XRange[0]; - range[1] = this->XRange[1]; - } - -/* RKV vtkAxisActor2D::ComputeRange(range, xRange, this->NumberOfXLabels, - numTicks, interval); -*/ // RKV : Begin - vtkDebugMacro(<<"XRange = (" << XRange[0] << ", " << XRange[1] << ")"); - vtkDebugMacro(<<"xrange = (" << range[0] << ", " << range[1] << ")"); - xRange[0] = range[0]; - xRange[1] = range[1]; - // RKV : End - if ( !this->ExchangeAxes ) - { - this->XComputedRange[0] = xRange[0]; - this->XComputedRange[1] = xRange[1]; - if ( this->ReverseXAxis ) - { - this->XAxis->SetRange(range[1],range[0]); - } - else - { - this->XAxis->SetRange(range[0],range[1]); - } - } - else - { - this->XComputedRange[1] = xRange[0]; - this->XComputedRange[0] = xRange[1]; - if ( this->ReverseYAxis ) - { - this->XAxis->SetRange(range[0],range[1]); - } - else - { - this->XAxis->SetRange(range[1],range[0]); - } - } - - // setup y-axis - vtkDebugMacro(<<"Rebuilding y-axis"); - this->YAxis->SetTitle(this->YTitle); - this->YAxis->SetNumberOfLabels(this->NumberOfYLabels); - - vtkDebugMacro(<<"yrange = (" << yrange[0] << ", " << yrange[1] << ")"); // RKV - if ( this->YRange[0] >= this->YRange[1] ) - { - if ( numDS > 0 ) //plotting data sets - { - this->ComputeYRange(yrange); - } - } - else - { - yrange[0] = this->YRange[0]; - yrange[1] = this->YRange[1]; - } -/* RKV vtkAxisActor2D::ComputeRange(yrange, yRange, this->NumberOfYLabels, - numTicks, interval); -*/ - // RKV : Begin - vtkDebugMacro(<<"YRange = (" << YRange[0] << ", " << YRange[1] << ")"); - vtkDebugMacro(<<"yrange = (" << yrange[0] << ", " << yrange[1] << ")"); - yRange[0] = yrange[0]; - yRange[1] = yrange[1]; - // RKV : End - - if ( !this->ExchangeAxes ) - { - this->YComputedRange[0] = yRange[0]; - this->YComputedRange[1] = yRange[1]; - if ( this->ReverseYAxis ) - { - this->YAxis->SetRange(yrange[0],yrange[1]); - } - else - { - this->YAxis->SetRange(yrange[1],yrange[0]); - } - } - else - { - this->YComputedRange[1] = yRange[0]; - this->YComputedRange[0] = yRange[1]; - if ( this->ReverseXAxis ) - { - this->YAxis->SetRange(yrange[1],yrange[0]); - } - else - { - this->YAxis->SetRange(yrange[0],yrange[1]); - } - } - - - this->PlaceAxes(viewport, size, pos, pos2); - - // manage title - if (this->Title != NULL && this->Title[0]) - { - this->TitleMapper->SetInput(this->Title); - if (this->TitleTextProperty->GetMTime() > this->BuildTime) - { - this->TitleMapper->GetTextProperty()->ShallowCopy( - this->TitleTextProperty); - } - - vtkAxisActor2D::SetFontSize(viewport, - this->TitleMapper, - size, - 1.0, - stringSize); - - this->TitleActor->GetPositionCoordinate()->SetValue( - pos[0] + 0.5 * (pos2[0] - pos[0]) - stringSize[0] / 2.0, - pos2[1] - stringSize[1] / 2.0); - - this->TitleActor->SetProperty(this->GetProperty()); - } - - vtkDebugMacro(<<"Creating Plot Data"); - // Okay, now create the plot data and set up the pipeline - this->CreatePlotData(pos, pos2, xRange, yRange, lengths, numDS, numDO); - delete [] lengths; - - this->BuildTime.Modified(); - - }//if need to rebuild the plot - - vtkDebugMacro(<<"Rendering Axes"); - renderedSomething += this->XAxis->RenderOpaqueGeometry(viewport); - renderedSomething += this->YAxis->RenderOpaqueGeometry(viewport); - for (int i=0; i < this->NumberOfInputs; i++) - { - vtkDebugMacro(<<"Rendering plotactors"); - renderedSomething += this->PlotActor[i]->RenderOpaqueGeometry(viewport); - } - if ( this->Title ) - { - vtkDebugMacro(<<"Rendering titleactors"); - renderedSomething += this->TitleActor->RenderOpaqueGeometry(viewport); - } - if ( this->Legend ) - { - vtkDebugMacro(<<"Rendering legendeactors"); - renderedSomething += this->LegendActor->RenderOpaqueGeometry(viewport); - } - - return renderedSomething; -} - -//---------------------------------------------------------------------------- -const char *VISU_XYPlotActor::GetXValuesAsString() -{ - switch (this->XValues) - { - case VTK_XYPLOT_INDEX: - return "Index"; - case VTK_XYPLOT_ARC_LENGTH: - return "ArcLength"; - case VTK_XYPLOT_NORMALIZED_ARC_LENGTH: - return "NormalizedArcLength"; - default: - return "Value"; - } -} - -//---------------------------------------------------------------------------- -const char *VISU_XYPlotActor::GetDataObjectPlotModeAsString() -{ - if ( this->DataObjectPlotMode == VTK_XYPLOT_ROW ) - { - return "Plot Rows"; - } - else - { - return "Plot Columns"; - } -} - -//---------------------------------------------------------------------------- -// Release any graphics resources that are being consumed by this actor. -// The parameter window could be used to determine which graphic -// resources to release. -void VISU_XYPlotActor::ReleaseGraphicsResources(vtkWindow *win) -{ - this->TitleActor->ReleaseGraphicsResources(win); - this->XAxis->ReleaseGraphicsResources(win); - this->YAxis->ReleaseGraphicsResources(win); - for (int i=0; i < this->NumberOfInputs; i++) - { - this->PlotActor[i]->ReleaseGraphicsResources(win); - } - this->LegendActor->ReleaseGraphicsResources(win); -} - -//---------------------------------------------------------------------------- -unsigned long VISU_XYPlotActor::GetMTime() -{ - unsigned long mtime, mtime2; - mtime = this->vtkActor2D::GetMTime(); - - if (this->Legend) - { - mtime2 = this->LegendActor->GetMTime(); - if (mtime2 > mtime) - { - mtime = mtime2; - } - } - - return mtime; -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::PrintSelf(ostream& os, vtkIndent indent) -{ - vtkIndent i2 = indent.GetNextIndent(); - vtkDataSet *input; - char *array; - int component; - int idx, num; - - this->Superclass::PrintSelf(os,indent); - - vtkCollectionSimpleIterator dsit; - this->InputList->InitTraversal(dsit); - num = this->InputList->GetNumberOfItems(); - os << indent << "DataSetInputs: " << endl; - for (idx = 0; idx < num; ++idx) - { - input = this->InputList->GetNextDataSet(dsit); - array = this->SelectedInputScalars[idx]; - component = this->SelectedInputScalarsComponent->GetValue((vtkIdType)idx); - if (array == NULL) - { - os << i2 << "(" << input << ") Default Scalars, Component = " << component << endl; - } - else - { - os << i2 << "(" << input << ") " << array << ", Component = " << component << endl; - } - } - - os << indent << "Input DataObjects:\n"; - this->DataObjectInputList->PrintSelf(os,indent.GetNextIndent()); - - if (this->TitleTextProperty) - { - os << indent << "Title Text Property:\n"; - this->TitleTextProperty->PrintSelf(os,indent.GetNextIndent()); - } - else - { - os << indent << "Title Text Property: (none)\n"; - } - - if (this->AxisTitleTextProperty) - { - os << indent << "Axis Title Text Property:\n"; - this->AxisTitleTextProperty->PrintSelf(os,indent.GetNextIndent()); - } - else - { - os << indent << "Axis Title Text Property: (none)\n"; - } - - if (this->AxisLabelTextProperty) - { - os << indent << "Axis Label Text Property:\n"; - this->AxisLabelTextProperty->PrintSelf(os,indent.GetNextIndent()); - } - else - { - os << indent << "Axis Label Text Property: (none)\n"; - } - - os << indent << "Data Object Plot Mode: " << this->GetDataObjectPlotModeAsString() << endl; - - os << indent << "Title: " << (this->Title ? this->Title : "(none)") << "\n"; - os << indent << "X Title: " - << (this->XTitle ? this->XTitle : "(none)") << "\n"; - os << indent << "Y Title: " - << (this->YTitle ? this->YTitle : "(none)") << "\n"; - - os << indent << "X Values: " << this->GetXValuesAsString() << endl; - os << indent << "Log X Values: " << (this->Logx ? "On\n" : "Off\n"); - - os << indent << "Plot global-points: " << (this->PlotPoints ? "On\n" : "Off\n"); - os << indent << "Plot global-lines: " << (this->PlotLines ? "On\n" : "Off\n"); - os << indent << "Plot per-curve points: " << (this->PlotCurvePoints ? "On\n" : "Off\n"); - os << indent << "Plot per-curve lines: " << (this->PlotCurveLines ? "On\n" : "Off\n"); - os << indent << "Exchange Axes: " << (this->ExchangeAxes ? "On\n" : "Off\n"); - os << indent << "Reverse X Axis: " << (this->ReverseXAxis ? "On\n" : "Off\n"); - os << indent << "Reverse Y Axis: " << (this->ReverseYAxis ? "On\n" : "Off\n"); - - os << indent << "Number Of X Labels: " << this->NumberOfXLabels << "\n"; - os << indent << "Number Of Y Labels: " << this->NumberOfYLabels << "\n"; - - os << indent << "Label Format: " << this->LabelFormat << "\n"; - os << indent << "Border: " << this->Border << "\n"; - - os << indent << "X Range: "; - if ( this->XRange[0] >= this->XRange[1] ) - { - os << indent << "(Automatically Computed)\n"; - } - else - { - os << "(" << this->XRange[0] << ", " << this->XRange[1] << ")\n"; - } - - os << indent << "Y Range: "; - if ( this->XRange[0] >= this->YRange[1] ) - { - os << indent << "(Automatically Computed)\n"; - } - else - { - os << "(" << this->YRange[0] << ", " << this->YRange[1] << ")\n"; - } - - os << indent << "Viewport Coordinate: (" - << this->ViewportCoordinate[0] << ", " - << this->ViewportCoordinate[1] << ")\n"; - - os << indent << "Plot Coordinate: (" - << this->PlotCoordinate[0] << ", " - << this->PlotCoordinate[1] << ")\n"; - - os << indent << "Legend: " << (this->Legend ? "On\n" : "Off\n"); - os << indent << "Legend Position: (" - << this->LegendPosition[0] << ", " - << this->LegendPosition[1] << ")\n"; - os << indent << "Legend Position2: (" - << this->LegendPosition2[0] << ", " - << this->LegendPosition2[1] << ")\n"; - - os << indent << "Glyph Size: " << this->GlyphSize << endl; - - os << indent << "Legend Actor:"; - this->LegendActor->PrintSelf( os << endl, i2); - os << indent << "Glyph Source:"; - this->GlyphSource->PrintSelf( os << endl, i2); -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::ComputeXRange(double range[2], double *lengths) -{ - int dsNum; - vtkIdType numPts, ptId, maxNum; - double maxLength=0.0, xPrev[3], x[3]; - vtkDataSet *ds; - - range[0] = VTK_DOUBLE_MAX, range[1] = VTK_DOUBLE_MIN; - - vtkCollectionSimpleIterator dsit; - for ( dsNum=0, maxNum=0, this->InputList->InitTraversal(dsit); - (ds = this->InputList->GetNextDataSet(dsit)); dsNum++) - { - numPts = ds->GetNumberOfPoints(); - - if ( this->XValues != VTK_XYPLOT_INDEX ) - { - ds->GetPoint(0, xPrev); - for ( lengths[dsNum]=0.0, ptId=0; ptId < numPts; ptId++ ) - { - ds->GetPoint(ptId, x); - switch (this->XValues) - { - case VTK_XYPLOT_VALUE: - if (this->GetLogx() == 0) - { - if ( x[this->XComponent->GetValue(dsNum)] < range[0] ) - { - range[0] = x[this->XComponent->GetValue(dsNum)]; - } - if ( x[this->XComponent->GetValue(dsNum)] > range[1] ) - { - range[1] = x[this->XComponent->GetValue(dsNum)]; - } - } - else - { - //ensure range strictly > 0 for log - if ( (x[this->XComponent->GetValue(dsNum)]) < range[0] && - (x[this->XComponent->GetValue(dsNum)] > 0)) - { - range[0] = x[this->XComponent->GetValue(dsNum)]; - } - if ( (x[this->XComponent->GetValue(dsNum)] > range[1]) && - (x[this->XComponent->GetValue(dsNum)] > 0)) - { - range[1] = x[this->XComponent->GetValue(dsNum)]; - } - } - break; - default: - lengths[dsNum] += sqrt(vtkMath::Distance2BetweenPoints(x,xPrev)); - xPrev[0] = x[0]; xPrev[1] = x[1]; xPrev[2] = x[2]; - } - }//for all points - if ( lengths[dsNum] > maxLength ) - { - maxLength = lengths[dsNum]; - } - }//if need to visit all points - - else //if ( this->XValues == VTK_XYPLOT_INDEX ) - { - if ( numPts > maxNum ) - { - maxNum = numPts; - } - } - }//over all datasets - - // determine the range - switch (this->XValues) - { - case VTK_XYPLOT_ARC_LENGTH: - range[0] = 0.0; - range[1] = maxLength; - break; - case VTK_XYPLOT_NORMALIZED_ARC_LENGTH: - range[0] = 0.0; - range[1] = 1.0; - break; - case VTK_XYPLOT_INDEX: - range[0] = 0.0; - range[1] = (double)(maxNum - 1); - break; - case VTK_XYPLOT_VALUE: - if (this->GetLogx() == 1) - { - if (range[0] > range[1]) - { - range[0] = 0; - range[1] = 0; - } - else - { - range[0] = log10(range[0]); - range[1] = log10(range[1]); - } - } - break; //range computed in for loop above - default: - vtkErrorMacro(<< "Unkown X-Value option."); - return; - } -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::ComputeYRange(double range[2]) -{ - vtkDataSet *ds; - vtkDataArray *scalars; - double sRange[2]; - int count; - int component; - - range[0]=VTK_DOUBLE_MAX, range[1]=VTK_DOUBLE_MIN; - - vtkCollectionSimpleIterator dsit; - for ( this->InputList->InitTraversal(dsit), count = 0; - (ds = this->InputList->GetNextDataSet(dsit)); ++count) - { - scalars = ds->GetPointData()->GetScalars(this->SelectedInputScalars[count]); - component = this->SelectedInputScalarsComponent->GetValue(count); - if ( !scalars) - { - vtkErrorMacro(<<"No scalar data to plot!"); - continue; - } - if ( component < 0 || component >= scalars->GetNumberOfComponents()) - { - vtkErrorMacro(<<"Bad component!"); - continue; - } - - scalars->GetRange(sRange, component); - if ( sRange[0] < range[0] ) - { - range[0] = sRange[0]; - } - - if ( sRange[1] > range[1] ) - { - range[1] = sRange[1]; - } - }//over all datasets -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::ComputeDORange(double xrange[2], double yrange[2], - double *lengths) -{ - int i; - vtkDataObject *dobj; - vtkFieldData *field; - int doNum, numColumns; - vtkIdType numTuples, numRows, num, ptId, maxNum; - double maxLength=0.0, x, y, xPrev = 0.0; - vtkDataArray *array; - - xrange[0] = yrange[0] = VTK_DOUBLE_MAX; - xrange[1] = yrange[1] = -VTK_DOUBLE_MAX; - vtkCollectionSimpleIterator doit; - for ( doNum=0, maxNum=0, this->DataObjectInputList->InitTraversal(doit); - (dobj = this->DataObjectInputList->GetNextDataObject(doit)); doNum++) - { - lengths[doNum] = 0.0; - field = dobj->GetFieldData(); - numColumns = field->GetNumberOfComponents(); //number of "columns" - for (numRows = VTK_LARGE_ID, i=0; iGetNumberOfArrays(); i++) - { - array = field->GetArray(i); - numTuples = array->GetNumberOfTuples(); - if ( numTuples < numRows ) - { - numRows = numTuples; - } - } - - num = (this->DataObjectPlotMode == VTK_XYPLOT_ROW ? - numColumns : numRows); - - if ( this->XValues != VTK_XYPLOT_INDEX ) - { - // gather the information to form a plot - for ( ptId=0; ptId < num; ptId++ ) - { - if ( this->DataObjectPlotMode == VTK_XYPLOT_ROW ) - { - x = field->GetComponent(this->XComponent->GetValue(doNum), ptId); - } - else //if ( this->DataObjectPlotMode == VTK_XYPLOT_COLUMN ) - { - x = field->GetComponent(ptId, this->XComponent->GetValue(doNum)); - } - if ( ptId == 0 ) - { - xPrev = x; - } - - switch (this->XValues) - { - case VTK_XYPLOT_VALUE: - if (this->GetLogx() == 0) - { - if ( x < xrange[0] ) - { - xrange[0] = x; - } - if ( x > xrange[1] ) - { - xrange[1] = x; - } - } - else //ensure positive values - { - if ( (x < xrange[0]) && (x > 0) ) - { - xrange[0] = x; - } - if ( x > xrange[1] && (x > 0) ) - { - xrange[1] = x; - } - } - break; - default: - lengths[doNum] += fabs(x-xPrev); - xPrev = x; - } - }//for all points - if ( lengths[doNum] > maxLength ) - { - maxLength = lengths[doNum]; - } - }//if all data has to be visited - - else //if (this->XValues == VTK_XYPLOT_INDEX) - { - if ( num > maxNum ) - { - maxNum = num; - } - } - - // Get the y-values - for ( ptId=0; ptId < num; ptId++ ) - { - if ( this->DataObjectPlotMode == VTK_XYPLOT_ROW ) - { - y = field->GetComponent(this->YComponent->GetValue(doNum), ptId); - } - else //if ( this->DataObjectPlotMode == VTK_XYPLOT_COLUMN ) - { - y = field->GetComponent(ptId, this->YComponent->GetValue(doNum)); - } - if ( y < yrange[0] ) - { - yrange[0] = y; - } - if ( y > yrange[1] ) - { - yrange[1] = y; - } - }//over all y values - }//over all dataobjects - - // determine the range - switch (this->XValues) - { - case VTK_XYPLOT_ARC_LENGTH: - xrange[0] = 0.0; - xrange[1] = maxLength; - break; - case VTK_XYPLOT_NORMALIZED_ARC_LENGTH: - xrange[0] = 0.0; - xrange[1] = 1.0; - break; - case VTK_XYPLOT_INDEX: - xrange[0] = 0.0; - xrange[1] = (double)(maxNum - 1); - break; - case VTK_XYPLOT_VALUE: - if (this->GetLogx() == 1) - { - xrange[0] = log10(xrange[0]); - xrange[1] = log10(xrange[1]); - } - break; - default: - vtkErrorMacro(<< "Unknown X-Value option"); - return; - } -} - -//---------------------------------------------------------------------------- -/* RKV void VISU_XYPlotActor::CreatePlotData(int *pos, int *pos2, double xRange[2], - double yRange[2], double *lengths, - int numDS, int numDO) */ -// RKV : Begin -void VISU_XYPlotActor::CreatePlotData(int *pos, int *pos2Extern, double xRange[2], - double yRange[2], double *lengths, - int numDS, int numDO) -// RKV : End -{ - double xyz[3]; xyz[2] = 0.0; - int i, numLinePts, dsNum, doNum, num; - vtkIdType numPts, ptId, id; - double length, x[3], xPrev[3]; - vtkDataArray *scalars; - int component; - vtkDataSet *ds; - vtkCellArray *lines; - vtkPoints *pts; - int clippingRequired = 0; - - // Allocate resources for the polygonal plots - // - num = (numDS > numDO ? numDS : numDO); - this->InitializeEntries(); - this->NumberOfInputs = num; - this->PlotData = new vtkPolyData* [num]; - this->PlotGlyph = new vtkGlyph2D* [num]; - this->PlotAppend = new vtkAppendPolyData* [num]; - this->PlotTransform = new vtkTransformPolyDataFilter* [num]; // RKV - this->PlotMapper = new vtkPolyDataMapper2D* [num]; - this->PlotActor = new vtkActor2D* [num]; - - // RKV : Begin - // Prepare the transformation of the curve according to the plot location - vtkTransform *tf = vtkTransform::New(); - tf->Translate(pos[0], pos[1], 0); - if ((this->PlotLocation == VISU_XYPLOT_LEFT) || (this->PlotLocation == VISU_XYPLOT_RIGHT)) - tf->RotateZ(90); - tf->Translate(-pos[0], -pos[1], 0); - - // Compute the position2 to build the curve before the transformation - int pos2[2]; - vtkDebugMacro(<< "pos = (" << pos[0] << ", " << pos[1] << ")"); - vtkDebugMacro(<< "pos2 = (" << pos2Extern[0] << ", " << pos2Extern[1] << ")"); - if ((this->PlotLocation == VISU_XYPLOT_LEFT) || (this->PlotLocation == VISU_XYPLOT_RIGHT)) - { - pos2[0] = pos[0] + pos2Extern[1] - pos[1]; - pos2[1] = pos[1] + pos[0] - pos2Extern[0]; - } - else - { - pos2[0] = pos2Extern[0]; - pos2[1] = pos2Extern[1]; - } - // RKV : End - - for (i=0; iPlotData[i] = vtkPolyData::New(); - this->PlotGlyph[i] = vtkGlyph2D::New(); - this->PlotGlyph[i]->SetInput(this->PlotData[i]); - this->PlotGlyph[i]->SetScaleModeToDataScalingOff(); - this->PlotAppend[i] = vtkAppendPolyData::New(); - this->PlotAppend[i]->AddInput(this->PlotData[i]); - if ( this->LegendActor->GetEntrySymbol(i) != NULL && - this->LegendActor->GetEntrySymbol(i) != this->GlyphSource->GetOutput() ) - { - this->PlotGlyph[i]->SetSource(this->LegendActor->GetEntrySymbol(i)); - this->PlotGlyph[i]->SetScaleFactor(this->ComputeGlyphScale(i,pos,pos2)); - this->PlotAppend[i]->AddInput(this->PlotGlyph[i]->GetOutput()); - } - this->PlotMapper[i] = vtkPolyDataMapper2D::New(); - - // RKV : Begin - // Insert a transformation filter into the pipeline to - // take into account a plot location. - this->PlotTransform[i] = vtkTransformPolyDataFilter::New(); - this->PlotTransform[i]->SetInput(this->PlotAppend[i]->GetOutput()); - this->PlotTransform[i]->SetTransform(tf); - this->PlotMapper[i]->SetInput(this->PlotTransform[i]->GetOutput()); - // RKV : End - -// RKV this->PlotMapper[i]->SetInput(this->PlotAppend[i]->GetOutput()); - this->PlotMapper[i]->ScalarVisibilityOff(); - this->PlotActor[i] = vtkActor2D::New(); - this->PlotActor[i]->SetMapper(this->PlotMapper[i]); - this->PlotActor[i]->GetProperty()->DeepCopy(this->GetProperty()); - if ( this->LegendActor->GetEntryColor(i)[0] < 0.0 ) - { - this->PlotActor[i]->GetProperty()->SetColor( - this->GetProperty()->GetColor()); - } - else - { - this->PlotActor[i]->GetProperty()->SetColor( - this->LegendActor->GetEntryColor(i)); - } - } - - tf->Delete(); // RKV - - // Prepare to receive data - this->GenerateClipPlanes(pos,pos2); - for (i=0; iNumberOfInputs; i++) - { - lines = vtkCellArray::New(); - pts = vtkPoints::New(); - - lines->Allocate(10,10); - pts->Allocate(10,10); - this->PlotData[i]->SetPoints(pts); - this->PlotData[i]->SetVerts(lines); - this->PlotData[i]->SetLines(lines); - - pts->Delete(); - lines->Delete(); - } - - // Okay, for each input generate plot data. Depending on the input - // we use either dataset or data object. - // - if ( numDS > 0 ) - { - vtkCollectionSimpleIterator dsit; - for ( dsNum=0, this->InputList->InitTraversal(dsit); - (ds = this->InputList->GetNextDataSet(dsit)); dsNum++ ) - { - clippingRequired = 0; - numPts = ds->GetNumberOfPoints(); - scalars = ds->GetPointData()->GetScalars(this->SelectedInputScalars[dsNum]); - if ( !scalars) - { - continue; - } - component = this->SelectedInputScalarsComponent->GetValue(dsNum); - if ( component < 0 || component >= scalars->GetNumberOfComponents()) - { - continue; - } - - pts = this->PlotData[dsNum]->GetPoints(); - lines = this->PlotData[dsNum]->GetLines(); - lines->InsertNextCell(0); //update the count later - - ds->GetPoint(0, xPrev); - for ( numLinePts=0, length=0.0, ptId=0; ptId < numPts; ptId++ ) - { - xyz[1] = scalars->GetComponent(ptId, component); - ds->GetPoint(ptId, x); - switch (this->XValues) - { - case VTK_XYPLOT_NORMALIZED_ARC_LENGTH: - length += sqrt(vtkMath::Distance2BetweenPoints(x,xPrev)); - xyz[0] = length / lengths[dsNum]; - xPrev[0] = x[0]; xPrev[1] = x[1]; xPrev[2] = x[2]; - break; - case VTK_XYPLOT_INDEX: - xyz[0] = (double)ptId; - break; - case VTK_XYPLOT_ARC_LENGTH: - length += sqrt(vtkMath::Distance2BetweenPoints(x,xPrev)); - xyz[0] = length; - xPrev[0] = x[0]; xPrev[1] = x[1]; xPrev[2] = x[2]; - break; - case VTK_XYPLOT_VALUE: - xyz[0] = x[this->XComponent->GetValue(dsNum)]; - break; - default: - vtkErrorMacro(<< "Unknown X-Component option"); - } - - if ( this->GetLogx() == 1 ) - { - if (xyz[0] > 0) - { - xyz[0] = log10(xyz[0]); - // normalize and position - if ( xyz[0] < xRange[0] || xyz[0] > xRange[1] || - xyz[1] < yRange[0] || xyz[1] > yRange[1] ) - { - clippingRequired = 1; - } - - numLinePts++; - xyz[0] = fabs( xRange[1] - xRange[0] ) < 1.0 / VTK_LARGE_FLOAT ? pos[0] : pos[0] + - (xyz[0]-xRange[0])/(xRange[1]-xRange[0])*(pos2[0]-pos[0]); - xyz[1] = fabs( yRange[1] - yRange[0] ) < 1.0 / VTK_LARGE_FLOAT ? pos[1] : pos[1] + - (xyz[1]-yRange[0])/(yRange[1]-yRange[0])*(pos2[1]-pos[1]); - id = pts->InsertNextPoint(xyz); - lines->InsertCellPoint(id); - } - } - else - { - // normalize and position - if ( xyz[0] < xRange[0] || xyz[0] > xRange[1] || - xyz[1] < yRange[0] || xyz[1] > yRange[1] ) - { - clippingRequired = 1; - } - - numLinePts++; - xyz[0] = fabs( xRange[1] - xRange[0] ) < 1.0 / VTK_LARGE_FLOAT ? pos[0] : pos[0] + - (xyz[0]-xRange[0])/(xRange[1]-xRange[0])*(pos2[0]-pos[0]); - xyz[1] = fabs( yRange[1] - yRange[0] ) < 1.0 / VTK_LARGE_FLOAT ? pos[1] : pos[1] + - (xyz[1]-yRange[0])/(yRange[1]-yRange[0])*(pos2[1]-pos[1]); - id = pts->InsertNextPoint(xyz); - lines->InsertCellPoint(id); - } - }//for all input points - - lines->UpdateCellCount(numLinePts); - if ( clippingRequired ) - { - this->ClipPlotData(pos,pos2,this->PlotData[dsNum]); - } - }//loop over all input data sets - }//if plotting datasets - - else //plot data from data objects - { - vtkDataObject *dobj; - int numColumns; - vtkIdType numRows, numTuples; - vtkDataArray *array; - vtkFieldData *field; - vtkCollectionSimpleIterator doit; - for ( doNum=0, this->DataObjectInputList->InitTraversal(doit); - (dobj = this->DataObjectInputList->GetNextDataObject(doit)); - doNum++ ) - { - // determine the shape of the field - field = dobj->GetFieldData(); - numColumns = field->GetNumberOfComponents(); //number of "columns" - for (numRows = VTK_LARGE_ID, i=0; iGetNumberOfArrays(); i++) - { - array = field->GetArray(i); - numTuples = array->GetNumberOfTuples(); - if ( numTuples < numRows ) - { - numRows = numTuples; - } - } - - pts = this->PlotData[doNum]->GetPoints(); - lines = this->PlotData[doNum]->GetLines(); - lines->InsertNextCell(0); //update the count later - - numPts = (this->DataObjectPlotMode == VTK_XYPLOT_ROW ? - numColumns : numRows); - - // gather the information to form a plot - for ( numLinePts=0, length=0.0, ptId=0; ptId < numPts; ptId++ ) - { - if ( this->DataObjectPlotMode == VTK_XYPLOT_ROW ) - { - x[0] = field->GetComponent(this->XComponent->GetValue(doNum),ptId); - xyz[1] = field->GetComponent(this->YComponent->GetValue(doNum),ptId); - } - else //if ( this->DataObjectPlotMode == VTK_XYPLOT_COLUMN ) - { - x[0] = field->GetComponent(ptId, this->XComponent->GetValue(doNum)); - xyz[1] = field->GetComponent(ptId, this->YComponent->GetValue(doNum)); - } - - switch (this->XValues) - { - case VTK_XYPLOT_NORMALIZED_ARC_LENGTH: - length += fabs(x[0]-xPrev[0]); - xyz[0] = length / lengths[doNum]; - xPrev[0] = x[0]; - break; - case VTK_XYPLOT_INDEX: - xyz[0] = (double)ptId; - break; - case VTK_XYPLOT_ARC_LENGTH: - length += fabs(x[0]-xPrev[0]); - xyz[0] = length; - xPrev[0] = x[0]; - break; - case VTK_XYPLOT_VALUE: - xyz[0] = x[0]; - break; - default: - vtkErrorMacro(<< "Unknown X-Value option"); - } - - if ( this->GetLogx() == 1 ) - { - if (xyz[0] > 0) - { - xyz[0] = log10(xyz[0]); - // normalize and position - if ( xyz[0] < xRange[0] || xyz[0] > xRange[1] || - xyz[1] < yRange[0] || xyz[1] > yRange[1] ) - { - clippingRequired = 1; - } - numLinePts++; - xyz[0] = fabs( xRange[1] - xRange[0] ) < 1.0 / VTK_LARGE_FLOAT ? pos[0] : pos[0] + - (xyz[0]-xRange[0])/(xRange[1]-xRange[0])*(pos2[0]-pos[0]); - xyz[1] = fabs( yRange[1] - yRange[0] ) < 1.0 / VTK_LARGE_FLOAT ? pos[1] : pos[1] + - (xyz[1]-yRange[0])/(yRange[1]-yRange[0])*(pos2[1]-pos[1]); - id = pts->InsertNextPoint(xyz); - lines->InsertCellPoint(id); - } - } - else - { - // normalize and position - if ( xyz[0] < xRange[0] || xyz[0] > xRange[1] || - xyz[1] < yRange[0] || xyz[1] > yRange[1] ) - { - clippingRequired = 1; - } - numLinePts++; - xyz[0] = fabs( xRange[1] - xRange[0] ) < 1.0 / VTK_LARGE_FLOAT ? pos[0] : pos[0] + - (xyz[0]-xRange[0])/(xRange[1]-xRange[0])*(pos2[0]-pos[0]); - xyz[1] = fabs( yRange[1] - yRange[0] ) < 1.0 / VTK_LARGE_FLOAT ? pos[1] : pos[1] + - (xyz[1]-yRange[0])/(yRange[1]-yRange[0])*(pos2[1]-pos[1]); - id = pts->InsertNextPoint(xyz); - lines->InsertCellPoint(id); - } - }//for all input points - - lines->UpdateCellCount(numLinePts); - if ( clippingRequired ) - { - this->ClipPlotData(pos,pos2,this->PlotData[doNum]); - } - }//loop over all input data sets - } - - // Remove points/lines as directed by the user - for ( i = 0; i < num; i++) - { - if (!this->PlotCurveLines) - { - if ( !this->PlotLines ) - { - this->PlotData[i]->SetLines(NULL); - } - } - else - { - if ( this->GetPlotLines(i) == 0) - { - this->PlotData[i]->SetLines(NULL); - } - } - - if (!this->PlotCurvePoints) - { - if ( !this->PlotPoints || (this->LegendActor->GetEntrySymbol(i) && - this->LegendActor->GetEntrySymbol(i) != - this->GlyphSource->GetOutput())) - { - this->PlotData[i]->SetVerts(NULL); - } - } - else - { - if ( this->GetPlotPoints(i) == 0 || - (this->LegendActor->GetEntrySymbol(i) && - this->LegendActor->GetEntrySymbol(i) != - this->GlyphSource->GetOutput())) - { - this->PlotData[i]->SetVerts(NULL); - } - } - } -} - -//---------------------------------------------------------------------------- -// Position the axes taking into account the expected padding due to labels -// and titles. We want the result to fit in the box specified. This method -// knows something about how the vtkAxisActor2D functions, so it may have -// to change if that class changes dramatically. -// -void VISU_XYPlotActor::PlaceAxes(vtkViewport *viewport, int *size, - int pos[2], int pos2[2]) -{ - int titleSizeX[2], titleSizeY[2], labelSizeX[2], labelSizeY[2]; - double labelFactorX, labelFactorY; - double fontFactorX, fontFactorY; - double tickOffsetX, tickOffsetY; - double tickLengthX, tickLengthY; - - vtkAxisActor2D *axisX; - vtkAxisActor2D *axisY; - - char str1[512], str2[512]; - - if (this->ExchangeAxes) - { - axisX = this->YAxis; - axisY = this->XAxis; - } - else - { - axisX = this->XAxis; - axisY = this->YAxis; - } - - // RKV : Begin - // Take into account a location of the plot. - if ((this->PlotLocation == VISU_XYPLOT_LEFT) || (this->PlotLocation == VISU_XYPLOT_RIGHT)) - { - vtkAxisActor2D *axisBid; - axisBid = axisX; - axisX = axisY; - axisY = axisBid; - } - - // RKV : End - - fontFactorY = axisY->GetFontFactor(); - fontFactorX = axisX->GetFontFactor(); - - labelFactorY = axisY->GetLabelFactor(); - labelFactorX = axisX->GetLabelFactor(); - - // Create a dummy text mapper for getting font sizes - vtkTextMapper *textMapper = vtkTextMapper::New(); - vtkTextProperty *tprop = textMapper->GetTextProperty(); - - // Get the location of the corners of the box - int *p1 = this->PositionCoordinate->GetComputedViewportValue(viewport); - int *p2 = this->Position2Coordinate->GetComputedViewportValue(viewport); - - // Estimate the padding around the X and Y axes - tprop->ShallowCopy(axisX->GetTitleTextProperty()); - textMapper->SetInput(axisX->GetTitle()); - vtkAxisActor2D::SetFontSize( - viewport, textMapper, size, fontFactorX, titleSizeX); - - tprop->ShallowCopy(axisY->GetTitleTextProperty()); - textMapper->SetInput(axisY->GetTitle()); - vtkAxisActor2D::SetFontSize( - viewport, textMapper, size, fontFactorY, titleSizeY); - - // At this point the thing to do would be to actually ask the Y axis - // actor to return the largest label. - // In the meantime, let's try with the min and max - sprintf(str1, axisY->GetLabelFormat(), axisY->GetAdjustedRange()[0]); - sprintf(str2, axisY->GetLabelFormat(), axisY->GetAdjustedRange()[1]); - tprop->ShallowCopy(axisY->GetLabelTextProperty()); - textMapper->SetInput(strlen(str1) > strlen(str2) ? str1 : str2); - vtkAxisActor2D::SetFontSize( - viewport, textMapper, size, labelFactorY * fontFactorY, labelSizeY); - - // We do only care of the height of the label in the X axis, so let's - // use the min for example - sprintf(str1, axisX->GetLabelFormat(), axisX->GetAdjustedRange()[0]); - tprop->ShallowCopy(axisX->GetLabelTextProperty()); - textMapper->SetInput(str1); - vtkAxisActor2D::SetFontSize( - viewport, textMapper, size, labelFactorX * fontFactorX, labelSizeX); - - tickOffsetX = axisX->GetTickOffset(); - tickOffsetY = axisY->GetTickOffset(); - tickLengthX = axisX->GetTickLength(); - tickLengthY = axisY->GetTickLength(); - - // Okay, estimate the size -/* RKV pos[0] = (int)(p1[0] + titleSizeY[0] + 2.0 * tickOffsetY + tickLengthY + - labelSizeY[0] + this->Border); - - pos[1] = (int)(p1[1] + titleSizeX[1] + 2.0 * tickOffsetX + tickLengthX + - labelSizeX[1] + this->Border); - - pos2[0] = (int)(p2[0] - labelSizeY[0] / 2 - tickOffsetY - this->Border); - - pos2[1] = (int)(p2[1] - labelSizeX[1] / 2 - tickOffsetX - this->Border); - */ - // RKV : Begin - pos[0] = (int)(p1[0]); - - pos[1] = (int)(p1[1]); - - pos2[0] = (int)(p2[0]); - - pos2[1] = (int)(p2[1]); - // RKV : End - - // Now specify the location of the axes - axisX->GetPositionCoordinate()->SetValue( - (double)pos[0], (double)pos[1]); - axisX->GetPosition2Coordinate()->SetValue( - (double)pos2[0], (double)pos[1]); - axisY->GetPositionCoordinate()->SetValue( - (double)pos[0], (double)pos2[1]); - axisY->GetPosition2Coordinate()->SetValue( - (double)pos[0], (double)pos[1]); - - textMapper->Delete(); -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::ViewportToPlotCoordinate(vtkViewport *viewport, double &u, double &v) -{ - int *p0, *p1, *p2; - - // XAxis, YAxis are in viewport coordinates already - p0 = this->XAxis->GetPositionCoordinate()->GetComputedViewportValue(viewport); - p1 = this->XAxis->GetPosition2Coordinate()->GetComputedViewportValue(viewport); - p2 = this->YAxis->GetPositionCoordinate()->GetComputedViewportValue(viewport); - - u = ((u - p0[0]) / (double)(p1[0] - p0[0])) - *(this->XComputedRange[1] - this->XComputedRange[0]) - + this->XComputedRange[0]; - v = ((v - p0[1]) / (double)(p2[1] - p0[1])) - *(this->YComputedRange[1] - this->YComputedRange[0]) - + this->YComputedRange[0]; -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::PlotToViewportCoordinate(vtkViewport *viewport, - double &u, double &v) -{ - int *p0, *p1, *p2; - - // XAxis, YAxis are in viewport coordinates already - p0 = this->XAxis->GetPositionCoordinate()->GetComputedViewportValue(viewport); - p1 = this->XAxis->GetPosition2Coordinate()->GetComputedViewportValue(viewport); - p2 = this->YAxis->GetPositionCoordinate()->GetComputedViewportValue(viewport); - - u = (((u - this->XComputedRange[0]) - / (this->XComputedRange[1] - this->XComputedRange[0])) - * (double)(p1[0] - p0[0])) + p0[0]; - v = (((v - this->YComputedRange[0]) - / (this->YComputedRange[1] - this->YComputedRange[0])) - * (double)(p2[1] - p0[1])) + p0[1]; -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::ViewportToPlotCoordinate(vtkViewport *viewport) -{ - this->ViewportToPlotCoordinate(viewport, - this->ViewportCoordinate[0], - this->ViewportCoordinate[1]); -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::PlotToViewportCoordinate(vtkViewport *viewport) -{ - this->PlotToViewportCoordinate(viewport, - this->PlotCoordinate[0], - this->PlotCoordinate[1]); -} - -//---------------------------------------------------------------------------- -int VISU_XYPlotActor::IsInPlot(vtkViewport *viewport, double u, double v) -{ - int *p0, *p1, *p2; - - // Bounds of the plot are based on the axes... - p0 = this->XAxis->GetPositionCoordinate()->GetComputedViewportValue(viewport); - p1 = this->XAxis->GetPosition2Coordinate()->GetComputedViewportValue(viewport); - p2 = this->YAxis->GetPositionCoordinate()->GetComputedViewportValue(viewport); - - if (u >= p0[0] && u <= p1[0] && v >= p0[1] && v <= p2[1]) - { - return 1; - } - - return 0; -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::SetPlotLines(int i, int isOn) -{ - i = ( i < 0 ? 0 : (i >=VTK_MAX_PLOTS ? VTK_MAX_PLOTS-1 : i)); - int val = this->LinesOn->GetValue(i); - if ( val != isOn ) - { - this->Modified(); - this->LinesOn->SetValue(i, isOn); - } -} - -//---------------------------------------------------------------------------- -int VISU_XYPlotActor::GetPlotLines(int i) -{ - i = ( i < 0 ? 0 : (i >=VTK_MAX_PLOTS ? VTK_MAX_PLOTS-1 : i)); - return this->LinesOn->GetValue(i); -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::SetPlotPoints(int i, int isOn) -{ - i = ( i < 0 ? 0 : (i >=VTK_MAX_PLOTS ? VTK_MAX_PLOTS-1 : i)); - int val = this->PointsOn->GetValue(i); - if ( val != isOn ) - { - this->Modified(); - this->PointsOn->SetValue(i, isOn); - } -} - -//---------------------------------------------------------------------------- -int VISU_XYPlotActor::GetPlotPoints(int i) -{ - i = ( i < 0 ? 0 : (i >=VTK_MAX_PLOTS ? VTK_MAX_PLOTS-1 : i)); - return this->PointsOn->GetValue(i); -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::SetPlotColor(int i, double r, double g, double b) -{ - this->LegendActor->SetEntryColor(i, r, g, b); -} - -//---------------------------------------------------------------------------- -double *VISU_XYPlotActor::GetPlotColor(int i) -{ - return this->LegendActor->GetEntryColor(i); -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::SetPlotSymbol(int i,vtkPolyData *input) -{ - this->LegendActor->SetEntrySymbol(i, input); -} - -//---------------------------------------------------------------------------- -vtkPolyData *VISU_XYPlotActor::GetPlotSymbol(int i) -{ - return this->LegendActor->GetEntrySymbol(i); -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::SetPlotLabel(int i, const char *label) -{ - this->LegendActor->SetEntryString(i, label); -} - -//---------------------------------------------------------------------------- -const char *VISU_XYPlotActor::GetPlotLabel(int i) -{ - return this->LegendActor->GetEntryString(i); -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::GenerateClipPlanes(int *pos, int *pos2) -{ - double n[3], x[3]; - vtkPoints *pts=this->ClipPlanes->GetPoints(); - vtkDataArray *normals=this->ClipPlanes->GetNormals(); - - n[2] = x[2] = 0.0; - - //first - n[0] = 0.0; - n[1] = -1.0; - normals->SetTuple(0,n); - x[0] = (double)0.5*(pos[0]+pos2[0]); - x[1] = (double)pos[1]; - pts->SetPoint(0,x); - - //second - n[0] = 1.0; - n[1] = 0.0; - normals->SetTuple(1,n); - x[0] = (double)pos2[0]; - x[1] = (double)0.5*(pos[1]+pos2[1]); - pts->SetPoint(1,x); - - //third - n[0] = 0.0; - n[1] = 1.0; - normals->SetTuple(2,n); - x[0] = (double)0.5*(pos[0]+pos2[0]); - x[1] = (double)pos2[1]; - pts->SetPoint(2,x); - - //fourth - n[0] = -1.0; - n[1] = 0.0; - normals->SetTuple(3,n); - x[0] = (double)pos[0]; - x[1] = (double)0.5*(pos[1]+pos2[1]); - pts->SetPoint(3,x); -} - -//---------------------------------------------------------------------------- -double VISU_XYPlotActor::ComputeGlyphScale(int i, int *pos, int *pos2) -{ - vtkPolyData *pd=this->LegendActor->GetEntrySymbol(i); - pd->Update(); - double length=pd->GetLength(); - double sf = this->GlyphSize * sqrt((double)(pos[0]-pos2[0])*(pos[0]-pos2[0]) + - (pos[1]-pos2[1])*(pos[1]-pos2[1])) / length; - - return sf; -} - -//---------------------------------------------------------------------------- -//This assumes that there are multiple polylines -void VISU_XYPlotActor::ClipPlotData(int *pos, int *pos2, vtkPolyData *pd) -{ - vtkPoints *points=pd->GetPoints(); - vtkPoints *newPoints; - vtkCellArray *lines=pd->GetLines(); - vtkCellArray *newLines, *newVerts; - vtkIdType numPts=pd->GetNumberOfPoints(); - vtkIdType npts = 0; - vtkIdType newPts[2]; - vtkIdType *pts=0; - vtkIdType i, id; - int j; - double x1[3], x2[3], px[3], n[3], xint[3], t; - double p1[2], p2[2]; - - p1[0] = (double)pos[0]; p1[1] = (double)pos[1]; - p2[0] = (double)pos2[0]; p2[1] = (double)pos2[1]; - - newPoints = vtkPoints::New(); - newPoints->Allocate(numPts); - newVerts = vtkCellArray::New(); - newVerts->Allocate(lines->GetSize()); - newLines = vtkCellArray::New(); - newLines->Allocate(2*lines->GetSize()); - int *pointMap = new int [numPts]; - for (i=0; iInitTraversal(); lines->GetNextCell(npts,pts); ) - { - //loop over verts keeping only those that are not clipped - for (i=0; iGetPoint(pts[i], x1); - - if (x1[0] >= p1[0] && x1[0] <= p2[0] && x1[1] >= p1[1] && x1[1] <= p2[1] ) - { - id = newPoints->InsertNextPoint(x1); - pointMap[i] = id; - newPts[0] = id; - newVerts->InsertNextCell(1,newPts); - } - } - } - - //Loop over polylines clipping each line segment - for ( lines->InitTraversal(); lines->GetNextCell(npts,pts); ) - { - //loop over line segment making up the polyline - for (i=0; i<(npts-1); i++) - { - points->GetPoint(pts[i], x1); - points->GetPoint(pts[i+1], x2); - - //intersect each segment with the four planes - if ( (x1[0] < p1[0] && x2[0] < p1[0]) || (x1[0] > p2[0] && x2[0] > p2[0]) || - (x1[1] < p1[1] && x2[1] < p1[1]) || (x1[1] > p2[1] && x2[1] > p2[1]) ) - { - ;//trivial rejection - } - else if (x1[0] >= p1[0] && x2[0] >= p1[0] && x1[0] <= p2[0] && x2[0] <= p2[0] && - x1[1] >= p1[1] && x2[1] >= p1[1] && x1[1] <= p2[1] && x2[1] <= p2[1] ) - {//trivial acceptance - newPts[0] = pointMap[pts[i]]; - newPts[1] = pointMap[pts[i+1]]; - newLines->InsertNextCell(2,newPts); - } - else - { - if (x1[0] >= p1[0] && x1[0] <= p2[0] && x1[1] >= p1[1] && x1[1] <= p2[1] ) - {//first point in - newPts[0] = pointMap[pts[i]]; - } - else - {//second point in - newPts[0] = pointMap[pts[i+1]]; - } - for (j=0; j<4; j++) - { - this->ClipPlanes->GetPoints()->GetPoint(j, px); - this->ClipPlanes->GetNormals()->GetTuple(j, n); - if ( vtkPlane::IntersectWithLine(x1,x2,n,px,t,xint) && t >= 0 && t <= 1.0 ) - { - newPts[1] = newPoints->InsertNextPoint(xint); - break; - } - } - newLines->InsertNextCell(2,newPts); - } - } - } - delete [] pointMap; - - //Update the lines - pd->SetPoints(newPoints); - pd->SetVerts(newVerts); - pd->SetLines(newLines); - - newPoints->Delete(); - newVerts->Delete(); - newLines->Delete(); - -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::SetDataObjectXComponent(int i, int comp) -{ - i = ( i < 0 ? 0 : (i >=VTK_MAX_PLOTS ? VTK_MAX_PLOTS-1 : i)); - int val=this->XComponent->GetValue(i); - if ( val != comp ) - { - this->Modified(); - this->XComponent->SetValue(i,comp); - } -} - -//---------------------------------------------------------------------------- -int VISU_XYPlotActor::GetDataObjectXComponent(int i) -{ - i = ( i < 0 ? 0 : (i >=VTK_MAX_PLOTS ? VTK_MAX_PLOTS-1 : i)); - return this->XComponent->GetValue(i); -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::SetDataObjectYComponent(int i, int comp) -{ - i = ( i < 0 ? 0 : (i >=VTK_MAX_PLOTS ? VTK_MAX_PLOTS-1 : i)); - int val=this->YComponent->GetValue(i); - if ( val != comp ) - { - this->Modified(); - this->YComponent->SetValue(i,comp); - } -} - -//---------------------------------------------------------------------------- -int VISU_XYPlotActor::GetDataObjectYComponent(int i) -{ - i = ( i < 0 ? 0 : (i >=VTK_MAX_PLOTS ? VTK_MAX_PLOTS-1 : i)); - return this->YComponent->GetValue(i); -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::SetPointComponent(int i, int comp) -{ - i = ( i < 0 ? 0 : (i >=VTK_MAX_PLOTS ? VTK_MAX_PLOTS-1 : i)); - int val = this->XComponent->GetValue(i); - if ( val != comp ) - { - this->Modified(); - this->XComponent->SetValue(i,comp); - } -} - -//---------------------------------------------------------------------------- -int VISU_XYPlotActor::GetPointComponent(int i) -{ - i = ( i < 0 ? 0 : (i >=VTK_MAX_PLOTS ? VTK_MAX_PLOTS-1 : i)); - return this->XComponent->GetValue(i); -} - -//---------------------------------------------------------------------------- -double *VISU_XYPlotActor::TransformPoint(int pos[2], int pos2[2], - double x[3], double xNew[3]) -{ - // First worry about exchanging axes - if ( this->ExchangeAxes ) - { - double sx = (x[0]-pos[0]) / (pos2[0]-pos[0]); - double sy = (x[1]-pos[1]) / (pos2[1]-pos[1]); - xNew[0] = sy*(pos2[0]-pos[0]) + pos[0]; - xNew[1] = sx*(pos2[1]-pos[1]) + pos[1]; - xNew[2] = x[2]; - } - else - { - xNew[0] = x[0]; - xNew[1] = x[1]; - xNew[2] = x[2]; - } - - // Okay, now swap the axes around if reverse is on - if ( this->ReverseXAxis ) - { - xNew[0] = pos[0] + (pos2[0]-xNew[0]); - } - if ( this->ReverseYAxis ) - { - xNew[1] = pos[1] + (pos2[1]-xNew[1]); - } - - return xNew; -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::SetLabelFormat(const char* _arg) -{ - if (this->LabelFormat == NULL && _arg == NULL) - { - return; - } - - if (this->LabelFormat && _arg && (!strcmp(this->LabelFormat,_arg))) - { - return; - } - - if (this->LabelFormat) - { - delete [] this->LabelFormat; - } - - if (_arg) - { - this->LabelFormat = new char[strlen(_arg)+1]; - strcpy(this->LabelFormat,_arg); - } - else - { - this->LabelFormat = NULL; - } - - this->XAxis->SetLabelFormat(this->LabelFormat); - this->YAxis->SetLabelFormat(this->LabelFormat); - - this->Modified(); -} - -//---------------------------------------------------------------------------- -void VISU_XYPlotActor::PrintAsCSV(ostream &os) -{ - vtkDataArray *scalars; - vtkDataSet *ds; - vtkCollectionSimpleIterator dsit; - double s; - int dsNum,component; - for ( dsNum=0, this->InputList->InitTraversal(dsit); - (ds = this->InputList->GetNextDataSet(dsit)); dsNum++ ) - { - vtkIdType numPts = ds->GetNumberOfPoints(); - scalars = ds->GetPointData()->GetScalars(this->SelectedInputScalars[dsNum]); - component = this->SelectedInputScalarsComponent->GetValue(dsNum); - for ( vtkIdType ptId=0; ptId < numPts; ptId++ ) - { - s = scalars->GetComponent(ptId, component); - if( ptId == 0 ) - { - os << s; - } - else - { - os << "," << s; - } - } - os << endl; - } -} - diff --git a/src/PIPELINE/VISU_XYPlotActor.hxx b/src/PIPELINE/VISU_XYPlotActor.hxx deleted file mode 100644 index 1647a846..00000000 --- a/src/PIPELINE/VISU_XYPlotActor.hxx +++ /dev/null @@ -1,581 +0,0 @@ -#ifndef VISU_XYPLOTACTOR_HXX_ -#define VISU_XYPLOTACTOR_HXX_ - -#include "VISUPipeline.hxx" - -/*========================================================================= - - Program: Visualization Toolkit - Module: $RCSfile$ - - Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen - All rights reserved. - See Copyright.txt or http://www.kitware.com/Copyright.htm for details. - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the above copyright notice for more information. - -=========================================================================*/ -// .NAME vtkXYPlotActor - generate an x-y plot from input dataset(s) or field data -// .SECTION Description -// vtkXYPlotActor creates an x-y plot of data from one or more input data -// sets or field data. The class plots dataset scalar values (y-axis) against -// the points (x-axis). The x-axis values are generated by taking the point -// ids, computing a cumulative arc length, or a normalized arc length. More -// than one input data set can be specified to generate multiple plots. -// Alternatively, if field data is supplied as input, the class plots one -// component against another. (The user must specify which component to use -// as the x-axis and which for the y-axis.) -// -// To use this class to plot dataset(s), you must specify one or more -// input datasets containing scalar and point data. You'll probably also -// want to invoke a method to control how the point coordinates are converted -// into x values (by default point ids are used). -// -// To use this class to plot field data, you must specify one or more input -// data objects with its associated field data. You'll also want to specify -// which component to use as the x-axis and which to use as the y-axis. -// Note that when plotting field data, the x and y values are used directly -// (i.e., there are no options to normalize the components). -// -// Once you've set up the plot, you'll want to position it. The -// PositionCoordinate defines the lower-left location of the x-y plot -// (specified in normalized viewport coordinates) and the Position2Coordinate -// define the upper-right corner. (Note: the Position2Coordinate is relative -// to PositionCoordinate, so you can move the vtkXYPlotActor around the -// viewport by setting just the PositionCoordinate.) The combination of the -// two position coordinates specifies a rectangle in which the plot will lie. -// -// Optional features include the ability to specify axes labels, label -// format and plot title. You can also -// manually specify the x and y plot ranges (by default they are computed -// automatically). The Border instance variable is used to create space -// between the boundary of the plot window (specified by PositionCoordinate -// and Position2Coordinate) and the plot itself. -// -// The font property of the plot title can be modified through the -// TitleTextProperty attribute. -// The font property of the axes titles and labels can be modified through the -// AxisTitleTextProperty and AxisLabelTextProperty attributes. You may also -// use the GetXAxisActor2D or GetYAxisActor2D methods -// to access each individual axis actor to modify their font properties. -// In the same way, the GetLegendBoxActor method can be used to access -// the legend box actor to modify its font properties. -// -// There are several advanced features as well. You can assign per curve -// properties (such as color and a plot symbol). (Note that each input -// dataset and/or data object creates a single curve.) Another option is to -// add a plot legend that graphically indicates the correspondance between -// the curve, curve symbols, and the data source. You can also exchange the -// x and y axes if you prefer you plot orientation that way. - -// .SECTION Caveats -// If you are interested in plotting something other than scalar data, you -// can use the vtk data shuffling filters (e.g., -// vtkAttributeDataToFieldDataFilter and vtkFieldDataToAttributeDataFilter) -// to convert the data into scalar data and/or points. - -// .SECTION See Also -// vtkActor2D vtkTextMapper vtkScalarBarActor vtkAxisActor2D vtkCubeAxesActor2D -// vtkAttributeDataToFieldDataFilter vtkFieldDataToAttributeDataFilter -// vtkTextProperty - -#include "vtkActor2D.h" -#include "vtkTransformPolyDataFilter.h" // RKV - -#define VTK_XYPLOT_INDEX 0 -#define VTK_XYPLOT_ARC_LENGTH 1 -#define VTK_XYPLOT_NORMALIZED_ARC_LENGTH 2 -#define VTK_XYPLOT_VALUE 3 - -#define VTK_XYPLOT_ROW 0 -#define VTK_XYPLOT_COLUMN 1 - -class vtkAppendPolyData; -class vtkAxisActor2D; -class vtkDataObject; -class vtkDataObjectCollection; -class vtkDataSet; -class vtkDataSetCollection; -class vtkGlyph2D; -class vtkGlyphSource2D; -class vtkIntArray; -class vtkLegendBoxActor; -class vtkPlanes; -class vtkPolyData; -class vtkPolyDataMapper2D; -class vtkTextMapper; -class vtkTextProperty; - -// RKV : Begin -/** Location of the actor in the viewport. - * Axes and a curve is plotted according to the selected side. - * Axes origin is plotted at: - * VISU_XYPLOT_BOTTOM - the left bottom corner, - * VISU_XYPLOT_TOP - the left upper corner (Y axis is directed to the bottom), - * VISU_XYPLOT_LEFT - the left bottom corner (axes are exchanged), - * VISU_XYPLOT_RIGHT - the right bottom corner (X axis is directed to the top, Y - to the left) - */ -enum VISU_XYPlotLocation { VISU_XYPLOT_BOTTOM = 0, - VISU_XYPLOT_TOP, VISU_XYPLOT_LEFT, VISU_XYPLOT_RIGHT }; -// RKV : End - -class VISU_PIPELINE_EXPORT VISU_XYPlotActor : public vtkActor2D -{ -public: - vtkTypeRevisionMacro(VISU_XYPlotActor,vtkActor2D); - void PrintSelf(ostream& os, vtkIndent indent); - - // Description: - // Instantiate object with autorange computation; bold, italic, and shadows - // on; arial font family; the number of labels set to 5 for the x and y - // axes; a label format of "%-#6.3g"; and x coordinates computed from point - // ids. - static VISU_XYPlotActor *New(); - - //---Data Set Input---------------------------------------------------------- - // The following methods are used to plot input datasets. Datasets - // will be plotted if set as input; otherwise the input data objects - // will be plotted (if defined). - - // Description: - // Add a dataset to the list of data to append. The array name specifies - // which point array to plot. If the array name is NULL, then the default - // scalars are used. The array can have multiple components, but only the - // first component is ploted. - void AddInput(vtkDataSet *in, const char* arrayName, int component); - void AddInput(vtkDataSet *in) {this->AddInput(in, NULL, 0);} - - // Description: - // Remove a dataset from the list of data to append. - void RemoveInput(vtkDataSet *in, const char* arrayName, int component); - void RemoveInput(vtkDataSet *in) {this->RemoveInput(in, NULL, 0);} - - // Description: - // This removes all of the data set inputs, - // but does not change the data object inputs. - void RemoveAllInputs(); - - // Description: - // Return the list of inputs to this filter. - vtkDataSetCollection *GetInputList() {return this->InputList;} - - // Description: - // If plotting points by value, which component to use to determine the - // value. This sets a value per each input dataset (i.e., the ith dataset). - void SetPointComponent(int i, int comp); - int GetPointComponent(int i); - //---end Data Set Input----------------------------------------------------- - - // Description: - // Specify how the independent (x) variable is computed from the points. - // The independent variable can be the scalar/point index (i.e., point id), - // the accumulated arc length along the points, the normalized arc length, - // or by component value. If plotting datasets (e.g., points), the value - // that is used is specified by the PointComponent ivar. (Note: these - // methods also control how field data is plotted. Field data is usually - // plotted by value or index, if plotting length 1-dimensional length - // measures are used.) - vtkSetClampMacro(XValues,int,VTK_XYPLOT_INDEX,VTK_XYPLOT_VALUE); - vtkGetMacro(XValues,int); - void SetXValuesToIndex(){this->SetXValues(VTK_XYPLOT_INDEX);}; - void SetXValuesToArcLength() {this->SetXValues(VTK_XYPLOT_ARC_LENGTH);}; - void SetXValuesToNormalizedArcLength() - {this->SetXValues(VTK_XYPLOT_NORMALIZED_ARC_LENGTH);}; - void SetXValuesToValue() {this->SetXValues(VTK_XYPLOT_VALUE);}; - const char *GetXValuesAsString(); - - //---Data Object Input------------------------------------------------------ - // The following methods are used to plot input data objects. Datasets will - // be plotted in preference to data objects if set as input; otherwise the - // input data objects will be plotted (if defined). - - // Description: - // Add a dataset to the list of data to append. - void AddDataObjectInput(vtkDataObject *in); - - // Description: - // Remove a dataset from the list of data to append. - void RemoveDataObjectInput(vtkDataObject *in); - - // Description: - // Return the list of inputs to this filter. - vtkDataObjectCollection *GetDataObjectInputList() - {return this->DataObjectInputList;} - - // Description: - // Indicate whether to plot rows or columns. If plotting rows, then - // the dependent variables is taken from a specified row, - // versus rows (y). - vtkSetClampMacro(DataObjectPlotMode,int,VTK_XYPLOT_ROW,VTK_XYPLOT_COLUMN); - vtkGetMacro(DataObjectPlotMode,int); - void SetDataObjectPlotModeToRows() - {this->SetDataObjectPlotMode(VTK_XYPLOT_ROW);} - void SetDataObjectPlotModeToColumns() - {this->SetDataObjectPlotMode(VTK_XYPLOT_COLUMN);} - const char *GetDataObjectPlotModeAsString(); - - // Description: - // Specify which component of the input data object to use as the - // independent variable for the ith input data object. (This ivar is - // ignored if plotting the index.) Note that the value is interpreted - // differently depending on DataObjectPlotMode. If the mode is Rows, then - // the value of DataObjectXComponent is the row number; otherwise it's the - // column number. - void SetDataObjectXComponent(int i, int comp); - int GetDataObjectXComponent(int i); - - // Description: - // Specify which component of the input data object to use as the - // dependent variable for the ith input data object. (This ivar is - // ignored if plotting the index.) Note that the value is interpreted - // differently depending on DataObjectPlotMode. If the mode is Rows, then - // the value of DataObjectYComponent is the row number; otherwise it's the - // column number. - void SetDataObjectYComponent(int i, int comp); - int GetDataObjectYComponent(int i); - //---end Data Object Input-------------------------------------------------- - - //---Per Curve Properties--------------------------------------------------- - // The following methods are used to set properties on each curve that is - // plotted. Each input dataset (or data object) results in one curve. The - // methods that follow have an index i that corresponds to the input dataset - // or data object. - void SetPlotColor(int i, double r, double g, double b); - void SetPlotColor(int i, const double color[3]) { - this->SetPlotColor(i, color[0], color[1], color[2]); }; - double *GetPlotColor(int i); - void SetPlotSymbol(int i,vtkPolyData *input); - vtkPolyData *GetPlotSymbol(int i); - void SetPlotLabel(int i, const char *label); - const char *GetPlotLabel(int i); - - // Allow per-curve specification of line and point rendering. These override - // global settings PlotPoints and PlotLines. If not on, the default behavior - // is governed by PlotPoints and PlotLines ivars. - vtkGetMacro(PlotCurvePoints, int); - vtkSetMacro(PlotCurvePoints, int); - vtkBooleanMacro(PlotCurvePoints, int); - - vtkGetMacro(PlotCurveLines, int); - vtkSetMacro(PlotCurveLines, int); - vtkBooleanMacro(PlotCurveLines, int); - - void SetPlotLines(int i, int); - int GetPlotLines(int i); - - void SetPlotPoints(int i, int); - int GetPlotPoints(int i); - //---end Per Curve Properties----------------------------------------------- - - // Description: - // Enable/Disable exchange of the x-y axes (i.e., what was x becomes y, and - // vice-versa). Exchanging axes affects the labeling as well. - vtkSetMacro(ExchangeAxes, int); - vtkGetMacro(ExchangeAxes, int); - vtkBooleanMacro(ExchangeAxes, int); - - // Description: - // Normally the x-axis is plotted from minimum to maximum. Setting this instance - // variable causes the x-axis to be plotted from maximum to minimum. Note that - // boolean always applies to the x-axis even if ExchangeAxes is set. - vtkSetMacro(ReverseXAxis, int); - vtkGetMacro(ReverseXAxis, int); - vtkBooleanMacro(ReverseXAxis, int); - - // Description: - // Normally the y-axis is plotted from minimum to maximum. Setting this instance - // variable causes the y-axis to be plotted from maximum to minimum. Note that - // boolean always applies to the y-axis even if ExchangeAxes is set. - vtkSetMacro(ReverseYAxis, int); - vtkGetMacro(ReverseYAxis, int); - vtkBooleanMacro(ReverseYAxis, int); - - // Description: - // Retrieve handles to the legend box and glyph source. This is useful - // if you would like to change the default behavior of the legend box - // or glyph source. For example, the default glyph can be changed from - // a line to a vertex plus line, etc.) - vtkGetObjectMacro(LegendActor,vtkLegendBoxActor); - vtkGetObjectMacro(GlyphSource,vtkGlyphSource2D); - - // Description: - // Set/Get the title of the x-y plot, and the title along the - // x and y axes. - vtkSetStringMacro(Title); - vtkGetStringMacro(Title); - vtkSetStringMacro(XTitle); - vtkGetStringMacro(XTitle); - vtkSetStringMacro(YTitle); - vtkGetStringMacro(YTitle); - - // Description: - // Retrieve handles to the X and Y axis (so that you can set their text - // properties for example) - vtkAxisActor2D *GetXAxisActor2D() - {return this->XAxis;} - vtkAxisActor2D *GetYAxisActor2D() - {return this->YAxis;} - - // Description: - // Set the plot range (range of independent and dependent variables) - // to plot. Data outside of the range will be clipped. If the plot - // range of either the x or y variables is set to (v1,v2), where - // v1 == v2, then the range will be computed automatically. Note that - // the x-range values should be consistent with the way the independent - // variable is created (via INDEX, DISTANCE, or ARC_LENGTH). - vtkSetVector2Macro(XRange,double); - vtkGetVectorMacro(XRange,double,2); - vtkSetVector2Macro(YRange,double); - vtkGetVectorMacro(YRange,double,2); - void SetPlotRange(double xmin, double ymin, double xmax, double ymax) - {this->SetXRange(xmin,xmax); this->SetYRange(ymin,ymax);} - - // Description: - // Set/Get the number of annotation labels to show along the x and y axes. - // This values is a suggestion: the number of labels may vary depending - // on the particulars of the data. The convenience method - // SetNumberOfLables() sets the number of x and y labels to the same value. - vtkSetClampMacro(NumberOfXLabels, int, 0, 50); - vtkGetMacro(NumberOfXLabels, int); - vtkSetClampMacro(NumberOfYLabels, int, 0, 50); - vtkGetMacro(NumberOfYLabels, int); - void SetNumberOfLabels(int num) - {this->SetNumberOfXLabels(num); this->SetNumberOfYLabels(num);} - - // Description: - // Enable/Disable the creation of a legend. If on, the legend labels will - // be created automatically unless the per plot legend symbol has been - // set. - vtkSetMacro(Legend, int); - vtkGetMacro(Legend, int); - vtkBooleanMacro(Legend, int); - - // Description: - // Use these methods to control the position of the legend. The variables - // LegendPosition and LegendPosition2 define the lower-left and upper-right - // position of the legend. The coordinates are expressed as normalized - // values with respect to the rectangle defined by PositionCoordinate and - // Position2Coordinate. Note that LegendPosition2 is relative to - // LegendPosition. - vtkSetVector2Macro(LegendPosition,double); - vtkGetVector2Macro(LegendPosition,double); - vtkSetVector2Macro(LegendPosition2,double); - vtkGetVector2Macro(LegendPosition2,double); - - // Description: - // Set/Get the title text property. - virtual void SetTitleTextProperty(vtkTextProperty *p); - vtkGetObjectMacro(TitleTextProperty,vtkTextProperty); - - // Description: - // Set/Get the title text property of all axes. Note that each axis can - // be controlled individually through the GetX/YAxisActor2D() methods. - virtual void SetAxisTitleTextProperty(vtkTextProperty *p); - vtkGetObjectMacro(AxisTitleTextProperty,vtkTextProperty); - - // Description: - // Set/Get the labels text property of all axes. Note that each axis can - // be controlled individually through the GetX/YAxisActor2D() methods. - virtual void SetAxisLabelTextProperty(vtkTextProperty *p); - vtkGetObjectMacro(AxisLabelTextProperty,vtkTextProperty); - - // Description: - // Enable/Disable plotting of Log of x-values. - vtkSetMacro(Logx, int); - vtkGetMacro(Logx, int); - vtkBooleanMacro(Logx, int); - - // Description: - // Set/Get the format with which to print the labels on the scalar - // bar. - virtual void SetLabelFormat (const char* _arg); - vtkGetStringMacro(LabelFormat); - - // Description: - // Set/Get the spacing between the plot window and the plot. The value - // is specified in pixels. - vtkSetClampMacro(Border, int, 0, 50); - vtkGetMacro(Border, int); - - // Description: - // Set/Get whether the points are rendered. The point size can be set in - // the property object. This is a global flag which affects the plot only - // if per curve symbols are not defined. - vtkGetMacro(PlotPoints, int); - vtkSetMacro(PlotPoints, int); - vtkBooleanMacro(PlotPoints, int); - - // Description: - // Set/Get whether the lines are rendered. The line width can be set in - // the property object. - vtkGetMacro(PlotLines, int); - vtkSetMacro(PlotLines, int); - vtkBooleanMacro(PlotLines, int); - - // RKV : Begin - // Description: - // Set/Get the location in the viewport - vtkGetMacro(PlotLocation, VISU_XYPlotLocation); - vtkSetMacro(PlotLocation, VISU_XYPlotLocation); - // RKV : End - - // Description: - // Set/Get the factor that controls how big glyphs are in the plot. - // The number is expressed as a fraction of the length of the diagonal - // of the plot bounding box. - vtkSetClampMacro(GlyphSize, double, 0.0, 0.2); - vtkGetMacro(GlyphSize, double); - - // Description: - // Given a position within the viewport used by the plot, return the - // the plot coordinates (XAxis value, YAxis value) - void ViewportToPlotCoordinate(vtkViewport *viewport, double &u, double &v); - - // Description: - // An alternate form of ViewportToPlotCoordinate() above. This method - // inputs the viewport coordinate pair (defined by the ivar - // ViewportCoordinate)and then stores them in the ivar PlotCoordinate. - void ViewportToPlotCoordinate(vtkViewport *viewport); - vtkSetVector2Macro(PlotCoordinate,double); - vtkGetVector2Macro(PlotCoordinate,double); - - // Description: - // Given a plot coordinate, return the viewpoint position - void PlotToViewportCoordinate(vtkViewport *viewport, double &u, double &v); - - // Description: - // An alternate form of PlotToViewportCoordinate() above. This method - // inputs the plot coordinate pair (defined in the ivar PlotCoordinate) - // and then stores them in the ivar ViewportCoordinate. (This method - // can be wrapped.) - void PlotToViewportCoordinate(vtkViewport *viewport); - vtkSetVector2Macro(ViewportCoordinate,double); - vtkGetVector2Macro(ViewportCoordinate,double); - - // Description: - // Is the specified viewport position within the plot area (as opposed to the - // region used by the plot plus the labels)? - int IsInPlot(vtkViewport *viewport, double u, double v); - - // Description: - // Take into account the modified time of internal helper classes. - unsigned long GetMTime(); - - // Description: - // Write the XY Ploat Actor as a CSV (comma separated value) representation. - void PrintAsCSV(ostream &os); - -//BTX - // Description: - // WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE - // DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS. - // Draw the x-y plot. - int RenderOpaqueGeometry(vtkViewport*); - int RenderOverlay(vtkViewport*); - int RenderTranslucentGeometry(vtkViewport *) {return 0;} - - // Description: - // Release any graphics resources that are being consumed by this actor. - // The parameter window could be used to determine which graphic - // resources to release. - void ReleaseGraphicsResources(vtkWindow *); -//ETX - -protected: - VISU_XYPlotActor(); - ~VISU_XYPlotActor(); - - vtkDataSetCollection *InputList; //list of data sets to plot - char** SelectedInputScalars; // list of data set arrays to plot - vtkIntArray* SelectedInputScalarsComponent; // list of componenents - vtkDataObjectCollection *DataObjectInputList; //list of data objects to plot - char *Title; - char *XTitle; - char *YTitle; - int XValues; - int NumberOfXLabels; - int NumberOfYLabels; - int Logx; - char *LabelFormat; - double XRange[2]; - double YRange[2]; - double XComputedRange[2]; //range actually used by plot - double YComputedRange[2]; //range actually used by plot - int Border; - int PlotLines; - int PlotPoints; - int PlotCurveLines; - int PlotCurvePoints; - int ExchangeAxes; - int ReverseXAxis; - int ReverseYAxis; - - vtkTextMapper *TitleMapper; - vtkActor2D *TitleActor; - vtkTextProperty *TitleTextProperty; - - vtkAxisActor2D *XAxis; - vtkAxisActor2D *YAxis; - - vtkTextProperty *AxisTitleTextProperty; - vtkTextProperty *AxisLabelTextProperty; - - double ViewportCoordinate[2]; - double PlotCoordinate[2]; - - //Handle data objects and datasets - int DataObjectPlotMode; - vtkIntArray *XComponent; - vtkIntArray *YComponent; - vtkIntArray *LinesOn; - vtkIntArray *PointsOn; - - //The data drawn within the axes. Each curve is one polydata. - //color is controlled by scalar data. The curves are appended - //together, possibly glyphed with point symbols. - int NumberOfInputs; - vtkPolyData **PlotData; - vtkGlyph2D **PlotGlyph; - vtkAppendPolyData **PlotAppend; - vtkTransformPolyDataFilter **PlotTransform; // RKV - vtkPolyDataMapper2D **PlotMapper; - vtkActor2D **PlotActor; - void InitializeEntries(); - - // Legends and plot symbols. The legend also keeps track of - // the symbols and such. - int Legend; - double LegendPosition[2]; - double LegendPosition2[2]; - vtkLegendBoxActor *LegendActor; - vtkGlyphSource2D *GlyphSource; - vtkPlanes *ClipPlanes; - double GlyphSize; - - // Keep track of changes. - VISU_XYPlotLocation PlotLocation; // RKV - int CachedSize[2]; - vtkTimeStamp BuildTime; - - void ComputeXRange(double range[2], double *lengths); - void ComputeYRange(double range[2]); - void ComputeDORange(double xrange[2], double yrange[2], double *lengths); - - virtual void CreatePlotData(int *pos, int *pos2, double xRange[2], - double yRange[2], double *norms, - int numDS, int numDO); - void PlaceAxes(vtkViewport *viewport, int *size, int pos[2], int pos2[2]); - void GenerateClipPlanes(int *pos, int *pos2); - double ComputeGlyphScale(int i, int *pos, int *pos2); - void ClipPlotData(int *pos, int *pos2, vtkPolyData *pd); - double *TransformPoint(int pos[2], int pos2[2], double x[3], double xNew[3]); - -private: - VISU_XYPlotActor(const VISU_XYPlotActor&); // Not implemented. - void operator=(const VISU_XYPlotActor&); // Not implemented. -}; - - -#endif /*VISU_XYPLOTACTOR_HXX_*/ diff --git a/src/VISUGUI/VISU_images.ts b/src/VISUGUI/VISU_images.ts deleted file mode 100644 index 143e7563..00000000 --- a/src/VISUGUI/VISU_images.ts +++ /dev/null @@ -1,367 +0,0 @@ - - - - - @default - - ICON_ACTOR_SELECTION - Visu_actor_selection.png - - - ICON_ADD - Visu_add.png - - - ICON_APPLY - Visu_apply.png - - - ICON_CELL_SELECTION - Visu_cell_selection.png - - - ICON_CLOSE - Visu_close.png - - - ICON_CUBE_AXES - Visu_graduated_axes.png - - - ICON_CUT_LINES - Visu_cutlines.png - - - ICON_CUT_PLANES - Visu_cutplanes.png - - - ICON_DEFORMED_SHAPE - Visu_deformed.png - - - ICON_ERASE_ALL - Visu_eraseall.png - - - ICON_GAUSS_NEW_VIEWER - Visu_points.png - - - ICON_GAUSS_POINT_SELECTION - Visu_gauss_point_selection.png - - - ICON_GAUSS_POINTS - Visu_gauss_points.png - - - ICON_GLOBAL_SELECTION - Visu_selectall.png - - - ICON_HELP - Visu_help.png - - - ICON_HOLO_RENDER - Visu_holo_render.png - - - ICON_IMPORT_MED - Visu_import_med.png - - - ICON_ISO_SURFACES - Visu_isosurfaces.png - - - ICON_LOAD_TEXTURE - Visu_load_texture.png - - - ICON_MULTIPR_VIEW_FULL - Visu_tree_multipr_full.png - - - ICON_MULTIPR_VIEW_HIDE - Visu_tree_multipr_hide.png - - - ICON_MULTIPR_VIEW_LOW - Visu_tree_multipr_low.png - - - ICON_MULTIPR_VIEW_MEDIUM - Visu_tree_multipr_medium.png - - - ICON_OBJBROWSER_Visu - Visu_tree_visu.png - - - ICON_OK - Visu_ok.png - - - ICON_PARTIAL_SELECTION - Visu_selectonly.png - - - ICON_PLOT2D - Visu_plot2d.png - - - ICON_PLOT_3D - Visu_plot3d.png - - - ICON_POINT_SELECTION - Visu_point_selection.png - - - ICON_POINTS - Visu_points.png - - - ICON_REMOVE - Visu_remove.png - - - ICON_SCALAR_MAP - Visu_scalars.png - - - ICON_SCALAR_MAP_ON_DEFORMED_SHAPE - Visu_scalarmapondeformedshape.png - - - ICON_SCALING - Visu_scaling.png - - - ICON_SELECTION_PANEL - Visu_selection_panel.png - - ICON_SLIDER_PANELVisu_slider_panel.png - ICON_SWEEP_PANELVisu_sweep_panel.png - - ICON_SLIDER_AVI - Visu_slider_avi.png - - - ICON_SLIDER_FIRST - Visu_slider_first.png - - - ICON_SLIDER_LAST - Visu_slider_last.png - - - ICON_SLIDER_MORE - Visu_slider_more.png - - - ICON_SLIDER_NEXT - Visu_slider_next.png - - - ICON_SLIDER_PAUSE - Visu_slider_pause.png - - - ICON_SLIDER_PLAY - Visu_slider_play.png - - - ICON_SLIDER_PREVIOUS - Visu_slider_previous.png - - - ICON_STREAM_LINES - Visu_streamlines.png - - - ICON_SURFACE - Visu_surface.png - - - ICON_SWEEP - Visu_scalars_anim.png - - - ICON_TIMEANIMATION - Visu_anim.png - - - ICON_TREE_CONTAINER - Visu_tree_container.png - - - ICON_TREE_CURVE - Visu_tree_curve.png - - - ICON_TREE_CUT_LINES - Visu_tree_cutlines.png - - - ICON_TREE_CUT_LINES_GROUPS - Visu_tree_cutlines_gr.png - - - ICON_TREE_CUT_PLANES - Visu_tree_cutplanes.png - - - ICON_TREE_CUT_PLANES_GROUPS - Visu_tree_cutplanes_gr.png - - - ICON_TREE_DEFORMED_SHAPE - Visu_tree_deformed.png - - - ICON_TREE_DEFORMED_SHAPE_GROUPS - Visu_tree_deformed_gr.png - - - ICON_TREE_GAUSS_POINTS - Visu_tree_gauss_points.png - - - ICON_TREE_ISO_SURFACES - Visu_tree_isosurfaces.png - - - ICON_TREE_ISO_SURFACES_GROUPS - Visu_tree_isosurfaces_gr.png - - - ICON_TREE_MESH - Visu_tree_mesh.png - - - ICON_TREE_PLOT_3D - Visu_tree_plot3d.png - - - ICON_TREE_PLOT_3D_GROUPS - Visu_tree_plot3d_gr.png - - - ICON_TREE_RESULT - Visu_tree_result.png - - - ICON_TREE_SCALAR_MAP - Visu_tree_scalars.png - - - ICON_TREE_SCALAR_MAP_GROUPS - Visu_tree_scalars_gr.png - - - ICON_TREE_SCALAR_MAP_ON_DEFORMED_SHAPE - Visu_tree_scalarmapondeformedshape.png - - - ICON_TREE_SCALAR_MAP_ON_DEFORMED_SHAPE_GROUPS - Visu_tree_scalarmapondeformedshape_gr.png - - - ICON_TREE_STREAM_LINES - Visu_tree_streamlines.png - - - ICON_TREE_STREAM_LINES_GROUPS - Visu_tree_streamlines_gr.png - - - ICON_TREE_TABLE - Visu_tree_table.png - - - ICON_TREE_VECTORS - Visu_tree_vectors.png - - - ICON_TREE_VECTORS_GROUPS - Visu_tree_vectors_gr.png - - - ICON_VECTORS - Visu_vectors.png - - - ICON_VVTK_INTERACTOR_STYLE_SWITCH - Visu_vvtk_switch.png - - - ICON_VVTK_PLANE_SEGMENTATION_SWITCH - Visu_PlaneSegmentation.png - - - ICON_VVTK_RECORDING_PAUSE - Visu_recording_pause.png - - - ICON_VVTK_RECORDING_PLAY - Visu_recording_play.png - - - ICON_VVTK_RECORDING_START - Visu_recording_start.png - - - ICON_VVTK_RECORDING_STOP - Visu_recording_stop.png - - - ICON_SWEEP_STOP - Visu_recording_stop.png - - - ICON_VVTK_SELECTION_MODE_SWITCH - Visu_points.png - - - ICON_VVTK_SPHERE_SEGMENTATION_SWITCH - Visu_SphereSegmentation.png - - - ICON_WIREFRAME - Visu_wireframe.png - - - ICON_DEACTIVATE_PLANES - Visu_DeactivatePlane.png - - - ICON_PLANES_MGR - Visu_planemanager.png - - - diff --git a/src/VISUGUI/VISU_msg_en.ts b/src/VISUGUI/VISU_msg_en.ts deleted file mode 100644 index 6070c77b..00000000 --- a/src/VISUGUI/VISU_msg_en.ts +++ /dev/null @@ -1,4003 +0,0 @@ - - - - - @default - - ASSIGNED - Assigned - - - ATTRIBUTES_LBL - Attributes - - - AXIS_LBL - Axis - - - BTN_RESET - Reset - - - DATA_LBL - Data - - - ERR_CANT_BUILD_PRESENTATION - The object can't be built - - - ERR_CANT_CREATE_ACTOR - Can't create actor for this presentation - - - ERR_CANT_CREATE_ANIMATION - Can't create animation for these fields: -number of time stamps or number of components is not the same! - - - ERR_CANT_FIND_MED_COMPONENT - Failed to activate MED engine! - - - ERR_CANT_FIND_VISU_COMPONENT - Failed to activate VISU engine! - - - ERR_NO_MEMORY_TO_BUILD - Please, free %1 Mb to make the cache enlarging possible -(for example, try to delete some holders) - - - IMPORT_DONE - Importing is done - - - INF_DONE - done - - - INF_VISU - Post-Pro Info - - - NO_GROUPS - No groups in the mesh - - - PARALLEL_ANIMATION - Parallel Animation - - - PERIOD_2PI - From -PI to PI - - - PERIOD_PI - From 0 to PI - - - PRS_ON_GROUPS - Use Only Groups - - - SUCCESSIVE_ANIMATION - Successive Animation - - - TIT_OFFSETDLG - Translate Presentation - - - TLT_SETUP_PLOT2D - Setup Plot 2d - - - UNITS_LBL - Units - - VISU_3DCACHE_PREFERENCES3D Cache - VISU_ANIMATION_PREFERENCESAnimation - - VISU_COLORS_AND_LABELS - Colors && Labels - - - VISU_COMPONENT - Component - - - VISU_COS_SWEEP - Cosinusoidal ( (1 - cos(t))/2 ) - - - VISU_CUTLINE_PREF - CutLine preferences - - - VISU_CUT_LINES - Cut Lines - - - VISU_CUT_PLANES - Cut Planes - - - VISU_DEFORMED_SHAPE - Deformed Shape - - - VISU_DISP_ONLY - Display only on creation - - - VISU_FEATURE_EDGES - Feature edges - - - VISU_FEATURE_EDGES_ANGLE - Feature edges angle - - - VISU_FEATURE_EDGES_COLORING - Coloring - - - VISU_FEATURE_EDGES_PROPS - Feature edges properties - - - VISU_FIELD_RANGE - Field range - - - VISU_FONT - Font - - - VISU_FONT_ARIAL - Arial - - - VISU_FONT_COURIER - Courier - - - VISU_FONT_TIMES - Times - - - VISU_HEIGHT - Height: - - - VISU_HORIZONTAL - Horizontal - - - VISU_IMPOSED_RANGE - Imposed range - - - VISU_IS2PI - Parameter varies: - - - VISU_ISO_SURFACES - Iso Surfaces - - - VISU_LABELS - Labels - - - VISU_LIMITED - Limited - - - VISU_LINEAR_SWEEP - Linear - - - VISU_LOGARITHMIC_SCALING - Logarithmic - - - VISU_MAX - Max: - - - VISU_MEMORY_LIMIT - Memory limit (Mb) - - - VISU_MEMORY_MODE - Memory mode - - - VISU_MESH - Mesh - - - VISU_MIN - Min: - - - VISU_MINIMAL - Minimal - - - VISU_MINMAX_IMPOSED_RANGE - Min and max for imposed range - - - VISU_MODULUS - Modulus - - - VISU_NB_COLORS - Nb. of colors - - - VISU_NB_CYCLES - Number of cycles - - - VISU_NB_LABELS - Nb. of labels - - - VISU_NB_STEPS - Number of steps - - - VISU_ORIENTATION - Orientation - - - VISU_ORIGIN_AND_SIZE - Origin && Size - - - VISU_PLOT3D - Plot3D - - - VISU_PREF_MED_FULL_LOAD - Full MED loading - - - VISU_PREF_MED_IMPORT - MED files import - - - VISU_PREF_SECOND_TAB - Scalar range, Sweep, MED import, Shading - - - VISU_RANGE_TO_USE - Range to use - - - VISU_REPRESENT_PROPS - Representation properties - - - VISU_SCALAR_BAR - Scalar Bar - - - VISU_SCALAR_MAP - Scalar Map - - - VISU_SCALAR_MAP_ON_DEFORMED_SHAPE - Scalar Map on Def. Shape - - - VISU_SCALAR_MODE - Scalar mode - - - VISU_SCALAR_RANGE - Scalar range: - - - VISU_SHOW_BOUNDARY_EDGES - Show boundary edges - - - VISU_SHOW_FEATURE_EDGES - Show feature edges - - - VISU_SHOW_MANIFOLD_EDGES - Show manifold edges - - - VISU_SHOW_NON_MANIFOLD_EDGES - Show non-manifold edges - - - VISU_SHRINK - Shrink - - - VISU_SIN_SWEEP - Sinusoidal ( sin( t - PI/2 ) ) - - - VISU_STREAM_LINES - Stream Lines - - - VISU_SWEEPING_MODES - Mode of the sweeping - - - VISU_SWEEPING_PREF - Sweeping preferences - - - VISU_TIME_STEP - Time step(second) - - - VISU_TITLE - Title - - - VISU_USE_SHADING - Use Shading - - - VISU_VECTORS - Vectors - - - VISU_VERTICAL - Vertical - - - VISU_WIDTH - Width: - - - VISU_X - X: - - - VISU_Y - Y: - - - WRN_EXTRA_MEMORY_REQUIRED - Cache need more memory to build the presentation (%1 Mb). -Do you want to enlarge the cache? - - - WRN_NO_AVAILABLE_DATA - No Available data in selection - - - WRN_STUDY_LOCKED - Current Study is locked - - - WRN_VISU - Post-Pro Warning - - - WRN_VISU_WARNING - Warning - - - INF_FAILED - failed! - - - VISU_IS_UNITS - Display units in title - - - VISU_LABELS_FORMAT - Labels format - - - VISU_TITLE_SIZE - Title size (%): - - - VISU_TITLE_HEIGHT - Title height (%): - - - VISU_LABEL_SIZE - Label size (%): - - - VISU_LABEL_HEIGHT - Label height (%): - - - VISU_BAR_WIDTH - Bar width (%): - - - VISU_BAR_HEIGHT - Bar height (%): - - - VISU_AUTOMATIC_FIT_ALL - Automatic Fit All - - - VISU_DEFORMED_SHAPE_AND_SCALAR_MAP - Def. Shape and Scalar Map - - - VISU_FLOATING_POINT_PRECISION - Floating Point Precision - - - VISU_REALLY_DELETE - Do you really want to delete this %1 object(s): %2 - - - WRN_NO_APPROPRIATE_SELECTION - No appropriate objects selected - - - - VVTK_MainWindow - - DSC_VVTK_RECORDING_PAUSE - Pause recording - - - DSC_VVTK_RECORDING_PLAY - Play recording - - - DSC_VVTK_RECORDING_START - Start recording - - - DSC_VVTK_RECORDING_STOP - Stop recording - - - LBL_TOOLBAR_RECORD_LABEL - Recording Operations - - - MNU_VVTK_RECORDING_PAUSE - Pause recording - - - MNU_VVTK_RECORDING_PLAY - Play recording - - - MNU_VVTK_RECORDING_START - Start recording - - - MNU_VVTK_RECORDING_STOP - Stop recording - - - MSG_NO_AVI_MAKER - Tool jpeg2yuv, necessary for AVI recording, is not available. -Please, refer to the documentation. - - - - VVTK_MainWindow1 - - DSC_VVTK_INTERACTOR_STYLE_SWITCH - Interaction Style Switch - - - DSC_VVTK_PLANE_SEGMENTATION_SWITCH - Plane Segmentation - - - DSC_VVTK_SELECTION_MODE_SWITCH - Selection Mode Switch - - - DSC_VVTK_SPHERE_SEGMENTATION_SWITCH - Sphere Segmentation - - - LBL_TOOLBAR_GAUSS_LABEL - Gauss Viewer Tools - - - MNU_VVTK_INTERACTOR_STYLE_SWITCH - Interaction Style Switch - - - MNU_VVTK_PLANE_SEGMENTATION_SWITCH - Plane Segmentation - - - MNU_VVTK_SELECTION_MODE_SWITCH - Selection Mode Switch - - - MNU_VVTK_SPHERE_SEGMENTATION_SWITCH - Sphere Segmentation - - - - VVTK_PickingDlg - - BELOW_POINT - Centered below the point - - - CAMERA_TITLE - Movement of the camera - - - CURSOR_SIZE - Size of the cursor : - - - CURSOR_TITLE - Cursor - - - DISPLAY_PARENT_MESH - Display parent mesh element - - - INFO_WINDOW_TITLE - Information window - - - PARENT_MESH_TITLE - Parent mesh element - - - PICKING_DLG_TITLE - Picking - - - POINT_TOLERANCE - Point tolerance : - - - POSITION - Position : - - - PYRAMID_HEIGHT - Height of the pyramids : - - - SELECTION_COLOR - Selection cursor color : - - - STEP_NUMBER - Number of steps between two positions : - - - TOLERANCE_TITLE - Tolerance - - - TOP_LEFT_CORNER - Top-left corner of the 3D view - - - TRANSPARENCY - Transparency : - - - ZOOM_FACTOR - Zoom at first selected point (ratio) : - - - DATA_POSITION - Position - - - PARENT_ELEMENT - Parent mesh element ID: - - - LOCAL_POINT - Local Gauss Point ID: - - - - VVTK_PrimitiveBox - - ALPHA_TEXTURE - Alpha Channel Texture (16x16) : - - - ALPHA_THRESHOLD - Alpha Channel Threshold : - - - CLAMP - Maximum Size (Clamp) : - - - FACE_LIMIT - Notify when number of faces exceeds : - - - FACE_NUMBER - Number of faces : - - - GEOMETRICAL_SPHERE - Geometrical Sphere - - - MAIN_TEXTURE - Main Texture (16x16) : - - - OPENGL_POINT - OpenGL Point - - - POINT_SPRITE - Point Sprite - - - PRIMITIVE_TITLE - Primitive - - - RESOLUTION - Resolution : - - - - VVTK_RecorderDlg - - ALL_DISLPAYED_FRAMES - Recording all displayed frames - - - CLOSE - Close - - - DLG_RECORDER_TITLE - Recorder - - - FILE_NAME - Save to file : - - - FLT_ALL_FILES - All Files (*.*) - - - FLT_AVI_FILES - AVI Files (*.avi) - - - FPS - FPS : - - - PROGRESSIVE - Progressive - - - QUALITY - Quality : - - - RECORDING_MODE - Mode : - - - SETTINGS - Settings - - - SKIPPED_FRAMES - Recording at a given FPS - - - START - Start - - - - VVTK_SegmentationCursorDlg - - DEPTH - Depth of the cursor: - - - DEPTH_TITLE - Depth - - - DIRECTION_DX - DX: - - - DIRECTION_DY - DY: - - - DIRECTION_DZ - DZ: - - - DIRECTION_TITLE - Direction - - - GAUSS_POINTS_TAB - Gauss Points - - - INCREMENT - +/- Ratio : - - - INSIDE_GAUSS_POINTS - Inside Cursor Gauss Points Presentation - - - MAGNIFICATION - Magnification (%) : - - - MAGNIFICATION_TITLE - Magnification - - - ORIGIN_TITLE - Origin - - - ORIGIN_X - X: - - - ORIGIN_Y - Y: - - - ORIGIN_Z - Z: - - - OUTSIDE_GAUSS_POINTS - Outside Cursor Gauss Points Presentation - - - RADIUS - Radius of the cursor : - - - RADIUS_TITLE - Radius - - - RATIO - +/- Ratio : - - - SEGMENTATION_CURSOR_DLG_TITLE - Segmentation Cursor - - - SEGMENTATION_CURSOR_TAB - Segmentation Cursor - - - - VVTK_SizeBox - - COLOR - Color : - - - COLOR_TITLE - Color - - - GEOM_SIZE - Size of points (%) : - - - INCREMENT - +/- Ratio : - - - MAGNIFICATION - Magnification (%) : - - - MAX_SIZE - max size (%) : - - - MIN_SIZE - Range values for min size (%) : - - - OUTSIDE_SIZE - Percentage of normal size(%) : - - - SIZE_TITLE - Size - - - UNIFORM_COLOR - Uniform Color - - - - VVTK_ViewManager - - VTK_VIEW_TITLE - Gauss scene:%1 - viewer:%2 - - - - VVTK_ViewWindow - - LBL_TOOLBAR_LABEL - GAUSS viewer tools - - - - VisuGUI - - PRECISION - Precision - - - DLG_LINEWIDTH_CMT1 - Set value between - - - DLG_LINEWIDTH_CMT2 - 1 (thin) and 10 (thick) - - - DLG_LINEWIDTH_TITLE - Line Width - - - DLG_OPACITY_CMT1 - Set value between - - - DLG_OPACITY_CMT2 - 0 (transparent) and 100 (opaque) - - - DLG_OPACITY_TITLE - Opacity - - - ERR_ACTIVATE_VIEW3D - Please activate 3D view before - - - ERR_ERROR_DURING_EXPORT - Error has been occured during exporting to file - - - ERR_SCALARBAR_PARAMS - Warning! The parameters is incorrect - - - FLT_ALL_FILES - All Files (*.*) - - - FLT_MED_FILES - MED Files (*.med) - - - FLT_TABLE_FILES - Tables (*.xls *.txt *.tab) - - - IMPORT_FROM_FILE - Import from File - - - MEN_ACTOR_SELECTION - Actor Selection - - - MEN_ARRANGE_ACTORS - Arrange Actors - - - MEN_MANAGE_CACHE - Manage - - - MEN_CELL_COLOR - Cell Color - - - MEN_CELL_SELECTION - Cell Selection - - - MEN_CLEAR_CONTAINER - Clear - - - MEN_CLIPPING - Clipping Planes - - - MEN_COLOR - Color... - - - MEN_COPY_PRS - Copy - - - MEN_CREATE_CURVES - Create Curves - - - MEN_CREATE_MANY_PRS - Create Presentations - - - MEN_CREATE_PLOT2D - Create Plot2d View - - - MEN_CREATE_PRS - Create Presentation - - - MEN_CREATE_TABLE - Create Table - - - MEN_CUBE_AXES - Graduated Axes - - - MEN_CURVE_PROPS - Properties... - - - MEN_CUT_LINES - Cut Lines - - - MEN_CUT_PLANES - Cut Planes - - - MEN_DEFORMED_SHAPE - Deformed Shape - - - MEN_DELETE_OBJS - Delete - - - MEN_DELETE_VIEWPARAMS - Delete View Parameters - - - MEN_SHOW - Show - - - MEN_DISPLAY_ONLY - Show Only - - - MEN_DISPLAY_SELECTION - Display Selection - - - MEN_EDGE_COLOR - Edge Color - - - MEN_EDIT_CONTAINER - Edit... - - - MEN_EDIT_PRS - Edit... - - - MEN_HIDE - Hide - - - MEN_ERASE_ALL - Hide All - - - MEN_EXPORT_TABLE - Export Table - - - MEN_FEATURE_EDGES - Feature Edges - - - MEN_FEATURE_EDGES_DISABLE - Disable Feature Edges - - - MEN_FREE_SCALAR_BARS - Use Field Range - - - MEN_GAUSS_POINT_SELECTION - Gauss Point Selection - - - MEN_GLOBAL_SELECTION - Global Selection - - - MEN_HOLO_RENDER - Holo Render - - - MEN_IMPORT - Import - - - MEN_IMPORT_FROM_FILE - MED File - - - MEN_IMPORT_MED_FIELD - Import Field - - - MEN_IMPORT_MED_STRUCTURE - Import Structure - - - MEN_IMPORT_MED_TIMESTAMP - Import TimeStamp - - - MEN_IMPORT_TABLE - Table From File - - - MEN_INSIDEFRAME - Insideframe - - - MEN_ISO_SURFACES - Iso Surfaces - - - MEN_LINE_WIDTH - Line Width - - - MEN_MERGE_SCALAR_BARS - Merge Scalar Range - - - MEN_MULTIPR_VIEW_FULL_RES - Display at Full Resolution - - - MEN_MULTIPR_VIEW_HIDE - Hide - - - MEN_MULTIPR_VIEW_LOW_RES - Display at Low Resolution - - - MEN_MULTIPR_VIEW_MEDIUM_RES - Display at Medium Resolution - - - MEN_NOSHADING - Shading Off - - - MEN_OPACITY - Opacity - - - MEN_PARALLEL_ANIMATION - Parallel Animation... - - - MEN_PARTIAL_SELECTION - Partial Selection - - - MEN_PLOT3D_FROM_CUTPLANE - Plot3d - - - MEN_PLOT_3D - Plot3D - - - MEN_POINT_SELECTION - Point Selection - - - MEN_POINTS - Points - - - MEN_PROPERTIES - Properties - - - MEN_RENAME - Rename... - - - MEN_RENAME_CONTAINER - Rename... - - - MEN_RENAME_TABLE - Rename... - - - MEN_REPRESENTATION - Representation - - - MEN_RESTORE_VIEWPARAMS - Restore View Parameters - - - MEN_SAVE_VIEWPARAMS - Save View Parameters - - - MEN_SCALAR_MAP - Scalar Map - - - MEN_DEFORMED_SHAPE_AND_SCALAR_MAP - Deformed Shape and Scalar Map - - - MEN_SCALING - Scaling - - - MEN_SELECTION - Selection - - - MEN_SELECTION_PANEL - Selection Panel - - - MEN_SHADING - Shading On - - - MEN_SHOW_ANIMATION - Show... - - - MEN_SHOW_TABLE - Show Table - - - MEN_SHRINK - Shrink - - - MEN_STREAM_LINES - Stream Lines - - - MEN_SUCCCESSIVE_ANIMATION - Successive Animation... - - - MEN_SURFACE - Surface - - - MEN_SURFACEFRAME - Surfaceframe - - - MEN_SWEEP - Sweep - - - MEN_TRANSLATE_PRS - Translate Presentation - - - MEN_UNSHRINK - Unshrink - - - MEN_VECTORS - Vectors - - - MEN_VISUALIZATION - Visualization - - - MEN_WIREFRAME - Wireframe - - - MEN_FILTER_SCALARS - Filter by Scalars... - - - MEN_VALUES_LABELING - Values labeling - - - VISU_VALUES_LABELING_PARAMS - Labeling parameters - - TOOL_IMPORTImport - TOOL_REPRESENTATIONRepresentation - TOOL_SELECTIONSelection - TOOL_NAVIGATIONNavigation - TOOL_VISUALISATIONVisualization - - - USE_BUILD_PROGRESS - Use build progress - - - MEN_LOAD_COMPONENT_DATA - Load Component Data - - - FLT_DISTRIBUTED_MED_FILES - Distributed MED Files (*_maitre.med) - - - SHOW_LEVEL_LABELS - Show level labels - - - MEN_FILE_INFO - MED File Information - - - ERR_ERROR_IN_THE_FILE - Error in the file - - - ERR_FILE_NOT_EXISTS - File does not exist - - - IMPORT_ERRORS - Import operation has finished with errors: - - - TLT_IMPORT_TABLE - Import table - - - UNKNOWN_IMPORT_ERROR - Unknown error - - - VALUES_LABELING - Values labeling - - - LABELS - Labels - - - COLOR - Color - - - - VisuGUI_AxisWg - - AXIS_NAME - Axis name - - - FONT - Font - - - IS_VISIBLE - Is visible - - - LABELS - Labels - - - LENGTH - Length - - - NAME - Name - - - NUMBER - Number - - - OFFSET - Offset - - - TICK_MARKS - Tick marks - - - - VisuGUI_BuildProgressDlg - - BUILD_ALL - Build all - - - BUILD_AT_ONCE - Build at once - - - BUILD_ENTITIES - Build entities - - - BUILD_FIELDS - Build fields - - - BUILD_GROUPS - Build groups - - - BUILD_MINMAX - Build min/max - - - CLOSE - Close - - - CLOSE_AT_FINISH - Close dialog at finish - - - DLG_BUILD_PROGRESS_TITLE - Build progress - - - ERR_ERROR_IN_THE_FILE - Error in the file - - - FILE_NAME - Import file : - - - FLT_ALL_FILES - All Files (*.*) - - - FLT_MED_FILES - MED Files (*.med) - - - HELP - Help - - - IMPORT_FROM_FILE - Import from File - - - IMPORT_PROGRESS - Import progress - - - IMPORT_SETTINGS - Settings - - - IMPORT_TIME - Time - - - START - Start - - - TIME - Elapsed time : - - - - VisuGUI_ClippingDlg - - AUTO_APPLY_CHK - Auto Apply - - - BUT_DELETE - Delete - - - BUT_NEW - New - - - GRP_IJK_AXIS - Axis - - - GRP_PARAMETERS - Parameters - - - GRP_PLANES - Clipping planes - - - I_RADIO_BTN - I - - - J_RADIO_BTN - J - - - K_RADIO_BTN - K - - - LBL_DISTANCE - Distance - - - LBL_IJK_INDEX - Index (from 0 to ...) - - - LBL_IJK_INDEX_TO_arg - Index (from 0 to %1) - - - LBL_ORIENTATION - Orientation - - - LBL_ROTATION_XY - Rotation around Z (X to Y): - - - LBL_ROTATION_XZ - Rotation around Y (X to Z): - - - LBL_ROTATION_YX - Rotation around Z (Y to X): - - - LBL_ROTATION_YZ - Rotation around X (Y to Z): - - - LBL_ROTATION_ZX - Rotation around Y (Z to X): - - - LBL_ROTATION_ZY - Rotation around X (Z to Y): - - - PARALLEL_XOY_COMBO_ITEM - || X-Y - - - PARALLEL_YOZ_COMBO_ITEM - || Y-Z - - - PARALLEL_ZOX_COMBO_ITEM - || Z-X - - - PLANES_COMBO_ITEM_i - Plane# %1 - - - PLANES_COMBO_ITEM_no - No planes - - - REVERSE_NORMAL_CHK - Reverse normal - - - SHOW_PREVIEW_CHK - Show preview - - - TAB_IJK_STRUCTURED - IJK (Structured) - - - TAB_NON_STRUCTURED - Non structured - - - TITLE - Change Clipping - - - WRN_EMPTY_RESULTING_PRS - Impossible to use given clipping planes because of VTK restrictions. -Please, provide non-empty resulting presentation. - - - GRP_TYPE - Type of plane - - - GLOBAL_BTN - Global planes - - - LOCAL_BTN - Local planes - - - GRP_VIEWER_PLANES - Planes defined in viewer - - - - VisuGUI_CubeAxesDlg - - CAPTION - Graduated axes - - - IS_VISIBLE - Is visible - - - X_AXIS - X axis - - - Y_AXIS - Y axis - - - Z_AXIS - Z axis - - - - VisuGUI_CursorDlg - - &Cancel - - - - &OK - - - - TextLabel1 - Set value between - - - TextLabel2 - minimal and maximal - - - - VisuGUI_CutLinesDlg - - BASE_PLANE_POS - Base plane position - - - LBL_ABSOLUTE_LENGTH - Use absolute length - - - LBL_GENERATE_CURVES - Generate Curves - - - LBL_GENERATE_TABLE - Generate Data Table - - - LBL_INVERT_CURVES - Invert all curves - - - LBL_LINES_CUT - Cut planes - - - LBL_LINES_PLANE - Plane of lines - - - LBL_NB_PLANS - Number of planes: - - - LBL_POS - Displacement (0...1): - - - LBL_ROTATION - Rotations - - - LBL_ROT_X - Rotation around X (Y to Z): - - - LBL_ROT_Y - Rotation around Y (Z to X): - - - LBL_ROT_Z - Rotation around Z (X to Y): - - - LBL_SHOW_PREVIEW - Show preview - - - PARALLEL_XOY - || X-Y - - - PARALLEL_YOZ - || Y-Z - - - PARALLEL_ZOX - || Z-X - - - SET_DEFAULT - Set default - - - TXT_ORIENTATION - Orientation - - - - VisuGUI_CutPlanesDlg - - &Cancel - - - - &OK - - - - - VisuGUI_CutPlanesPane - - LBL_NB_PLANS - Number of planes: - - - LBL_POS - Displacement (0...1): - - - LBL_ROTATION - Rotations - - - LBL_ROT_X - Rotation around X (Y to Z): - - - LBL_ROT_Y - Rotation around Y (Z to X): - - - LBL_ROT_Z - Rotation around Z (X to Y): - - - LBL_SHOW_PREVIEW - Show preview - - - PARALLEL_XOY - // X-Y - - - PARALLEL_YOZ - // Y-Z - - - PARALLEL_ZOX - // Z-X - - - TXT_ORIENTATION - Orientation - - - LBL_DEFORMATION - Deformation - - - LBL_DEFROMATION_SCALE - Scale Factor : - - - LBL_DEFROMATION_VECT - Vectors : - - - - VisuGUI_DeformedShapeDlg - - &Cancel - - - - &OK - - - - DEFORMED_SHAPE_TAB - Deformed Shape - - - DLG_TITLE - Deformed Shape - - - INPUT_TAB - Input - - - MAGNITUDE_COLORING - Magnitude coloring - - - SCALAR_BAR_TAB - Scalar Bar - - - SCALE_FACTOR - Scale Factor: - - - - VisuGUI_EditContainerDlg - - &Cancel - - - - &OK - - - - LBL_CONTAINER - Container - - - LBL_STUDY - Study - - - TXT_CURVE - Curve - - - TXT_TABLE - Table - - - - VisuGUI_FeatureEdgesPanel - - WINDOW_TITLE - Feature edges - - - FEATURE_EDGES_ANGLE - Feature edges angle - - - FEATURE_EDGES_COLORING - Coloring - - - FEATURE_EDGES_PROPERTIES - Feature edges properties - - - SHOW_BOUNDARY_EDGES - Show boundary edges - - - SHOW_FEATURE_EDGES - Show feature edges - - - SHOW_MANIFOLD_EDGES - Show manifold edges - - - SHOW_NON_MANIFOLD_EDGES - Show non-manifold edges - - - - VisuGUI_FileDlg - - FULL_LOAD - Full loading for current file - - - - VisuGUI_FindPane - - BETWEEN - Between - - - CONDITION - Where scalar value is: - - - FIND_TITLE - Find - - - INCORRECT_VALUES - Input values are incorrect - - - MAXIMUM - Maximum - - - MINIMUM - Minimum - - - - VisuGUI_FontWg - - ARIAL - Arial - - - BOLD - Bold - - - COURIER - Courier - - - ITALIC - Italic - - - SHADOW - Shadow - - - TIMES - Times - - - - VisuGUI_GaussPointsDlg - - &Cancel - - - - &OK - - - - DEFORMED_SHAPE - Deformed Shape - - - DEFORMED_SHAPE_TITLE - Deformed Shape - - - DLG_PREF_TITLE - Gauss Points Preferences - - - DLG_PROP_TITLE - Gauss Points Properties - - - DLG_TITLE - Gauss Points - - - GAUSS_POINTS_TAB - Gauss Points - - - GEOMETRY - Geometry - - - INPUT_TAB - Input - - - PRS_TITLE - Presentation - - - RESULTS - Results - - - SCALAR_BAR_TAB - Scalar Bar - - - SCALE_FACTOR - Scale Factor : - - - WARNING - Warning - - - - VisuGUI_GaussScalarBarPane - - ACTIVE_BAR_GRP - Active bar - - - BICOLOR - Bicolor - - - COLORS_LABELS_GRP - Colors and labels - - - DIMENSIONS_GRP - Dimensions - - - DISPLAYED - Displayed - - - FIELD_RANGE_BTN - Use field range - - - GLOBAL - Global - - - HORIZONTAL_BTN - Horizontal - - - IMPOSED_RANGE_BTN - Use imposed range - - - LBL_HEIGHT - Height: - - - LBL_MAX - Max: - - - LBL_MIN - Min: - - - LBL_NB_COLORS - Nb. of colors: - - - LBL_NB_LABELS - Nb. of labels: - - - LBL_SPACING - Spacing: - - - LBL_WIDTH - Width: - - - LBL_X - X: - - - LBL_Y - Y: - - - LOCAL - Local - - - LOGARITHMIC_SCALING - Logarithmic - - - ORIENTATION_GRP - Orientation - - - ORIGIN_GRP - Origin - - - RAINBOW - Rainbow - - - SAVE_DEFAULT_CHK - Save as default - - - SCALAR_RANGE_GRP - Scalar range: - - - VERTICAL_BTN - Vertical - - - - VisuGUI_GaussPointsSelectionPane - - DISPLAY_PARENT_MESH - Display parent mesh element - - - PICKING_DLG_TITLE - Picking - - - DATA_POSITION - Position - - - PARENT_ELEMENT - Parent ID: - - - PARENT_ELEMENT_TIP - Parent mesh element ID - - - LOCAL_POINT - Local ID: - - - LOCAL_POINT_TIP - Local Gauss Point ID - - - - VisuGUI_InputPanel - - WINDOW_TITLE - Input Panel - - - - VisuGUI_InputPane - - ENTITY - Entity : - - - FIELD - Field : - - - MED_FILE - Source File : - - - MESH - Mesh : - - - PRS_DATA_SOUIRCE - Data Source - - - REINITIALIZE - Auto Update - - - TIME_STAMP - Time Stamp : - - - - VisuGUI_IsoSurfPane - - MAX_VALUE - Maximum value: - - - MIN_VALUE - Minimum value: - - - MSG_MINMAX_VALUES - Min value can not be higher or equal to Max value - - - NB_SURFACES - Number of surfaces: - - - MAGNITUDE_COLORING_CHK - Magnitude coloring - - - SEL_COLOR_BTN - Select Color - - - SHOW_VALUES_CHK - Show values (nb per surface) - - - - VisuGUI_IsoSurfacesDlg - - &Cancel - - - - &OK - - - - DEFINE_ISOSURFACES - Iso Surfaces Definition - - - - VisuGUI_ItemContainer - - AUTO_CHECK_LBL - Auto assign - - - CIRCLE_MARKER_LBL - Circle - - - CROSS_MARKER_LBL - Cross - - - DAHSDOTDOT_LINE_LBL - DashDotDot - - - DASHDOT_LINE_LBL - DashDot - - - DASH_LINE_LBL - Dash - - - DIAMOND_MARKER_LBL - Diamond - - - DOT_LINE_LBL - Dot - - - DTRIANGLE_MARKER_LBL - Downward triangle - - - H - H - - - LTRIANGLE_MARKER_LBL - Leftward triangle - - - NONE_LINE_LBL - None - - - NONE_MARKER_LBL - None - - - RECTANGLE_MARKER_LBL - Rectangle - - - RTRIANGLE_MARKER_LBL - Rightward triangle - - - SOLID_LINE_LBL - Solid - - - UTRIANGLE_MARKER_LBL - Upward triangle - - - V - V - - - XCROSS_MARKER_LBL - Diagonal cross - - - - VisuGUI_Module - - MEN_DESK_FILE_SAVE_GUI_STATE - Save VISU State - - - MEN_GAUSS - Gauss - - - MEN_GAUSS_CREATE_PRS - Gauss Points - - - MEN_GAUSS_NEW_VIEWER - Points View - - - MEN_OVERWRITE_CONFIGURATION - Overwrite Current Configuration - - - MEN_RESTORE_CONFIGURATION - Restore Current Configuration - - - MEN_SAVE_CONFIGURATION - Store Current Configuration - - - MEN_VISUALISATION - Visualization - - - PRP_DESK_FILE_SAVE_GUI_STATE - Saves current state of viewers, displayed objects, etc. - - - TOOL_IMPORT - Import Toolbar - - - TOOL_VISUALISATION - Visualization - - - TOT_DESK_FILE_SAVE_GUI_STATE - Save VISU state - - - VISU_CAMERA_MOVE_PREF - Number of steps between two positions - - - VISU_CAMERA_PREF_GROUP_TTL - Camera movements - - - VISU_GAUSS_INSIDE_CURSOR_PREF_TAB_TTL - Inside Cursor - - - VISU_GAUSS_OUTSIDE_CURSOR_PREF_TAB_TTL - Outside Cursor - - - VISU_GAUSS_PREF_ACTIVE_BAR - Active bar - - - VISU_GAUSS_PREF_ALPHA_TEXTURE - Alpha Channel Texture (16x16) - - - VISU_GAUSS_PREF_ALPHA_THRESHOLD - Alpha Channel Threshold - - - VISU_GAUSS_PREF_BICOLOR - Bicolor - - - VISU_GAUSS_PREF_CLAMP - Maximum Size (Clamp) - - - VISU_GAUSS_PREF_COLOR - Color - - - VISU_GAUSS_PREF_COLOR_GROUP_TTL - Color - - - VISU_GAUSS_PREF_DEFORMED_SHAPE_GROUP_TTL - Deformed Shape - - - VISU_GAUSS_PREF_DISPLAY_GLOBAL - Display global bar - - - VISU_GAUSS_PREF_FACE_LIMIT - Notify when number of faces exceeds - - - VISU_GAUSS_PREF_GEOMSPHERE - Geometrical sphere - - - VISU_GAUSS_PREF_GEOM_GROUP_TTL - Geometry - - - VISU_GAUSS_PREF_GLOBAL - Global - - - VISU_GAUSS_PREF_INCREMENT - +/- Ratio - - - VISU_GAUSS_PREF_LOCAL - Local - - - VISU_GAUSS_PREF_MAGNIFICATION - Magnification (%) - - - VISU_GAUSS_PREF_MAGNIFICATION_GROUP_TTL - Magnification (Inside and Outside) - - - VISU_GAUSS_PREF_MAIN_TEXTURE - Main Texture (16x16) - - - VISU_GAUSS_PREF_MAX_SIZE - Range value for max size (%) - - - VISU_GAUSS_PREF_MIN_SIZE - Range value for min size (%) - - - VISU_GAUSS_PREF_OPENGLPOINT - OpenGL point - - - VISU_GAUSS_PREF_POINTSPRITE - Point sprite - - - VISU_GAUSS_PREF_PRIMITIVE_GROUP_TTL - Primitive - - - VISU_GAUSS_PREF_PRIMITIVE_TYPE - Primitive Type - - - VISU_GAUSS_PREF_RAINBOW - Rainbow - - - VISU_GAUSS_PREF_RESOLUTION - Geometrical sphere resolution - - - VISU_GAUSS_PREF_SCALAR_BAR_MODE - Scalar bar mode - - - VISU_GAUSS_PREF_SCALE_FACTOR - Scale factor - - - VISU_GAUSS_PREF_SIZE - Size of points (%) - - - VISU_GAUSS_PREF_SIZE_GROUP_TTL - Size - - - VISU_GAUSS_PREF_SPACING - Spacing - - - VISU_GAUSS_PREF_TAB_TTL - Gauss Points - - - VISU_GAUSS_PREF_UNIFORM_COLOR - Uniform Color - - - VISU_GAUSS_SCALAR_BAR_PREF_GROUP_TTL - Gauss Points Scalar Bar - - - VISU_GAUSS_SCALAR_BAR_PREF_TAB_TTL - Gauss Points Scalar Bar - - - VISU_KEYBOARD_PREF - [+]/[-] Speed increment - - - VISU_KEYBOARD_PREF_GROUP_TTL - Keyboard - - - VISU_MOUSE_PREF - Mouse behaviour - - - VISU_MOUSE_PREF_GROUP_TLT - Mouse - - - VISU_MOUSE_PREF_KEYBOARD_FREE - Keyboard free - - - VISU_MOUSE_PREF_STANDARD - Salome standard controls - - - VISU_MOUSE_PREF_TAB_TLT - Navigation - - - VISU_PICKING_PREF_BELOW_POINT - Centered below the point - - - VISU_PICKING_PREF_CAMERA_GROUP_TTL - Movement of the camera - - - VISU_PICKING_PREF_CAMERA_MOVEMENT - Enable movement of the camera - - - VISU_PICKING_PREF_CURSOR_GROUP_TTL - Cursor - - - VISU_PICKING_PREF_CURSOR_SIZE - Size of the cursor - - - VISU_PICKING_PREF_DISPLAY_PARENT_MESH - Display parent mesh element - - - VISU_PICKING_PREF_INFO_WINDOW - Enable information window - - - VISU_PICKING_PREF_INFO_WINDOW_GROUP_TTL - Information window - - - VISU_PICKING_PREF_PARENT_MESH_TTL - Parent mesh element - - - VISU_PICKING_PREF_POINT_SELECTION_TOLERANCE - Point selection tolerance - - - VISU_PICKING_PREF_POSITION - Position - - - VISU_PICKING_PREF_PYRAMID_HEIGHT - Height of the pyramids - - - VISU_PICKING_PREF_SELECTION_COLOR - Selection cursor color - - - VISU_PICKING_PREF_STEP_NUMBER - Number of steps between two positions - - - VISU_PICKING_PREF_TAB_TTL - Picking - - - VISU_PICKING_PREF_TOLERANCE_GROUP_TTL - Tolerance - - - VISU_PICKING_PREF_TOP_LEFT_CORNER - Top-left corner of the 3D view - - - VISU_PICKING_PREF_TRANSPARENCY - Transparency - - - VISU_PICKING_PREF_ZOOM_FACTOR - Zoom factor - - - VISU_RECORDER_PREF_ALL_DISLPAYED_FRAMES - Recording all displayed frames - - - VISU_RECORDER_PREF_FPS - FPS - - - VISU_RECORDER_PREF_GROUP_TTL - Settings - - - VISU_RECORDER_PREF_PROGRESSIVE - Progressive - - - VISU_RECORDER_PREF_QUALITY - Quality - - - VISU_RECORDER_PREF_RECORDING_MODE - Mode - - - VISU_RECORDER_PREF_SKIPPED_FRAMES - Recording at a given FPS - - - VISU_RECORDER_PREF_TAB_TTL - Recorder - - - VISU_SPACEMOUSE_PREF - Spacemouse - - - VISU_SPACEMOUSE_PREF_1 - Decrease speed increment - - - VISU_SPACEMOUSE_PREF_2 - Increase speed increment - - - VISU_SPACEMOUSE_PREF_3 - Decrease Gauss points magnification - - - VISU_SPACEMOUSE_PREF_4 - Increase Gauss points magnification - - - VISU_SPACEMOUSE_PREF_5 - Dominant / combined switch - - - VISU_SPACEMOUSE_PREF_BTN_* - Button * - - - VISU_SPACEMOUSE_PREF_BTN_1 - Button 1 - - - VISU_SPACEMOUSE_PREF_BTN_10 - Button 10 - - - VISU_SPACEMOUSE_PREF_BTN_11 - Button 11 - - - VISU_SPACEMOUSE_PREF_BTN_2 - Button 2 - - - VISU_SPACEMOUSE_PREF_BTN_3 - Button 3 - - - VISU_SPACEMOUSE_PREF_BTN_4 - Button 4 - - - VISU_SPACEMOUSE_PREF_BTN_5 - Button 5 - - - VISU_SPACEMOUSE_PREF_BTN_6 - Button 6 - - - VISU_SPACEMOUSE_PREF_BTN_7 - Button 7 - - - VISU_SPACEMOUSE_PREF_BTN_8 - Button 8 - - - - VisuGUI_NameDlg - - NAME_LBL - Name: - - - TLT_RENAME - Rename - - - - VisuGUI_NonIsometricDlg - - &Apply - - - - &Cancel - - - - &Reset - - - - DLG_TITLE - Scaling - - - LBL_X - X : - - - LBL_Y - Y : - - - LBL_Z - Z : - - - O&K - - - - - VisuGUI_Plot3DDlg - - INPUT_TAB_TITLE - Input - - - PLOT3D_TAB_TITLE - Plot 3D - - - SCALAR_BAR_TAB_TITLE - Scalar Bar - - - TITLE - Plot3D Definition - - - - VisuGUI_Plot3DPane - - CONTOUR - Contour - - - NUMBER_CONTOURS - Number of contours: - - - ORIENTATION - Orientation - - - POSITION - Position - - - POSITION_VALUE - Value: - - - PRESENTATION_TYPE - Presentation type - - - PREVIEW - Preview cutting plane - - - RELATIVE - Relative - - - ROTATIONS - Rotations - - - ROTATION_X - Rotation around X (Y to Z): - - - ROTATION_Y - Rotation around Y (Z to X): - - - ROTATION_Z - Rotation around Z (X to Y): - - - SCALE - Scale Factor: - - - SURFACE - Surface - - - - VisuGUI_ScalarBarDlg - - &Cancel - - - - &OK - - - - DLG_PREF_TITLE - Scalar Bar Preferences - - - DLG_PROP_TITLE - Scalar Bar Properties - - - - VisuGUI_ScalarBarPane - - COLORS_LABELS_GRP - Colors and labels - - - DIMENSIONS_GRP - Dimensions (in % of the size of view) - - - FIELD_RANGE_BTN - Use field range - - - HORIZONTAL_BTN - Horizontal - - - IMPOSED_RANGE_BTN - Use imposed range - - - LBL_HEIGHT - Height: - - - LBL_MAX - Max: - - - LBL_MIN - Min: - - - LBL_NB_COLORS - Nb. of colors: - - - LBL_NB_LABELS - Nb. of labels: - - - LBL_SHOW_PREVIEW - Preview - - - SHOW_DISTRIBUTION - Show distribution - - - FILTER_BY_SCALARS - Filter by scalars - - - VALUES_LABELING - Values labeling - - - LBL_WIDTH - Width: - - - LBL_X - X: - - - LBL_Y - Y: - - - LOGARITHMIC_SCALING - Logarithmic - - - MSG_MINMAX_VALUES - Min value can not be higher or equal to Max value - - - ORIENTATION_GRP - Orientation - - - ORIGIN_GRP - Origin - - - SAVE_DEFAULT_CHK - Save as default - - - SCALAR_RANGE_GRP - Scalar range: - - - VERTICAL_BTN - Vertical - - - WRN_LOGARITHMIC_FIELD_RANGE - Logarithmic scaling: field range contains negative values, use imposed range instead - - - WRN_LOGARITHMIC_RANGE - Logarithmic scaling: use imposed range values > 0 - - - HIDE_SCALAR_BAR - Hide scalar bar - - - - VisuGUI_DeformedShapeAndScalarMapDlg - - &Cancel - - - - &OK - - - - DLG_TITLE - Deformed Shape and Scalar Map - - - FIELD_ITEM - Scalar Field: - - - INPUT_TAB - Input - - - SCALAR_BAR_TAB - Scalar Bar - - - DEFORMED_SHAPE_AND_SCALAR_MAP_TAB - Deformed Shape and Scalar Map - - - SCALE_FACTOR - Scale Factor: - - - TIMESTAMP_ITEM - Current Time Stamp: - - - - VisuGUI_SetupPlot2dDlg - - BUT_NO - No - - - BUT_YES - Yes - - - QUE_WANT_SAME_UNITS - Do you want to choose all items with the same units for vertical axis? - - - - VisuGUI_Sweep - - TITLESweep - MEN_SWEEP_PANESweep - - NAVIGATION_TABNavigation - START_SWEEP_POSITION0 % - END_SWEEP_POSITION100 % - IS_CYCLEDCycled - - PROPERTIES_TABProperties - - MODEMode: - LINEARLinear - COSINUSOIDAL1 - cos( t ) / 2 - SINUSOIDALsin( t - Pi / 2 ) - - NUMBER_OF_STEPSNumber Steps: - - INTERVALInterval - [ 0, +PI ][ 0, +PI ] - [ -PI, +PI ][ -PI, +PI ] - - DELAY_BETWEEN_STEPSStep Delay [ sec ]: - - - VisuGUI_Slider - - TITLESlider - MEN_SLIDER_PANESlider - - NAVIGATION_TABNavigation - IS_CYCLEDCycled - - PROPERTIES_TABProperties - MINIMAL_MEMORYMinimal - LIMITED_MEMORYLimited - MEMORY_UNITSMb - - USED_BY_CACHEUsed: - AVAILABLE_MEMORYFree: - - SPEEDSpeed - - - VisuGUI_StreamLinesDlg - - &Cancel - - - - &OK - - - - DLG_TITLE - Stream lines Preferences - - - LBL_DIRECTION - Direction - - - LBL_INTEGRATION_STEP - Integration Step - - - LBL_PROPAGATION_TIME - Propagation Time - - - LBL_SOURCE_TYPE - Source type - - - LBL_STEP_LENGTH - Step Length - - - LBL_USED_POINTS - Used points (0..1) - - - MAGNITUDE_COLORING_CHK - Magnitude coloring - - - SOURCE_GRP - Source - - - USE_COLOR_BTN - Use Color - - - - VisuGUI_SweepPrefDlg - - &Cancel - - - - &OK - - - - DLG_TITLE - Sweeping Preferences - - - LBL_NB_CYCLES - Number of cycles: - - - LBL_NB_STEPS - Number of steps: - - - LBL_TIME_STEP - Time step (second): - - - - VisuGUI_TableDlg - - EDIT_TABLE_TLT - Edit Table - - - ERR_TABLE_NOT_AVAILABLE - Table is not available - - - TABLE_OF_INTEGER_TLT - Table of integer - - - TABLE_OF_REAL_TLT - Table of real - - - VIEW_TABLE_TLT - View Table - - - - VisuGUI_TableWidget - - ADD_COLUMN_BTN - Add Column - - - ADD_ROW_BTN - Add Row - - - ADJUST_CELLS_BTN - Adjust Cells - - - CLEAR_BTN - Clear - - - REMOVE_COLUMN_BTN - Remove Column(s) - - - REMOVE_ROW_BTN - Remove Row(s) - - - SELECT_ALL_BTN - Select All - - - SET_TITLE_TLT - Set title - - - TITLE_LBL - Title: - - - UNITS_TLT - Units - - - - VisuGUI_TextPrefDlg - - &Cancel - - - - &OK - - - - LBL_BOLD - Bold - - - LBL_ITALIC - Italic - - - LBL_LABELS - Labels - - - LBL_SHADOW - Shadow - - - LBL_TITLE - Title - - - TIT_TEXT_PREF - Text properties - - - - VisuGUI_TimeAnimationDlg - - &OK - - - - ERROR - Error - - - MSG_NO_ANIMATIONDATA - There is no data for animation - - - MSG_NO_AVI_MAKER - Tool jpeg2yuv, necessary for AVI recording, is not available. -Please, refer to the documentation. - - - MSG_NO_SUPPORTED_IMAGE_FORMATS - There are no formats available for images output. -Please, refer to the QT documentation. - - - MSG_INVALID_IMAGE_FORMAT_INDEX - Selected image format is out of supported scope. - - - - VisuGUI_TransparencyDlg - - BUT_CLOSE - Close - - - TRANSPARENCY_OPAQUE - Opaque - - - TRANSPARENCY_TITLE - Change Transparency - - - TRANSPARENCY_TRANSPARENT - Transparent - - - - VisuGUI_VectorsDlg - - &Cancel - - - - &OK - - - - ARROWS_BTN - Arrows - - - CENTER_BTN - Center - - - CONES2_BTN - Cones (2) - - - CONES6_BTN - Cones (6) - - - DLG_TITLE - Vector Field Representation - - - GLYPH_POSITION_GRP - Glyph position - - - GLYPH_TYPE_GRP - Glyph type - - - HEAD_BTN - Head - - - LBL_LINE_WIDTH - Line width: - - - LBL_SCALE_FACTOR - Scale factor: - - - MAGNITUDE_COLORING_CHK - Magnitude coloring - - - SEL_COLOR_BTN - Select Color - - - TAIL_BTN - Tail - - - USE_GLYPHS_CHK - Use glyphs - - - - VisuGUI_SelectionPanel - - WINDOW_TITLE - Selection - - - MODE_TITLE - Selection - - - MODE_GAUSS_POINT - Gauss point - - - MODE_POINT - Point - - - MODE_CELL - Cell - - - MODE_ACTOR - Actor - - - MESH_NAME_LBL - Mesh name: - - - FIELD_NAME_LBL - Field name: - - - POINT_DATA_TITLE - Data of Point - - - DATA_ID_LBL - ID: - - - POINT_ID_HDR - PointID - - - CELL_ID_HDR - CellID - - - DATA_SCALAR_HDR - Scalar - - - DATA_VECTOR_HDR - Vector - - - POINT_INFO - Point Info - - - CELL_INFO - Cell Info - - - POINT_COORD_TITLE - Coordinates - - - CELL_DATA_TITLE - Data of Cell - - - CELL_DATA_ID_LBL - ID: - - - ACTOR_DATA_POSITION_TITLE - Position - - - ACTOR_DATA_SIZE_TITLE - Size - - - SELECTION_PREFERENCES - Selection preferences... - - - - VisuGUI_SelectionPrefDlg - - TLT_SELECTION_PREFERENCES - Selection preferences - - - BELOW_POINT - Centered - - - CAMERA_TITLE - Movement of the camera - - - CURSOR_SIZE - Size of the cursor: - - - CURSOR_TITLE - Cursor - - - INFO_WINDOW_TITLE - Information window - - - POINT_TOLERANCE - Point tolerance: - - - POSITION - Position: - - - PYRAMID_HEIGHT - Height of the pyramids: - - - SELECTION_COLOR - Selection cursor color: - - - STEP_NUMBER - Number of steps: - - - STEP_NUMBER_TIP - Number of steps between two positions - - - TOLERANCE_TITLE - Tolerance - - - TOP_LEFT_CORNER - Top-left corner - - - TRANSPARENCY - Transparency: - - - ZOOM_FACTOR - Zoom factor: - - - - VisuGUI_BarPrefDlg - - DIMENSIONS - Dimensions (in % of the size of widget) - - - WIDTH - Width - - - PRECISION - Precision - - - &OK - - - - &Cancel - - - - TIT_BAR_PREF - Bar properties - - - LBL_TITLE_W - Title size (%) - - - LBL_LABEL_W - Label size (%) - - - LBL_LABEL_H - Label height (%) - - - LBL_BAR_W - Bar width (%) - - - LBL_BAR_H - Bar height (%) - - - LBL_SHOW_UNITS - Show units - - - LBL_UNITS_FORMAT - Format: - - - MSG_LABEL_FORMAT - Labels format is invalid. - - - MSG_BIG_SCALE - The common Label size and Bar width or height should not be greater then 100%. - - - MSG_BIG_SCALE_TLT - The Title size should not be greater then 100%. - - - AUTO - auto - - - - VisuGUI_Table3DDlg - - DLG_PREF_TITLE - Table 3D Bar Preferences - - - DLG_PROP_TITLE - Scalar Bar Properties - - - - VisuGUI_TableScalarBarPane - - SCALAR_RANGE_GRP - Scalar range - - - LOGARITHMIC_SCALING - Logarithmic scaling - - - FIELD_RANGE_BTN - Use field range - - - IMPOSED_RANGE_BTN - Use imposed range - - - LBL_MIN - Min: - - - LBL_MAX - Max: - - - COLORS_LABELS_GRP - Colors and labels - - - LBL_NB_COLORS - Nb. of colors: - - - LBL_NB_LABELS - Nb. of labels: - - - ORIENTATION_GRP - Orientation - - - VERTICAL_BTN - Vertical - - - HORIZONTAL_BTN - Horizontal - - - ORIGIN_GRP - Origin - - - LBL_X - X: - - - LBL_Y - Y: - - - LBL_SHOW_PREVIEW - Show preview - - - DIMENSIONS_GRP - Dimensions - - - LBL_WIDTH - Width: - - - LBL_HEIGHT - Height: - - - SAVE_DEFAULT_CHK - Save as default values - - - MSG_MINMAX_VALUES - Min value can not be higher or equal to Max value - - - WRN_LOGARITHMIC_RANGE - Logarithmic scaling: use imposed range values > 0 - - - WRN_LOGARITHMIC_FIELD_RANGE - Logarithmic scaling: field range contains negative values, use imposed range instead - - - - VisuGUI_Table3DPane - - SCALE - Scale Factor: - - - PRESENTATION_TYPE - Presentation type - - - SURFACE - Surface - - - CONTOUR - Contour - - - NUMBER_CONTOURS - Number of contours: - - - - VisuGUI_FileInfoDlg - - CAPTION - File information - - - FILE_NAME - File name - - - FILE_SIZE - File size (bytes) - - - MED_VERSION - MED version - - - - VisuGUI_ClippingPlaneMgr - - TITLE - Clipping planes configuration - - - TITLE_PLANES - Planes definition - - - LBL_NAME - Name of the plane - - - BYVECTOR_TITLE - Normal vector - - - BYPLANE_TITLE - Main plane - - - CHK_AUTOAPPLY - Auto apply - - - CHK_SHOW_PREVIEW - Show preview - - - ORIGIN_TITLE - Origin - - - DIRECTION_TITLE - Direction - - - LBL_ORIENTATION - Orientation - - - LBL_DISTANCE - Distance - - - LBL_ROTATION - Rotation around %1 - - - BTN_NEW - New - - - BTN_DELETE - Delete - - - BTN_IMPORT - Import... - - - IMPORT_TITLE - Import from... - - - SELECT_VIEW - Select View window: - - - - VisuGUI_SegmentationMgr - - MNU_CLIPPING_PLANE_MGR - Clipping planes - - - DSK_CLIPPING_PLANE_MGR - Manage clipping planes in the viewer - - - VISU_VIEW_TOOLBAR - VISU tools - - - VISU_SETPLANES_MNU - Set clipping plane... - - - MNU_SHOW_CLIPPINGPLANES - Show clipping planes - - - DSK_SHOW_CLIPPINGPLANES - Show/Hide clipping planes - - - MNU_ACTIVATE_CLIPPINGPLANES - Deactivate clipping planes - - - DSK_ACTIVATE_CLIPPINGPLANES - Activate/Deactivate clipping planes - - - - VisuGUI_ClippingPanel - - TITLE - Clipping Planes - - - PRESENTATIONS_LBL - Presentations: - - - PLANES_LBL - Associated planes: - - - NEW_BTN - New... - - - EDIT_BTN - Edit... - - - DELETE_BTN - Delete - - - TIT_DELETE_PLANE - Delete clipping plane - - - MSG_DELETE_PLANE - Clipping plane %1 will be deleted. Continue? - - - CHK_SHOW_PLANES - Show planes preview - - - CHK_ACTIVATE_PLANES - Deactivate planes - - - CHK_AUTO_APPLY - Auto apply - - - PLANES_TABLE_TITLES - Plane,Active - - - - VisuGUI_ClippingPlaneDlg - - TITLE - Clipping plane edit - - - LBL_NAME - Name of the plane - - - BYVECTOR_TITLE - Normal vector - - - BYPLANE_TITLE - Main plane - - - CHK_AUTOAPPLY - Global - - - CHK_SHOW_PREVIEW - Show preview - - - ORIGIN_TITLE - Origin - - - DIRECTION_TITLE - Direction - - - LBL_ORIENTATION - Orientation - - - LBL_DISTANCE - Distance - - - LBL_ROTATION - Rotation around %1 - - - - VisuGUI_FilterScalarsDlg - - TITLE - Filtering by scalars - - - BOXTITLE - Filter by scalar range - - - MINLBL - Min: - - - MAXLBL - Max: - - - - VisuGUI_ValuesLabelingDlg - - PARAMETERS_OF_VALUES_LABELING - Parameters of values labeling - - - LABELS - Labels - - - FONT - Font - - - COLOR - Color - - - diff --git a/src/VISUGUI/VisuGUI_BasePanel.cxx b/src/VISUGUI/VisuGUI_BasePanel.cxx deleted file mode 100755 index 6b49e5c5..00000000 --- a/src/VISUGUI/VisuGUI_BasePanel.cxx +++ /dev/null @@ -1,249 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_BasePanel.cxx -// Author : Oleg Uvarov -// Module : VISU -// -#include "VisuGUI_BasePanel.h" -#include "VisuGUI_Tools.h" - -#include "SUIT_ResourceMgr.h" - -#include -#include -#include -#include -#include -//#include - -/*! - \class MainFrame - \internal - \brief Frame inserted in viewport with redefined sizeHint method - in order to avoid unreasonable increasing of viewport size -*/ -class VisuGUI_BasePanel::MainFrame : public QFrame -{ -public: - /*! - \brief Constructor. - \param theParent parent widget - */ - MainFrame( QWidget* theParent = 0 ) - : QFrame( theParent ) - { - } - - /*! - \brief Gets frame size hint - \return frame size hint - */ - virtual QSize sizeHint() const - { - return minimumSizeHint(); - } -}; - -/*! - \class VisuGUI_BasePanel - \brief Base class for VISU interactive sub-panels. - - Set of classes is derived from this class and are intended for representing widgets - (GUI controls) for different operations. VisuGUI_BasePanel consists of main frame - inserted in scroll view and four push buttons. So all widgets of derived sub-panels - should be inherited from mainframe() instead of “this” pointer. -*/ - -/*! - \brief Constructor creates panels look and feel - \param theName name of the panel - \param theParent parent widget -*/ -VisuGUI_BasePanel::VisuGUI_BasePanel( const QString& theName, - QWidget* theParent, - const int theBtns ) - : QGroupBox( theName, theParent ), - myOK( 0 ), - myApply( 0 ), - myClose( 0 ), - myHelp( 0 ) -{ - // Create scroll view - myView = new QScrollArea( this ); - - // Create main frame - myMainFrame = new MainFrame( myView ); - myMainFrame->setFrameStyle( QFrame::Plain | QFrame::NoFrame ); - - myView->setWidget( myMainFrame ); - myView->setAlignment( Qt::AlignCenter ); - myView->setWidgetResizable( true ); - myView->setMinimumWidth( myMainFrame->sizeHint().width() + 22 ); - - // Create buttons - QWidget* aBtnWg = new QWidget( this ); - QHBoxLayout* aBtnWgLayout = new QHBoxLayout( aBtnWg ); - //aBtnWgLayout->setSpacing( 5 ); - - aBtnWgLayout->addStretch(); - - if( theBtns & OKBtn ) - { - //myOK = new QToolButton( aBtnWg ); - //myOK->setIcon( VISU::GetResourceMgr()->loadPixmap("VISU", tr( "ICON_OK" ) ) ); - myOK = new QPushButton( tr( "BUT_OK" ), aBtnWg ); - aBtnWgLayout->addWidget( myOK ); - connect( myOK, SIGNAL( clicked() ), SLOT( onOK() ) ); - } - if( theBtns & ApplyBtn ) - { - //myApply = new QToolButton( aBtnWg ); - //myApply->setIcon( VISU::GetResourceMgr()->loadPixmap("VISU", tr( "ICON_APPLY" ) ) ); - myApply = new QPushButton( tr( "BUT_APPLY" ), aBtnWg ); - aBtnWgLayout->addWidget( myApply ); - connect( myApply, SIGNAL( clicked() ), SLOT( onApply() ) ); - } - if( theBtns & CloseBtn ) - { - //myClose = new QToolButton( aBtnWg ); - //myClose->setIcon( VISU::GetResourceMgr()->loadPixmap("VISU", tr( "ICON_CLOSE" ) ) ); - myClose = new QPushButton( tr( "BUT_CLOSE" ), aBtnWg ); - aBtnWgLayout->addWidget( myClose ); - connect( myClose, SIGNAL( clicked() ), SLOT( onClose() ) ); - } - if( theBtns & HelpBtn ) - { - //myHelp = new QToolButton( aBtnWg ); - //myHelp->setIcon( VISU::GetResourceMgr()->loadPixmap("VISU", tr( "ICON_HELP" ) ) ); - myHelp = new QPushButton( tr( "BUT_HELP" ), aBtnWg ); - aBtnWgLayout->addWidget( myHelp ); - connect( myHelp, SIGNAL( clicked() ), SLOT( onHelp() ) ); - } - - aBtnWgLayout->addStretch(); - - // fill layout - QVBoxLayout* aLay = new QVBoxLayout( this ); - aLay->setContentsMargins( 0, 0, 0, 0 ); - //aLay->setSpacing( 5 ); - aLay->addWidget( myView, 1 ); - aLay->addWidget( aBtnWg ); -} - -/*! - \brief Destructor -*/ -VisuGUI_BasePanel::~VisuGUI_BasePanel() -{ -} - -/*! - \brief Verifies validity of input data - - This virtual method should be redefined in derived classes. Usually operator - corresponding to the sub-panel calls this method to check validity of input - data when Apply/OK button is pressed. - - \param theErrMsg Error message. - - If data is invalid when panel can return message using this parameter given - clear explanation what is wrong - - \return TRUE if data is valid, FALSE otherwise -*/ -bool VisuGUI_BasePanel::isValid( QString& /*theErrMsg*/ ) -{ - return true; -} -/*! - \brief Virtual methods should be redefined in derived classes and - clears all GUI controls -*/ -void VisuGUI_BasePanel::clear() -{ -} - -/*! - \brief Virtual slot called when “OK” button pressed emits corresponding signal. - - This slot moves focus in OK button before emitting signal. Mainly it provides - application with correct moving data from currently edited controls to internal - structure. For example QTable moves data from cell editor to table item when - focus is out. - -*/ -void VisuGUI_BasePanel::onOK() -{ - if ( myOK ) - { - myOK->setFocus(); - qApp->processEvents(); - } - emit bpOk(); -} - -/*! - \brief Virtual slot called when “Apply” button pressed emits corresponding signal. - \sa onOK -*/ -void VisuGUI_BasePanel::onApply() -{ - if ( myApply ) - { - myApply->setFocus(); - qApp->processEvents(); - } - emit bpApply(); -} - -/*! - \brief Virtual slot called when “Close” button pressed emits corresponding signal. - \sa onOK -*/ -void VisuGUI_BasePanel::onClose() -{ - if ( myClose ) - myClose->setFocus(); - emit bpClose(); -} - -/*! - \brief Virtual slot called when “Help” button pressed emits corresponding signal. - \sa onOK -*/ -void VisuGUI_BasePanel::onHelp() -{ - if ( myHelp ) - myHelp->setFocus(); - emit bpHelp(); -} - -/*! - \brief Gets frame inserted in scroll view. All controls of derived - panels should use it as parent - \return QFrame* object -*/ -QFrame* VisuGUI_BasePanel::mainFrame() -{ - return myMainFrame; -} diff --git a/src/VISUGUI/VisuGUI_BasePanel.h b/src/VISUGUI/VisuGUI_BasePanel.h deleted file mode 100755 index f961c21c..00000000 --- a/src/VISUGUI/VisuGUI_BasePanel.h +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_BasePanel.cxx -// Author : Oleg Uvarov -// Module : VISU -// -#ifndef VISUGUI_BASEPANEL_H -#define VISUGUI_BASEPANEL_H - -#include - -class QScrollArea; -class QPushButton; - -class VisuGUI_BasePanel : public QGroupBox -{ - Q_OBJECT - - class MainFrame; - -public: - enum { OKBtn = 0x0001, - ApplyBtn = 0x0002, - CloseBtn = 0x0004, - HelpBtn = 0x0008, - AllBtn = OKBtn | ApplyBtn | CloseBtn | HelpBtn - }; - -public: - VisuGUI_BasePanel( const QString& theName, QWidget* theParent, const int theBtns = AllBtn ); - virtual ~VisuGUI_BasePanel(); - - virtual bool isValid( QString& theMessage ); - virtual void clear(); - -signals: - void bpOk(); - void bpApply(); - void bpClose(); - void bpHelp(); - -protected slots: - virtual void onOK(); - virtual void onApply(); - virtual void onClose(); - virtual void onHelp(); - -protected: - QFrame* mainFrame(); - -protected: - QScrollArea* myView; - QFrame* myMainFrame; - - QPushButton* myOK; - QPushButton* myApply; - QPushButton* myClose; - QPushButton* myHelp; -}; - -#endif diff --git a/src/VISUGUI/VisuGUI_ClippingPanel.cxx b/src/VISUGUI/VisuGUI_ClippingPanel.cxx deleted file mode 100644 index 3839330d..00000000 --- a/src/VISUGUI/VisuGUI_ClippingPanel.cxx +++ /dev/null @@ -1,1043 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -#include "VisuGUI_ClippingPanel.h" -#include "VisuGUI.h" -#include "VisuGUI_Tools.h" -#include "VisuGUI_ClippingPlaneDlg.h" -#include "VisuGUI_ViewTools.h" - -#include - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -#include -#include - - - -#define SIZEFACTOR 1.1 - - -#define PRINT3(MARK, VAL) printf("#### %s x=%f, y=%f, z=%f\n", MARK, VAL[0], VAL[1], VAL[2]); - -using namespace std; - - -void AdjustBounds(const double bounds[6], double newBounds[6], double center[3]) -{ - center[0] = (bounds[0] + bounds[1])/2.0; - center[1] = (bounds[2] + bounds[3])/2.0; - center[2] = (bounds[4] + bounds[5])/2.0; - - newBounds[0] = center[0] + SIZEFACTOR*(bounds[0]-center[0]); - newBounds[1] = center[0] + SIZEFACTOR*(bounds[1]-center[0]); - newBounds[2] = center[1] + SIZEFACTOR*(bounds[2]-center[1]); - newBounds[3] = center[1] + SIZEFACTOR*(bounds[3]-center[1]); - newBounds[4] = center[2] + SIZEFACTOR*(bounds[4]-center[2]); - newBounds[5] = center[2] + SIZEFACTOR*(bounds[5]-center[2]); -} - - - -//**************************************************************** -//PreviewPlane::PreviewPlane(SVTK_ViewWindow* theWindow, const PlaneDef& thePlane, const double* theBounds): -PreviewPlane::PreviewPlane(SVTK_ViewWindow* theWindow, - VISU_CutPlaneFunction* thePlane, - const double* theBounds): - myWindow(theWindow), - myBounds(theBounds) -{ - double aCenter[3]; - double aBound[6]; - - AdjustBounds(myBounds, aBound, aCenter); - - //myPlane = thePlane.plane; - myPlane = thePlane; - - myBox = vtkImageData::New(); - myBox->SetDimensions(2, 2, 2); - myBox->SetOrigin(aBound[0],aBound[2],aBound[4]); - myBox->SetSpacing((aBound[1]-aBound[0]), - (aBound[3]-aBound[2]), - (aBound[5]-aBound[4])); - - myCutter = vtkCutter::New(); - myCutter->SetInput(myBox); - myCutter->SetCutFunction(myPlane); - - myMapper = vtkPolyDataMapper::New(); - myMapper->SetInput(myCutter->GetOutput()); - - myActor = vtkActor::New(); - myActor->VisibilityOff(); - myActor->PickableOff(); - myActor->SetMapper(myMapper); - vtkProperty* aProp = vtkProperty::New(); - float anRGB[3]; - - SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr(); - - QColor aFillColor = aResourceMgr->colorValue("SMESH", "fill_color", QColor(0, 170, 255)); - anRGB[0] = aFillColor.red()/255.; - anRGB[1] = aFillColor.green()/255.; - anRGB[2] = aFillColor.blue()/255.; - aProp->SetColor(anRGB[0],anRGB[1],anRGB[2]); - aProp->SetOpacity(0.75); - myActor->SetBackfaceProperty(aProp); - aProp->Delete(); - - vtkProperty* aBackProp = vtkProperty::New(); - QColor aBackFaceColor = aResourceMgr->colorValue("SMESH", "backface_color", QColor(0, 0, 255)); - anRGB[0] = aBackFaceColor.red()/255.; - anRGB[1] = aBackFaceColor.green()/255.; - anRGB[2] = aBackFaceColor.blue()/255.; - aBackProp->SetColor(anRGB[0],anRGB[1],anRGB[2]); - aBackProp->SetOpacity(0.75); - myActor->SetProperty(aBackProp); - aBackProp->Delete(); - - myWindow->getRenderer()->AddActor(myActor); -} - -//**************************************************************** -PreviewPlane::~PreviewPlane() -{ - myWindow->getRenderer()->RemoveActor(myActor); - myActor->Delete(); - - myMapper->RemoveAllInputs(); - myMapper->Delete(); - myCutter->Delete(); - myBox->Delete(); -} - - - - - -//**************************************************************** -//**************************************************************** -//**************************************************************** -/*CutPlaneFunction* CutPlaneFunction::New() -{ - return new CutPlaneFunction(); -} - -void CutPlaneFunction::setActive(bool theActive) -{ - myIsActive = theActive; - Modified(); -} - -double CutPlaneFunction::EvaluateFunction(double x[3]) -{ - if (myIsActive) - return vtkPlane::EvaluateFunction(x); - else - return -1; -} - -double CutPlaneFunction::EvaluateFunction(double x, double y, double z) -{ - if (myIsActive) - return vtkPlane::EvaluateFunction(x,y,z); - else - return -1; -} - -CutPlaneFunction::CutPlaneFunction(): - myIsActive(true) -{ - -} - -CutPlaneFunction::~CutPlaneFunction() -{ -} -*/ - - -//**************************************************************** -//**************************************************************** -//**************************************************************** -VisuGUI_ClippingPanel::VisuGUI_ClippingPanel(VisuGUI* theModule) - : VisuGUI_Panel(tr("TITLE"), theModule, VISU::GetDesktop(theModule), ApplyBtn | HelpBtn ), - myModule(theModule), - myPlaneDlg(0), - myViewWindow(0), - myIsApplied(true) -{ - QVBoxLayout* aMainLayout = new QVBoxLayout(mainFrame()); - - // List of presentations - aMainLayout->addWidget(new QLabel(tr("PRESENTATIONS_LBL"), mainFrame())); - myPrsList = new QListWidget(mainFrame()); - myPrsList->setSelectionMode(QAbstractItemView::SingleSelection); - connect(myPrsList, SIGNAL(currentRowChanged(int)), this, SLOT(onPrsSelected(int))); - aMainLayout->addWidget(myPrsList); - - // List of planes - aMainLayout->addWidget(new QLabel(tr("PLANES_LBL"), mainFrame())); - myPlanesList = new QTableWidget(0, 2, mainFrame()); - myPlanesList->setColumnWidth(1, 50); - myPlanesList->setSelectionMode(QAbstractItemView::SingleSelection); - connect(myPlanesList, SIGNAL(cellChanged(int,int)), this, SLOT(onCellChanged(int,int))); - aMainLayout->addWidget(myPlanesList); - - // Management buttons - QWidget* aButtonsWgt = new QWidget(mainFrame()); - QHBoxLayout* aBtnLayout = new QHBoxLayout(aButtonsWgt); - aMainLayout->addWidget(aButtonsWgt); - - QToolButton* aNewBtn = new QToolButton(aButtonsWgt); - aNewBtn->setToolButtonStyle(Qt::ToolButtonTextOnly); - aNewBtn->setText(tr("NEW_BTN")); - connect(aNewBtn, SIGNAL(clicked(bool)), this, SLOT(onNew())); - aBtnLayout->addWidget(aNewBtn); - - QToolButton* aEditBtn = new QToolButton(aButtonsWgt); - aEditBtn->setToolButtonStyle(Qt::ToolButtonTextOnly); - aEditBtn->setText(tr("EDIT_BTN")); - connect(aEditBtn, SIGNAL(clicked(bool)), this, SLOT(onEdit())); - aBtnLayout->addWidget(aEditBtn); - - QToolButton* aDeleteBtn = new QToolButton(aButtonsWgt); - aDeleteBtn->setToolButtonStyle(Qt::ToolButtonTextOnly); - aDeleteBtn->setText(tr("DELETE_BTN")); - connect(aDeleteBtn, SIGNAL(clicked(bool)), this, SLOT(onPlaneDelete())); - aBtnLayout->addWidget(aDeleteBtn); - - myShowPlanes = new QCheckBox(tr("CHK_SHOW_PLANES"), mainFrame()); - connect(myShowPlanes, SIGNAL( toggled(bool) ), this, SLOT( setPlanesVisible(bool) )); - aMainLayout->addWidget(myShowPlanes); - - myNonActivePlanes = new QCheckBox(tr("CHK_ACTIVATE_PLANES"), mainFrame()); - connect(myNonActivePlanes, SIGNAL(toggled(bool)), this, SLOT(setPlanesNonActive(bool))); - aMainLayout->addWidget(myNonActivePlanes); - - myAutoApply = new QCheckBox(tr("CHK_AUTO_APPLY"), mainFrame()); - connect(myAutoApply, SIGNAL(toggled(bool)), myApply, SLOT(setDisabled(bool))); - myAutoApply->setCheckState(Qt::Checked); - aMainLayout->addWidget(myAutoApply); - - - // fillPrsList(); - // fillPlanesList(); - - connect(myModule, SIGNAL(presentationCreated(VISU::Prs3d_i*)), - this, SLOT(onPresentationCreate(VISU::Prs3d_i*))); - connect(myModule, SIGNAL(beforeObjectDelete(QString)), - this, SLOT(onObjectDelete(QString))); - - SUIT_Desktop* aDesktop = VISU::GetDesktop(myModule); - connect(aDesktop, SIGNAL(windowActivated(SUIT_ViewWindow*)), - this, SLOT(onWindowActivated(SUIT_ViewWindow*))); -} - - -//************************************************************************* -VisuGUI_ClippingPanel::~VisuGUI_ClippingPanel() -{ -} - - -//************************************************************************* -void VisuGUI_ClippingPanel::fillPrsList() -{ - myPrsList->clear(); - _PTR(Study) aStudy = VISU::GetCStudy(VISU::GetAppStudy(myModule)); - _PTR(SComponent) aVisuSO = aStudy->FindComponent("VISU"); - if (!aVisuSO) { - return; - } - myPresentations = getPrsList(aStudy, aVisuSO); - - //Process Cache system folder - _PTR(SObject) aSObjPtr = aStudy->FindObject(VISU::ColoredPrs3dCache_i::GetFolderName().c_str()); - if (aSObjPtr) { - _PTR(ChildIterator) Iter = aStudy->NewChildIterator( aSObjPtr ); - for ( ; Iter->More(); Iter->Next() ) { - _PTR(SObject) aChildObj = Iter->Value(); - myPresentations.append(aChildObj->GetID().c_str()); - } - } - - QStringList aNames; - for (int i = 0; i < myPresentations.size(); i++) { - if (VISU::Prs3d_i* aPrs = getPrs(myPresentations.at(i))) - aNames.append(getPrsName(aPrs)); - } - myPrsList->addItems(aNames); -} - -//************************************************************************* -QString VisuGUI_ClippingPanel::getPrsName(VISU::Prs3d_i* thePrs) -{ - QString aName; - QString aObjName; - QStringList aPath; - SALOMEDS::SObject_var aSObject = thePrs->GetSObject(); - if (!aSObject->_is_nil()) { - SALOMEDS::SObject_var aFather = aSObject->GetFather(); - while (!aFather->_is_nil()) { - QString aFName = aFather->GetName(); - aPath.append(aFName); - if (aFName == "Post-Pro") break; - aFather = aFather->GetFather(); - } - aObjName = aSObject->GetName(); - } else { - VISU::ColoredPrs3d_i* aColPrs = dynamic_cast(thePrs); - if (aColPrs) { - _PTR(Study) aStudy = VISU::GetCStudy(VISU::GetAppStudy(myModule)); - _PTR(SObject) aSObjPtr = aStudy->FindObjectID(aColPrs->GetHolderEntry().c_str()); - if (aSObjPtr) { - _PTR(SObject) aFather = aSObjPtr->GetFather(); - while (aFather) { - QString aFName(aFather->GetName().c_str()); - aPath.append(aFName); - if (aFName == "Post-Pro") break; - aFather = aFather->GetFather(); - } - } - aObjName = aSObjPtr->GetName().c_str(); - } - } - for (int j = aPath.size() - 2; j >= 0; j--) - aName += aPath.at(j) + "/"; - aName += aObjName; - return aName; -} - -//************************************************************************* -QStringList VisuGUI_ClippingPanel::getPrsList(_PTR(Study) theStudy, - _PTR(SObject) theObject) -{ - //QList aList; - QStringList aList; - _PTR(ChildIterator) aIter = theStudy->NewChildIterator(theObject); - for (aIter->InitEx(true); aIter->More(); aIter->Next()) { - _PTR(SObject) aSObject = aIter->Value(); - std::vector aSTLList = VISU::GetPrs3dList(myModule, aSObject); - for (int i = 0; i < aSTLList.size(); i++) { - VISU::Prs3d_i* aPrs = aSTLList[i]; - if (!aList.contains(aPrs->GetEntry().c_str())) - aList.append(aPrs->GetEntry().c_str()); - } - if (aList.size() == 0) { - //QList aSubList = getPrsList(theStudy, aSObject); - QStringList aSubList = getPrsList(theStudy, aSObject); - for (int i = 0; i < aSubList.size(); i++) { - //VISU::Prs3d_i* aPrs = aSubList[i]; - QString aPrsEntry = aSubList[i]; - if (!aList.contains(aPrsEntry)) - aList.append(aPrsEntry); - } - } - } - return aList; -} - -//************************************************************************* -VISU_ClippingPlaneMgr& VisuGUI_ClippingPanel::getPlanesMgr() const -{ - return VISU::GetVisuGen(myModule)->GetClippingPlaneMgr(); -} - -//************************************************************************* -void VisuGUI_ClippingPanel::fillPlanesList() -{ - disconnect(myPlanesList, SIGNAL(cellChanged(int,int)), this, SLOT(onCellChanged(int,int))); - myPlanesList->clear(); - _PTR(Study) aStudy = VISU::GetCStudy(VISU::GetAppStudy(myModule)); - VISU_ClippingPlaneMgr& aMgr = getPlanesMgr(); - for (int i = 0; i < aMgr.GetClippingPlanesNb(); i++) { - VISU_CutPlaneFunction* aPlane = aMgr.GetClippingPlane(i); - myPlanesList->insertRow(i); - QTableWidgetItem* aItem = new QTableWidgetItem(aPlane->getName().c_str()); - QTableWidgetItem* aCheckItem = new QTableWidgetItem(); - aCheckItem->setCheckState((myNonActivePlanes->checkState() == Qt::Checked)? - Qt::Unchecked : Qt::Checked); - if (aPlane->isAuto()) { // If this is Auto plane - aItem->setFlags(0); - aItem->setCheckState(Qt::Checked); - } else { // if it is not auto - aItem->setCheckState(Qt::Unchecked); - // Check current presentation - int aPrsNum = myPrsList->currentRow(); - if (aPrsNum >= 0) { - if (VISU_ClippingPlaneMgr::ContainsPlane(getPrs(myPresentations.at(aPrsNum)), aPlane)) - aItem->setCheckState(Qt::Checked); - } - } - myPlanesList->setItem(i, 0, aItem); - myPlanesList->setItem(i, 1, aCheckItem); - } - myPlanesList->setHorizontalHeaderLabels(QString(tr("PLANES_TABLE_TITLES")).split(",")); - if (myViewWindow) - myViewWindow->Repaint(); - //myPlanes.clear(); - /*_PTR(Study) aStudy = VISU::GetCStudy(VISU::GetAppStudy(myModule)); - _PTR(SObject) aFolder; - if (VISU::getClippingPlanesFolder(aStudy, aFolder)) { - _PTR(ChildIterator) aIter = aStudy->NewChildIterator(aFolder); - int i; - for (i = 0; aIter->More(); aIter->Next(), i++) { // For each plane - _PTR(SObject) aSObject = aIter->Value(); - PlaneDef aNewPlane = createEmptyPlane(); - updatePlane(aSObject, aNewPlane); - - myPlanesList->insertRow(i); - QTableWidgetItem* aItem = new QTableWidgetItem(aNewPlane.name); - QTableWidgetItem* aCheckItem = new QTableWidgetItem(); - aCheckItem->setCheckState((myNonActivePlanes->checkState() == Qt::Checked)? Qt::Unchecked : Qt::Checked); - - if (aNewPlane.isAuto) { // If this is Auto plane - aItem->setFlags(0); - // apply to all presentations - aItem->setCheckState(Qt::Checked); - foreach(QString aPrsEntry, myPresentations) { - getPrs(aPrsEntry)->AddClippingPlane(aNewPlane.plane); - } - } else { // if it is not auto - foreach(QString aPrsEntry, myPresentations) { - _PTR(ChildIterator) aRefIter = aStudy->NewChildIterator(aSObject); - for (; aRefIter->More(); aRefIter->Next()) { - _PTR(SObject) aObj = aRefIter->Value(); - _PTR(SObject) aRefPrsObject; - if (aObj->ReferencedObject(aRefPrsObject)) { // If it is referenced on current plane - if (QString(aRefPrsObject->GetID().c_str()) == aPrsEntry) { - getPrs(aPrsEntry)->AddClippingPlane(aNewPlane.plane); - } - } - } - } - aItem->setCheckState(Qt::Unchecked); - // Check current presentation - int aPrsNum = myPrsList->currentRow(); - if (aPrsNum >= 0) { - if (containsPlane(getPrs(myPresentations.at(aPrsNum)), aNewPlane)) - aItem->setCheckState(Qt::Checked); - } - } - myPlanesList->setItem(i, 0, aItem); - myPlanesList->setItem(i, 1, aCheckItem); - myPlanes.append(aNewPlane); - } - } - myPlanesList->setHorizontalHeaderLabels(QString(tr("PLANES_TABLE_TITLES")).split(",")); - if (myViewWindow) - myViewWindow->Repaint();*/ - connect(myPlanesList, SIGNAL(cellChanged(int,int)), this, SLOT(onCellChanged(int,int))); -} - - -//************************************************************************* -void VisuGUI_ClippingPanel::init() -{ - myViewWindow = VISU::GetViewWindow(myModule); - if (myViewWindow) - connect(myViewWindow, SIGNAL(destroyed(QObject*)), this, SLOT(onWindowDestroyed(QObject*))); - fillPrsList(); - fillPlanesList(); -} - -void VisuGUI_ClippingPanel::onWindowDestroyed(QObject* theWnd) -{ - if (theWnd == myViewWindow) { - myViewWindow = 0; - } -} - -//************************************************************************* -//void VisuGUI_ClippingPanel::showEvent(QShowEvent* event) -//{ -// VisuGUI_Panel::showEvent(event); -//} - -//************************************************************************* -// void VisuGUI_ClippingPanel::hideEvent(QHideEvent* event) -// { -// disconnect(myModule, SIGNAL(presentationCreated()), this, SLOT(onPresentationCreate())); -// VisuGUI_Panel::hideEvent(event); -// } - -//************************************************************************* -void VisuGUI_ClippingPanel::onPresentationCreate(VISU::Prs3d_i* thePrs) -{ - myPrsList->addItem(getPrsName(thePrs)); - string aEntry = thePrs->GetEntry(); - if (aEntry.length() == 0) { - VISU::ColoredPrs3d_i* aColPrs = dynamic_cast(thePrs); - if (aColPrs) - aEntry = aColPrs->GetHolderEntry(); - } - - myPresentations.append(aEntry.c_str()); - VISU_ClippingPlaneMgr& aMgr = getPlanesMgr(); - for (int i = 0; i < aMgr.GetClippingPlanesNb(); i++) { - VISU_CutPlaneFunction* aPlane = aMgr.GetClippingPlane(i); - if (aPlane->isAuto()) - aMgr.ApplyClippingPlane(thePrs, i); - } - /* for (int i = 0; i < myPlanes.size(); i++) { - const PlaneDef& aPlane = myPlanes.at(i); - if (aPlane.isAuto) - thePrs->AddClippingPlane(aPlane.plane); - }*/ -} - -//************************************************************************* -/*PlaneDef VisuGUI_ClippingPanel::createEmptyPlane() -{ - PlaneDef aPlane; - aPlane.name = QString("Plane"); - aPlane.plane = CutPlaneFunction::New(); - aPlane.plane->Delete(); - aPlane.plane->SetOrigin(0.,0.,0.); - aPlane.plane->SetNormal(0.,0.,1.); - aPlane.isAuto = true; - return aPlane; -}*/ - -//************************************************************************* -/*void VisuGUI_ClippingPanel::updatePlane(_PTR(SObject) theObject, PlaneDef& thePlane) -{ - thePlane.name = QString(theObject->GetName().c_str()); - thePlane.plane->setPlaneObject(theObject); - - _PTR(GenericAttribute) anAttr; - if (theObject->FindAttribute(anAttr, "AttributeSequenceOfReal")) { - _PTR(AttributeSequenceOfReal) aArray(anAttr); - thePlane.plane->SetOrigin(aArray->Value(1), aArray->Value(2), aArray->Value(3)); - thePlane.plane->SetNormal(aArray->Value(4), aArray->Value(5), aArray->Value(6)); - } - if (theObject->FindAttribute(anAttr, "AttributeInteger")) { - _PTR(AttributeInteger) aFlag(anAttr); - thePlane.isAuto = (aFlag->Value() == 1); - } -}*/ - -//************************************************************************* -void VisuGUI_ClippingPanel::onNewPlane() -{ - disconnect(myPlaneDlg, SIGNAL(accepted()), this, SLOT(onNewPlane())); - disconnect(myPlaneDlg, SIGNAL(rejected()), this, SLOT(onCancelDialog())); - disconnect(myPlanesList, SIGNAL(cellChanged(int,int)), this, SLOT(onCellChanged(int,int))); - //_PTR(SObject) aPlaneSObj = myPlaneDlg->getPlaneObj(); - int aId = myPlaneDlg->planeId(); - VISU_ClippingPlaneMgr& aMgr = getPlanesMgr(); - - VISU_CutPlaneFunction* aPlane = aMgr.GetClippingPlane(aId); - //PlaneDef aNewPlane = createEmptyPlane(); - //updatePlane(aPlaneSObj, aNewPlane); - int aRow = myPlanesList->rowCount(); - myPlanesList->insertRow(aRow); - - //QTableWidgetItem* aItem = new QTableWidgetItem(aNewPlane.name); - QTableWidgetItem* aItem = new QTableWidgetItem(aPlane->getName().c_str()); - QTableWidgetItem* aCheckItem = new QTableWidgetItem(); - aCheckItem->setCheckState((myNonActivePlanes->checkState() == Qt::Checked)? - Qt::Unchecked : Qt::Checked); - //aNewPlane.plane->setActive(myNonActivePlanes->checkState() != Qt::Checked); - aPlane->setActive(myNonActivePlanes->checkState() != Qt::Checked); - //if (aNewPlane.isAuto) { - if (aPlane->isAuto()) { - aItem->setFlags(0); - aItem->setCheckState(Qt::Checked); -// for (int i = 0; i < myPresentations.size(); i++) { -// getPrs(myPresentations.at(i))->AddClippingPlane(aNewPlane.plane); -// } - } else { - aItem->setCheckState(Qt::Unchecked); - } - myPlanesList->setItem(aRow, 0, aItem); - myPlanesList->setItem(aRow, 1, aCheckItem); - //myPlanes.append(aNewPlane); - - delete myPlaneDlg; - myPlaneDlg = 0; - - setPlanesVisible(myShowPlanes->checkState() == Qt::Checked); - - if (myViewWindow) - myViewWindow->Repaint(); - connect(myPlanesList, SIGNAL(cellChanged(int,int)), this, SLOT(onCellChanged(int,int))); -} - -//************************************************************************* -void VisuGUI_ClippingPanel::onPlaneEdited() -{ - disconnect(myPlaneDlg, SIGNAL(accepted()), this, SLOT(onNewPlane())); - disconnect(myPlaneDlg, SIGNAL(rejected()), this, SLOT(onCancelDialog())); - disconnect(myPlanesList, SIGNAL(cellChanged(int,int)), this, SLOT(onCellChanged(int,int))); - //_PTR(SObject) aPlaneSObj = myPlaneDlg->getPlaneObj(); - - int aId = myPlaneDlg->planeId(); - VISU_ClippingPlaneMgr& aMgr = getPlanesMgr(); - VISU_CutPlaneFunction* aPlane = aMgr.GetClippingPlane(aId); - // PlaneDef aPlane = myPlanes.at(myEditingPlanePos); - //updatePlane(aPlaneSObj, aPlane); - - //QTableWidgetItem* aItem = myPlanesList->item(myEditingPlanePos, 0); - QTableWidgetItem* aItem = myPlanesList->item(aId, 0); - // if (aPlane.isAuto) { - if (aPlane->isAuto()) { - aItem->setCheckState(Qt::Checked); - aItem->setFlags(0); - QString name = aPlane->getName().c_str(); - aItem->setText(name); -// _PTR(Study) aStudy = VISU::GetCStudy( VISU::GetAppStudy( myModule ) ); -// _PTR(ChildIterator) aIter = aStudy->NewChildIterator(aPlaneSObj); -// for (; aIter->More(); aIter->Next()) { -// _PTR(SObject) aObj = aIter->Value(); -// VISU::DeleteSObject(myModule, aStudy, aObj); -// } - VISU::UpdateObjBrowser(myModule); - } else { - aItem->setCheckState(Qt::Unchecked); - aItem->setFlags(Qt::ItemIsEnabled | Qt::ItemIsUserCheckable); - int aPrsNum = myPrsList->currentRow(); - if (aPrsNum >= 0) { - if (VISU_ClippingPlaneMgr::ContainsPlane(getPrs(myPresentations.at(aPrsNum)), aPlane)) - aItem->setCheckState(Qt::Checked); - } - } - - delete myPlaneDlg; - myPlaneDlg = 0; - - //myPlanes.replace(myEditingPlanePos, aPlane); - setPlanesVisible(myShowPlanes->checkState() == Qt::Checked); - - if (myViewWindow) - myViewWindow->Repaint(); - connect(myPlanesList, SIGNAL(cellChanged(int,int)), this, SLOT(onCellChanged(int,int))); -} - -//************************************************************************* -void VisuGUI_ClippingPanel::onEdit() -{ - if (!isVISUDataReady()) return; - if (myPlaneDlg) return; - - int aRow = myPlanesList->currentRow(); - if (aRow < 0) return; - - // const PlaneDef& aPlane = myPlanes.at(aRow); - - myPlaneDlg = new VisuGUI_ClippingPlaneDlg(myModule); - //myPlaneDlg->setPlaneObj(aPlane.plane->getPlaneObject()); - myPlaneDlg->setPlaneId(aRow); - connect(myPlaneDlg, SIGNAL(accepted()), this, SLOT(onPlaneEdited())); - connect(myPlaneDlg, SIGNAL(rejected()), this, SLOT(onCancelDialog())); - //myEditingPlanePos = aRow; - myPlaneDlg->show(); -} - -//************************************************************************* -void VisuGUI_ClippingPanel::onNew() -{ - if (!isVISUDataReady()) return; - - if (myPlaneDlg) return; - - myPlaneDlg = new VisuGUI_ClippingPlaneDlg(myModule); - connect(myPlaneDlg, SIGNAL(accepted()), this, SLOT(onNewPlane())); - connect(myPlaneDlg, SIGNAL(rejected()), this, SLOT(onCancelDialog())); - myPlaneDlg->show(); -} - -//************************************************************************* -void VisuGUI_ClippingPanel::onPlaneDelete() -{ - if (!isVISUDataReady()) return; - if (myPlaneDlg) return; - - _PTR(Study) aStudy = VISU::GetCStudy( VISU::GetAppStudy( myModule ) ); - - - int aRow = myPlanesList->currentRow(); - if (aRow < 0) return; - - // const PlaneDef& aPlane = myPlanes.at(aRow); - VISU_ClippingPlaneMgr& aMgr = getPlanesMgr(); - VISU_CutPlaneFunction* aPlane = aMgr.GetClippingPlane(aRow); - QMessageBox::StandardButton aRes = - QMessageBox::warning(VISU::GetDesktop(myModule), - tr("TIT_DELETE_PLANE"), - tr("MSG_DELETE_PLANE").arg(aPlane->getName().c_str()), - QMessageBox::Yes | QMessageBox::No, - QMessageBox::No); - if (aRes == QMessageBox::Yes) { - aMgr.DeleteClippingPlane(aRow); - /* short aTag1 = aPlane.plane->getPlaneObject()->Tag(); - for (int i = 0; i < myPresentations.size(); i++) { - VISU::Prs3d_i* aPrs = getPrs(myPresentations.at(i)); - for (int j = aPrs->GetNumberOfClippingPlanes()-1; j > -1; j--) { - CutPlaneFunction* aPln = dynamic_cast(aPrs->GetClippingPlane(j)); - if (aPln) { - short aTag2 = aPln->getPlaneObject()->Tag(); - if (aTag1 == aTag2) { - aPrs->RemoveClippingPlane(j); - } - } - } - } - - _PTR(SObject) aSObj = aPlane.plane->getPlaneObject(); - _PTR(StudyBuilder) aBuilder = aStudy->NewBuilder(); - aBuilder->RemoveObject(aSObj); - */ - myPlanesList->removeRow(aRow); - //myPlanes.removeAt(aRow); - - VISU::UpdateObjBrowser(myModule); - - if (myViewWindow) - myViewWindow->Repaint(); - } -} - -//************************************************************************* -bool VisuGUI_ClippingPanel::isVISUDataReady() -{ - _PTR(Study) aStudy = VISU::GetCStudy( VISU::GetAppStudy( myModule ) ); - - _PTR(SComponent) aVisuSO = aStudy->FindComponent("VISU"); - if (!aVisuSO) return false; - - if(aStudy->GetProperties()->IsLocked()) return false; - return true; -} - -//************************************************************************* -void VisuGUI_ClippingPanel::onApply() -{ - if (myIsApplied) return; - - //PlaneDef aPlane; - int i; - VISU_ClippingPlaneMgr& aMgr = getPlanesMgr(); - for (i = 0; i < aMgr.GetClippingPlanesNb(); i++) { - aMgr.GetClippingPlane(i)->setActive((myPlanesList->item(i, 1)->checkState() == Qt::Checked)); - } -// for(i = 0; i < myPlanes.size(); i++) { -// aPlane = myPlanes.at(i); -// aPlane.plane->setActive((myPlanesList->item(i, 1)->checkState() == Qt::Checked)); -// } - myIsApplied = true; - - int aPrsNum = myPrsList->currentRow(); - if (aPrsNum > -1) { - // for(i = 0; i < myPlanes.size(); i++) { - for(i = 0; i < aMgr.GetClippingPlanesNb(); i++) { - applyPlaneToPrs(i, aPrsNum, (myPlanesList->item(i, 0)->checkState() == Qt::Checked)); - } - //myCheckedPlanes.clear(); - VISU::UpdateObjBrowser(myModule); - } - if (myViewWindow) - myViewWindow->Repaint(); -} - -//************************************************************************* -void VisuGUI_ClippingPanel::setPlanesNonActive(bool theState) -{ - //PlaneDef aPlane; - disconnect(myPlanesList, SIGNAL(cellChanged(int,int)), this, SLOT(onCellChanged(int,int))); - //for (int i = 0; i < myPlanes.size(); i++) { - VISU_ClippingPlaneMgr& aMgr = getPlanesMgr(); - VISU_CutPlaneFunction* aPlane = 0; - for (int i = 0; i < aMgr.GetClippingPlanesNb(); i++) { - //aPlane = myPlanes.at(i); - aPlane = aMgr.GetClippingPlane(i); - //aPlane.plane->setActive(!theState); - aPlane->setActive(!theState); - myPlanesList->item(i, 1)->setCheckState((theState)? Qt::Unchecked : Qt::Checked); - } - if (myViewWindow) - myViewWindow->Repaint(); - connect(myPlanesList, SIGNAL(cellChanged(int,int)), this, SLOT(onCellChanged(int,int))); -} - -//************************************************************************* -void VisuGUI_ClippingPanel::setPlanesVisible(bool theVisible) -{ - if (!myViewWindow) return; - - if (theVisible) { - // Hide previous - setPlanesVisible(false); - - double aBounds[6]; - ComputeVisiblePropBounds(myViewWindow->getRenderer(), aBounds); - VISU_ClippingPlaneMgr& aMgr = getPlanesMgr(); - //for (int i = 0; i < myPlanes.size(); i++) { - for (int i = 0; i < aMgr.GetClippingPlanesNb(); i++) { - //PreviewPlane* aPreview = new PreviewPlane(myViewWindow, myPlanes.at(i), aBounds); - PreviewPlane* aPreview = new PreviewPlane(myViewWindow, aMgr.GetClippingPlane(i), aBounds); - aPreview->setVisible(true); - myPreview.append(aPreview); - } - } else { - PreviewPlane* aPreview; - while (myPreview.size() > 0) { - aPreview = myPreview.last(); - myPreview.removeLast(); - delete aPreview; - } - } - myViewWindow->Repaint(); -} - -//************************************************************************* -void VisuGUI_ClippingPanel::onCancelDialog() -{ - disconnect(myPlaneDlg, SIGNAL(accepted()), this, SLOT(onNewPlane())); - disconnect(myPlaneDlg, SIGNAL(rejected()), this, SLOT(onCancelDialog())); - - delete myPlaneDlg; - myPlaneDlg = 0; -} - - -//************************************************************************* -void VisuGUI_ClippingPanel::onWindowActivated(SUIT_ViewWindow* theWindow) -{ - setPlanesVisible(false); - myViewWindow = dynamic_cast(theWindow); - if (myViewWindow) - connect(myViewWindow, SIGNAL(destroyed(QObject*)), this, SLOT(onWindowDestroyed(QObject*))); - setPlanesVisible(myShowPlanes->checkState() == Qt::Checked); -} - -//************************************************************************* -void VisuGUI_ClippingPanel::onCellChanged(int row, int col) -{ - //PlaneDef aPlane = myPlanes.at(row); - VISU_ClippingPlaneMgr& aMgr = getPlanesMgr(); - VISU_CutPlaneFunction* aPlane = aMgr.GetClippingPlane(row); - bool isChecked = (myPlanesList->item(row, col)->checkState() == Qt::Checked); - if (col == 1) { // activate column clicked - if (isAutoApply()) - //aPlane.plane->setActive(isChecked); - aPlane->setActive(isChecked); - else { - myIsApplied = false; - return; - } - } else { // Plane checked - - //if (aPlane.isAuto) return; - if (aPlane->isAuto()) return; - - if (!isAutoApply()) { - //myCheckedPlanes.append(row); - myIsApplied = false; - return; - } - int aPrsNum = myPrsList->currentRow(); - if (aPrsNum < 0) return; - - applyPlaneToPrs(row, aPrsNum, isChecked); - VISU::UpdateObjBrowser(myModule); - } - if (myViewWindow) - myViewWindow->Repaint(); -} - -//************************************************************************* -void VisuGUI_ClippingPanel::applyPlaneToPrs(int thePlaneNum, int thePrsNum, bool isChecked) -{ - VISU::Prs3d_i* aPrs = getPrs(myPresentations.at(thePrsNum)); - VISU_ClippingPlaneMgr& aMgr = getPlanesMgr(); - if (isChecked) { // Apply - aMgr.ApplyClippingPlane(aPrs, thePlaneNum); - } else { // Detach - aMgr.DetachClippingPlane(aPrs, thePlaneNum); - } - /* PlaneDef aPlane = myPlanes.at(thePlaneNum); - _PTR(Study) aStudy = VISU::GetCStudy( VISU::GetAppStudy( myModule ) ); - _PTR(StudyBuilder) aBuilder = aStudy->NewBuilder(); - VISU::Prs3d_i* aPrs = getPrs(myPresentations.at(thePrsNum)); - _PTR(SObject) aSObject = aPlane.plane->getPlaneObject(); - _PTR(SObject) aPrsSObj = aStudy->FindObjectID(aPrs->GetEntry()); - if (isChecked) { - if (!containsPlane(aPrs, aPlane)) { - aPrs->AddClippingPlane(aPlane.plane); - - if(!aStudy->GetProperties()->IsLocked()) { - _PTR(SObject) aNewObj = aBuilder->NewObject(aSObject); - aBuilder->Addreference(aNewObj, aPrsSObj); - } - } - } else { - for (int i = 0; i < aPrs->GetNumberOfClippingPlanes(); i++) { - if (aPrs->GetClippingPlane(i) == aPlane.plane.GetPointer()) { - aPrs->RemoveClippingPlane(i); - break; - } - } - if(!aStudy->GetProperties()->IsLocked()) { - _PTR(ChildIterator) aIter = aStudy->NewChildIterator(aSObject); - for (; aIter->More(); aIter->Next()) { - _PTR(SObject) aRefObj = aIter->Value(); - if(aRefObj) { - _PTR(SObject) aRefPrsObject; - if (aRefObj->ReferencedObject(aRefPrsObject)) { - if (QString(aRefPrsObject->GetID().c_str()) == QString(aPrs->GetEntry().c_str())) { - VISU::DeleteSObject(myModule, aStudy, aRefObj); - break; - } - } - } - } - } - }*/ -} - -//************************************************************************* -/*bool VisuGUI_ClippingPanel::containsPlane(VISU::Prs3d_i* thePrs, const PlaneDef& thePlane) -{ - //bool isContains = false; - for (int i = 0; i < thePrs->GetNumberOfClippingPlanes(); i++) { - if (thePrs->GetClippingPlane(i) == thePlane.plane.GetPointer()) { - return true; - } - } - return false; -}*/ - - -//************************************************************************* -void VisuGUI_ClippingPanel::onObjectDelete(QString theEntry) -{ - disconnect(myPrsList, SIGNAL(currentRowChanged(int)), this, SLOT(onPrsSelected(int))); - int i = 0; - foreach (QString aPrsEntry, myPresentations) { - VISU::Prs3d_i* aPrs = getPrs(aPrsEntry); - if (aPrs) { - QString aID(aPrs->GetEntry().c_str()); - if (aID == theEntry) { - myPresentations.removeAt(i); - myPrsList->takeItem(i); - break; - } - i++; - } - } - connect(myPrsList, SIGNAL(currentRowChanged(int)), this, SLOT(onPrsSelected(int))); - onPrsSelected(myPrsList->currentRow()); -} - -//************************************************************************* -void VisuGUI_ClippingPanel::onPrsSelected(int thePrs) -{ - if (thePrs < 0) return; - if (thePrs > myPresentations.size()) return; - disconnect(myPlanesList, SIGNAL(cellChanged(int,int)), this, SLOT(onCellChanged(int,int))); - VISU::Prs3d_i* aPrs = getPrs(myPresentations.at(thePrs)); - if (!aPrs) return; - //QListOfPlanes::const_iterator aIt; - VISU_ClippingPlaneMgr& aMgr = getPlanesMgr(); - for (int i = 0; i < aMgr.GetClippingPlanesNb(); i++) { - QTableWidgetItem* aItem = myPlanesList->item(i, 0); - VISU_CutPlaneFunction* aPlane = aMgr.GetClippingPlane(i); - if (!aPlane->isAuto()) - aItem->setCheckState(VISU_ClippingPlaneMgr::ContainsPlane(aPrs, aPlane)? - Qt::Checked : Qt::Unchecked); - } - /* for (aIt = myPlanes.begin(), i = 0; aIt != myPlanes.end(); ++aIt, i++) { - QTableWidgetItem* aItem = myPlanesList->item(i, 0); - const PlaneDef& aPlane = *aIt; - if (!aPlane.isAuto) - aItem->setCheckState(containsPlane(aPrs, aPlane)? Qt::Checked : Qt::Unchecked); - }*/ - connect(myPlanesList, SIGNAL(cellChanged(int,int)), this, SLOT(onCellChanged(int,int))); -} - -//************************************************************************* -bool VisuGUI_ClippingPanel::isAutoApply() const -{ - return myAutoApply->checkState() == Qt::Checked; -} - - -//************************************************************************* -VISU::Prs3d_i* VisuGUI_ClippingPanel::getPrs(QString theEntry) -{ - VISU::TObjectInfo anObjectInfo = VISU::GetObjectByEntry(VISU::GetAppStudy(myModule), - qPrintable(theEntry)); - return VISU::GetPrs3dFromBase(anObjectInfo.myBase); -} - - -//************************************************************************* -void VisuGUI_ClippingPanel::onHelp() -{ - QString aHelpFileName = "clipping_page.html"; - LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication()); - if (app) - app->onHelpContextModule(myModule ? app->moduleName(myModule->moduleName()) : QString(""), aHelpFileName); - else { - QString platform; -#ifdef WIN32 - platform = "winapplication"; -#else - platform = "application"; -#endif - SUIT_MessageBox::warning(0, QObject::tr("WRN_WARNING"), - QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE"). - arg(app->resourceMgr()->stringValue("ExternalBrowser", platform)).arg(aHelpFileName), - QObject::tr("BUT_OK")); - } -} diff --git a/src/VISUGUI/VisuGUI_ClippingPanel.h b/src/VISUGUI/VisuGUI_ClippingPanel.h deleted file mode 100644 index 1e40755b..00000000 --- a/src/VISUGUI/VisuGUI_ClippingPanel.h +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -#ifndef DIALOGBOX_CLIPPINGPANEL_H -#define DIALOGBOX_CLIPPINGPANEL_H - - -class VisuGUI; -class QListWidget; -class QTableWidget; -class VisuGUI_ClippingPlaneDlg; -class QCheckBox; -class SVTK_ViewWindow; -class SUIT_ViewWindow; -class vtkPolyDataMapper; -class vtkImageData; -class vtkCutter; - -#include "VISU_Prs3d_i.hh" -#include "VisuGUI_Panel.h" -//#include -#include - -#include -#include -#include - -#include - - -/*class CutPlaneFunction: public vtkPlane -{ -public: - static CutPlaneFunction* New(); - - vtkTypeMacro(CutPlaneFunction, vtkPlane); - - virtual double EvaluateFunction(double x[3]); - virtual double EvaluateFunction(double x, double y, double z); - - void setActive(bool theActive); - bool isActive() const { return myIsActive; } - - void setPlaneObject(_PTR(SObject) aSOPlane) { mySObject = aSOPlane; } - _PTR(SObject) getPlaneObject() const { return mySObject; } - -protected: - CutPlaneFunction(); - ~CutPlaneFunction(); - -private: - bool myIsActive; - _PTR(SObject) mySObject; -}; - - - -struct PlaneDef -{ - vtkSmartPointer plane; - bool isAuto; - QString name; -}; -*/ - -class PreviewPlane -{ -public: - //PreviewPlane(SVTK_ViewWindow* theWindow, const PlaneDef& thePlane, const double* theBounds); - PreviewPlane(SVTK_ViewWindow* theWindow, VISU_CutPlaneFunction* thePlane, const double* theBounds); - ~PreviewPlane(); - - void setVisible(bool theVisible) - { myActor->SetVisibility(theVisible); } - -private: - SVTK_ViewWindow* myWindow; - - vtkActor* myActor; - vtkPolyDataMapper* myMapper; - const double* myBounds; - vtkPlane* myPlane; - vtkImageData* myBox; - vtkCutter* myCutter; -}; - - -//typedef QList QListOfPlanes; -typedef QList ListOfvtkPlanes; -typedef QList ListOfPreview; - - - - - -class VisuGUI_ClippingPanel: public VisuGUI_Panel -{ - Q_OBJECT -public: - VisuGUI_ClippingPanel(VisuGUI* theModule); - ~VisuGUI_ClippingPanel(); - - void init(); - - //protected: - //virtual void showEvent(QShowEvent* event); - //virtual void hideEvent(QHideEvent* event); - -public slots: - void onPresentationCreate(VISU::Prs3d_i* thePrs); - -protected slots: - virtual void onApply(); - virtual void onHelp(); - -private slots: - void onNew(); - void onNewPlane(); - void onEdit(); - void onPlaneEdited(); - void onPlaneDelete(); - void onCancelDialog(); - void setPlanesNonActive(bool theState); - void setPlanesVisible(bool theVisible); - void onWindowActivated(SUIT_ViewWindow* theWindow); - void onCellChanged(int row, int col); - void onObjectDelete(QString theEntry); - void onPrsSelected(int thePrs); - void onWindowDestroyed(QObject* theWnd); - - private: - void fillPrsList(); - void fillPlanesList(); - - bool isAutoApply() const; - - VISU_ClippingPlaneMgr& getPlanesMgr() const; - - - //void updatePlane(_PTR(SObject) theObject, PlaneDef& thePlane); - //PlaneDef createEmptyPlane(); - //static bool containsPlane(VISU::Prs3d_i* thePrs, const PlaneDef& thePlane); - - QString getPrsName(VISU::Prs3d_i* thePrs); - - bool isVISUDataReady(); - - void applyPlaneToPrs(int thePlaneNum, int thePrsNum, bool isChecked); - - //QList getPrsList(_PTR(Study) theStudy, _PTR(SObject) theObject); - QStringList getPrsList(_PTR(Study) theStudy, _PTR(SObject) theObject); - VISU::Prs3d_i* getPrs(QString theEntry); - - VisuGUI* myModule; - - QListWidget* myPrsList; - QTableWidget* myPlanesList; - - QCheckBox* myShowPlanes; - QCheckBox* myNonActivePlanes; - QCheckBox* myAutoApply; - - //QListOfPlanes myPlanes; - // QList myPresentations; - QStringList myPresentations; // Stores entries of presentation objects - ListOfPreview myPreview; - - VisuGUI_ClippingPlaneDlg* myPlaneDlg; - //int myEditingPlanePos; - SVTK_ViewWindow* myViewWindow; - bool myIsApplied; - //QList myCheckedPlanes; -}; - -#endif diff --git a/src/VISUGUI/VisuGUI_ClippingPlaneDlg.cxx b/src/VISUGUI/VisuGUI_ClippingPlaneDlg.cxx deleted file mode 100644 index 62e2938a..00000000 --- a/src/VISUGUI/VisuGUI_ClippingPlaneDlg.cxx +++ /dev/null @@ -1,411 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -#include "VisuGUI_ClippingPlaneDlg.h" -#include "VisuGUI.h" -#include "VisuGUI_Tools.h" -#include "VisuGUI_ViewTools.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include - - -#define SIZEFACTOR 1.1 - - - - -//**************************************************************** -//**************************************************************** -//**************************************************************** -VisuGUI_ClippingPlaneDlg::VisuGUI_ClippingPlaneDlg(VisuGUI* theModule) - : QDialog(VISU::GetDesktop(theModule), Qt::WindowTitleHint | Qt::WindowSystemMenuHint ), - myModule(theModule), - myCallback( vtkCallbackCommand::New() ), - myPreviewWidget(0), - myViewWindow(0), - myPlaneId(-1) -{ - myViewWindow = VISU::GetActiveViewWindow(myModule); - VISU::ComputeVisiblePropBounds(myViewWindow, myBounds); - - setWindowTitle(tr("TITLE")); - setSizeGripEnabled(true); - setModal(false); - - myCallback->SetClientData(this); - myCallback->SetCallback(VisuGUI_ClippingPlaneDlg::ProcessEvents); - - QVBoxLayout* aMainLayout = new QVBoxLayout(this); - - QWidget* aPlanesWgt = new QWidget(this); - aMainLayout->addWidget(aPlanesWgt); - QVBoxLayout* aFrameLayout = new QVBoxLayout(aPlanesWgt); - - QWidget* aNameBox = new QWidget(aPlanesWgt); - aFrameLayout->addWidget(aNameBox); - QHBoxLayout* aNameLayout = new QHBoxLayout(aNameBox); - - aNameLayout->addWidget(new QLabel(tr("LBL_NAME"), aPlanesWgt)); - myNameEdt = new QLineEdit(); - - _PTR(Study) aStudy = VISU::GetCStudy(VISU::GetAppStudy(myModule)); - _PTR(SObject) aFolderSO; - if (VISU::getClippingPlanesFolder(aStudy, aFolderSO)) { - _PTR(ChildIterator) aIter = aStudy->NewChildIterator(aFolderSO); - int i = 1; - for (; aIter->More(); aIter->Next()) i++; - - myNameEdt->setText(QString("Plane %1").arg(i)); - } - aNameLayout->addWidget(myNameEdt); - - QGroupBox* aOriginGroup = new QGroupBox( tr( "ORIGIN_TITLE" ), aPlanesWgt ); - aFrameLayout->addWidget(aOriginGroup); - QHBoxLayout* aOriginLayout = new QHBoxLayout(aOriginGroup); - - aOriginLayout->addWidget( new QLabel("X", aOriginGroup) ); - myXOrigin = new QtxDoubleSpinBox( -1000.0, 1000.0, 0.1, aOriginGroup ); - myXOrigin->setValue( 0.0 ); - connect(myXOrigin, SIGNAL(valueChanged(double)), this, SLOT(onValueChanged())); - aOriginLayout->addWidget( myXOrigin ); - - aOriginLayout->addWidget( new QLabel("Y", aOriginGroup) ); - myYOrigin = new QtxDoubleSpinBox( -1000.0, 1000, 0.1, aOriginGroup ); - myYOrigin->setValue( 0.0 ); - connect(myYOrigin, SIGNAL(valueChanged(double)), this, SLOT(onValueChanged())); - aOriginLayout->addWidget( myYOrigin ); - - aOriginLayout->addWidget( new QLabel("Z", aOriginGroup) ); - myZOrigin = new QtxDoubleSpinBox( -1000.0, 1000.0, 0.1, aOriginGroup ); - myZOrigin->setValue( 0.0 ); - connect(myZOrigin, SIGNAL(valueChanged(double)), this, SLOT(onValueChanged())); - aOriginLayout->addWidget( myZOrigin ); - - QGroupBox* aDirGroup = new QGroupBox( tr( "DIRECTION_TITLE" ), aPlanesWgt ); - aFrameLayout->addWidget(aDirGroup); - QHBoxLayout* aDirLayout = new QHBoxLayout(aDirGroup); - - aDirLayout->addWidget( new QLabel("dX", aDirGroup) ); - myXDir = new QtxDoubleSpinBox( -1000.0, 1000.0, 0.1, aDirGroup ); - myXDir->setValue( 0.0 ); - connect(myXDir, SIGNAL(valueChanged(double)), this, SLOT(onValueChanged())); - aDirLayout->addWidget( myXDir ); - - aDirLayout->addWidget( new QLabel("dY", aDirGroup) ); - myYDir = new QtxDoubleSpinBox( -1000.0, 1000.0, 0.1, aDirGroup ); - myYDir->setValue( 0.0 ); - connect(myYDir, SIGNAL(valueChanged(double)), this, SLOT(onValueChanged())); - aDirLayout->addWidget( myYDir ); - - aDirLayout->addWidget( new QLabel("dZ", aDirGroup) ); - myZDir = new QtxDoubleSpinBox( -1000.0, 1000.0, 0.1, aDirGroup ); - myZDir->setValue( 1.0 ); - connect(myZDir, SIGNAL(valueChanged(double)), this, SLOT(onValueChanged())); - aDirLayout->addWidget( myZDir ); - - myAutoApply = new QCheckBox(tr("CHK_AUTOAPPLY"), aPlanesWgt); - myAutoApply->setCheckState(Qt::Checked); - aFrameLayout->addWidget(myAutoApply); - - // Dialog buttons - QGroupBox* aGroupButtons = new QGroupBox (this); - aMainLayout->addWidget(aGroupButtons); - - QSizePolicy aSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed ); - QHBoxLayout* aButtonsLayout = new QHBoxLayout(aGroupButtons); - - QPushButton* aBtnOk = new QPushButton(tr("BUT_OK"), aGroupButtons); - aButtonsLayout->addWidget(aBtnOk); - - aButtonsLayout->addStretch(); - - QPushButton* aBtnClose = new QPushButton(tr("BUT_CANCEL"), aGroupButtons); - aButtonsLayout->addWidget(aBtnClose); - - QPushButton* aBtnHelp = new QPushButton(tr("BUT_HELP"), aGroupButtons); - aButtonsLayout->addWidget(aBtnHelp); - - connect(aBtnOk , SIGNAL(clicked()), this, SLOT(accept())); - connect(aBtnClose, SIGNAL(clicked()), this, SLOT(reject())); - connect(aBtnHelp , SIGNAL(clicked()), this, SLOT(onHelp())); - - - myPreviewWidget = createPreviewWidget(); - myViewWindow->Repaint(); -} - -VisuGUI_ClippingPlaneDlg::~VisuGUI_ClippingPlaneDlg() -{ - if (myPreviewWidget) { - myPreviewWidget->Off(); - myPreviewWidget->Delete(); - } - myPreviewWidget = 0; - myCallback->Delete(); -} - -//**************************************************************** -void VisuGUI_ClippingPlaneDlg::ProcessEvents(vtkObject* theObject, - unsigned long theEvent, - void* theClientData, - void* vtkNotUsed(theCallData)) -{ - vtkImplicitPlaneWidget* aWidget = vtkImplicitPlaneWidget::SafeDownCast(theObject); - if (aWidget == NULL) return; - if (theClientData == NULL) return; - - VisuGUI_ClippingPlaneDlg* aDlg = (VisuGUI_ClippingPlaneDlg*) theClientData; - - double aOrigin[3]; - double aDir[3]; - - switch(theEvent){ - case vtkCommand::InteractionEvent: - aWidget->GetOrigin(aOrigin); - aWidget->GetNormal(aDir); - - aDlg->setOrigin(aOrigin); - aDlg->setDirection(aDir); - - break; - } -} - -//**************************************************************** -void VisuGUI_ClippingPlaneDlg::setOrigin(double theVal[3]) -{ - myXOrigin->setValue(theVal[0]); - myYOrigin->setValue(theVal[1]); - myZOrigin->setValue(theVal[2]); -} - -//**************************************************************** -void VisuGUI_ClippingPlaneDlg::setDirection(double theVal[3]) -{ - myXDir->setValue(theVal[0]); - myYDir->setValue(theVal[1]); - myZDir->setValue(theVal[2]); -} - -//**************************************************************** -void VisuGUI_ClippingPlaneDlg::onValueChanged() -{ - if (!myPreviewWidget) return; - double aOrigin[3]; - double aDir[3]; - aOrigin[0] = myXOrigin->value(); - aOrigin[1] = myYOrigin->value(); - aOrigin[2] = myZOrigin->value(); - - aDir[0] = myXDir->value(); - aDir[1] = myYDir->value(); - aDir[2] = myZDir->value(); - - myPreviewWidget->SetOrigin(aOrigin); - myPreviewWidget->SetNormal(aDir); - myViewWindow->Repaint(); -} - -//**************************************************************** -vtkImplicitPlaneWidget* VisuGUI_ClippingPlaneDlg::createPreviewWidget() -{ - vtkImplicitPlaneWidget* aPlaneWgt = vtkImplicitPlaneWidget::New(); - aPlaneWgt->SetInteractor(myViewWindow->getInteractor()); - aPlaneWgt->SetPlaceFactor(SIZEFACTOR); - aPlaneWgt->ScaleEnabledOff(); - aPlaneWgt->PlaceWidget(myBounds[0],myBounds[1],myBounds[2],myBounds[3],myBounds[4],myBounds[5]); - aPlaneWgt->SetOrigin(0,0,0); - aPlaneWgt->SetNormal(0,0,1); - aPlaneWgt->On(); - - //aPlaneWgt->OutlineTranslationOff(); - //aPlaneWgt->ScaleEnabledOn(); - aPlaneWgt->AddObserver(vtkCommand::InteractionEvent, - myCallback.GetPointer(), - 0.); - return aPlaneWgt; -} - - -//**************************************************************** -void VisuGUI_ClippingPlaneDlg::setPlaneId(int theId) -{ - myPlaneId = theId; - VISU_ClippingPlaneMgr& aMgr = VISU::GetVisuGen(myModule)->GetClippingPlaneMgr(); - - VISU_CutPlaneFunction* aPlane = aMgr.GetClippingPlane(myPlaneId); - if (aPlane) { - myNameEdt->setText(QString(aPlane->getName().c_str())); - double aOrigin[3], aDir[3]; - aPlane->GetOrigin(aOrigin); - aPlane->GetNormal(aDir); - - myXOrigin->setValue(aOrigin[0]); - myYOrigin->setValue(aOrigin[1]); - myZOrigin->setValue(aOrigin[2]); - myPreviewWidget->SetOrigin(aOrigin); - - myXDir->setValue(aDir[0]); - myYDir->setValue(aDir[1]); - myZDir->setValue(aDir[2]); - - myPreviewWidget->SetNormal(aDir); - - myAutoApply->setCheckState((aPlane->isAuto())? Qt::Checked : Qt::Unchecked); - myViewWindow->Repaint(); - } -} -/*void VisuGUI_ClippingPlaneDlg::setPlaneObj(_PTR(SObject) thePlaneObj) -{ - myPlaneObj = thePlaneObj; - - myNameEdt->setText(QString(myPlaneObj->GetName().c_str())); - - _PTR(GenericAttribute) anAttr; - if (myPlaneObj->FindAttribute(anAttr, "AttributeSequenceOfReal")) { - _PTR(AttributeSequenceOfReal) aArray(anAttr); - myXOrigin->setValue(aArray->Value(1)); - myYOrigin->setValue(aArray->Value(2)); - myZOrigin->setValue(aArray->Value(3)); - - myPreviewWidget->SetOrigin(aArray->Value(1), aArray->Value(2), aArray->Value(3)); - - myXDir->setValue(aArray->Value(4)); - myYDir->setValue(aArray->Value(5)); - myZDir->setValue(aArray->Value(6)); - - myPreviewWidget->SetNormal(aArray->Value(4), aArray->Value(5), aArray->Value(6)); - } - if (myPlaneObj->FindAttribute(anAttr, "AttributeInteger")) { - _PTR(AttributeInteger) aFlag(anAttr); - myAutoApply->setCheckState((aFlag->Value() == 1)? Qt::Checked : Qt::Unchecked); - } - - myViewWindow->Repaint(); -}*/ - -//**************************************************************** -void VisuGUI_ClippingPlaneDlg::accept() -{ - _PTR(Study) aStudy = VISU::GetCStudy( VISU::GetAppStudy( myModule ) ); - if(!aStudy->GetProperties()->IsLocked()) { - VISU_ClippingPlaneMgr& aMgr = VISU::GetVisuGen(myModule)->GetClippingPlaneMgr(); - if (myPlaneId == -1) { // Create a New plane - myPlaneId = aMgr.CreateClippingPlane(myXOrigin->value(), myYOrigin->value(), myZOrigin->value(), - myXDir->value(), myYDir->value(), myZDir->value(), - myAutoApply->checkState() == Qt::Checked, - qPrintable(myNameEdt->text())); - } else { // Edit Plane - aMgr.EditClippingPlane(myPlaneId, - myXOrigin->value(), myYOrigin->value(), myZOrigin->value(), - myXDir->value(), myYDir->value(), myZDir->value(), - myAutoApply->checkState() == Qt::Checked, - qPrintable(myNameEdt->text())); - } - VISU::UpdateObjBrowser(myModule); - } - /* _PTR(Study) aStudy = VISU::GetCStudy( VISU::GetAppStudy( myModule ) ); - if(!aStudy->GetProperties()->IsLocked()) { - _PTR(SObject) aFolder; - if (VISU::getClippingPlanesFolder(aStudy, aFolder)) { - _PTR(StudyBuilder) aBuilder = aStudy->NewBuilder(); - if (myPlaneObj == 0) { // Create a New plane - myPlaneObj = aBuilder->NewObject(aFolder); - } - // Save Name - _PTR(GenericAttribute) anAttr; - anAttr = aBuilder->FindOrCreateAttribute(myPlaneObj,"AttributeName"); - _PTR(AttributeName) aName(anAttr); - aName->SetValue(myNameEdt->text().toStdString()); - - //Save Parameters - double aParams[6]; - aParams[0] = myXOrigin->value(); - aParams[1] = myYOrigin->value(); - aParams[2] = myZOrigin->value(); - aParams[3] = myXDir->value(); - aParams[4] = myYDir->value(); - aParams[5] = myZDir->value(); - - anAttr = aBuilder->FindOrCreateAttribute(myPlaneObj,"AttributeSequenceOfReal"); - _PTR(AttributeSequenceOfReal) aArray(anAttr); - if (aArray->Length() == 6) { - for (int i = 0; i < 6; i++) - aArray->ChangeValue(i+1, aParams[i]); - } else { - for (int i = 0; i < 6; i++) - aArray->Add(aParams[i]); - } - // Save Bool Flag - anAttr = aBuilder->FindOrCreateAttribute(myPlaneObj,"AttributeInteger"); - _PTR(AttributeInteger) aFlag(anAttr); - aFlag->SetValue((myAutoApply->checkState() == Qt::Checked)? 1 : 0); - - VISU::UpdateObjBrowser(myModule); - } - }*/ - QDialog::accept(); -} - - -//**************************************************************** -void VisuGUI_ClippingPlaneDlg::onHelp() -{ - QString aHelpFileName = "clipping_page.html"; - LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication()); - if (app) - app->onHelpContextModule(myModule ? app->moduleName(myModule->moduleName()) : QString(""), aHelpFileName); - else { - QString platform; -#ifdef WIN32 - platform = "winapplication"; -#else - platform = "application"; -#endif - SUIT_MessageBox::warning(0, QObject::tr("WRN_WARNING"), - QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE"). - arg(app->resourceMgr()->stringValue("ExternalBrowser", platform)).arg(aHelpFileName), - QObject::tr("BUT_OK")); - } -} - diff --git a/src/VISUGUI/VisuGUI_ClippingPlaneDlg.h b/src/VISUGUI/VisuGUI_ClippingPlaneDlg.h deleted file mode 100644 index 16b6ca37..00000000 --- a/src/VISUGUI/VisuGUI_ClippingPlaneDlg.h +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -#ifndef DIALOGBOX_CLIPPINGPLANEDLG_H -#define DIALOGBOX_CLIPPINGPLANEDLG_H - -class VisuGUI; -class QLineEdit; -class QCheckBox; - -class QtxDoubleSpinBox; -class vtkImplicitPlaneWidget; -class vtkCallbackCommand; -class vtkObject; -class SVTK_ViewWindow; - -#include -#include -#include "VisuGUI_ClippingPanel.h" -#include - - -class VisuGUI_ClippingPlaneDlg: public QDialog -{ - Q_OBJECT -public: - VisuGUI_ClippingPlaneDlg(VisuGUI* theModule); - ~VisuGUI_ClippingPlaneDlg(); - - void setOrigin(double theVal[3]); - void setDirection(double theVal[3]); - - void setPlaneId(int theId); - int planeId() const { return myPlaneId; } - //void setPlaneObj(_PTR(SObject) thePlaneObj); - //_PTR(SObject) getPlaneObj() const { return myPlaneObj; } - -protected slots: - virtual void accept(); - -private slots: - void onHelp(); - void onValueChanged(); - - private: - //void setEmptyPlane(PlaneDef& thePlane) const; - vtkImplicitPlaneWidget* createPreviewWidget(); - - - static void ProcessEvents(vtkObject* theObject, unsigned long theEvent, - void* theClientData, void* theCallData); - - VisuGUI* myModule; - SVTK_ViewWindow* myViewWindow; - - QLineEdit* myNameEdt; - - QtxDoubleSpinBox* myXOrigin; - QtxDoubleSpinBox* myYOrigin; - QtxDoubleSpinBox* myZOrigin; - - QtxDoubleSpinBox* myXDir; - QtxDoubleSpinBox* myYDir; - QtxDoubleSpinBox* myZDir; - - QCheckBox* myAutoApply; - - vtkImplicitPlaneWidget* myPreviewWidget; - vtkSmartPointer myCallback; - - double myBounds[6]; - //_PTR(SObject) myPlaneObj; - int myPlaneId; -}; - -#endif diff --git a/src/VISUGUI/VisuGUI_DeformedShapeAndScalarMapDlg.cxx b/src/VISUGUI/VisuGUI_DeformedShapeAndScalarMapDlg.cxx deleted file mode 100644 index b7acd57f..00000000 --- a/src/VISUGUI/VisuGUI_DeformedShapeAndScalarMapDlg.cxx +++ /dev/null @@ -1,497 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_DeformedShapeAndScalarMapDlg.cxx -// Author : Eugeny Nikolaev -// Module : VISU -// -#include "VisuGUI_DeformedShapeAndScalarMapDlg.h" - -#include "VisuGUI_Tools.h" -#include "VisuGUI_InputPane.h" - -#include "VISU_Result_i.hh" -#include "VISU_DeformedShapeAndScalarMap_i.hh" -#include "VISU_ColoredPrs3dFactory.hh" - -#include "VISU_ScalarMapPL.hxx" -#include "VISU_DeformedShapeAndScalarMapPL.hxx" - -#include "VISU_Convertor.hxx" - -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -#define MYDEBUG 0 - -/*! - * Constructor - */ -VisuGUI_DeformedShapeAndScalarMapDlg::VisuGUI_DeformedShapeAndScalarMapDlg (SalomeApp_Module* theModule) - : VisuGUI_ScalarBarBaseDlg(theModule), - myIsAnimation(false), - myUpdateScalars(true), - myVisuGUI(theModule) -{ - setWindowTitle(tr("DLG_TITLE")); - setSizeGripEnabled(true); - - QVBoxLayout* TopLayout = new QVBoxLayout (this); - TopLayout->setSpacing(6); - TopLayout->setMargin(11); - - myTabBox = new QTabWidget (this); - - // Scalar Map on Deformed shape pane - QWidget* aBox = new QWidget (this); - QVBoxLayout* aVBLay = new QVBoxLayout( aBox ); - aVBLay->setMargin(11); - QFrame* TopGroup = new QFrame (aBox); - aVBLay->addWidget(TopGroup); - TopGroup->setFrameStyle(QFrame::Box | QFrame::Sunken); - TopGroup->setLineWidth(1); - QGridLayout* TopGroupLayout = new QGridLayout (TopGroup); - TopGroupLayout->setSpacing(6); - TopGroupLayout->setMargin(11); - - // Scale factor - QLabel* ScaleLabel = new QLabel (tr("SCALE_FACTOR"), TopGroup); - TopGroupLayout->addWidget(ScaleLabel, 0, 0); - - SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr(); - int aPrecision = aResourceMgr->integerValue( "VISU", "floating_point_precision", 0 ); - - ScalFact = new QtxDoubleSpinBox (0, 1.0E+38, 0.1, aPrecision*(-1), 32, TopGroup); - ScalFact->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed)); - ScalFact->setValue(0.1); - TopGroupLayout->addWidget(ScalFact, 0, 1); - - // Fields combo box - QLabel* FieldLabel = new QLabel (tr("FIELD_ITEM"), TopGroup); - myFieldsCombo = new QComboBox (TopGroup); - - TopGroupLayout->addWidget(FieldLabel, 1, 0); - TopGroupLayout->addWidget(myFieldsCombo,1,1); - - // TimeStamps combo box - QLabel* TimeStampLabel = new QLabel (tr("TIMESTAMP_ITEM"), TopGroup); - myTimeStampsCombo = new QComboBox (TopGroup); - - TopGroupLayout->addWidget(TimeStampLabel, 2, 0); - TopGroupLayout->addWidget(myTimeStampsCombo,2,1); - TopGroupLayout->setRowStretch(3,5); - - // - myTabBox->addTab(aBox, tr("DEFORMED_SHAPE_AND_SCALAR_MAP_TAB")); - - // Scalar bar pane - myInputPane = new VisuGUI_InputPane(VISU::TDEFORMEDSHAPEANDSCALARMAP, theModule, this); - - myTabBox->addTab(GetScalarPane(), tr("SCALAR_BAR_TAB")); - myTabBox->addTab(myInputPane, tr("INPUT_TAB")); - - // Buttons - QGroupBox* GroupButtons = new QGroupBox (this); - QHBoxLayout* GroupButtonsLayout = new QHBoxLayout(GroupButtons); - GroupButtonsLayout->setSpacing(6); - GroupButtonsLayout->setMargin(11); - - QPushButton* buttonOk = new QPushButton (tr("&OK"), GroupButtons); - buttonOk->setAutoDefault(true); - buttonOk->setDefault(true); - QPushButton* buttonCancel = new QPushButton (tr("&Cancel") , GroupButtons); - buttonCancel->setAutoDefault(true); - QPushButton* buttonHelp = new QPushButton (tr("&Help") , GroupButtons); - buttonHelp->setAutoDefault(true); - - GroupButtonsLayout->addWidget(buttonOk); - GroupButtonsLayout->addSpacing(10); - GroupButtonsLayout->addStretch(); - GroupButtonsLayout->addWidget(buttonCancel); - GroupButtonsLayout->addWidget(buttonHelp); - - // Add Tab box and Buttons to the top layout - TopLayout->addWidget(myTabBox); - TopLayout->addWidget(GroupButtons); - - // signals and slots connections - connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept())); - connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject())); - connect(buttonHelp, SIGNAL(clicked()), this, SLOT(onHelp())); - connect(myFieldsCombo, SIGNAL(activated(int)), this, SLOT(onFieldChanged(int))); - connect(myTimeStampsCombo, SIGNAL(activated(int)), this, SLOT(onTimeStampChanged(int))); -} - -VisuGUI_DeformedShapeAndScalarMapDlg::~VisuGUI_DeformedShapeAndScalarMapDlg() -{ -} - -void VisuGUI_DeformedShapeAndScalarMapDlg::initFromPrsObject( VISU::ColoredPrs3d_i* thePrs, - bool theInit ) -{ - if( theInit ) - myPrsCopy = VISU::TSameAsFactory().Create(thePrs, VISU::ColoredPrs3d_i::EDoNotPublish); - setFactor(myPrsCopy->GetScale()); - myTimeStampsCombo->setDisabled(myIsAnimation); - - CORBA::String_var aFieldName(myPrsCopy->GetScalarFieldName()); - QString aIteration = GetFloatValueOfTimeStamp(myPrsCopy->GetScalarEntity(), - aFieldName.in(), - myPrsCopy->GetScalarTimeStampNumber()); - if (myEntity2Fields.size() == 0) - { - // find all fields and time stamps on it - _PTR(Study) aActiveStudy = VISU::GetCStudy(VISU::GetAppStudy(myVisuGUI)); - LightApp_SelectionMgr* aSel = VISU::GetSelectionMgr(myVisuGUI); - SALOME_ListIO selected; - aSel->selectedObjects(selected); - if (selected.Extent() > 0) { - Handle(SALOME_InteractiveObject) aIO = selected.First(); - if (aIO->hasEntry()) { - _PTR(SObject) aSObject = aActiveStudy->FindObjectID(aIO->getEntry()); - VISU::VISUType aType = VISU::Storable::SObject2Type( aSObject ); - switch(aType){ - case VISU::TTIMESTAMP: { - aSObject = aSObject->GetFather(); - aSObject = aSObject->GetFather(); - break; - } - case VISU::TFIELD: { - _PTR(SObject) newSObject; - if(aSObject->ReferencedObject(newSObject)) aSObject = newSObject; - aSObject = aSObject->GetFather(); - break; - } - case VISU::TANIMATION: { - _PTR(ChildIterator) aTmpIter = aActiveStudy->NewChildIterator(aSObject); - for (aTmpIter->InitEx(true); aTmpIter->More(); aTmpIter->Next()) { - _PTR(SObject) aTmpChildSObj = aTmpIter->Value(); - _PTR(SObject) newSObject; - if(aTmpChildSObj->ReferencedObject(newSObject)){ - aSObject = newSObject; - aSObject->GetFather(); - break; - } - } - break; - }} - - aSObject = aSObject->GetFather(); - aSObject = aSObject->GetFather(); - - mySelectionObj = aSObject; - CORBA::Object_var anObject = VISU::ClientSObjectToObject(mySelectionObj); - if (CORBA::is_nil(anObject)) { - mySelectionObj = mySelectionObj->GetFather(); - } - } - } - - if (mySelectionObj) { - _PTR(ChildIterator) aIter = aActiveStudy->NewChildIterator(mySelectionObj); - - for (aIter->InitEx(true); aIter->More(); aIter->Next()) { - _PTR(SObject) aChildSObj = aIter->Value(); - VISU::Storable::TRestoringMap aRestoringMap = VISU::Storable::GetStorableMap(aChildSObj); - if (!aRestoringMap.empty()) { - VISU::VISUType aType = VISU::Storable::RestoringMap2Type(aRestoringMap); - if (aType == VISU::TTIMESTAMP) { - QString aMeshName = aRestoringMap["myMeshName"]; - CORBA::String_var aName = myPrsCopy->GetMeshName(); - if (aMeshName != aName.in()) - continue; - QString aFieldName = aRestoringMap["myFieldName"]; - QString aTimeIter = aRestoringMap["myTimeStampId"]; - QString aEntity = aRestoringMap["myEntityId"]; - VISU::Entity anEntity; - switch (aEntity.toInt()) { - case 0: anEntity = VISU::NODE; break; - case 1: anEntity = VISU::EDGE; break; - case 2: anEntity = VISU::FACE; break; - case 3: anEntity = VISU::CELL; break; - } - TFieldName2TimeStamps& aFieldName2TimeStamps = myEntity2Fields[anEntity]; - TTimeStampNumber2Time& aTimeStampNumber2Time = aFieldName2TimeStamps[aFieldName]; - aTimeStampNumber2Time[aTimeIter.toInt()] = - GetFloatValueOfTimeStamp(anEntity, - aFieldName.toLatin1().constData(), - aTimeIter.toInt()); - } - } - } - } - AddAllFieldNames(); - } - int idx = myFieldsCombo->findText(aFieldName.in()); - if (idx >= 0) - myFieldsCombo->setCurrentIndex(idx); - else { - myFieldsCombo->addItem(aFieldName.in()); - myFieldsCombo->setCurrentIndex(myFieldsCombo->count()-1); - } - AddAllTimes(myFieldsCombo->currentText()); - idx = myTimeStampsCombo->findText(aIteration); - if (idx >= 0) - myTimeStampsCombo->setCurrentIndex(idx); - else { - myTimeStampsCombo->addItem(aIteration); - myTimeStampsCombo->setCurrentIndex(myTimeStampsCombo->count()-1); - } - SetScalarField( false ); - - VisuGUI_ScalarBarBaseDlg::initFromPrsObject(myPrsCopy, theInit); - - if( !theInit ) - return; - - myInputPane->initFromPrsObject( myPrsCopy ); - myTabBox->setCurrentIndex( 0 ); -} - -double VisuGUI_DeformedShapeAndScalarMapDlg::getFactor() const -{ - return ScalFact->value(); -} - -void VisuGUI_DeformedShapeAndScalarMapDlg::setFactor(double theFactor) -{ - double step = 0.1; - if (fabs(theFactor) > std::numeric_limits::epsilon()) { - int degree = int(log10(fabs(theFactor))) - 1; - if (fabs(theFactor) < 1) { - // as logarithm value is negative in this case - // and it is truncated to the bigger integer - degree -= 1; - } - step = pow(10., double(degree)); - } - - ScalFact->setSingleStep(step); - ScalFact->setValue(theFactor); -} - -int -VisuGUI_DeformedShapeAndScalarMapDlg -::storeToPrsObject(VISU::ColoredPrs3d_i* thePrs) -{ - if(!myInputPane->check() || !GetScalarPane()->check()) - return 0; - - int anIsOk = myInputPane->storeToPrsObject( myPrsCopy ); - anIsOk &= GetScalarPane()->storeToPrsObject( myPrsCopy ); - - myPrsCopy->SetScale(getFactor()); - - myPrsCopy->SetScalarField(myPrsCopy->GetScalarEntity(), - getCurrentScalarFieldName().toLatin1().constData(), - myTimeStampID[ myTimeStampsCombo->currentIndex() ]); - - if(myUpdateScalars) - SetScalarField( false ); - - VISU::TSameAsFactory().Copy(myPrsCopy, thePrs); - - return anIsOk; -} - -int VisuGUI_DeformedShapeAndScalarMapDlg::getCurrentScalarFieldNamePos(){ - return myFieldsCombo->currentIndex(); -} - -QString VisuGUI_DeformedShapeAndScalarMapDlg::getCurrentScalarFieldName(){ - return myFieldsCombo->currentText(); -} - -int VisuGUI_DeformedShapeAndScalarMapDlg::getCurrentScalarNbIterations(){ - return myTimeStampsCombo->count(); -} - -VISU::Entity -VisuGUI_DeformedShapeAndScalarMapDlg -::getCurrentScalarEntity() -{ - VISU::Entity anEntity = VISU::Entity(-1); - TEntity2Fields::const_iterator anIter = myEntity2Fields.begin(); - for(; anIter != myEntity2Fields.end(); anIter++){ - const TFieldName2TimeStamps& aFieldName2TimeStamps = anIter->second; - TFieldName2TimeStamps::const_iterator aFieldIter = aFieldName2TimeStamps.begin(); - for(; aFieldIter != aFieldName2TimeStamps.end(); aFieldIter++){ - const QString& aFieldName = aFieldIter->first; - if (aFieldName == myFieldsCombo->currentText()) { - anEntity = anIter->first; - break; - } - } - } - return anEntity; -} - -void VisuGUI_DeformedShapeAndScalarMapDlg::SetScalarField( const bool save_scalar_pane ){ - SetScalarField( myTimeStampID[ myTimeStampsCombo->currentIndex() ], "", save_scalar_pane ); -} - -void -VisuGUI_DeformedShapeAndScalarMapDlg -::SetScalarField(int theIter, - QString theFieldName, - const bool save_scalar_pane ) -{ - QApplication::setOverrideCursor(Qt::WaitCursor); - - if( save_scalar_pane ) - GetScalarPane()->storeToPrsObject(myPrsCopy); - - QString aFieldName; - - if(theFieldName.isEmpty()) - aFieldName = myFieldsCombo->currentText(); - else - aFieldName = theFieldName; - - VISU::Entity anEntity = getCurrentScalarEntity(); - - myPrsCopy->SetScalarField(anEntity, - aFieldName.toLatin1().constData(), - theIter); - - if( save_scalar_pane ) - UpdateScalarField(); - - QApplication::restoreOverrideCursor(); -} - -void VisuGUI_DeformedShapeAndScalarMapDlg::accept() -{ - VisuGUI_ScalarBarBaseDlg::accept(); -} - -void VisuGUI_DeformedShapeAndScalarMapDlg::reject() -{ - VisuGUI_ScalarBarBaseDlg::reject(); -} - -QString VisuGUI_DeformedShapeAndScalarMapDlg::GetContextHelpFilePath() -{ - return "scalar_map_on_deformed_shape_page.html"; -} - -void VisuGUI_DeformedShapeAndScalarMapDlg::AddAllFieldNames(){ - TEntity2Fields::const_iterator anIter = myEntity2Fields.begin(); - for(; anIter != myEntity2Fields.end(); anIter++){ - const TFieldName2TimeStamps& aFieldName2TimeStamps = anIter->second; - TFieldName2TimeStamps::const_iterator aFieldIter = aFieldName2TimeStamps.begin(); - for(; aFieldIter != aFieldName2TimeStamps.end(); aFieldIter++){ - const QString& aFieldName = aFieldIter->first; - myFieldsCombo->addItem(aFieldName); - } - } -} - -void VisuGUI_DeformedShapeAndScalarMapDlg::AddAllTimes(const QString& theFieldName){ - TEntity2Fields::const_iterator anIter = myEntity2Fields.begin(); - int currentTimeStampId = (myTimeStampsCombo->count() > 0) ? myTimeStampsCombo->currentIndex() : 0; - for(; anIter != myEntity2Fields.end(); anIter++){ - const TFieldName2TimeStamps& aFieldName2TimeStamps = anIter->second; - TFieldName2TimeStamps::const_iterator aFieldIter = aFieldName2TimeStamps.begin(); - for(; aFieldIter != aFieldName2TimeStamps.end(); aFieldIter++){ - const QString& aFieldName = aFieldIter->first; - if(theFieldName != aFieldName) - continue; - - myTimeStampID.clear(); - myTimeStampsCombo->clear(); - - const TTimeStampNumber2Time& aTimeStampNumber2Time = aFieldIter->second; - TTimeStampNumber2Time::const_iterator aTimeStampIter = aTimeStampNumber2Time.begin(); - for(; aTimeStampIter != aTimeStampNumber2Time.end(); aTimeStampIter++){ - int aTimeStampNumber = aTimeStampIter->first; - myTimeStampID.push_back(aTimeStampNumber); - - QString aTimeStampTime = aTimeStampIter->second; - myTimeStampsCombo->addItem(aTimeStampTime); - } - if(currentTimeStampId >= myTimeStampID.size()) - currentTimeStampId = myTimeStampID.size()-1; - myTimeStampsCombo->setCurrentIndex(currentTimeStampId); - return; - } - } -} - -void VisuGUI_DeformedShapeAndScalarMapDlg::onFieldChanged(int){ - AddAllTimes(myFieldsCombo->currentText()); - SetScalarField(); - UpdateScalarField(); -} - -void VisuGUI_DeformedShapeAndScalarMapDlg::onTimeStampChanged(int){ - SetScalarField(); - UpdateScalarField(); -} - -void VisuGUI_DeformedShapeAndScalarMapDlg::UpdateScalarField(){ - GetScalarPane()->initFromPrsObject(myPrsCopy); -} - -QString -VisuGUI_DeformedShapeAndScalarMapDlg -::GetFloatValueOfTimeStamp(VISU::Entity theEntity, - const std::string& theFieldName, - int theTimeStampNumber) -{ - QString aTime(""); - VISU::TEntity anEntity = VISU::TEntity(theEntity); - VISU::Result_i* theResult = myPrsCopy->GetCResult(); - VISU::Result_i::PInput anInput = theResult->GetInput(); - VISU::PField aField = anInput->GetField(myPrsCopy->GetCMeshName(), - anEntity, - theFieldName); - if(!aField) - return aTime; - - VISU::TValField& aValField = aField->myValField; - VISU::TValField::const_iterator aIter = aValField.find(theTimeStampNumber); - if(aIter != aValField.end()){ - VISU::PValForTime aValForTime = aIter->second; - aTime = VISU_Convertor::GenerateName(aValForTime->myTime).c_str(); - } - return aTime; -} diff --git a/src/VISUGUI/VisuGUI_DeformedShapeAndScalarMapDlg.h b/src/VISUGUI/VisuGUI_DeformedShapeAndScalarMapDlg.h deleted file mode 100644 index c8d53ef3..00000000 --- a/src/VISUGUI/VisuGUI_DeformedShapeAndScalarMapDlg.h +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_DeformedShapeAndScalarMapDlg.h -// Author : Eugeny Nikolaev -// Module : VISU -// -#ifndef VISUGUI_DEFORMEDSHAPEANDSCALARMAPDLS_H -#define VISUGUI_DEFORMEDSHAPEANDSCALARMAPDLS_H - -#include "VisuGUI_Prs3dDlg.h" - -#include "VISUConfig.hh" - -#include - -#include -#include - -class SalomeApp_Module; -class VisuGUI_InputPane; -class QtxDoubleSpinBox; -class QComboBox; -class QTabWidget; - -namespace VISU -{ - class DeformedShapeAndScalarMap_i; -} - -class VisuGUI_DeformedShapeAndScalarMapDlg : public VisuGUI_ScalarBarBaseDlg -{ - Q_OBJECT - -public: - VisuGUI_DeformedShapeAndScalarMapDlg (SalomeApp_Module* theModule); - ~VisuGUI_DeformedShapeAndScalarMapDlg(); - - double getFactor() const; - void setFactor(double theFactor); - - virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs, - bool theInit ); - - virtual int storeToPrsObject(VISU::ColoredPrs3d_i* thePrs); - - int getCurrentScalarFieldNamePos(); - QString getCurrentScalarFieldName(); - int getCurrentScalarNbIterations(); - VISU::Entity getCurrentScalarEntity(); - void SetScalarField(int theIter,QString theFieldName=QString(""), const bool = true ); - -protected: - virtual QString GetContextHelpFilePath(); - -protected slots: - void accept(); - void reject(); - -private slots: - void onFieldChanged(int i=0); - void onTimeStampChanged(int i=0); - -private: - QtxDoubleSpinBox* ScalFact; - QTabWidget* myTabBox; - VisuGUI_ScalarBarPane* myScalarPane; - VisuGUI_InputPane* myInputPane; - QComboBox *myFieldsCombo; - QComboBox *myTimeStampsCombo; - - typedef std::map TTimeStampNumber2Time; // Times map definition (iteration time, real value of time) - typedef std::map TFieldName2TimeStamps; // Field name and enity to Times - typedef std::map TEntity2Fields; // Mesh to fields map - - TEntity2Fields myEntity2Fields; - int myCurrScalarIter; - bool myIsAnimation; - bool myUpdateScalars; - std::vector myTimeStampID; - - _PTR(SObject) mySelectionObj; - SALOME::GenericObjPtr myPrsCopy; - SalomeApp_Module* myVisuGUI; - -protected: - void UpdateScalarField(); - void SetScalarField( const bool = true ); - void AddAllFieldNames(); - void AddAllTimes(const QString& theFieldName); - QString GetFloatValueOfTimeStamp(VISU::Entity theEntity, - const std::string& theFieldName, - int theTimeStampNumber); -}; - -#endif // VISUGUI_DEFORMEDSHAPEDLS_H diff --git a/src/VISUGUI/VisuGUI_FeatureEdgesPanel.cxx b/src/VISUGUI/VisuGUI_FeatureEdgesPanel.cxx deleted file mode 100644 index fc7f1929..00000000 --- a/src/VISUGUI/VisuGUI_FeatureEdgesPanel.cxx +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_FeatureEdgesPanel.cxx -// Author : Oleg Uvarov -// Module : VISU -// -#include "VisuGUI_FeatureEdgesPanel.h" - -#include "VisuGUI.h" -#include "VisuGUI_Tools.h" -#include "VisuGUI_ViewTools.h" - -#include -#include -#include -#include -#include -#include - -#include - -#include -#include -#include - -#include - -#include - -VisuGUI_FeatureEdgesPanel::VisuGUI_FeatureEdgesPanel( const VisuGUI* theModule, QWidget* theParent ) : - VisuGUI_Panel( tr( "WINDOW_TITLE" ), theModule, theParent, ApplyBtn | CloseBtn | HelpBtn ), - myActor( 0 ) -{ - QVBoxLayout* aTopLayout = new QVBoxLayout( mainFrame() ); - myGrp = new QGroupBox( tr( "FEATURE_EDGES_PROPERTIES" ), mainFrame() ); - - QGridLayout* aLayout = new QGridLayout( myGrp ); - aLayout->setAlignment( Qt::AlignTop ); - - QLabel* anAngleLbl = new QLabel( tr( "FEATURE_EDGES_ANGLE" ), myGrp ); - myAngleSpinBox = new QtxDoubleSpinBox( 0.0, 90.0, 10.0, myGrp ); - - myFeatureEdgesCB = new QCheckBox( tr( "SHOW_FEATURE_EDGES" ), myGrp ); - myBoundaryEdgesCB = new QCheckBox( tr( "SHOW_BOUNDARY_EDGES" ), myGrp ); - myManifoldEdgesCB = new QCheckBox( tr( "SHOW_MANIFOLD_EDGES" ), myGrp ); - myNonManifoldEdgesCB = new QCheckBox( tr( "SHOW_NON_MANIFOLD_EDGES" ), myGrp ); - - //myColoringCB = new QCheckBox( tr( "FEATURE_EDGES_COLORING" ), myGrp ); - - aLayout->addWidget( anAngleLbl, 0, 0 ); - aLayout->addWidget( myAngleSpinBox, 0, 1 ); - aLayout->addWidget( myFeatureEdgesCB, 1, 0, 1, 2 ); - aLayout->addWidget( myBoundaryEdgesCB, 2, 0, 1, 2 ); - aLayout->addWidget( myManifoldEdgesCB, 3, 0, 1, 2 ); - aLayout->addWidget( myNonManifoldEdgesCB, 4, 0, 1, 2 ); - //aLayout->addWidget( myColoringCB, 5, 0, 1, 2 ); - - aTopLayout->addWidget( myGrp ); - - SalomeApp_Application* anApp = - dynamic_cast( SUIT_Session::session()->activeApplication() ); - LightApp_SelectionMgr* aSelectionMgr = anApp->selectionMgr(); - connect( aSelectionMgr, SIGNAL( currentSelectionChanged() ), this, SLOT( onSelectionEvent() ) ); -} - -VisuGUI_FeatureEdgesPanel::~VisuGUI_FeatureEdgesPanel() -{ -} - -void VisuGUI_FeatureEdgesPanel::showEvent( QShowEvent* theEvent ) -{ - onSelectionEvent(); - - VisuGUI_Panel::showEvent(theEvent); -} - -VISU_Actor* VisuGUI_FeatureEdgesPanel::getSelectedActor() const -{ - SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow( myModule ); - if( !aViewWindow ) - return 0; - - _PTR(SObject) aSObject; - VISU::Prs3d_i* aPrs3d = 0; - Handle(SALOME_InteractiveObject) anIO; - - VISU::TSelectionInfo aSelectionInfo = VISU::GetSelectedObjects( myModule ); - if( aSelectionInfo.size() != 1 ) - return 0; - - VISU::TSelectionItem aSelectionItem = aSelectionInfo.front(); - VISU::TObjectInfo anObjectInfo = aSelectionItem.myObjectInfo; - aPrs3d = GetPrs3dFromBase( anObjectInfo.myBase ); - if( !aPrs3d ) - return 0; - - anIO = aSelectionItem.myIO; - aSObject = anObjectInfo.mySObject; - - VISU_Actor* anActor = - VISU::FindActor( VISU::GetAppStudy( myModule ), aViewWindow, aSObject->GetID().c_str() ); - - return anActor; -} - -void VisuGUI_FeatureEdgesPanel::onSelectionEvent() -{ - myActor = getSelectedActor(); - bool anIsSelected = myActor && myActor->IsFeatureEdgesAllowed(); - - myGrp->setEnabled( anIsSelected ); - myApply->setEnabled( anIsSelected ); - - if( !anIsSelected ) - return; - - if( !myActor->IsFeatureEdgesAllowed() ) - return; - - float anAngle = myActor->GetFeatureEdgesAngle(); - - bool anIsFeatureEdges = false, - anIsBoundaryEdges = false, - anIsManifoldEdges = false, - anIsNonManifoldEdges = false; - myActor->GetFeatureEdgesFlags( anIsFeatureEdges, - anIsBoundaryEdges, - anIsManifoldEdges, - anIsNonManifoldEdges ); - - float aColoring = myActor->GetFeatureEdgesColoring(); - - myAngleSpinBox->setValue( anAngle ); - myFeatureEdgesCB->setChecked( anIsFeatureEdges ); - myBoundaryEdgesCB->setChecked( anIsBoundaryEdges ); - myManifoldEdgesCB->setChecked( anIsManifoldEdges ); - myNonManifoldEdgesCB->setChecked( anIsNonManifoldEdges ); - //myColoringCB->setChecked( aColoring ); -} - -void VisuGUI_FeatureEdgesPanel::onApply() -{ - if( myActor ) - { - myActor->SetFeatureEdgesAngle( myAngleSpinBox->value() ); - myActor->SetFeatureEdgesFlags( myFeatureEdgesCB->isChecked(), - myBoundaryEdgesCB->isChecked(), - myManifoldEdgesCB->isChecked(), - myNonManifoldEdgesCB->isChecked() ); - //myActor->SetFeatureEdgesColoring( myColoringCB->isChecked() ); - myActor->Update(); - } - - VisuGUI_Panel::onApply(); -} - -void VisuGUI_FeatureEdgesPanel::onClose() -{ - close(); - VisuGUI_Panel::onClose(); -} - -void VisuGUI_FeatureEdgesPanel::onHelp() -{ - QString aHelpFileName = "feature_edges_page.html"; - LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication()); - if (app) - app->onHelpContextModule(myModule ? app->moduleName(myModule->moduleName()) : QString(""), aHelpFileName); - else { - QString platform; -#ifdef WIN32 - platform = "winapplication"; -#else - platform = "application"; -#endif - SUIT_MessageBox::warning(0, QObject::tr("WRN_WARNING"), - QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE"). - arg(app->resourceMgr()->stringValue("ExternalBrowser", platform)).arg(aHelpFileName) ); - } - - VisuGUI_Panel::onHelp(); -} - -void VisuGUI_FeatureEdgesPanel::keyPressEvent( QKeyEvent* e ) -{ - VisuGUI_Panel::keyPressEvent( e ); - if ( e->isAccepted() ) - return; - - if ( e->key() == Qt::Key_F1 ) - { - e->accept(); - onHelp(); - } -} diff --git a/src/VISUGUI/VisuGUI_FeatureEdgesPanel.h b/src/VISUGUI/VisuGUI_FeatureEdgesPanel.h deleted file mode 100644 index aefaebf1..00000000 --- a/src/VISUGUI/VisuGUI_FeatureEdgesPanel.h +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_FeatureEdgesPanel.h -// Author : Oleg Uvarov -// Module : VISU -// -#ifndef VISUGUI_FEATUREEDGESPANEL_H -#define VISUGUI_FEATUREEDGESPANEL_H - -#include - -class QCheckBox; -class QGroupBox; - -class QtxDoubleSpinBox; - -class VISU_Actor; - -class VisuGUI_FeatureEdgesPanel: public VisuGUI_Panel -{ - Q_OBJECT - -public: - VisuGUI_FeatureEdgesPanel( const VisuGUI* theModule, QWidget* theParent = 0 ); - virtual ~VisuGUI_FeatureEdgesPanel (); - -protected: - virtual void keyPressEvent( QKeyEvent* theEvent ); - virtual void showEvent( QShowEvent* theEvent ); - -private slots: - virtual void onApply(); - virtual void onClose(); - virtual void onHelp(); - - void onSelectionEvent(); - -private: - VISU_Actor* getSelectedActor() const; - -private: - QGroupBox* myGrp; - - QtxDoubleSpinBox* myAngleSpinBox; - QCheckBox* myFeatureEdgesCB; - QCheckBox* myBoundaryEdgesCB; - QCheckBox* myManifoldEdgesCB; - QCheckBox* myNonManifoldEdgesCB; - QCheckBox* myColoringCB; - - VISU_Actor* myActor; -}; - -#endif diff --git a/src/VISUGUI/VisuGUI_FileInfoDlg.cxx b/src/VISUGUI/VisuGUI_FileInfoDlg.cxx deleted file mode 100644 index 8328550f..00000000 --- a/src/VISUGUI/VisuGUI_FileInfoDlg.cxx +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_FileInfoDlg.cxx -// Author : Alexandre SOLOVYOV, Open CASCADE S.A.S. ( alexander.solovyov@opencascade.com) -// Module : VISU -// -#include - -#include - -#include -#include -#include - -VisuGUI_FileInfoDlg::VisuGUI_FileInfoDlg( QWidget* parent, SALOME_MED::MedFileInfo* inf ) - : QtxDialog( parent, true, true, QtxDialog::OK ) -{ - setWindowTitle( tr( "CAPTION" ) ); - setSizeGripEnabled( true ); - - QLineEdit* fname = new QLineEdit( mainFrame() ); - fname->setReadOnly( true ); - QLineEdit* fsize = new QLineEdit( mainFrame() ); - fsize->setReadOnly( true ); - QLineEdit* medversion = new QLineEdit( mainFrame() ); - medversion->setReadOnly( true ); - fname->setMinimumWidth( 300 ); - - QGridLayout* lay = new QGridLayout( mainFrame() ); - lay->setMargin( 5 ); lay->setSpacing( 5 ); - lay->addWidget( new QLabel( tr( "FILE_NAME" ), mainFrame() ), 0, 0 ); - lay->addWidget( fname, 0, 1 ); - lay->addWidget( new QLabel( tr( "FILE_SIZE" ), mainFrame() ), 1, 0 ); - lay->addWidget( fsize, 1, 1 ); - lay->addWidget( new QLabel( tr( "MED_VERSION" ), mainFrame() ), 2, 0 ); - lay->addWidget( medversion, 2, 1 ); - - fname->setText( (char*)inf->fileName ); - fname->home( false ); - fsize->setText( QString::number( inf->fileSize ) ); - - QString version; - if( inf->major>=0 ) - { - version = QString::number( inf->major ); - if( inf->minor>=0 ) - { - version += "." + QString::number( inf->minor ); - if( inf->release>=0 ) - version += "." + QString::number( inf->release ); - } - } - medversion->setText( version ); -} - -VisuGUI_FileInfoDlg::~VisuGUI_FileInfoDlg() -{ -} diff --git a/src/VISUGUI/VisuGUI_FileInfoDlg.h b/src/VISUGUI/VisuGUI_FileInfoDlg.h deleted file mode 100644 index 09899737..00000000 --- a/src/VISUGUI/VisuGUI_FileInfoDlg.h +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_FileInfoDlg.h -// Author : Alexandre SOLOVYOV, Open CASCADE S.A.S. ( alexander.solovyov@opencascade.com) -// -#ifndef VISUGUI_FILEINFODLG_H -#define VISUGUI_FILEINFODLG_H - -#include -#include - -class VisuGUI_FileInfoDlg : public QtxDialog -{ - Q_OBJECT - -public: - VisuGUI_FileInfoDlg( QWidget*, SALOME_MED::MedFileInfo* ); - virtual ~VisuGUI_FileInfoDlg(); -}; - -#endif // VISUGUI_FILEINFODLG_H diff --git a/src/VISUGUI/VisuGUI_FilterScalarsDlg.cxx b/src/VISUGUI/VisuGUI_FilterScalarsDlg.cxx deleted file mode 100644 index be17c592..00000000 --- a/src/VISUGUI/VisuGUI_FilterScalarsDlg.cxx +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -#include "VisuGUI_FilterScalarsDlg.h" -#include "VISU_ColoredPrs3d_i.hh" -#include "VISU_ColoredPrs3dHolder_i.hh" - -#include "VisuGUI.h" -#include "VisuGUI_Tools.h" - -#include -#include - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - - -VisuGUI_FilterScalarsDlg::VisuGUI_FilterScalarsDlg( VisuGUI* theModule ) - : QDialog(VISU::GetDesktop(theModule), Qt::WindowTitleHint | Qt::WindowSystemMenuHint ), - myVisuGUI( theModule ) -{ - setModal( false ); - setWindowTitle(tr("TITLE")); - setSizeGripEnabled(true); - setAttribute( Qt::WA_DeleteOnClose, true ); - - QVBoxLayout* aMainLayout = new QVBoxLayout(this); - - myRangeBox = new QGroupBox(this); - myRangeBox->setTitle(tr("BOXTITLE")); - myRangeBox->setCheckable(true); - aMainLayout->addWidget(myRangeBox); - - QHBoxLayout* aBoxLayout = new QHBoxLayout(myRangeBox); - aBoxLayout->addWidget(new QLabel(tr("MINLBL"), myRangeBox)); - myMinEdit = new QLineEdit( myRangeBox ); - myMinEdit->setValidator( new QDoubleValidator(myMinEdit) ); - aBoxLayout->addWidget(myMinEdit); - - aBoxLayout->addWidget(new QLabel(tr("MAXLBL"), myRangeBox)); - myMaxEdit = new QLineEdit( myRangeBox ); - myMaxEdit->setValidator( new QDoubleValidator(myMaxEdit) ); - aBoxLayout->addWidget(myMaxEdit); - - QGroupBox* aGroupButtons = new QGroupBox(this); - QHBoxLayout* aButtonsLayout = new QHBoxLayout(aGroupButtons); - - QPushButton* aBtnOk = new QPushButton(tr("BUT_OK"), aGroupButtons); - aBtnOk->setAutoDefault(true); - aBtnOk->setDefault(true); - aButtonsLayout->addWidget(aBtnOk); - - QPushButton* aBtnCancel = new QPushButton(tr("BUT_CANCEL"), aGroupButtons); - aBtnCancel->setAutoDefault(true); - aButtonsLayout->addWidget(aBtnCancel); - - aButtonsLayout->addStretch(); - - QPushButton* aBtnHelp = new QPushButton(tr("BUT_HELP"), aGroupButtons); - aBtnHelp->setAutoDefault(true); - aButtonsLayout->addWidget(aBtnHelp); - - aMainLayout->addWidget(aGroupButtons); - - connect(aBtnOk, SIGNAL(clicked()), this, SLOT(accept())); - connect(aBtnCancel, SIGNAL(clicked()), this, SLOT(reject())); - connect(aBtnHelp, SIGNAL(clicked()), this, SLOT(onHelp())); - - SalomeApp_Application* anApp = theModule->getApp(); - LightApp_SelectionMgr* aSelectionMgr = anApp->selectionMgr(); - connect( aSelectionMgr, SIGNAL( currentSelectionChanged() ), this, SLOT( onSelectionEvent() ) ); - - onSelectionEvent(); -} - - -VisuGUI_FilterScalarsDlg::~VisuGUI_FilterScalarsDlg() -{} - -void VisuGUI_FilterScalarsDlg::onSelectionEvent() -{ - typedef SALOME::GenericObjPtr< VISU::ColoredPrs3d_i > TColoredPrs3dPtr; - VISU::TSelectionInfo aSelectionInfo = VISU::GetSelectedObjects( myVisuGUI ); - myColoredPrs3d = TColoredPrs3dPtr(); - if ( !aSelectionInfo.empty() ) { - VISU::TSelectionItem aSelectionItem = aSelectionInfo.front(); - if ( VISU::Base_i* aBase = aSelectionItem.myObjectInfo.myBase ) { - if ( VISU::ColoredPrs3d_i* aColoredPrs3d = dynamic_cast< VISU::ColoredPrs3d_i* >( aBase ) ) { - myColoredPrs3d = aColoredPrs3d; - } else if (VISU::ColoredPrs3dHolder_i* aHolder = - dynamic_cast< VISU::ColoredPrs3dHolder_i* >( aBase )) { - myColoredPrs3d = aHolder->GetPrs3dDevice(); - } - if (myColoredPrs3d.get() != NULL) { - myRangeBox->setChecked( myColoredPrs3d->IsScalarFilterUsed() ); - myMinEdit->setText( QString::number( myColoredPrs3d->GetScalarFilterMin() ) ); - myMaxEdit->setText( QString::number( myColoredPrs3d->GetScalarFilterMax() ) ); - setEnabled( true ); - return; - } - } - } - setEnabled( false ); - return; -} - -void VisuGUI_FilterScalarsDlg::accept() -{ - myColoredPrs3d->SetScalarFilterRange( myMinEdit->text().toDouble(), myMaxEdit->text().toDouble() ); - myColoredPrs3d->UseScalarFiltering( myRangeBox->isChecked() ); - myColoredPrs3d->UpdateActors(); - QDialog::accept(); -} - -void VisuGUI_FilterScalarsDlg::reject() -{ - QDialog::reject(); -} - -void VisuGUI_FilterScalarsDlg::onHelp() -{ - QString aHelpFileName = "filterbyscalars_page.html"; - LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication()); - if (app) - app->onHelpContextModule(myVisuGUI ? app->moduleName(myVisuGUI->moduleName()) : QString(""), aHelpFileName); - else { - QString platform; -#ifdef WIN32 - platform = "winapplication"; -#else - platform = "application"; -#endif - SUIT_MessageBox::warning(0, tr("WRN_WARNING"), - tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE"). - arg(app->resourceMgr()->stringValue("ExternalBrowser", platform)).arg(aHelpFileName), - tr("BUT_OK")); - } -} diff --git a/src/VISUGUI/VisuGUI_FilterScalarsDlg.h b/src/VISUGUI/VisuGUI_FilterScalarsDlg.h deleted file mode 100644 index 2e262036..00000000 --- a/src/VISUGUI/VisuGUI_FilterScalarsDlg.h +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_FilterScalarsDlg.h -// Author : vsv -// Module : VISU -// -#ifndef VISUGUI_FILTERSCALARSDLG_H -#define VISUGUI_FILTERSCALARSDLG_H - -#include - -#include "SALOME_GenericObjPointer.hh" - -class VisuGUI; - -class QLineEdit; -class QGroupBox; - -namespace VISU -{ - class ColoredPrs3d_i; -} - - -class VisuGUI_FilterScalarsDlg: public QDialog -{ - Q_OBJECT; - - public: - VisuGUI_FilterScalarsDlg( VisuGUI* theModule ); - ~VisuGUI_FilterScalarsDlg(); - -protected slots: - - virtual void accept(); - virtual void reject(); - -private slots: - - void onHelp(); - void onSelectionEvent(); - -private: - VisuGUI* myVisuGUI; - SALOME::GenericObjPtr< VISU::ColoredPrs3d_i > myColoredPrs3d; - - QGroupBox* myRangeBox; - QLineEdit* myMinEdit; - QLineEdit* myMaxEdit; -}; - - -#endif diff --git a/src/VISUGUI/VisuGUI_FindPane.cxx b/src/VISUGUI/VisuGUI_FindPane.cxx deleted file mode 100644 index e6c279f4..00000000 --- a/src/VISUGUI/VisuGUI_FindPane.cxx +++ /dev/null @@ -1,368 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_FindPane.cxx -// Author : Oleg Uvarov -// Module : VISU -// -#include "VisuGUI_FindPane.h" -#include "VisuGUI_Tools.h" - -#include "VISU_Actor.h" -#include "VISU_Event.h" -#include "VISU_GaussPtsAct.h" - -#include "VISU_IDMapper.hxx" -#include "VISU_GaussPointsPL.hxx" -#include "VISU_ConvertorUtils.hxx" - -#include "SUIT_MessageBox.h" -#include "SUIT_ResourceMgr.h" - -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -#define PAGE_SIZE 10 - -VisuGUI_FindPane::VisuGUI_FindPane( QWidget* theParent ) : - QGroupBox( theParent ), - myCurrentPage( 0 ), - mySelectionMode( -1 ), - myActor( 0 ) -{ - setTitle( tr( "FIND_TITLE" ) ); - - QGridLayout* aTopLayout = new QGridLayout( this ); - - QLabel* aConditionLabel = new QLabel( tr( "CONDITION" ), this ); - - myConditionBox = new QComboBox( this ); - myConditionBox->addItems( QStringList() - << tr( "MINIMUM" ) - << tr( "MAXIMUM" ) - << "=" - << "<=" - << ">=" - << tr( "BETWEEN" ) ); - - connect( myConditionBox, SIGNAL( currentIndexChanged( int ) ), this, SLOT( onConditionChanged( int ) ) ); - - QDoubleValidator* aDoubleValidator = new QDoubleValidator( this ); - - myLeftValue = new QLineEdit( this ); - myLeftValue->setValidator( aDoubleValidator ); - - myDashLabel = new QLabel( "-", this ); - - myRightValue = new QLineEdit( this ); - myRightValue->setValidator( aDoubleValidator ); - - QToolButton* anApplyBtn = new QToolButton( this ); - anApplyBtn->setIcon( VISU::GetResourceMgr()->loadPixmap( "VISU", tr( "ICON_APPLY" ) ) ); - connect( anApplyBtn, SIGNAL( clicked() ), this, SLOT( onApply() ) ); - - - QWidget* anIdsWidget = new QWidget( this ); - QGridLayout* anIdsLayout = new QGridLayout( anIdsWidget ); - anIdsLayout->setMargin( 0 ); - - myIdsListWidget = new QListWidget( anIdsWidget ); - myIdsListWidget->setFlow( QListView::LeftToRight ); - myIdsListWidget->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOn ); - myIdsListWidget->setFixedHeight( 45 ); - - connect( myIdsListWidget, SIGNAL( itemSelectionChanged() ), this, SLOT( onIdChanged() ) ); - - myPageLabel = new QLabel( anIdsWidget ); - myPageLabel->setAlignment( Qt::AlignHCenter ); - - myPrevBtn = new QToolButton( anIdsWidget ); - myPrevBtn->setIcon( VISU::GetResourceMgr()->loadPixmap( "VISU", tr( "ICON_SLIDER_PREVIOUS" ) ) ); - connect( myPrevBtn, SIGNAL( clicked() ), this, SLOT( onPrevPage() ) ); - - myNextBtn = new QToolButton( anIdsWidget ); - myNextBtn->setIcon( VISU::GetResourceMgr()->loadPixmap( "VISU", tr( "ICON_SLIDER_NEXT" ) ) ); - connect( myNextBtn, SIGNAL( clicked() ), this, SLOT( onNextPage() ) ); - - anIdsLayout->addWidget( myIdsListWidget, 0, 0, 2, 1 ); - anIdsLayout->addWidget( myPageLabel, 0, 1, 1, 2 ); - anIdsLayout->addWidget( myPrevBtn, 1, 1 ); - anIdsLayout->addWidget( myNextBtn, 1, 2 ); - - - aTopLayout->addWidget( aConditionLabel, 0, 0, 1, 5 ); - aTopLayout->addWidget( myConditionBox, 1, 0 ); - aTopLayout->addWidget( myLeftValue, 1, 1 ); - aTopLayout->addWidget( myDashLabel, 1, 2 ); - aTopLayout->addWidget( myRightValue, 1, 3 ); - aTopLayout->addWidget( anApplyBtn, 1, 4 ); - aTopLayout->addWidget( anIdsWidget, 2, 0, 1, 5 ); - - onConditionChanged( 0 ); - - setSelectionMode( ActorSelection ); -} - -VisuGUI_FindPane::~VisuGUI_FindPane() -{ -} - -void VisuGUI_FindPane::setSelectionMode( const Selection_Mode theSelectionMode ) -{ - if( mySelectionMode != theSelectionMode ) - clearIds(); - - mySelectionMode = theSelectionMode; - setEnabled( mySelectionMode != ActorSelection ); -} - - -void VisuGUI_FindPane::setActor( VISU_Actor* theActor ) -{ - if( myActor != theActor ) - clearIds(); - - myActor = theActor; -} - -void VisuGUI_FindPane::onConditionChanged( int theId ) -{ - myLeftValue->setEnabled( theId >= 2 ); - myDashLabel->setEnabled( theId == 5 ); - myRightValue->setEnabled( theId == 5 ); -} - -void VisuGUI_FindPane::onApply() -{ - if( !isValid() ) - { - SUIT_MessageBox::warning( this, tr( "WRN_VISU" ), tr( "INCORRECT_VALUES" ) ); - return; - } - - myIdsListWidget->clear(); - - if( !myActor ) - return; - - vtkDataSet* aDataSet = myActor->GetInput(); - - vtkDataArray* aScalars = 0; - if( mySelectionMode == NodeSelection ) - aScalars = aDataSet->GetPointData()->GetScalars(); - else if( mySelectionMode == CellSelection ) - aScalars = aDataSet->GetCellData()->GetScalars(); - else if( mySelectionMode == GaussPointSelection ) - { - if( VISU_GaussPtsAct* aGaussPtsAct = dynamic_cast( myActor ) ) - aScalars = aGaussPtsAct->GetInput()->GetPointData()->GetScalars(); - } - - - if( !aScalars ) - return; - - int aCondition = myConditionBox->currentIndex(); - double aLeftValue = myLeftValue->text().toDouble(); - double aRightValue = myRightValue->text().toDouble(); - - myIdsList.clear(); - - double eps = 1.0 / VTK_LARGE_FLOAT; - - double anExtremum = 0; - if( aCondition == 0 ) - anExtremum = VTK_LARGE_FLOAT; - else if( aCondition == 1 ) - anExtremum = -VTK_LARGE_FLOAT; - - for( int aVTKId = 0, aNbVal = aScalars->GetNumberOfTuples(); aVTKId < aNbVal; aVTKId++ ) - { - double aValue = *aScalars->GetTuple( aVTKId ); - - TFindId anId( -1, -1 ); - if( mySelectionMode == NodeSelection ) - anId.first = VISU::GetNodeObjID( aDataSet, aVTKId ); - else if( mySelectionMode == CellSelection ) - anId.first = VISU::GetElemObjID( aDataSet, aVTKId ); - else if( mySelectionMode == GaussPointSelection ) - { - if( VISU_GaussPtsAct* aGaussPtsAct = dynamic_cast( myActor ) ) - { - VISU::TGaussPointID aGaussPointID = aGaussPtsAct->GetGaussPointsPL()->GetObjID( aVTKId ); - anId.first = aGaussPointID.first; - anId.second = aGaussPointID.second; - } - } - //printf( "(%d) <%d - %d> %f\n", aVTKId, anId.first, anId.second, aValue ); - - if( anId.first < 0 || - anId.second < 0 && mySelectionMode == GaussPointSelection ) - continue; - - bool ok = false; - switch( aCondition ) - { - case 0: // Minimum - ok = ( aValue - anExtremum ) < eps; - break; - case 1: // Maximum - ok = ( aValue - anExtremum ) > -eps; - break; - case 2: // = - ok = fabs( aValue - aLeftValue ) < eps; - break; - case 3: // <= - ok = ( aValue - aLeftValue ) < eps; - break; - case 4: // >= - ok = ( aValue - aLeftValue ) > -eps; - break; - case 5: // Between - ok = ( aValue - aLeftValue ) > -eps && ( aValue - aRightValue ) < eps; - break; - default: - ok = true; - break; - } - - if( ok ) - { - if( aCondition <= 1 && fabs( aValue - anExtremum ) > eps ) - { - anExtremum = aValue; - myIdsList.clear(); - } - if( !myIdsList.contains( anId ) ) - myIdsList.append( anId ); - } - } - - qSort( myIdsList ); - - myCurrentPage = 0; - displayIds(); -} - -void VisuGUI_FindPane::onIdChanged() -{ - int aFirstId = -1, aSecondId = -1; - - QList aSelectedItems = myIdsListWidget->selectedItems(); - if( aSelectedItems.size() == 1 ) - { - QString aStr = aSelectedItems.first()->text(); - - bool ok = false; - aFirstId = aStr.toInt( &ok ); - if( !ok ) // try to parse the string as a pair of ids - "[aFirstId aSecondId]" - { - aStr.remove( '[' ); - aStr.remove( ']' ); - aFirstId = aStr.section( ' ', 0, 0 ).toInt( &ok ); - if( !ok ) - aFirstId = -1; - else - { - ok = false; - aSecondId = aStr.section( ' ', 1, 1 ).toInt( &ok ); - if( !ok ) - aSecondId = -1; - } - } - } - - emit idChanged( aFirstId, aSecondId ); -} - -void VisuGUI_FindPane::onPrevPage() -{ - myCurrentPage--; - displayIds(); -} - -void VisuGUI_FindPane::onNextPage() -{ - myCurrentPage++; - displayIds(); -} - -bool VisuGUI_FindPane::isValid() const -{ - bool ok = false;; - double aLeftValue = myLeftValue->text().toDouble( &ok ); - if( myLeftValue->isEnabled() && !ok ) - return false; - - ok = false; - double aRightValue = myRightValue->text().toDouble( &ok ); - if( myRightValue->isEnabled() && ( !ok || aRightValue < aLeftValue ) ) - return false; - - return true; -} - -void VisuGUI_FindPane::clearIds() -{ - myIdsList.clear(); - myCurrentPage = 0; - - displayIds(); -} - -void VisuGUI_FindPane::displayIds() -{ - myIdsListWidget->clear(); - - int aSize = myIdsList.size(); - - myPrevBtn->setEnabled( myCurrentPage != 0 ); - myNextBtn->setEnabled( ( myCurrentPage + 1 ) * PAGE_SIZE < aSize ); - myPageLabel->setText( QString( "Page %1/%2" ) - .arg( aSize > 0 ? myCurrentPage + 1 : 0 ) - .arg( aSize > 0 ? ( aSize - 1 ) / PAGE_SIZE + 1 : 0 ) ); - - int aFirstIndex = myCurrentPage * PAGE_SIZE; - int aLastIndex = aFirstIndex + PAGE_SIZE - 1; - if( aLastIndex >= aSize ) - aLastIndex = aSize - 1; - - for( int anIndex = aFirstIndex; anIndex <= aLastIndex; anIndex++ ) - { - TFindId anId = myIdsList[ anIndex ]; - int aFirstId = anId.first, aSecondId = anId.second; - QString aStr = aSecondId < 0 ? - QString( "%1" ).arg( aFirstId ) : - QString( "[%1 %2]" ).arg( aFirstId ).arg( aSecondId ); - myIdsListWidget->addItem( aStr ); - } -} diff --git a/src/VISUGUI/VisuGUI_FindPane.h b/src/VISUGUI/VisuGUI_FindPane.h deleted file mode 100644 index 40d374ae..00000000 --- a/src/VISUGUI/VisuGUI_FindPane.h +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_FindPane.h -// Author : Oleg Uvarov -// Module : VISU -// -#ifndef VISUGUI_FINDPANE_H -#define VISUGUI_FINDPANE_H - -#include - -#include - -class QComboBox; -class QLabel; -class QLineEdit; -class QListWidget; -class QToolButton; - -class VISU_Actor; - -typedef QPair TFindId; -typedef QList TListFindId; - -//! Find pane. -/*! - * Used for filter and highlight mesh-elements by their scalar values. - */ -class VisuGUI_FindPane : public QGroupBox -{ - Q_OBJECT - -public: - VisuGUI_FindPane( QWidget* theParent ); - ~VisuGUI_FindPane(); - -public: - void setSelectionMode( const Selection_Mode ); - void setActor( VISU_Actor* ); - -protected slots: - void onConditionChanged( int ); - void onApply(); - - void onIdChanged(); - void onPrevPage(); - void onNextPage(); - -private: - bool isValid() const; - void clearIds(); - void displayIds(); - -signals: - void idChanged( int, int ); - -private: - QComboBox* myConditionBox; - QLineEdit* myLeftValue; - QLabel* myDashLabel; - QLineEdit* myRightValue; - - QListWidget* myIdsListWidget; - QLabel* myPageLabel; - QToolButton* myPrevBtn; - QToolButton* myNextBtn; - - int myCurrentPage; - TListFindId myIdsList; - - Selection_Mode mySelectionMode; - VISU_Actor* myActor; -}; - -#endif diff --git a/src/VISUGUI/VisuGUI_GaussPointsSelectionPane.cxx b/src/VISUGUI/VisuGUI_GaussPointsSelectionPane.cxx deleted file mode 100644 index 8c26c8a6..00000000 --- a/src/VISUGUI/VisuGUI_GaussPointsSelectionPane.cxx +++ /dev/null @@ -1,516 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_GaussPointsSelectionPane.cxx -// Author : Oleg Uvarov -// Module : VISU -// -#include "VisuGUI_GaussPointsSelectionPane.h" -#include "VisuGUI_ViewTools.h" - -#include "VISU_GaussPtsAct.h" -#include "VISU_GaussPtsSettings.h" -#include "VISU_GaussPointsPL.hxx" -#include "VISU_PickingSettings.h" - -#include "SUIT_MessageBox.h" -#include "SUIT_ResourceMgr.h" -#include "SUIT_Session.h" - -#include "CAM_Module.h" - -#include "SVTK_Selector.h" -#include "SVTK_ViewWindow.h" -//#include "SVTK_MainWindow.h" -#include "SVTK_RenderWindowInteractor.h" - -#include "VTKViewer_Algorithm.h" -#include "SVTK_Functor.h" - -#include -#include -#include -#include -#include -#include - -#include "utilities.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "LightApp_Application.h" - -namespace -{ - struct SelectorHelper - { - public: - SelectorHelper( const SalomeApp_Module* theModule ): - myModule( theModule ) - {} - - bool - get() - { - bool aResult = false; - myMapIndex.Clear(); - mySelector = NULL; - myPipeLine = NULL; - myActor = NULL; - - SVTK_RenderWindowInteractor* anInteractor = NULL; - if( SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow( myModule ) ) - //if( SVTK_MainWindow* aMainWindow = aViewWindow->getMainWindow() ) - anInteractor = aViewWindow->GetInteractor(); - - if ( !anInteractor ) - return aResult; - - mySelector = anInteractor->GetSelector(); - if ( !mySelector ) - return aResult; - - const SALOME_ListIO& aListIO = mySelector->StoredIObjects(); - if ( aListIO.Extent() != 1 ) - return aResult; - - myIO = aListIO.First(); - if ( mySelector->HasIndex( myIO ) ) - mySelector->GetIndex(myIO, myMapIndex); - - myActor = SVTK::Find(anInteractor->getRenderer()->GetActors(), - SVTK::TIsSameIObject( myIO )); - if ( !myActor ) - return aResult; - - myPipeLine = myActor->GetGaussPointsPL(); - - return true; - } - - const SalomeApp_Module* myModule; - TColStd_IndexedMapOfInteger myMapIndex; - Handle(SALOME_InteractiveObject) myIO; - SVTK_Selector* mySelector; - - VISU_GaussPointsPL* myPipeLine; - VISU_GaussPtsAct* myActor; - }; - - - - class GaussPtsIDValidator: public QIntValidator - { - public: - GaussPtsIDValidator( const SalomeApp_Module* theModule, - QObject * theParent ): - QIntValidator( 0, VTK_LARGE_ID, theParent ), - myHelper(theModule) - {} - - virtual - State - validate ( QString & theInput, int & thePos ) const - { - if ( QIntValidator::validate( theInput, thePos ) == QValidator::Invalid) - return QValidator::Invalid; - - if ( !myHelper.get() ) - return QValidator::Invalid; - - return QValidator::Acceptable; - } - - protected: - mutable SelectorHelper myHelper; - }; - - - class GaussCellIDValidator: public GaussPtsIDValidator - { - public: - GaussCellIDValidator( QLineEdit* theLocalPointLabel, - const SalomeApp_Module* theModule, - QObject * theParent ): - GaussPtsIDValidator( theModule, theParent ), - myLocalPointLineEdit( theLocalPointLabel ) - {} - - virtual - State - validate ( QString & theInput, int & thePos ) const - { - if( theInput.isEmpty() ) - return QValidator::Acceptable; - - if ( GaussPtsIDValidator::validate( theInput, thePos ) == QValidator::Invalid) - return QValidator::Invalid; - - VISU::TCellID aCellID = theInput.toInt(); - VISU::TLocalPntID aLocalPntID = myLocalPointLineEdit->text().toInt(); - VISU::PGaussPtsIDMapper anIDMapper = myHelper.myPipeLine->GetGaussPtsIDMapper(); - if ( anIDMapper->GetVTKID( VISU::TGaussPointID( aCellID, aLocalPntID ) ) < 0 ) - return QValidator::Intermediate; - - return QValidator::Acceptable; - } - - private: - QLineEdit* myLocalPointLineEdit; - }; - - - class GaussLocalPointIDValidator: public GaussPtsIDValidator - { - public: - GaussLocalPointIDValidator( QLineEdit* theParentElementLineEdit, - const SalomeApp_Module* theModule, - QObject * theParent ): - GaussPtsIDValidator( theModule, theParent ), - myParentElementLineEdit( theParentElementLineEdit ) - {} - - virtual - State - validate ( QString & theInput, int & thePos ) const - { - if( theInput.isEmpty() ) - return QValidator::Acceptable; - - if ( GaussPtsIDValidator::validate( theInput, thePos ) == QValidator::Invalid) - return QValidator::Invalid; - - VISU::TLocalPntID aLocalPntID = theInput.toInt(); - VISU::TCellID aCellID = myParentElementLineEdit->text().toInt(); - VISU::PGaussPtsIDMapper anIDMapper = myHelper.myPipeLine->GetGaussPtsIDMapper(); - if ( anIDMapper->GetVTKID( VISU::TGaussPointID( aCellID, aLocalPntID ) ) < 0 ) - return QValidator::Intermediate; - - return QValidator::Acceptable; - } - - private: - QLineEdit* myParentElementLineEdit; - }; -} - - -VisuGUI_ValidatedLineEdit::VisuGUI_ValidatedLineEdit( QWidget* parent ): - QLineEdit( parent ) -{ - connect( this, SIGNAL( textChanged( const QString& ) ), this, SLOT( MarkValidated( const QString& ) ) ); -} - -void VisuGUI_ValidatedLineEdit::MarkValidated( const QString& theText ) -{ - if ( !validator() ) - return; - - int aPos; - QString aText( theText ); - QPalette pal = palette(); - switch ( validator()->validate( aText, aPos ) ) { - case QValidator::Invalid: - case QValidator::Intermediate: - pal.setColor( foregroundRole(), QColor( 255, 0, 0 )); - setPalette( pal ); - break; - case QValidator::Acceptable: - pal.setColor( foregroundRole(), QColor( 0, 0, 0 )); - setPalette( pal ); - break; - } -} - -//--------------------------------------------------------------------------------- - -VisuGUI_GaussPointsSelectionPane::VisuGUI_GaussPointsSelectionPane( const SalomeApp_Module* theModule, - QWidget* theParent ) : - QWidget( theParent ), - myModule( theModule ), - myEventCallbackCommand( vtkCallbackCommand::New() ) -{ - myPriority = 0.0; - myEventCallbackCommand->Delete(); - myEventCallbackCommand->SetClientData(this); - myEventCallbackCommand->SetCallback(VisuGUI_GaussPointsSelectionPane::ProcessEvents); - - QVBoxLayout* TopLayout = new QVBoxLayout( this ); - //TopLayout->setSpacing(6); - - // Display parent mesh element - QGroupBox* PositionGroup = new QGroupBox( tr( "DATA_POSITION" ), this ); - QGridLayout* PositionGroupLayout = new QGridLayout (PositionGroup); - PositionGroupLayout->setAlignment(Qt::AlignTop | Qt::AlignLeft); - //PositionGroupLayout->setSpacing(6); - - QLabel* ParentElementLabel = new QLabel( tr( "PARENT_ELEMENT" ), PositionGroup ); - ParentElementLabel->setToolTip( tr( "PARENT_ELEMENT_TIP" ) ); - myParentElementLineEdit = new VisuGUI_ValidatedLineEdit( PositionGroup ); - connect( myParentElementLineEdit, SIGNAL( textChanged( const QString& ) ), this, SLOT( onSelectionValidate() ) ); - connect( myParentElementLineEdit, SIGNAL( returnPressed() ), this, SLOT( onSelectionApply() ) ); - - QToolButton* ParentElementBtn = new QToolButton( PositionGroup ); - ParentElementBtn->setIcon( VISU::GetResourceMgr()->loadPixmap("VISU", tr( "ICON_OK" ) ) ); - connect(ParentElementBtn, SIGNAL(clicked()), this, SLOT(onSelectionApply())); - - QLabel* LocalPointLabel = new QLabel( tr( "LOCAL_POINT" ), PositionGroup ); - LocalPointLabel->setToolTip( tr( "LOCAL_POINT_TIP" ) ); - myLocalPointLineEdit = new VisuGUI_ValidatedLineEdit( PositionGroup ); - connect( myLocalPointLineEdit, SIGNAL( textChanged( const QString& ) ), this, SLOT( onSelectionValidate() ) ); - connect( myLocalPointLineEdit, SIGNAL( returnPressed() ), this, SLOT( onSelectionApply() ) ); - - QToolButton* LocalPointBtn = new QToolButton( PositionGroup ); - LocalPointBtn->setIcon( VISU::GetResourceMgr()->loadPixmap("VISU", tr( "ICON_OK" ) ) ); - connect(LocalPointBtn, SIGNAL(clicked()), this, SLOT(onSelectionApply())); - - myCellIDValidator = new GaussCellIDValidator( myLocalPointLineEdit, myModule, myParentElementLineEdit ); - myParentElementLineEdit->setValidator( myCellIDValidator ); - - myLocalPointIDValidator = new GaussLocalPointIDValidator( myParentElementLineEdit, myModule, myLocalPointLineEdit ); - myLocalPointLineEdit->setValidator( myLocalPointIDValidator ); - - myDisplayParentMeshCheckBox = new QCheckBox( tr( "DISPLAY_PARENT_MESH" ), PositionGroup ); - - PositionGroupLayout->addWidget( ParentElementLabel, 0, 0, 1, 3 ); - PositionGroupLayout->addWidget( myParentElementLineEdit, 0, 3 ); - PositionGroupLayout->addWidget( ParentElementBtn, 0, 4 ); - PositionGroupLayout->addWidget( LocalPointLabel, 1, 0, 1, 3 ); - PositionGroupLayout->addWidget( myLocalPointLineEdit, 1, 3 ); - PositionGroupLayout->addWidget( LocalPointBtn, 1, 4 ); - PositionGroupLayout->addWidget( myDisplayParentMeshCheckBox, 2, 0, 1, 5 ); - - connect( myDisplayParentMeshCheckBox, SIGNAL( toggled( bool ) ), this, SLOT( onApplyDisplayParentMesh( bool ) ) ); - - TopLayout->addWidget( PositionGroup ); - TopLayout->addStretch(); -} - -VisuGUI_GaussPointsSelectionPane::~VisuGUI_GaussPointsSelectionPane() -{ -} - -void VisuGUI_GaussPointsSelectionPane::update() -{ - VISU_PickingSettings* aPickingSettings = VISU_PickingSettings::Get(); - myDisplayParentMeshCheckBox->setChecked( aPickingSettings->GetDisplayParentMesh() ); -} - -void VisuGUI_GaussPointsSelectionPane::setIds( const int theParentId, const int theLocalId ) -{ - myParentElementLineEdit->setText( theParentId < 0 ? "" : QString::number( theParentId ) ); - myLocalPointLineEdit->setText( theLocalId < 0 ? "" : QString::number( theLocalId ) ); - onSelectionApply(); -} - -void VisuGUI_GaussPointsSelectionPane::setInteractor( SVTK_RenderWindowInteractor* theInteractor ) -{ - //printf( "VisuGUI_GaussPointsSelectionPane::setInteractor( %p )\n", theInteractor ); - vtkGenericRenderWindowInteractor* aDevice = theInteractor->GetDevice(); - if( aDevice->HasObserver(vtkCommand::KeyPressEvent) ) - aDevice->RemoveObservers(vtkCommand::KeyPressEvent); - - //printf( "AddObserver(vtkCommand::KeyPressEvent)\n" ); - aDevice->AddObserver(vtkCommand::KeyPressEvent, - myEventCallbackCommand.GetPointer(), - myPriority); - - if( aDevice->HasObserver(vtkCommand::EndPickEvent) ) - aDevice->RemoveObservers(vtkCommand::EndPickEvent); - - //printf( "AddObserver(vtkCommand::EndPickEvent)\n" ); - aDevice->AddObserver(vtkCommand::EndPickEvent, - myEventCallbackCommand.GetPointer(), - myPriority); -} - -SVTK_RenderWindowInteractor* VisuGUI_GaussPointsSelectionPane::getInteractor() -{ - if( SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow( myModule ) ) - { - //if( SVTK_MainWindow* aMainWindow = aViewWindow->getMainWindow() ) - //{ - SVTK_RenderWindowInteractor* anInteractor = aViewWindow->GetInteractor(); - return anInteractor; - //} - } - return 0; -} - -void VisuGUI_GaussPointsSelectionPane::ProcessEvents(vtkObject* vtkNotUsed(theObject), - unsigned long theEvent, - void* theClientData, - void* vtkNotUsed(theCallData)) -{ - VisuGUI_GaussPointsSelectionPane* self = reinterpret_cast(theClientData); - - switch(theEvent){ - case vtkCommand::KeyPressEvent: - self->KeyPressed(); - break; - case vtkCommand::EndPickEvent: - self->SelectionEvent(); - break; - } -} - -void VisuGUI_GaussPointsSelectionPane::KeyPressed() -{ - //printf( "VisuGUI_GaussPointsSelectionPane::KeyPressed()\n" ); - if( getInteractor()->GetDevice()->GetKeyCode() == 'P' ) - { - VISU_PickingSettings* aPickingSettings = VISU_PickingSettings::Get(); - - bool aDisplayParentMesh = !aPickingSettings->GetDisplayParentMesh(); - myDisplayParentMeshCheckBox->setChecked( aDisplayParentMesh ); - - aPickingSettings->SetDisplayParentMesh( aDisplayParentMesh ); - aPickingSettings->InvokeEvent(VISU::UpdatePickingSettingsEvent,NULL); - } -} - -void VisuGUI_GaussPointsSelectionPane::SelectionEvent() -{ - //printf( "VisuGUI_GaussPointsSelectionPane::SelectionEvent()\n" ); - clearIDControls(); - - SelectorHelper aHelper( myModule ); - if( aHelper.get() ) - { - const TColStd_IndexedMapOfInteger& aMapIndex = aHelper.myMapIndex; - if( aMapIndex.Extent() == 1 ) - { - int anObjId = aHelper.myMapIndex(1); - VISU::TGaussPointID aGaussPointID = aHelper.myPipeLine->GetObjID( anObjId ); - VISU::TCellID aCellID = aGaussPointID.first; - VISU::TLocalPntID aLocalPntID = aGaussPointID.second; - - myParentElementLineEdit->setText( QString::number( aCellID ) ); - myLocalPointLineEdit->setText( QString::number( aLocalPntID ) ); - } - } -} - -void VisuGUI_GaussPointsSelectionPane::onSelectionValidate() -{ - myParentElementLineEdit->MarkValidated( myParentElementLineEdit->text() ); - myLocalPointLineEdit->MarkValidated( myLocalPointLineEdit->text() ); -} - -void VisuGUI_GaussPointsSelectionPane::onSelectionApply() -{ - //printf( "VisuGUI_GaussPointsSelectionPane::onSelectionApply()\n" ); - SelectorHelper aHelper( myModule ); - if( !aHelper.get() ) - return; - - vtkIdType anObjVtkId = -1; - VISU::TCellID aCellId; - VISU::TLocalPntID aLocalPntId; - - bool ok = false; - aCellId = myParentElementLineEdit->text().toInt( &ok ); - if( ok ) - { - ok = false; - aLocalPntId = myLocalPointLineEdit->text().toInt( &ok ); - if( ok ) - { - VISU::PGaussPtsIDMapper anIDMapper = aHelper.myPipeLine->GetGaussPtsIDMapper(); - anObjVtkId = anIDMapper->GetVTKID( VISU::TGaussPointID( aCellId, aLocalPntId ) ); - } - } - - if( anObjVtkId < 0 ) - aHelper.mySelector->ClearIndex(); - else - { - aHelper.myMapIndex.Clear(); - aHelper.myMapIndex.Add( anObjVtkId ); - aHelper.mySelector->AddOrRemoveIndex( aHelper.myIO, aHelper.myMapIndex, false ); - } - aHelper.myActor->Highlight( aHelper.myIO ); - getInteractor()->GetDevice()->CreateTimer( VTKI_TIMER_FIRST ); -} - -void VisuGUI_GaussPointsSelectionPane::clearIDControls() -{ - myParentElementLineEdit->setText( "" ); - myLocalPointLineEdit->setText( "" ); -} - -void VisuGUI_GaussPointsSelectionPane::apply() -{ - onSelectionApply(); -} - -void VisuGUI_GaussPointsSelectionPane::onApplyDisplayParentMesh( bool theValue ) -{ - VISU_PickingSettings* aPickingSettings = VISU_PickingSettings::Get(); - aPickingSettings->SetDisplayParentMesh( theValue ); - aPickingSettings->InvokeEvent( VISU::UpdatePickingSettingsEvent,NULL ); -} - -/* -void VisuGUI_GaussPointsSelectionPane::Help() -{ - QString aHelpFileName = "picking.htm"; - LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication()); - if (app) - app->onHelpContextModule(app->activeModule() ? app->moduleName(app->activeModule()->moduleName()) : QString(""), aHelpFileName); - else { - QString platform; -#ifdef WIN32 - platform = "winapplication"; -#else - platform = "application"; -#endif - SUIT_MessageBox::warning( 0, - QObject::tr("WRN_WARNING"), - QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE"). - arg(app->resourceMgr()->stringValue("ExternalBrowser", platform)).arg(aHelpFileName), - QObject::tr("BUT_OK")); - } -} - -void VisuGUI_GaussPointsSelectionPane::keyPressEvent( QKeyEvent* e ) -{ - QDialog::keyPressEvent( e ); - if ( e->isAccepted() ) - return; - - if ( e->key() == Qt::Key_F1 ) - { - e->accept(); - Help(); - } -} -*/ diff --git a/src/VISUGUI/VisuGUI_GaussPointsSelectionPane.h b/src/VISUGUI/VisuGUI_GaussPointsSelectionPane.h deleted file mode 100644 index 860f907a..00000000 --- a/src/VISUGUI/VisuGUI_GaussPointsSelectionPane.h +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_GaussPointsSelectionPane.h -// Author : Oleg Uvarov -// Module : VISU -// -#ifndef VISUGUI_GAUSSPOINTSSELECTIONPANE_H -#define VISUGUI_GAUSSPOINTSSELECTIONPANE_H - -#include -#include - -#include - -class vtkActorCollection; -class vtkCallbackCommand; -class vtkImageData; - -class QLabel; -class QComboBox; -class QCheckBox; -class QPushButton; - -class QtxAction; - -class VISU_GaussPtsAct; -class VISU_PickingSettings; - -class SalomeApp_Module; -class SVTK_RenderWindowInteractor; -class VisuGUI_ValidatedLineEdit; - -//! Picking Dialog. -/*! - * Uses for set up picking preferenses and apply - * them to all actors in the current renderer. - */ -class VisuGUI_GaussPointsSelectionPane : public QWidget -{ - Q_OBJECT - -public: - VisuGUI_GaussPointsSelectionPane( const SalomeApp_Module* theModule, QWidget* theParent ); - - ~VisuGUI_GaussPointsSelectionPane(); - - //! update dialog contents. - void update(); - - void setIds( const int, const int ); - - void setInteractor( SVTK_RenderWindowInteractor* ); - - void apply(); - //void help(); - -protected: - SVTK_RenderWindowInteractor* getInteractor(); - -protected slots: - void onSelectionValidate(); - void onSelectionApply(); - -private slots: - void onApplyDisplayParentMesh( bool ); - -private: - static void ProcessEvents(vtkObject* theObject, - unsigned long theEvent, - void* theClientData, - void* theCallData); - - void KeyPressed(); - void SelectionEvent(); - //void keyPressEvent( QKeyEvent* e ); - - void clearIDControls(); - -private: - const SalomeApp_Module* myModule; - - QCheckBox* myDisplayParentMeshCheckBox; - - VisuGUI_ValidatedLineEdit* myParentElementLineEdit; - VisuGUI_ValidatedLineEdit* myLocalPointLineEdit; - - QValidator* myCellIDValidator; - QValidator* myLocalPointIDValidator; - - float myPriority; - vtkSmartPointer myEventCallbackCommand; -}; - -class VisuGUI_ValidatedLineEdit : public QLineEdit -{ - Q_OBJECT; -public: - VisuGUI_ValidatedLineEdit( QWidget* parent ); - -public slots: - void MarkValidated( const QString& theText ); -}; - -#endif diff --git a/src/VISUGUI/VisuGUI_InputPanel.cxx b/src/VISUGUI/VisuGUI_InputPanel.cxx deleted file mode 100755 index 3f43a36a..00000000 --- a/src/VISUGUI/VisuGUI_InputPanel.cxx +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_InputPanel.cxx -// Author : Oleg Uvarov -// Module : VISU -// -#include "VisuGUI_InputPanel.h" -#include "VisuGUI_BasePanel.h" - -#include - -/*! - * \brief Constructor creates enmpty docable window with invisible QVBox - to be used as container of child widgets - */ -VisuGUI_InputPanel::VisuGUI_InputPanel( QWidget* theParent ) -: QtxDockWidget( tr( "WINDOW_TITLE" ), theParent ), - myCurrentPanel( 0 ) -{ - myGrp = new QWidget( this ); - new QVBoxLayout( myGrp ); - setWidget( myGrp ); -} - -/*! - * \brief Destructor: VisuGUI_InputPanel - */ -VisuGUI_InputPanel::~VisuGUI_InputPanel() -{ -} - -/*! - \brief Shows thePanel in input panel. If there is visible - panel then it is hidden - \param thePanel widget -*/ -void VisuGUI_InputPanel::showPanel( VisuGUI_BasePanel* thePanel ) -{ - if ( !thePanel ) - return; - - setUpdatesEnabled( false ); - - if ( myCurrentPanel ) - myCurrentPanel->hide(); - - if( isEmpty() ) - show(); - - if ( !myPanels.contains( thePanel ) ) - { - myPanels.insert( thePanel, true ); - thePanel->setParent( myGrp ); - myGrp->layout()->addWidget( thePanel ); - connect( thePanel, SIGNAL( bpClose() ), this, SLOT( onClosePanel() ) ); - } - - thePanel->show(); - myCurrentPanel = thePanel; - myPanels[ thePanel ] = true; - - setUpdatesEnabled( true ); - repaint(); -} - -/*! - \brief Hides thePanel in input panel. - \param thePanel widget -*/ -void VisuGUI_InputPanel::hidePanel( VisuGUI_BasePanel* thePanel ) -{ - if ( !thePanel || myCurrentPanel != thePanel ) - return; - - thePanel->hide(); - myCurrentPanel = 0; - myPanels[ thePanel ] = false; - - if( isEmpty() ) - hide(); -} - -/*! - \brief Hide all children panels -*/ -void VisuGUI_InputPanel::clear() -{ - if ( myCurrentPanel ) - hidePanel( myCurrentPanel ); -} - -/*! - \brief Returns true if no panels are shown -*/ -bool VisuGUI_InputPanel::isEmpty() const -{ - QMap::const_iterator it = myPanels.begin(), itEnd = myPanels.end(); - for( ; it != itEnd; ++it ) - { - if( it.value() ) - return false; - } - return true; -} - -/*! - \brief Returns true if the panel is shown -*/ -bool VisuGUI_InputPanel::isShown( VisuGUI_BasePanel* thePanel ) const -{ - return myPanels[ thePanel ]; -} - -/*! - \brief Close panel which emits signal close(). -*/ -void VisuGUI_InputPanel::onClosePanel() -{ - if( VisuGUI_BasePanel* aPanel = dynamic_cast( sender() ) ) - hidePanel( aPanel ); -} diff --git a/src/VISUGUI/VisuGUI_InputPanel.h b/src/VISUGUI/VisuGUI_InputPanel.h deleted file mode 100755 index c40029c7..00000000 --- a/src/VISUGUI/VisuGUI_InputPanel.h +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_InputPanel.cxx -// Author : Oleg Uvarov -// Module : VISU -// -#ifndef VISUGUI_INPUTPANEL_H -#define VISUGUI_INPUTPANEL_H - -#include - -#include - -class VisuGUI_BasePanel; - -/*! - * class VisuGUI_InputPanel - * Dockable window. Container for GUI controls - */ -class VisuGUI_InputPanel : public QtxDockWidget -{ - Q_OBJECT - -public: - VisuGUI_InputPanel( QWidget* theParent = 0 ); - virtual ~VisuGUI_InputPanel(); - - void showPanel( VisuGUI_BasePanel* thePanel ); - void hidePanel( VisuGUI_BasePanel* thePanel ); - void clear(); - - bool isEmpty() const; - bool isShown( VisuGUI_BasePanel* thePanel ) const; - -protected slots: - void onClosePanel(); - -private: - QWidget* myGrp; - QMap myPanels; - VisuGUI_BasePanel* myCurrentPanel; -}; - -#endif - - diff --git a/src/VISUGUI/VisuGUI_Panel.cxx b/src/VISUGUI/VisuGUI_Panel.cxx deleted file mode 100755 index c1be4ea0..00000000 --- a/src/VISUGUI/VisuGUI_Panel.cxx +++ /dev/null @@ -1,241 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_Panel.cxx -// Author : Oleg Uvarov -// Module : VISU -// -#include "VisuGUI_Panel.h" - -#include "VisuGUI.h" -#include "VisuGUI_Tools.h" - -#include "SUIT_ResourceMgr.h" - -#include -#include -#include -#include -#include - -/*! - \class MainFrame - \internal - \brief Frame inserted in viewport with redefined sizeHint method - in order to avoid unreasonable increasing of viewport size -*/ -class VisuGUI_Panel::MainFrame : public QFrame -{ -public: - /*! - \brief Constructor. - \param theParent parent widget - */ - MainFrame( QWidget* theParent = 0 ) - : QFrame( theParent ) - { - } - - /*! - \brief Gets frame size hint - \return frame size hint - */ - virtual QSize sizeHint() const - { - return minimumSizeHint(); - } -}; - -/*! - \class VisuGUI_Panel - \brief Base class for VISU interactive dockable panels. - - Set of classes is derived from this class and are intended for representing widgets - (GUI controls) for different operations. VisuGUI_Panel consists of main frame - inserted in scroll view and four push buttons. So all widgets of derived sub-panels - should be inherited from mainframe() instead of “this” pointer. -*/ - -/*! - \brief Constructor creates panels look and feel - \param theName name of the panel - \param theParent parent widget -*/ -VisuGUI_Panel::VisuGUI_Panel( const QString& theName, - const VisuGUI* theModule, - QWidget* theParent, - const int theBtns ) - : QtxDockWidget( theName, theParent ), - myModule( theModule ), - myOK( 0 ), - myApply( 0 ), - myClose( 0 ), - myHelp( 0 ) -{ - QWidget* aGrp = new QWidget( this ); - setWidget( aGrp ); - - // Create scroll view - myView = new QScrollArea( aGrp ); - - // Create main frame - myMainFrame = new MainFrame( myView ); - myMainFrame->setFrameStyle( QFrame::Plain | QFrame::NoFrame ); - - myView->setWidget( myMainFrame ); - myView->setAlignment( Qt::AlignCenter ); - myView->setWidgetResizable( true ); - myView->setMinimumWidth( myMainFrame->sizeHint().width() + 22 ); - - // Create buttons - QWidget* aBtnWg = new QWidget( aGrp ); - QHBoxLayout* aBtnWgLayout = new QHBoxLayout( aBtnWg ); - - aBtnWgLayout->addStretch(); - - if( theBtns & OKBtn ) - { - myOK = new QPushButton( tr( "BUT_OK" ), aBtnWg ); - aBtnWgLayout->addWidget( myOK ); - connect( myOK, SIGNAL( clicked() ), SLOT( onOK() ) ); - } - if( theBtns & ApplyBtn ) - { - myApply = new QPushButton( tr( "BUT_APPLY" ), aBtnWg ); - aBtnWgLayout->addWidget( myApply ); - connect( myApply, SIGNAL( clicked() ), SLOT( onApply() ) ); - } - if( theBtns & CloseBtn ) - { - myClose = new QPushButton( tr( "BUT_CLOSE" ), aBtnWg ); - aBtnWgLayout->addWidget( myClose ); - connect( myClose, SIGNAL( clicked() ), SLOT( onClose() ) ); - } - if( theBtns & HelpBtn ) - { - myHelp = new QPushButton( tr( "BUT_HELP" ), aBtnWg ); - aBtnWgLayout->addWidget( myHelp ); - connect( myHelp, SIGNAL( clicked() ), SLOT( onHelp() ) ); - } - - aBtnWgLayout->addStretch(); - - // fill layout - QVBoxLayout* aLay = new QVBoxLayout( aGrp ); - aLay->setContentsMargins( 0, 0, 0, 0 ); - aLay->addWidget( myView, 1 ); - aLay->addWidget( aBtnWg ); -} - -/*! - \brief Destructor -*/ -VisuGUI_Panel::~VisuGUI_Panel() -{ -} - -/*! - \brief Verifies validity of input data - - This virtual method should be redefined in derived classes. Usually operator - corresponding to the sub-panel calls this method to check validity of input - data when Apply/OK button is pressed. - - \param theErrMsg Error message. - - If data is invalid when panel can return message using this parameter given - clear explanation what is wrong - - \return TRUE if data is valid, FALSE otherwise -*/ -bool VisuGUI_Panel::isValid( QString& /*theErrMsg*/ ) -{ - return true; -} -/*! - \brief Virtual methods should be redefined in derived classes and - clears all GUI controls -*/ -void VisuGUI_Panel::clear() -{ -} - -/*! - \brief Virtual slot called when “OK” button pressed emits corresponding signal. - - This slot moves focus in OK button before emitting signal. Mainly it provides - application with correct moving data from currently edited controls to internal - structure. For example QTable moves data from cell editor to table item when - focus is out. - -*/ -void VisuGUI_Panel::onOK() -{ - if ( myOK ) - { - myOK->setFocus(); - qApp->processEvents(); - } -} - -/*! - \brief Virtual slot called when “Apply” button pressed emits corresponding signal. - \sa onOK -*/ -void VisuGUI_Panel::onApply() -{ - if ( myApply ) - { - myApply->setFocus(); - qApp->processEvents(); - } -} - -/*! - \brief Virtual slot called when “Close” button pressed emits corresponding signal. - \sa onOK -*/ -void VisuGUI_Panel::onClose() -{ - if ( myClose ) - myClose->setFocus(); -} - -/*! - \brief Virtual slot called when “Help” button pressed emits corresponding signal. - \sa onOK -*/ -void VisuGUI_Panel::onHelp() -{ - if ( myHelp ) - myHelp->setFocus(); -} - -/*! - \brief Gets frame inserted in scroll view. All controls of derived - panels should use it as parent - \return QFrame* object -*/ -QFrame* VisuGUI_Panel::mainFrame() -{ - return myMainFrame; -} diff --git a/src/VISUGUI/VisuGUI_Panel.h b/src/VISUGUI/VisuGUI_Panel.h deleted file mode 100755 index a3336c9b..00000000 --- a/src/VISUGUI/VisuGUI_Panel.h +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_Panel.cxx -// Author : Oleg Uvarov -// Module : VISU -// -#ifndef VISUGUI_PANEL_H -#define VISUGUI_PANEL_H - -#include - -class QFrame; -class QScrollArea; -class QPushButton; - -class VisuGUI; - -class VisuGUI_Panel : public QtxDockWidget -{ - Q_OBJECT - - class MainFrame; - -public: - enum { OKBtn = 0x0001, - ApplyBtn = 0x0002, - CloseBtn = 0x0004, - HelpBtn = 0x0008, - AllBtn = OKBtn | ApplyBtn | CloseBtn | HelpBtn - }; - -public: - VisuGUI_Panel( const QString& theName, - const VisuGUI* theModule, - QWidget* theParent, - const int theBtns = AllBtn ); - virtual ~VisuGUI_Panel(); - - virtual bool isValid( QString& theMessage ); - virtual void clear(); - -protected slots: - virtual void onOK(); - virtual void onApply(); - virtual void onClose(); - virtual void onHelp(); - -protected: - QFrame* mainFrame(); - -protected: - QScrollArea* myView; - QFrame* myMainFrame; - - QPushButton* myOK; - QPushButton* myApply; - QPushButton* myClose; - QPushButton* myHelp; - - const VisuGUI* myModule; -}; - -#endif diff --git a/src/VISUGUI/VisuGUI_ScalarMapOnDeformedShapeDlg.cxx b/src/VISUGUI/VisuGUI_ScalarMapOnDeformedShapeDlg.cxx new file mode 100644 index 00000000..98dcd686 --- /dev/null +++ b/src/VISUGUI/VisuGUI_ScalarMapOnDeformedShapeDlg.cxx @@ -0,0 +1,458 @@ +// VISU VISUGUI : GUI of VISU component +// +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// +// +// +// File : VisuGUI_ScalarMapOnDeformedShapeDlg.cxx +// Author : Eugeny Nikolaev +// Module : VISU + +#include "VisuGUI_ScalarMapOnDeformedShapeDlg.h" + +#include "VisuGUI_Tools.h" +#include "VisuGUI_InputPane.h" + +#include "VISU_Result_i.hh" +#include "VISU_ScalarMapOnDeformedShape_i.hh" +#include "VISU_ColoredPrs3dFactory.hh" + +#include "VISU_ScalarMapPL.hxx" +#include "VISU_ScalarMapOnDeformedShapePL.hxx" + +#include "VISU_Convertor.hxx" + +#include "SalomeApp_Module.h" +#include "LightApp_Application.h" +#include "LightApp_SelectionMgr.h" +#include "SUIT_Desktop.h" +#include "SUIT_ResourceMgr.h" +#include "SUIT_Session.h" +#include "SUIT_MessageBox.h" + +#include "SALOME_ListIO.hxx" + +#include "SALOMEDSClient_AttributeString.hxx" +#include "SALOMEDSClient_AttributeName.hxx" + +#include +#include + +using namespace std; + +#define MYDEBUG 0 + +/*! + * Constructor + */ +VisuGUI_ScalarMapOnDeformedShapeDlg::VisuGUI_ScalarMapOnDeformedShapeDlg (SalomeApp_Module* theModule) + : VisuGUI_ScalarBarBaseDlg(theModule), + myIsAnimation(false), + myUpdateScalars(true), + myVisuGUI(theModule) +{ + setCaption(tr("DLG_TITLE")); + setSizeGripEnabled(TRUE); + + QVBoxLayout* TopLayout = new QVBoxLayout (this); + TopLayout->setSpacing(6); + TopLayout->setMargin(11); + + myTabBox = new QTabWidget (this); + + // Scalar Map on Deformed shape pane + QVBox* aBox = new QVBox (this); + aBox->setMargin(11); + QFrame* TopGroup = new QFrame (aBox, "TopGroup"); + TopGroup->setFrameStyle(QFrame::Box | QFrame::Sunken); + TopGroup->setLineWidth(1); + QGridLayout* TopGroupLayout = new QGridLayout (TopGroup); + TopGroupLayout->setAlignment(Qt::AlignTop | Qt::AlignCenter); + TopGroupLayout->setSpacing(6); + TopGroupLayout->setMargin(11); + + // Scale factor + QLabel* ScaleLabel = new QLabel (tr("SCALE_FACTOR"), TopGroup, "ScaleLabel"); + TopGroupLayout->addWidget(ScaleLabel, 0, 0); + + ScalFact = new QtxDblSpinBox (0.0, 1.0E+38, 0.1, TopGroup); + ScalFact->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed)); + ScalFact->setPrecision(38); + ScalFact->setValue(0.1); + TopGroupLayout->addWidget(ScalFact, 0, 1); + + // Fields combo box + QLabel* FieldLabel = new QLabel (tr("FIELD_ITEM"), TopGroup, "FieldLabel"); + myFieldsCombo = new QComboBox (TopGroup,"Fields"); + + TopGroupLayout->addWidget(FieldLabel, 1, 0); + TopGroupLayout->addWidget(myFieldsCombo,1,1); + + // TimeStamps combo box + QLabel* TimeStampLabel = new QLabel (tr("TIMESTAMP_ITEM"), TopGroup, "TimeStampLabel"); + myTimeStampsCombo = new QComboBox (TopGroup,"TimeStamp"); + + TopGroupLayout->addWidget(TimeStampLabel, 2, 0); + TopGroupLayout->addWidget(myTimeStampsCombo,2,1); + + // + myTabBox->addTab(aBox, tr("SCALAR_MAP_ON_DEFORMED_SHAPE_TAB")); + + // Scalar bar pane + myInputPane = new VisuGUI_InputPane(VISU::TSCALARMAPONDEFORMEDSHAPE, theModule, this); + + myTabBox->addTab(GetScalarPane(), tr("SCALAR_BAR_TAB")); + myTabBox->addTab(myInputPane, tr("INPUT_TAB")); + + // Buttons + QGroupBox* GroupButtons = new QGroupBox (this, "GroupButtons"); + GroupButtons->setGeometry(QRect(10, 10, 281, 48)); + GroupButtons->setColumnLayout(0, Qt::Vertical); + GroupButtons->layout()->setSpacing(0); + GroupButtons->layout()->setMargin(0); + QGridLayout* GroupButtonsLayout = new QGridLayout (GroupButtons->layout()); + GroupButtonsLayout->setAlignment(Qt::AlignTop); + GroupButtonsLayout->setSpacing(6); + GroupButtonsLayout->setMargin(11); + + QPushButton* buttonOk = new QPushButton (tr("&OK"), GroupButtons, "buttonOk"); + buttonOk->setAutoDefault(TRUE); + buttonOk->setDefault(TRUE); + GroupButtonsLayout->addWidget(buttonOk, 0, 0); + + GroupButtonsLayout->addItem(new QSpacerItem (5, 5, QSizePolicy::Expanding, + QSizePolicy::Minimum), 0, 1); + + QPushButton* buttonCancel = new QPushButton (tr("&Cancel") , GroupButtons, "buttonCancel"); + buttonCancel->setAutoDefault(TRUE); + GroupButtonsLayout->addWidget(buttonCancel, 0, 2); + + QPushButton* buttonHelp = new QPushButton (tr("&Help") , GroupButtons, "buttonHelp"); + buttonHelp->setAutoDefault(TRUE); + GroupButtonsLayout->addWidget(buttonHelp, 0, 3); + + // Add Tab box and Buttons to the top layout + TopLayout->addWidget(myTabBox); + TopLayout->addWidget(GroupButtons); + + // signals and slots connections + connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept())); + connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject())); + connect(buttonHelp, SIGNAL(clicked()), this, SLOT(onHelp())); + connect(myFieldsCombo, SIGNAL(activated(int)), this, SLOT(onFieldChanged(int))); + connect(myTimeStampsCombo, SIGNAL(activated(int)), this, SLOT(onTimeStampChanged(int))); +} + +VisuGUI_ScalarMapOnDeformedShapeDlg::~VisuGUI_ScalarMapOnDeformedShapeDlg() +{} + +void VisuGUI_ScalarMapOnDeformedShapeDlg::initFromPrsObject( VISU::ColoredPrs3d_i* thePrs, + bool theInit ) +{ + if( theInit ) + myPrsCopy = VISU::TSameAsFactory().Create(thePrs, VISU::ColoredPrs3d_i::EDoNotPublish); + setFactor(myPrsCopy->GetScale()); + myTimeStampsCombo->setDisabled(myIsAnimation); + + CORBA::String_var aFieldName(myPrsCopy->GetScalarFieldName()); + QString aIteration = GetFloatValueOfTimeStamp(myPrsCopy->GetScalarEntity(), + aFieldName.in(), + myPrsCopy->GetScalarTimeStampNumber()); + if (myEntity2Fields.size() == 0) + { + // find all fields and time stamps on it + _PTR(Study) aActiveStudy = VISU::GetCStudy(VISU::GetAppStudy(myVisuGUI)); + LightApp_SelectionMgr* aSel = VISU::GetSelectionMgr(myVisuGUI); + SALOME_ListIO selected; + aSel->selectedObjects(selected); + if (selected.Extent() > 0) { + Handle(SALOME_InteractiveObject) aIO = selected.First(); + if (aIO->hasEntry()) { + _PTR(SObject) aSObject = aActiveStudy->FindObjectID(aIO->getEntry()); + VISU::VISUType aType = VISU::Storable::SObject2Type( aSObject ); + switch(aType){ + case VISU::TTIMESTAMP: { + aSObject = aSObject->GetFather(); + aSObject = aSObject->GetFather(); + break; + } + case VISU::TFIELD: { + _PTR(SObject) newSObject; + if(aSObject->ReferencedObject(newSObject)) aSObject = newSObject; + aSObject = aSObject->GetFather(); + break; + } + case VISU::TANIMATION: { + _PTR(ChildIterator) aTmpIter = aActiveStudy->NewChildIterator(aSObject); + for (aTmpIter->InitEx(true); aTmpIter->More(); aTmpIter->Next()) { + _PTR(SObject) aTmpChildSObj = aTmpIter->Value(); + _PTR(SObject) newSObject; + if(aTmpChildSObj->ReferencedObject(newSObject)){ + aSObject = newSObject; + aSObject->GetFather(); + break; + } + } + break; + }} + + aSObject = aSObject->GetFather(); + aSObject = aSObject->GetFather(); + + mySelectionObj = aSObject; + CORBA::Object_var anObject = VISU::ClientSObjectToObject(mySelectionObj); + if (CORBA::is_nil(anObject)) { + mySelectionObj = mySelectionObj->GetFather(); + } + } + } + + if (mySelectionObj) { + _PTR(ChildIterator) aIter = aActiveStudy->NewChildIterator(mySelectionObj); + + for (aIter->InitEx(true); aIter->More(); aIter->Next()) { + _PTR(SObject) aChildSObj = aIter->Value(); + VISU::Storable::TRestoringMap aRestoringMap = VISU::Storable::GetStorableMap(aChildSObj); + if (!aRestoringMap.empty()) { + VISU::VISUType aType = VISU::Storable::RestoringMap2Type(aRestoringMap); + if (aType == VISU::TTIMESTAMP) { + QString aMeshName = aRestoringMap["myMeshName"]; + CORBA::String_var aName = myPrsCopy->GetMeshName(); + if (aMeshName != aName.in()) + continue; + QString aFieldName = aRestoringMap["myFieldName"]; + QString aTimeIter = aRestoringMap["myTimeStampId"]; + QString aEntity = aRestoringMap["myEntityId"]; + VISU::Entity anEntity; + switch (aEntity.toInt()) { + case 0: anEntity = VISU::NODE; break; + case 1: anEntity = VISU::EDGE; break; + case 2: anEntity = VISU::FACE; break; + case 3: anEntity = VISU::CELL; break; + } + TFieldName2TimeStamps& aFieldName2TimeStamps = myEntity2Fields[anEntity]; + TTimeStampNumber2Time& aTimeStampNumber2Time = aFieldName2TimeStamps[aFieldName]; + aTimeStampNumber2Time[aTimeIter.toInt()] = + GetFloatValueOfTimeStamp(anEntity, + aFieldName.latin1(), + aTimeIter.toInt()); + } + } + } + } + AddAllFieldNames(); + } + myFieldsCombo->setCurrentText(aFieldName.in()); + AddAllTimes(myFieldsCombo->currentText()); + myTimeStampsCombo->setCurrentText(aIteration); + SetScalarField( false ); + + VisuGUI_ScalarBarBaseDlg::initFromPrsObject(myPrsCopy, theInit); + + if( !theInit ) + return; + + myInputPane->initFromPrsObject( myPrsCopy ); + myTabBox->setCurrentPage( 0 ); +} + +int +VisuGUI_ScalarMapOnDeformedShapeDlg +::storeToPrsObject(VISU::ColoredPrs3d_i* thePrs) +{ + if(!myInputPane->check() || !GetScalarPane()->check()) + return 0; + + int anIsOk = myInputPane->storeToPrsObject( myPrsCopy ); + anIsOk &= GetScalarPane()->storeToPrsObject( myPrsCopy ); + + myPrsCopy->SetScale(getFactor()); + + myPrsCopy->SetScalarField(myPrsCopy->GetScalarEntity(), + getCurrentScalarFieldName().latin1(), + myTimeStampID[ myTimeStampsCombo->currentItem() ]); + + if(myUpdateScalars) + SetScalarField( false ); + + VISU::TSameAsFactory().Copy(myPrsCopy, thePrs); + + return anIsOk; +} + +int VisuGUI_ScalarMapOnDeformedShapeDlg::getCurrentScalarFieldNamePos(){ + return myFieldsCombo->currentItem(); +} + +QString VisuGUI_ScalarMapOnDeformedShapeDlg::getCurrentScalarFieldName(){ + return myFieldsCombo->currentText(); +} + +int VisuGUI_ScalarMapOnDeformedShapeDlg::getCurrentScalarNbIterations(){ + return myTimeStampsCombo->count(); +} + +VISU::Entity +VisuGUI_ScalarMapOnDeformedShapeDlg +::getCurrentScalarEntity() +{ + VISU::Entity anEntity = VISU::Entity(-1); + TEntity2Fields::const_iterator anIter = myEntity2Fields.begin(); + for(; anIter != myEntity2Fields.end(); anIter++){ + const TFieldName2TimeStamps& aFieldName2TimeStamps = anIter->second; + TFieldName2TimeStamps::const_iterator aFieldIter = aFieldName2TimeStamps.begin(); + for(; aFieldIter != aFieldName2TimeStamps.end(); aFieldIter++){ + const QString& aFieldName = aFieldIter->first; + if (aFieldName == myFieldsCombo->currentText()) { + anEntity = anIter->first; + break; + } + } + } + return anEntity; +} + +void VisuGUI_ScalarMapOnDeformedShapeDlg::SetScalarField( const bool save_scalar_pane ){ + SetScalarField( myTimeStampID[ myTimeStampsCombo->currentItem() ], "", save_scalar_pane ); +} + +void +VisuGUI_ScalarMapOnDeformedShapeDlg +::SetScalarField(int theIter, + QString theFieldName, + const bool save_scalar_pane ) +{ + QApplication::setOverrideCursor(Qt::waitCursor); + + if( save_scalar_pane ) + GetScalarPane()->storeToPrsObject(myPrsCopy); + + QString aFieldName; + + if(theFieldName.isEmpty()) + aFieldName = myFieldsCombo->currentText(); + else + aFieldName = theFieldName; + + VISU::Entity anEntity = getCurrentScalarEntity(); + + myPrsCopy->SetScalarField(anEntity, + aFieldName.latin1(), + theIter); + + if( save_scalar_pane ) + UpdateScalarField(); + + QApplication::restoreOverrideCursor(); +} + +void VisuGUI_ScalarMapOnDeformedShapeDlg::accept() +{ + VisuGUI_ScalarBarBaseDlg::accept(); +} + +void VisuGUI_ScalarMapOnDeformedShapeDlg::reject() +{ + VisuGUI_ScalarBarBaseDlg::reject(); +} + +QString VisuGUI_ScalarMapOnDeformedShapeDlg::GetContextHelpFilePath() +{ + return "scalar_map_on_deformed_shape_page.html"; +} + +void VisuGUI_ScalarMapOnDeformedShapeDlg::AddAllFieldNames(){ + TEntity2Fields::const_iterator anIter = myEntity2Fields.begin(); + for(; anIter != myEntity2Fields.end(); anIter++){ + const TFieldName2TimeStamps& aFieldName2TimeStamps = anIter->second; + TFieldName2TimeStamps::const_iterator aFieldIter = aFieldName2TimeStamps.begin(); + for(; aFieldIter != aFieldName2TimeStamps.end(); aFieldIter++){ + const QString& aFieldName = aFieldIter->first; + myFieldsCombo->insertItem(aFieldName); + } + } +} + +void VisuGUI_ScalarMapOnDeformedShapeDlg::AddAllTimes(const QString& theFieldName){ + TEntity2Fields::const_iterator anIter = myEntity2Fields.begin(); + for(; anIter != myEntity2Fields.end(); anIter++){ + const TFieldName2TimeStamps& aFieldName2TimeStamps = anIter->second; + TFieldName2TimeStamps::const_iterator aFieldIter = aFieldName2TimeStamps.begin(); + for(; aFieldIter != aFieldName2TimeStamps.end(); aFieldIter++){ + const QString& aFieldName = aFieldIter->first; + if(theFieldName != aFieldName) + continue; + + myTimeStampID.clear(); + myTimeStampsCombo->clear(); + + const TTimeStampNumber2Time& aTimeStampNumber2Time = aFieldIter->second; + TTimeStampNumber2Time::const_iterator aTimeStampIter = aTimeStampNumber2Time.begin(); + for(; aTimeStampIter != aTimeStampNumber2Time.end(); aTimeStampIter++){ + int aTimeStampNumber = aTimeStampIter->first; + myTimeStampID.push_back(aTimeStampNumber); + + QString aTimeStampTime = aTimeStampIter->second; + myTimeStampsCombo->insertItem(aTimeStampTime); + } + return; + } + } +} + +void VisuGUI_ScalarMapOnDeformedShapeDlg::onFieldChanged(int){ + AddAllTimes(myFieldsCombo->currentText()); + SetScalarField(); + UpdateScalarField(); +} + +void VisuGUI_ScalarMapOnDeformedShapeDlg::onTimeStampChanged(int){ + SetScalarField(); + UpdateScalarField(); +} + +void VisuGUI_ScalarMapOnDeformedShapeDlg::UpdateScalarField(){ + GetScalarPane()->initFromPrsObject(myPrsCopy); +} + +QString +VisuGUI_ScalarMapOnDeformedShapeDlg +::GetFloatValueOfTimeStamp(VISU::Entity theEntity, + const std::string& theFieldName, + int theTimeStampNumber) +{ + QString aTime(""); + VISU::TEntity anEntity = VISU::TEntity(theEntity); + VISU::Result_i* theResult = myPrsCopy->GetCResult(); + VISU::Result_i::PInput anInput = theResult->GetInput(); + VISU::PField aField = anInput->GetField(myPrsCopy->GetCMeshName(), + anEntity, + theFieldName); + if(!aField) + return aTime; + + VISU::TValField& aValField = aField->myValField; + VISU::TValField::const_iterator aIter = aValField.find(theTimeStampNumber); + if(aIter != aValField.end()){ + VISU::PValForTime aValForTime = aIter->second; + aTime = VISU_Convertor::GenerateName(aValForTime->myTime).c_str(); + } + return aTime; +} diff --git a/src/VISUGUI/VisuGUI_ScalarMapOnDeformedShapeDlg.h b/src/VISUGUI/VisuGUI_ScalarMapOnDeformedShapeDlg.h new file mode 100644 index 00000000..6974d688 --- /dev/null +++ b/src/VISUGUI/VisuGUI_ScalarMapOnDeformedShapeDlg.h @@ -0,0 +1,123 @@ +// VISU VISUGUI : GUI of VISU component +// +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// +// +// +// File : VisuGUI_ScalarMapOnDeformedShapeDlg.h +// Author : Eugeny Nikolaev +// Module : VISU + +#ifndef VISUGUI_SCALARMAPONDEFORMEDSHAPEDLS_H +#define VISUGUI_SCALARMAPONDEFORMEDSHAPEDLS_H + +#include "VisuGUI_Prs3dDlg.h" + +#include "VISUConfig.hh" + +#include "QtxDblSpinBox.h" + +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +class SalomeApp_Module; +class VisuGUI_InputPane; + +namespace VISU +{ + class ScalarMapOnDeformedShape_i; +} + +class VisuGUI_ScalarMapOnDeformedShapeDlg : public VisuGUI_ScalarBarBaseDlg +{ + Q_OBJECT + +public: + VisuGUI_ScalarMapOnDeformedShapeDlg (SalomeApp_Module* theModule); + ~VisuGUI_ScalarMapOnDeformedShapeDlg(); + + double getFactor() + { return ScalFact->value(); } + void setFactor(double theFactor) + { ScalFact->setValue(theFactor); } + + virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs, + bool theInit ); + + virtual int storeToPrsObject(VISU::ColoredPrs3d_i* thePrs); + + int getCurrentScalarFieldNamePos(); + QString getCurrentScalarFieldName(); + int getCurrentScalarNbIterations(); + VISU::Entity getCurrentScalarEntity(); + void SetScalarField(int theIter,QString theFieldName=QString(""), const bool = true ); + +protected: + virtual QString GetContextHelpFilePath(); + +protected slots: + void accept(); + void reject(); + +private slots: + void onFieldChanged(int i=0); + void onTimeStampChanged(int i=0); + +private: + QtxDblSpinBox* ScalFact; + QTabWidget* myTabBox; + VisuGUI_ScalarBarPane* myScalarPane; + VisuGUI_InputPane* myInputPane; + QComboBox *myFieldsCombo; + QComboBox *myTimeStampsCombo; + + typedef std::map TTimeStampNumber2Time; // Times map definition (iteration time, real value of time) + typedef std::map TFieldName2TimeStamps; // Field name and enity to Times + typedef std::map TEntity2Fields; // Mesh to fields map + + TEntity2Fields myEntity2Fields; + int myCurrScalarIter; + bool myIsAnimation; + bool myUpdateScalars; + std::vector myTimeStampID; + + _PTR(SObject) mySelectionObj; + SALOME::GenericObjPtr myPrsCopy; + SalomeApp_Module* myVisuGUI; + +protected: + void UpdateScalarField(); + void SetScalarField( const bool = true ); + void AddAllFieldNames(); + void AddAllTimes(const QString& theFieldName); + QString GetFloatValueOfTimeStamp(VISU::Entity theEntity, + const std::string& theFieldName, + int theTimeStampNumber); +}; + +#endif // VISUGUI_DEFORMEDSHAPEDLS_H diff --git a/src/VISUGUI/VisuGUI_SelectionPanel.cxx b/src/VISUGUI/VisuGUI_SelectionPanel.cxx deleted file mode 100644 index cb8531a3..00000000 --- a/src/VISUGUI/VisuGUI_SelectionPanel.cxx +++ /dev/null @@ -1,1130 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_SelectionPanel.h -// Author : Laurent CORNABE & Hubert ROLLAND -// Module : VISU -// $Header$ -// -#include "VisuGUI_SelectionPanel.h" - -#include "VisuGUI.h" -#include "VisuGUI_Tools.h" -#include "VisuGUI_ViewTools.h" -#include "VisuGUI_SelectionPrefDlg.h" -#include "VisuGUI_GaussPointsSelectionPane.h" -#include "VisuGUI_FindPane.h" - -#include "VISU_Event.h" -#include "VISU_ConvertorUtils.hxx" - -#include "VISU_Actor.h" -#include "VISU_PrsObject_i.hh" -#include "VISU_Prs3d_i.hh" -#include "VISU_PipeLine.hxx" -#include "VISU_GaussPointsPL.hxx" -#include "VISU_GaussPtsSettings.h" -#include "VISU_PickingSettings.h" - -#include "SalomeApp_Study.h" -#include "SalomeApp_Application.h" -#include "LightApp_Application.h" -#include "LightApp_SelectionMgr.h" -#include "LightApp_VTKSelector.h" - -#include "SUIT_Desktop.h" -#include "SUIT_MessageBox.h" -#include "SUIT_ViewWindow.h" -#include "SUIT_Session.h" -#include "SUIT_ResourceMgr.h" - -#include "SALOME_ListIO.hxx" -#include "SALOME_ListIteratorOfListIO.hxx" - -#include "SVTK_ViewWindow.h" -#include "SVTK_Selector.h" -#include "SVTK_RenderWindowInteractor.h" - -#include "utilities.h" - -// OCCT Includes -#include -#include - -// QT Includes -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -// VTK Includes -#include -#include -#include -#include -#include - -// STL Includes -#include - -using namespace std; - -class CustomIntValidator: public QIntValidator -{ -public: - CustomIntValidator( QObject * theParent ): - QIntValidator( 0, VTK_LARGE_ID, theParent ) - {} - - virtual - State - validate( QString& theInput, int& thePos ) const - { - if( theInput.isEmpty() ) - return QValidator::Acceptable; - - return QIntValidator::validate( theInput, thePos ); - } -}; - -VisuGUI_SelectionPanel::VisuGUI_SelectionPanel( const VisuGUI* theModule, QWidget* theParent ) : - VisuGUI_Panel( tr("WINDOW_TITLE" ), theModule, theParent, CloseBtn | HelpBtn ), - myPreferencesDlg( 0 ) -{ - QVBoxLayout* TopLayout = new QVBoxLayout ( mainFrame() ); - - QWidget* aNamePane = new QWidget (mainFrame()); - QGridLayout* aNameLay = new QGridLayout (aNamePane); - - QLabel* aMeshLbl = new QLabel (tr("MESH_NAME_LBL"), aNamePane); - myMeshName = new QLabel (aNamePane); - myMeshName->setText(tr("WRN_NO_AVAILABLE_DATA")); - - QLabel* aFieldLbl = new QLabel (tr("FIELD_NAME_LBL"), aNamePane); - myFieldName = new QLabel (aNamePane); - - aNameLay->addWidget(aMeshLbl, 0, 0); - aNameLay->addWidget(myMeshName, 0, 1); - aNameLay->addWidget(aFieldLbl, 1, 0); - aNameLay->addWidget(myFieldName, 1, 1); - - TopLayout->addWidget(aNamePane); - - myTabWidget = new QTabWidget( mainFrame() ); - - QTableWidget* aTable; - - // Fill column data - myColumnData.insert( CellStdCell, QList() << Cell << Scalar << Vector ); - myColumnData.insert( CellStdPoint, QList() << Point << X << Y << Z << I << J << K << Scalar << Vector ); - myColumnData.insert( PointStd, QList() << Point << X << Y << Z << I << J << K << Scalar << Vector ); - myColumnData.insert( CellElno, QList() << Cell << Point << X << Y << Z << I << J << K << Scalar << Vector ); - myColumnData.insert( PointElno, QList() << Point << X << Y << Z << I << J << K << Cell << Scalar << Vector ); - - QMap aColumnHeaders; - aColumnHeaders.insert( Cell, tr( "CELL_ID_HDR" ) ); - aColumnHeaders.insert( Point, tr( "POINT_ID_HDR" ) ); - aColumnHeaders.insert( X, "X" ); - aColumnHeaders.insert( Y, "Y" ); - aColumnHeaders.insert( Z, "Z" ); - aColumnHeaders.insert( I, "I" ); - aColumnHeaders.insert( J, "J" ); - aColumnHeaders.insert( K, "K" ); - aColumnHeaders.insert( Scalar, tr( "DATA_SCALAR_HDR" ) ); - aColumnHeaders.insert( Vector, tr( "DATA_VECTOR_HDR" ) ); - - // Create Points pane - myPointsPane = new QWidget (mainFrame()); - QVBoxLayout* aVBoxLayout = new QVBoxLayout(myPointsPane); - - QGroupBox* aDataGrp = new QGroupBox ( tr("POINT_DATA_TITLE"), myPointsPane); - QGridLayout* aGridLay = new QGridLayout (aDataGrp); - - aGridLay->addWidget( new QLabel (tr("DATA_ID_LBL"), aDataGrp), 0, 0 ); - - myIDValLbl = new QLineEdit ("", aDataGrp); - aGridLay->addWidget( myIDValLbl, 0, 1 ); - CustomIntValidator* aIntValidator = new CustomIntValidator (myIDValLbl); - aIntValidator->setBottom(0); - myIDValLbl->setValidator(aIntValidator); - connect(myIDValLbl, SIGNAL(returnPressed()), this, SLOT(onPointIdEdit())); - - QToolButton* anIDBtn = new QToolButton( aDataGrp ); - anIDBtn->setIcon( VISU::GetResourceMgr()->loadPixmap("VISU", tr( "ICON_OK" ) ) ); - aGridLay->addWidget( anIDBtn, 0, 2 ); - connect(anIDBtn, SIGNAL(clicked()), this, SLOT(onPointIdEdit())); - - aVBoxLayout->addWidget( aDataGrp ); - - myPointStackedWg = new QStackedWidget( myPointsPane ); - - aTable = new QTableWidget( myPointStackedWg ); - myPointStackedWg->insertWidget( StdMesh, aTable ); - myTables.insert( PointStd, aTable ); - - aTable = new QTableWidget( myPointStackedWg ); - myPointStackedWg->insertWidget( ElnoMesh, aTable ); - myTables.insert( PointElno, aTable ); - - aVBoxLayout->addWidget(myPointStackedWg, 1, 0); - - // Create Cells pane - myCellsPane = new QWidget (mainFrame()); - QGridLayout* aCellLayout = new QGridLayout (myCellsPane); - aCellLayout->setRowStretch(0, 0); - aCellLayout->setRowStretch(1, 1); - - QGroupBox* aCellGrp = new QGroupBox( tr("CELL_DATA_TITLE"), myCellsPane); - aGridLay = new QGridLayout (aCellGrp); - - aGridLay->addWidget( new QLabel (tr("DATA_ID_LBL"), aCellGrp), 0, 0); - myCellIDValLbl = new QLineEdit ("", aCellGrp); - myCellIDValLbl->setValidator(aIntValidator); - aGridLay->addWidget( myCellIDValLbl, 0, 1); - connect(myCellIDValLbl, SIGNAL(returnPressed()), this, SLOT(onCellIdEdit())); - - QToolButton* aCellIDBtn = new QToolButton( aDataGrp ); - aCellIDBtn->setIcon( VISU::GetResourceMgr()->loadPixmap("VISU", tr( "ICON_OK" ) ) ); - aGridLay->addWidget( aCellIDBtn, 0, 2 ); - connect(aCellIDBtn, SIGNAL(clicked()), this, SLOT(onCellIdEdit())); - - aCellLayout->addWidget(aCellGrp, 0, 0); - - myCellStackedWg = new QStackedWidget( myCellsPane ); - - QTabWidget* aStdTabWidget = new QTabWidget( myCellStackedWg ); - myCellStackedWg->insertWidget( StdMesh, aStdTabWidget ); - - aTable = new QTableWidget( aStdTabWidget ); - aStdTabWidget->addTab( aTable, tr("CELL_INFO") ); - myTables.insert( CellStdCell, aTable ); - - aTable = new QTableWidget( aStdTabWidget ); - aStdTabWidget->addTab( aTable, tr("POINT_INFO") ); - myTables.insert( CellStdPoint, aTable ); - - aTable = new QTableWidget( myCellStackedWg ); - myCellStackedWg->insertWidget( ElnoMesh, aTable ); - myTables.insert( CellElno, aTable ); - - aCellLayout->addWidget(myCellStackedWg, 1, 0); - - // Common operations for all tables - QMap::iterator it = myTables.begin(), itEnd = myTables.end(); - for( ; it != itEnd; ++it ) - { - aTable = it.value(); - if( !aTable ) - continue; - - int aTableId = it.key(); - if( !myColumnData.contains( aTableId ) ) - continue; - - QStringList aHorizontalHeaderLabels; - QList aColumns = myColumnData[ aTableId ]; - QListIterator aColumnIter( aColumns ); - while( aColumnIter.hasNext() ) - { - int aColumnId = aColumnIter.next(); - if( aColumnId >= 0 && aColumnId < aColumnHeaders.size() ) - aHorizontalHeaderLabels << aColumnHeaders[ aColumnId ]; - } - aTable->setColumnCount( aHorizontalHeaderLabels.size() ); - aTable->setHorizontalHeaderLabels( aHorizontalHeaderLabels ); - - aTable->setEditTriggers( QAbstractItemView::NoEditTriggers ); - aTable->setSelectionMode( QAbstractItemView::SingleSelection ); - aTable->resizeColumnsToContents(); - - connect( aTable, SIGNAL( doubleClicked( const QModelIndex& ) ), - this, SLOT( onDoubleClicked( const QModelIndex& ) ) ); - } - - // Actor Pane - myActorsPane = new QWidget (mainFrame()); - aVBoxLayout = new QVBoxLayout(myActorsPane); - - QGroupBox* aPosGrp = new QGroupBox (tr("ACTOR_DATA_POSITION_TITLE"), myActorsPane); - aGridLay = new QGridLayout (aPosGrp); - aGridLay->addWidget( new QLabel ("X:", aPosGrp), 0, 0); - myXPosLbl = new QLabel ("0", aPosGrp); - aGridLay->addWidget( myXPosLbl, 0, 1); - aGridLay->addWidget( new QLabel ("Y:", aPosGrp), 1, 0); - myYPosLbl = new QLabel ("0", aPosGrp); - aGridLay->addWidget( myYPosLbl, 1, 1); - aGridLay->addWidget( new QLabel ("Z:", aPosGrp), 2, 0); - myZPosLbl = new QLabel ("0", aPosGrp); - aGridLay->addWidget( myZPosLbl, 2, 1); - - aVBoxLayout->addWidget( aPosGrp ); - - QGroupBox* aSizeGrp = new QGroupBox ( tr("ACTOR_DATA_SIZE_TITLE"), myActorsPane); - aGridLay = new QGridLayout (aSizeGrp); - aGridLay->addWidget( new QLabel ("dX:", aSizeGrp ), 0, 0); - myDXLbl = new QLabel ("0", aSizeGrp); - aGridLay->addWidget( myDXLbl, 0, 1); - aGridLay->addWidget( new QLabel ("dY:", aSizeGrp ), 1, 0); - myDYLbl = new QLabel ("0", aSizeGrp); - aGridLay->addWidget( myDYLbl, 1, 1); - aGridLay->addWidget( new QLabel ("dZ:", aSizeGrp ), 2, 0); - myDZLbl = new QLabel ("0", aSizeGrp); - aGridLay->addWidget( myDZLbl, 2, 1); - - aVBoxLayout->addWidget( aSizeGrp ); - aVBoxLayout->addStretch(); - - // Gauss Points Pane - myGaussPointsPane = new VisuGUI_GaussPointsSelectionPane( myModule, mainFrame() ); - - // Add panes to tab widget - myTabWidget->addTab(myActorsPane, tr("MODE_ACTOR")); - myTabWidget->addTab(myCellsPane, tr("MODE_CELL")); - myTabWidget->addTab(myPointsPane, tr("MODE_POINT")); - myTabWidget->addTab(myGaussPointsPane, tr("MODE_GAUSS_POINT")); - - connect( myTabWidget, SIGNAL( currentChanged( int ) ), this, SLOT( onSelectionModeChanged( int ) ) ); - - TopLayout->addWidget( myTabWidget ); - - // Find Pane - myFindPane = new VisuGUI_FindPane( mainFrame() ); - - connect( myFindPane, SIGNAL( idChanged( int, int ) ), this, SLOT( onIdChanged( int, int ) ) ); - - TopLayout->addWidget( myFindPane ); - - // Preferences button - QPushButton* aPrefBtn = new QPushButton( tr( "SELECTION_PREFERENCES" ), mainFrame() ); - connect( aPrefBtn, SIGNAL( clicked() ), this, SLOT( onPreferences() ) ); - - TopLayout->addWidget( aPrefBtn ); - - SalomeApp_Application* anApp = - dynamic_cast( SUIT_Session::session()->activeApplication() ); - LightApp_SelectionMgr* aSelectionMgr = anApp->selectionMgr(); - connect( aSelectionMgr, SIGNAL( currentSelectionChanged() ), this, SLOT( onSelectionEvent() ) ); - - connect( this, SIGNAL( selectionModeChanged( int ) ), myModule, SLOT( OnSwitchSelectionMode( int ) ) ); - - myFl = false; - - // Activate Points pane - myTabWidget->setCurrentWidget(myActorsPane); - if (SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow(myModule)) - aViewWindow->SetSelectionMode(ActorSelection); - onSelectionEvent(); -} - -VisuGUI_SelectionPanel::~VisuGUI_SelectionPanel() -{ - if( myPreferencesDlg ) - { - delete myPreferencesDlg; - myPreferencesDlg = 0; - } -} - -int VisuGUI_SelectionPanel::column( int theTableId, int theColumnId ) -{ - if( !myColumnData.contains( theTableId ) ) - return -1; - - const QList& aColumnList = myColumnData[ theTableId ]; - return aColumnList.indexOf( theColumnId ); -} - -QVariant VisuGUI_SelectionPanel::data( int theTableId, int theRow, int theColumnId ) -{ - if( !myTables.contains( theTableId ) ) - return QVariant(); - - if( QTableWidget* aTable = myTables[ theTableId ] ) - if( QAbstractItemModel* aModel = aTable->model() ) - return aModel->data( aModel->index( theRow, column( theTableId, theColumnId ) ) ); - - return QVariant(); -} - -void VisuGUI_SelectionPanel::setData( int theTableId, int theRow, int theColumnId, const QVariant& theValue ) -{ - if( !myTables.contains( theTableId ) ) - return; - - if( QTableWidget* aTable = myTables[ theTableId ] ) - if( QAbstractItemModel* aModel = aTable->model() ) - aModel->setData( aModel->index( theRow, column( theTableId, theColumnId ) ), theValue ); -} - -void VisuGUI_SelectionPanel::setRowSpan( int theTableId, int theRow, int theColumnId, int theRowSpan ) -{ - if( !myTables.contains( theTableId ) ) - return; - - if( QTableWidget* aTable = myTables[ theTableId ] ) - aTable->setSpan( theRow, column( theTableId, theColumnId ), theRowSpan, 1 ); -} - -VisuGUI_SelectionPrefDlg* VisuGUI_SelectionPanel::preferencesDlg() -{ - if( !myPreferencesDlg ) - myPreferencesDlg = new VisuGUI_SelectionPrefDlg(); - myPreferencesDlg->update(); - return myPreferencesDlg; -} - -void VisuGUI_SelectionPanel::setSelectionMode( int theId ) -{ - myTabWidget->setCurrentIndex( theId ); -} - -void VisuGUI_SelectionPanel::onSelectionModeChanged( int theId ) -{ - SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow(myModule); - if (!aViewWindow) return; - - switch (theId) { - case 0: // Actor - aViewWindow->SetSelectionMode(ActorSelection); - onSelectionEvent(); - break; - case 1: // Cells - aViewWindow->SetSelectionMode(CellSelection); - onCellIdEdit(); - break; - case 2: // Points - aViewWindow->SetSelectionMode(NodeSelection); - onPointIdEdit(); - break; - case 3: // Gauss Points - aViewWindow->SetSelectionMode(GaussPointSelection); - myGaussPointsPane->update(); - onSelectionEvent(); - break; - } - - myFindPane->setSelectionMode( aViewWindow->SelectionMode() ); - - emit selectionModeChanged( theId ); -} - -void VisuGUI_SelectionPanel::showEvent( QShowEvent* theEvent ) -{ - VisuGUI_Panel::showEvent(theEvent); -} - -void VisuGUI_SelectionPanel::closeEvent( QCloseEvent* theEvent ) -{ - onClose(); - VisuGUI_Panel::closeEvent(theEvent); -} - -template QString getScalar(TData* theData, int theId){ - if (vtkDataArray *aScalar = theData->GetScalars()){ - vtkFloatingPointType aVal = aScalar->GetTuple1(theId); - return QString::number(aVal); - } else { - return QString("No data"); - } -} - -template QString getVector(TData* theData, int theId){ - if (vtkDataArray *aVector = theData->GetVectors()) { - vtkFloatingPointType *aVal = aVector->GetTuple3(theId); - return QString("%1; %2; %3").arg(aVal[0]).arg(aVal[1]).arg(aVal[2]); - } else { - return QString("No data"); - } -} - -template TValueData getValueData( TPointID thePointVTKID, VISU_Actor* theActor, TData* theData ) -{ - TValueData aValueData; - - aValueData.Scalar = getScalar( theData, thePointVTKID ); - aValueData.Vector = getVector( theData, thePointVTKID ); - - return aValueData; -} - -TPointData getPointData( TPointID thePointVTKID, VISU_Actor* theActor, const VISU::PIDMapper& theMapper, - bool theIsValueData ) -{ - TPointData aPointData; - - vtkDataSet* aDataSet = theActor->GetMapper()->GetInput(); - - vtkFloatingPointType* aCoord = aDataSet->GetPoint( thePointVTKID ); - aPointData.X = aCoord[0]; - aPointData.Y = aCoord[1]; - aPointData.Z = aCoord[2]; - - TPointID aPointObjID = theActor->GetNodeObjId( thePointVTKID ); - VISU::TStructuredId aVec = theMapper->GetIndexesOfNode( aPointObjID ); - aPointData.I = aVec[0]; - aPointData.J = aVec[1]; - aPointData.K = aVec[2]; - - if( theIsValueData ) - aPointData.ValueData = getValueData( thePointVTKID, theActor, aDataSet->GetPointData() ); - - return aPointData; -} - -void VisuGUI_SelectionPanel::onSelectionEvent() { - SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow(myModule); - if (!aViewWindow) - return; - - switch (aViewWindow->SelectionMode()) { - case ActorSelection: - case CellSelection: - case NodeSelection: - case GaussPointSelection: - break; - default: - close(); - return; - } - - if (myFl) - return; - myFl = true; - - int aType = myTabWidget->currentIndex(); - - SVTK_RenderWindowInteractor* anInteractor = aViewWindow->GetInteractor(); - myGaussPointsPane->setInteractor(anInteractor); - - SVTK_Selector* aSelector = aViewWindow->GetSelector(); - - _PTR(SObject) aSObject; - VISU::Prs3d_i* aPrs3d = NULL; - Handle(SALOME_InteractiveObject) anIO; - - VISU::TSelectionInfo aSelectionInfo = VISU::GetSelectedObjects(myModule); - if(aSelectionInfo.size() == 1){ - // Get selected SObject - VISU::TSelectionItem aSelectionItem = aSelectionInfo.front(); - VISU::TObjectInfo anObjectInfo = aSelectionItem.myObjectInfo; - aPrs3d = GetPrs3dFromBase(anObjectInfo.myBase); - if(aPrs3d){ - anIO = aSelectionItem.myIO; - aSObject = anObjectInfo.mySObject; - } - } - - clearFields(); - - if (aPrs3d) { - QString aMeshName("NULL"), aFieldName("NULL"); - if (aSObject) { - VISU::Storable::TRestoringMap aMap = VISU::Storable::GetStorableMap(aSObject); - if (!aMap.empty()) { - aMeshName = VISU::Storable::FindValue(aMap, "myMeshName"); - aFieldName = VISU::Storable::FindValue(aMap, "myFieldName"); - } - } - - myMeshName ->setText((aMeshName == "NULL") ? QString("No name") : aMeshName); - myFieldName->setText((aFieldName == "NULL") ? QString("No name") : aFieldName); - - VISU_Actor* anVISUActor = - VISU::FindActor(VISU::GetAppStudy(myModule), aViewWindow, aSObject->GetID().c_str()); - myFindPane->setActor( anVISUActor ); - if (anVISUActor) { - vtkFloatingPointType aCoord[6]; - anVISUActor->GetBounds(aCoord); - myXPosLbl->setText(QString::number( aCoord[0] )); - myYPosLbl->setText(QString::number( aCoord[2] )); - myZPosLbl->setText(QString::number( aCoord[4] )); - - myDXLbl->setText(QString::number( fabs(aCoord[1]-aCoord[0]) )); - myDYLbl->setText(QString::number( fabs(aCoord[3]-aCoord[2]) )); - myDZLbl->setText(QString::number( fabs(aCoord[5]-aCoord[4]) )); - - TColStd_IndexedMapOfInteger aMapIndex; - aSelector->GetIndex(anIO, aMapIndex); - bool aSingleSelection = aMapIndex.Extent() == 1; - - vtkDataSet* aDataSet = anVISUActor->GetMapper()->GetInput(); - bool isElno = VISU::IsElnoData( aDataSet ); - - const VISU::PIDMapper& aMapper = aPrs3d->GetPipeLine()->GetIDMapper(); - bool isStructured = aMapper->IsStructured(); - - TCellToPointDataMap aCellToPointDataMap; - TPointToCellDataMap aPointToCellDataMap; - TPointDataMap aGlobalPointDataMap; - - for (int ind = 1; ind <= aMapIndex.Extent(); ind++) { - int anID = aMapIndex(ind); - - switch( aType ) - { - case 1: - { - if( aSingleSelection ) - myCellIDValLbl->setText( QString::number( anID ) ); - - vtkCell* aCell = anVISUActor->GetElemCell( anID ); - int aCellVTKID = anVISUActor->GetElemVTKID( anID ); - if( !aCell || aCellVTKID < 0 ) - break; - - int aNbOfPoints = aCell->GetNumberOfPoints(); - if( aNbOfPoints < 1 ) - break; - - TPointDataMap aPointDataMap; - - vtkIdList* aPointList = aCell->GetPointIds(); - for( int i = 0; i < aNbOfPoints; i++ ) - { - int aPointVTKID = aPointList->GetId(i); - - TPointID aPointID = anVISUActor->GetNodeObjId( aPointVTKID ); - TPointData aPointData = getPointData( aPointVTKID, anVISUActor, aMapper, true ); - aPointDataMap[ aPointID ] = aPointData; - aGlobalPointDataMap[ aPointID ] = aPointData; - } - - TCellToPointData aCellToPointData; - aCellToPointData.CellData = getValueData( aCellVTKID, anVISUActor, aDataSet->GetCellData() ); - aCellToPointData.PointDataMap = aPointDataMap; - aCellToPointDataMap[ anID ] = aCellToPointData; - break; - } - case 2: - { - if( aSingleSelection ) - myIDValLbl->setText( QString::number( anID ) ); - - int aPointVTKID = anVISUActor->GetNodeVTKID( anID ); - if( aPointVTKID < 0 ) - break; - - TCellDataMap aCellDataMap; - - VISU::TElnoPoints anElnoPoints = VISU::GetElnoPoints( aDataSet, anID ); - VISU::TElnoPoints::iterator anElnoIter = anElnoPoints.begin(); - for( ; anElnoIter != anElnoPoints.end(); anElnoIter++ ) - { - VISU::TElnoPointID anElnoPointID = *anElnoIter; - VISU::TVTKPointID aVTKPointID = anElnoPointID.first; - VISU::TVTKCellID aVTKCellID = anElnoPointID.second; - - TCellID aCellID = anVISUActor->GetElemObjId( aVTKCellID ); - TValueData aValueData = getValueData( aVTKPointID, anVISUActor, aDataSet->GetPointData() ); - aCellDataMap[ aCellID ] = aValueData; - } - - TPointToCellData aPointToCellData; - aPointToCellData.PointData = getPointData( aPointVTKID, anVISUActor, aMapper, !isElno ); - aPointToCellData.CellDataMap = aCellDataMap; - aPointToCellDataMap[ anID ] = aPointToCellData; - break; - } - } - } - - // Fill tables - QList aTableIds; - switch( aType ) - { - case 1: - if( isElno ) - aTableIds.append( CellElno ); - else - { - aTableIds.append( CellStdCell ); - aTableIds.append( CellStdPoint ); - } - break; - case 2: - aTableIds.append( isElno ? PointElno : PointStd ); - break; - } - - QListIterator aTableIter( aTableIds ); - while( aTableIter.hasNext() ) - { - int aTableId = aTableIter.next(); - if( !myTables.contains( aTableId ) ) - continue; - - QTableWidget* aTable = myTables[ aTableId ]; - if( !aTable ) - continue; - - int aRow = -1; - switch( aTableId ) - { - case CellStdPoint: - { - int aRowCount = aGlobalPointDataMap.size(); - aTable->setRowCount( aRowCount ); - - TPointDataMap::const_iterator aPointIter = aGlobalPointDataMap.begin(); - for( ; aPointIter != aGlobalPointDataMap.end(); aPointIter++ ) - { - aRow++; - TPointID aPointID = aPointIter.key(); - const TPointData& aPointData = aPointIter.value(); - const TValueData& aValueData = aPointData.ValueData; - - setData( aTableId, aRow, Point, aPointID ); - setData( aTableId, aRow, X, aPointData.X ); - setData( aTableId, aRow, Y, aPointData.Y ); - setData( aTableId, aRow, Z, aPointData.Z ); - setData( aTableId, aRow, I, aPointData.I ); - setData( aTableId, aRow, J, aPointData.J ); - setData( aTableId, aRow, K, aPointData.K ); - setData( aTableId, aRow, Scalar, aValueData.Scalar ); - setData( aTableId, aRow, Vector, aValueData.Vector ); - } - break; - } - case CellStdCell: - case CellElno: - { - int aRowCount = 0; - TCellToPointDataMap::const_iterator aCellToPointIter = aCellToPointDataMap.begin(); - for( ; aCellToPointIter != aCellToPointDataMap.end(); aCellToPointIter++ ) - { - if( aTableId == CellStdCell ) - aRowCount++; - else if( aTableId == CellElno ) - { - const TCellToPointData& aCellToPointData = aCellToPointIter.value(); - const TPointDataMap& aPointDataMap = aCellToPointData.PointDataMap; - int aNbPoints = aPointDataMap.size(); - - aRowCount += aNbPoints; - } - } - aTable->setRowCount( aRowCount ); - - aCellToPointIter = aCellToPointDataMap.begin(); - for( ; aCellToPointIter != aCellToPointDataMap.end(); aCellToPointIter++ ) - { - aRow++; - - TCellID aCellID = aCellToPointIter.key(); - const TCellToPointData& aCellToPointData = aCellToPointIter.value(); - const TValueData& aCellData = aCellToPointData.CellData; - - setData( aTableId, aRow, Cell, aCellID ); - if( aTableId == CellStdCell ) - { - setData( aTableId, aRow, Scalar, aCellData.Scalar ); - setData( aTableId, aRow, Vector, aCellData.Vector ); - } - else if( aTableId == CellElno ) - { - const TPointDataMap& aPointDataMap = aCellToPointData.PointDataMap; - int aNbPoints = aPointDataMap.size(); - if( aNbPoints > 1 ) - setRowSpan( aTableId, aRow, Cell, aNbPoints ); - - TPointDataMap::const_iterator aPointIter = aPointDataMap.begin(); - for( aRow--; aPointIter != aPointDataMap.end(); aPointIter++ ) - { - aRow++; - TPointID aPointID = aPointIter.key(); - const TPointData& aPointData = aPointIter.value(); - const TValueData& aValueData = aPointData.ValueData; - - setData( aTableId, aRow, Point, aPointID ); - setData( aTableId, aRow, X, aPointData.X ); - setData( aTableId, aRow, Y, aPointData.Y ); - setData( aTableId, aRow, Z, aPointData.Z ); - setData( aTableId, aRow, I, aPointData.I ); - setData( aTableId, aRow, J, aPointData.J ); - setData( aTableId, aRow, K, aPointData.K ); - setData( aTableId, aRow, Scalar, aValueData.Scalar ); - setData( aTableId, aRow, Vector, aValueData.Vector ); - } - } - } - break; - } - case PointStd: - case PointElno: - { - int aRowCount = 0; - TPointToCellDataMap::const_iterator aPointToCellIter = aPointToCellDataMap.begin(); - for( ; aPointToCellIter != aPointToCellDataMap.end(); aPointToCellIter++ ) - { - const TPointToCellData& aPointToCellData = aPointToCellIter.value(); - const TCellDataMap& aCellDataMap = aPointToCellData.CellDataMap; - int aNbCells = aCellDataMap.size(); - if( aNbCells > 1 ) - aRowCount += aNbCells; - else - aRowCount++; - } - aTable->setRowCount( aRowCount ); - - aPointToCellIter = aPointToCellDataMap.begin(); - for( ; aPointToCellIter != aPointToCellDataMap.end(); aPointToCellIter++ ) - { - aRow++; - - TPointID aPointID = aPointToCellIter.key(); - const TPointToCellData& aPointToCellData = aPointToCellIter.value(); - const TPointData& aPointData = aPointToCellData.PointData; - - setData( aTableId, aRow, Point, aPointID ); - setData( aTableId, aRow, X, aPointData.X ); - setData( aTableId, aRow, Y, aPointData.Y ); - setData( aTableId, aRow, Z, aPointData.Z ); - setData( aTableId, aRow, I, aPointData.I ); - setData( aTableId, aRow, J, aPointData.J ); - setData( aTableId, aRow, K, aPointData.K ); - - if( aTableId == PointElno ) - { - const TCellDataMap& aCellDataMap = aPointToCellData.CellDataMap; - int aNbCells = aCellDataMap.size(); - if( aNbCells > 1 ) - for( int aColumnId = Point; aColumnId <= K; aColumnId++ ) - setRowSpan( aTableId, aRow, aColumnId, aNbCells ); - - TCellDataMap::const_iterator aCellIter = aCellDataMap.begin(); - for( aRow--; aCellIter != aCellDataMap.end(); aCellIter++ ) - { - aRow++; - TCellID aCellID = aCellIter.key(); - const TValueData& aCellData = aCellIter.value(); - - setData( aTableId, aRow, Cell, aCellID ); - setData( aTableId, aRow, Scalar, aCellData.Scalar ); - setData( aTableId, aRow, Vector, aCellData.Vector ); - } - } - else - { - const TValueData& aValueData = aPointData.ValueData; - setData( aTableId, aRow, Scalar, aValueData.Scalar ); - setData( aTableId, aRow, Vector, aValueData.Vector ); - } - } - break; - } - } - - for( int aCol = column( aTableId, I ), aLastCol = column( aTableId, K ); aCol <= aLastCol; aCol++ ) - if( aCol != -1 ) - aTable->setColumnHidden( aCol, !isStructured ); - aTable->resizeColumnsToContents(); - } - - int stackId = isElno ? ElnoMesh : StdMesh; - QStackedWidget* aStackedWg = aType == 1 ? myCellStackedWg : aType == 2 ? myPointStackedWg : 0; - if( aStackedWg ) - aStackedWg->setCurrentIndex( stackId ); - } - } - myFl = false; -} - -void VisuGUI_SelectionPanel::clearFields() { - int aType = myTabWidget->currentIndex(); - switch (aType) { - case 0: - myXPosLbl->setText(""); - myYPosLbl->setText(""); - myZPosLbl->setText(""); - myDXLbl->setText(""); - myDYLbl->setText(""); - myDZLbl->setText(""); - break; - case 1: - myCellIDValLbl->setText( "" ); - break; - case 2: - myIDValLbl->setText( "" ); - break; - } - - QMap::iterator it = myTables.begin(), itEnd = myTables.end(); - for( ; it != itEnd; ++it ) - if( QTableWidget* aTable = *it ) - { - aTable->clearSpans(); - aTable->setRowCount(0); - aTable->resizeColumnsToContents(); - } -} - -typedef vtkIdType (VISU_PipeLine::* TGetVTKIdMethod)(vtkIdType theID); - -bool onIdEdit (const QString& theText, - TGetVTKIdMethod theMethod, - bool theIsCell, - const SalomeApp_Module* theModule, - QLabel* theMeshName, - QString theValue, - QLabel* theFieldName) -{ - SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow(theModule); - if (!aViewWindow) - return false; - SVTK_Selector* aSelector = aViewWindow->GetSelector(); - - _PTR(SObject) aSObject; - VISU::Prs3d_i* aPrs3d = NULL; - Handle(SALOME_InteractiveObject) anIO; - - VISU::TSelectionInfo aSelectionInfo = VISU::GetSelectedObjects(theModule); - if(aSelectionInfo.size() == 1){ - // Get selected SObject - VISU::TSelectionItem aSelectionItem = aSelectionInfo.front(); - VISU::TObjectInfo anObjectInfo = aSelectionItem.myObjectInfo; - aPrs3d = GetPrs3dFromBase(anObjectInfo.myBase); - if(aPrs3d){ - anIO = aSelectionItem.myIO; - aSObject = anObjectInfo.mySObject; - } - } - if (aPrs3d) { - bool ok = false; - int anObjId = theText.toInt( &ok ); - if( !ok ) - anObjId = -1; - - VISU_PipeLine* aPipeLine = aPrs3d->GetPipeLine(); - - if( dynamic_cast( aPipeLine ) ) - return false; - - if( anObjId < 0 ) - aSelector->ClearIndex(); - else - { - int aVTKId = (aPipeLine->*theMethod)(anObjId); - if(aVTKId < 0) - return false; - - TColStd_MapOfInteger newIndices; - newIndices.Add(anObjId); - aSelector->AddOrRemoveIndex(anIO, newIndices, false); - } - - aViewWindow->highlight(anIO, true, true); - - SVTK_RenderWindowInteractor* anInteractor = aViewWindow->GetInteractor(); - VISU_Actor* anActor = SVTK::Find(anInteractor->getRenderer()->GetActors(), - SVTK::TIsSameIObject( anIO )); - anActor->Highlight( anIO ); - - return true; - - } else { - theMeshName->setText(theValue); - theFieldName->setText(""); - } - return false; -} - -void VisuGUI_SelectionPanel::onPointIdEdit () -{ - if (myFl) return; - TGetVTKIdMethod aMethod = &VISU_PipeLine::GetNodeVTKID; - bool anIsSelected = onIdEdit(myIDValLbl->text(), - aMethod, - false, - myModule, - myMeshName, - tr("WRN_NO_AVAILABLE_DATA"), - myFieldName); - if (anIsSelected) - // as selection manager doesn't send signal currentSelectionChanged() - onSelectionEvent(); - else - clearFields(); -} - -void VisuGUI_SelectionPanel::onCellIdEdit () -{ - if (myFl) return; - TGetVTKIdMethod aMethod = &VISU_PipeLine::GetElemVTKID; - bool anIsSelected = onIdEdit(myCellIDValLbl->text(), - aMethod, - true, - myModule, - myMeshName, - tr("WRN_NO_AVAILABLE_DATA"), - myFieldName); - if (anIsSelected) - // as selection manager doesn't send signal currentSelectionChanged() - onSelectionEvent(); - else - clearFields(); -} - -void VisuGUI_SelectionPanel::onDoubleClicked( const QModelIndex& theIndex ) -{ - QTableWidget* aTable = dynamic_cast( sender() ); - if( !aTable ) - return; - - int aTableId = myTables.key( aTable, -1 ); - if( aTableId == -1 ) - return; - - int aRow = theIndex.row(), aCol = theIndex.column(); - const QList& aColumnList = myColumnData[ aTableId ]; - - if( aCol >= aColumnList.size() ) - return; - - int aColumnId = aColumnList[ aCol ]; - - bool anIsCellSelection = true; - switch( aColumnId ) - { - case Cell: - anIsCellSelection = true; - break; - case Point: - case X: - case Y: - case Z: - case I: - case J: - case K: - anIsCellSelection = false; - break; - case Scalar: - case Vector: - anIsCellSelection = aTableId == CellStdCell || aTableId == PointElno; - break; - default: - return; - } - - int anIdColumnId = anIsCellSelection ? Cell : Point; - QVariant anId = data( aTableId, aRow, anIdColumnId ); - - bool ok = false; - anId.toInt( &ok ); - if( !ok ) - return; - - if( anIsCellSelection ) - { - setSelectionMode( 1 ); - myCellIDValLbl->setText( anId.toString() ); - onCellIdEdit(); - } - else - { - setSelectionMode( 2 ); - myIDValLbl->setText( anId.toString() ); - onPointIdEdit(); - } -} - -void VisuGUI_SelectionPanel::onIdChanged( int theFirstId, int theSecondId ) -{ - int aType = myTabWidget->currentIndex(); - if( aType == 1 ) - { - myCellIDValLbl->setText( theFirstId < 0 ? "" : QString::number( theFirstId ) ); - onCellIdEdit(); - } - else if( aType == 2 ) - { - myIDValLbl->setText( theFirstId < 0 ? "" : QString::number( theFirstId ) ); - onPointIdEdit(); - } - else if( aType == 3 ) - myGaussPointsPane->setIds( theFirstId, theSecondId ); -} - -void VisuGUI_SelectionPanel::onPreferences() -{ - preferencesDlg()->exec(); -} - -void VisuGUI_SelectionPanel::onApply() -{ - VisuGUI_Panel::onApply(); -} - -void VisuGUI_SelectionPanel::onClose() -{ - close(); - VisuGUI_Panel::onClose(); -} - -void VisuGUI_SelectionPanel::onHelp() -{ - QString aHelpFileName = "selection_info_page.html"; - LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication()); - if (app) - app->onHelpContextModule(myModule ? app->moduleName(myModule->moduleName()) : QString(""), aHelpFileName); - else { - QString platform; -#ifdef WIN32 - platform = "winapplication"; -#else - platform = "application"; -#endif - SUIT_MessageBox::warning(0, QObject::tr("WRN_WARNING"), - QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE"). - arg(app->resourceMgr()->stringValue("ExternalBrowser", platform)).arg(aHelpFileName) ); - } - - VisuGUI_Panel::onHelp(); -} - -void VisuGUI_SelectionPanel::keyPressEvent( QKeyEvent* e ) -{ - VisuGUI_Panel::keyPressEvent( e ); - if ( e->isAccepted() ) - return; - - if ( e->key() == Qt::Key_F1 ) - { - e->accept(); - onHelp(); - } -} diff --git a/src/VISUGUI/VisuGUI_SelectionPanel.h b/src/VISUGUI/VisuGUI_SelectionPanel.h deleted file mode 100644 index 3d5faf1b..00000000 --- a/src/VISUGUI/VisuGUI_SelectionPanel.h +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_SelectionPanel.h -// Author : Laurent CORNABE & Hubert ROLLAND -// Module : VISU -// $Header$ -// -#ifndef VISUGUI_SELECTIONPANEL_H -#define VISUGUI_SELECTIONPANEL_H - -#include - -#include - -#include - -class QLabel; -class QLineEdit; -class QModelIndex; -class QStackedWidget; -class QTableWidget; -class QTabWidget; - -class VisuGUI_GaussPointsSelectionPane; -class VisuGUI_FindPane; -class VisuGUI_SelectionPrefDlg; - -typedef vtkIdType TPointID; -typedef vtkIdType TCellID; - -struct TValueData -{ - QString Scalar; - QString Vector; -}; - -struct TPointData -{ - vtkFloatingPointType X; - vtkFloatingPointType Y; - vtkFloatingPointType Z; - vtkIdType I; - vtkIdType J; - vtkIdType K; - TValueData ValueData; -}; - -typedef QMap TPointDataMap; -typedef QMap TCellDataMap; - -struct TCellToPointData -{ - TValueData CellData; - TPointDataMap PointDataMap; -}; - -struct TPointToCellData -{ - TPointData PointData; - TCellDataMap CellDataMap; -}; - -typedef QMap TCellToPointDataMap; -typedef QMap TPointToCellDataMap; - -class VisuGUI_SelectionPanel: public VisuGUI_Panel -{ - Q_OBJECT - - enum MeshType { StdMesh = 0, ElnoMesh }; - enum TableId { CellStdCell = 0, CellStdPoint, PointStd, CellElno, PointElno }; - enum ColumnId { Cell = 0, Point, X, Y, Z, I, J, K, Scalar, Vector }; - -public: - VisuGUI_SelectionPanel( const VisuGUI* theModule, QWidget* theParent = 0 ); - virtual ~VisuGUI_SelectionPanel (); - -public: - void setSelectionMode( int theId ); - -protected: - virtual void keyPressEvent( QKeyEvent* theEvent ); - virtual void showEvent( QShowEvent* theEvent ); - virtual void closeEvent( QCloseEvent* theEvent ); - -private slots: - virtual void onApply(); - virtual void onClose(); - virtual void onHelp(); - - void onPreferences(); - - void onSelectionModeChanged( int theId ); - void onSelectionEvent(); - void onPointIdEdit(); - void onCellIdEdit(); - void onDoubleClicked( const QModelIndex& theIndex ); - - void onIdChanged( int theFirstId, int theSecondId ); - -signals: - void selectionModeChanged( int ); - -private: - VisuGUI_SelectionPrefDlg* preferencesDlg(); - void clearFields(); - - int column( int theTableId, int theColumnId ); - QVariant data( int theTableId, int theRow, int theColumnId ); - void setData( int theTableId, int theRow, int theColumnId, const QVariant& theValue ); - void setRowSpan( int theTableId, int theRow, int theColumnId, int theRowSpan ); - -private: - QLabel* myMeshName; - QLabel* myFieldName; - - QTabWidget* myTabWidget; - QWidget* myPointsPane; - QWidget* myCellsPane; - - QLineEdit* myIDValLbl; - QStackedWidget* myPointStackedWg; - - QLineEdit* myCellIDValLbl; - QStackedWidget* myCellStackedWg; - - QMap myTables; - - QWidget* myActorsPane; - QLabel* myXPosLbl; - QLabel* myYPosLbl; - QLabel* myZPosLbl; - QLabel* myDXLbl; - QLabel* myDYLbl; - QLabel* myDZLbl; - - VisuGUI_GaussPointsSelectionPane* myGaussPointsPane; - - VisuGUI_FindPane* myFindPane; - - VisuGUI_SelectionPrefDlg* myPreferencesDlg; - - bool myFl; - - QMap< int, QList > myColumnData; -}; - -#endif diff --git a/src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx b/src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx deleted file mode 100644 index 6022b9b3..00000000 --- a/src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx +++ /dev/null @@ -1,300 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// File : VisuGUI_SelectionPrefDlg.cxx -// Author : Oleg UVAROV -// Module : SALOME -// -#include "VisuGUI_SelectionPrefDlg.h" -#include "VisuGUI.h" - -#include "VISU_PickingSettings.h" - -#include -#include -#include -#include -#include -#include - -#include - -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -using namespace std; - -/*! - Constructor -*/ -VisuGUI_SelectionPrefDlg::VisuGUI_SelectionPrefDlg( QWidget* parent ) - : QDialog( parent ? parent : SUIT_Session::session()->activeApplication()->desktop(), - Qt::WindowTitleHint | Qt::WindowSystemMenuHint ) -{ - setWindowTitle( tr("TLT_SELECTION_PREFERENCES") ); - setSizeGripEnabled( TRUE ); - setModal( true ); - - QVBoxLayout* topLayout = new QVBoxLayout( this ); - topLayout->setMargin( 11 ); topLayout->setSpacing( 6 ); - - // Cursor (gauss points) - QGroupBox* CursorGroup = new QGroupBox( tr( "CURSOR_TITLE" ), this ); - QGridLayout* CursorGroupLayout = new QGridLayout (CursorGroup); - CursorGroupLayout->setAlignment(Qt::AlignTop | Qt::AlignCenter); - CursorGroupLayout->setSpacing(6); - CursorGroupLayout->setMargin(11); - - QLabel* CursorSizeLabel = new QLabel( tr( "CURSOR_SIZE" ), CursorGroup ); - myCursorSizeSpinBox = new QtxDoubleSpinBox( 0, 1, 0.1, CursorGroup ); - myCursorSizeSpinBox->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); - - QLabel* PyramidHeightLabel = new QLabel( tr( "PYRAMID_HEIGHT" ), CursorGroup ); - double aHeightMin=1.e-7; - double aHeightMax=10.; - double aHeightStep=0.1; - myPyramidHeightSpinBox = new QtxDoubleSpinBox(aHeightMin, aHeightMax, aHeightStep, CursorGroup ); - myPyramidHeightSpinBox->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); - - QLabel* SelectionColorLabel = new QLabel( tr( "SELECTION_COLOR" ), CursorGroup ); - mySelectionColorButton = new QtxColorButton( CursorGroup ); - mySelectionColorButton->setColor( Qt::blue ); - - CursorGroupLayout->addWidget( CursorSizeLabel, 0, 0 ); - CursorGroupLayout->addWidget( myCursorSizeSpinBox, 0, 1 ); - CursorGroupLayout->addWidget( PyramidHeightLabel, 1, 0 ); - CursorGroupLayout->addWidget( myPyramidHeightSpinBox, 1, 1 ); - CursorGroupLayout->addWidget( SelectionColorLabel, 2, 0 ); - CursorGroupLayout->addWidget( mySelectionColorButton, 2, 1 ); - - topLayout->addWidget( CursorGroup ); - - // Tolerance (gauss points) - QGroupBox* ToleranceGroup = new QGroupBox( tr( "TOLERANCE_TITLE" ), this ); - QGridLayout* ToleranceGroupLayout = new QGridLayout (ToleranceGroup); - ToleranceGroupLayout->setAlignment(Qt::AlignTop | Qt::AlignCenter); - ToleranceGroupLayout->setSpacing(6); - ToleranceGroupLayout->setMargin(11); - - QLabel* PointToleranceLabel = new QLabel( tr( "POINT_TOLERANCE" ), ToleranceGroup ); - myPointToleranceSpinBox = new QtxDoubleSpinBox( 0.001, 10.0, 0.01, ToleranceGroup ); - myPointToleranceSpinBox->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); - - ToleranceGroupLayout->addWidget( PointToleranceLabel, 0, 0 ); - ToleranceGroupLayout->addWidget( myPointToleranceSpinBox, 0, 1 ); - - topLayout->addWidget( ToleranceGroup ); - - // Information window - myInfoWindowGroup = new QGroupBox( tr( "INFO_WINDOW_TITLE" ), this ); - myInfoWindowGroup->setCheckable( true ); - - QGridLayout* InfoWindowGroupLayout = new QGridLayout (myInfoWindowGroup); - InfoWindowGroupLayout->setAlignment(Qt::AlignTop | Qt::AlignCenter); - - QLabel* TransparencyLabel = new QLabel( tr( "TRANSPARENCY" ), myInfoWindowGroup ); - myTransparencySpinBox = new QtxIntSpinBox( 0, 100, 10, myInfoWindowGroup ); - myTransparencySpinBox->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); - - InfoWindowGroupLayout->addWidget( TransparencyLabel, 0, 0 ); - InfoWindowGroupLayout->addWidget( myTransparencySpinBox, 0, 1 ); - - QLabel* PositionLabel = new QLabel( tr( "POSITION" ), myInfoWindowGroup ); - myPositionComboBox = new QComboBox( myInfoWindowGroup ); - myPositionComboBox->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); - - myPositionComboBox->addItem( tr( "BELOW_POINT" ) ); - myPositionComboBox->addItem( tr( "TOP_LEFT_CORNER" ) ); - - InfoWindowGroupLayout->addWidget( TransparencyLabel, 0, 0 ); - InfoWindowGroupLayout->addWidget( myTransparencySpinBox, 0, 1 ); - InfoWindowGroupLayout->addWidget( PositionLabel, 1, 0 ); - InfoWindowGroupLayout->addWidget( myPositionComboBox, 1, 1 ); - - topLayout->addWidget( myInfoWindowGroup ); - - // Movement of the camera - myCameraGroup = new QGroupBox( tr( "CAMERA_TITLE" ), this ); - myCameraGroup->setCheckable( true ); - - QGridLayout* CameraGroupLayout = new QGridLayout (myCameraGroup); - CameraGroupLayout->setAlignment(Qt::AlignTop | Qt::AlignCenter); - - QLabel* ZoomFactorLabel = new QLabel( tr( "ZOOM_FACTOR" ), myCameraGroup ); - myZoomFactorSpinBox = new QtxDoubleSpinBox( 0.1, 10.0, 0.1, myCameraGroup ); - myZoomFactorSpinBox->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); - - QLabel* StepNumberLabel = new QLabel( tr( "STEP_NUMBER" ), myCameraGroup ); - StepNumberLabel->setToolTip( tr( "STEP_NUMBER_TIP" ) ); - myStepNumberSpinBox = new QtxIntSpinBox( 1, 100, 1, myCameraGroup ); - myStepNumberSpinBox->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); - - CameraGroupLayout->addWidget( ZoomFactorLabel, 0, 0 ); - CameraGroupLayout->addWidget( myZoomFactorSpinBox, 0, 1 ); - CameraGroupLayout->addWidget( StepNumberLabel, 1, 0 ); - CameraGroupLayout->addWidget( myStepNumberSpinBox, 1, 1 ); - - topLayout->addWidget( myCameraGroup ); - - // Common buttons - QGroupBox* GroupButtons = new QGroupBox( this ); - QHBoxLayout* GroupButtonsLayout = new QHBoxLayout( GroupButtons ); - GroupButtonsLayout->setAlignment( Qt::AlignTop ); - GroupButtonsLayout->setMargin( 11 ); GroupButtonsLayout->setSpacing( 6 ); - - myButtonOk = new QPushButton( GroupButtons ); - myButtonOk->setText( tr( "BUT_OK" ) ); - myButtonOk->setAutoDefault( TRUE ); myButtonOk->setDefault( TRUE ); - GroupButtonsLayout->addWidget( myButtonOk ); - - myButtonApply = new QPushButton( GroupButtons ); - myButtonApply->setText( tr( "BUT_APPLY" ) ); - myButtonApply->setAutoDefault( TRUE ); - GroupButtonsLayout->addWidget( myButtonApply ); - - GroupButtonsLayout->addStretch(); - - myButtonCancel = new QPushButton( GroupButtons ); - myButtonCancel->setText( tr( "BUT_CANCEL" ) ); - myButtonCancel->setAutoDefault( TRUE ); - GroupButtonsLayout->addWidget( myButtonCancel ); - - myButtonHelp = new QPushButton( GroupButtons ); - myButtonHelp->setText( tr( "BUT_HELP" ) ); - myButtonHelp->setAutoDefault( TRUE ); - GroupButtonsLayout->addWidget( myButtonHelp ); - /***************************************************************/ - - //topLayout->addWidget( GroupC1 ); - topLayout->addWidget( GroupButtons ); - - // signals and slots connections - connect( myButtonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); - connect( myButtonApply, SIGNAL( clicked() ), this, SLOT( onApply() ) ); - connect( myButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); - connect( myButtonHelp, SIGNAL( clicked() ), this, SLOT( onHelp() ) ); - - /* Move widget on the botton right corner of main widget */ - SUIT_Tools::centerWidget( this, parent ); -} - -/*! - Destructor -*/ -VisuGUI_SelectionPrefDlg::~VisuGUI_SelectionPrefDlg() -{ -} - -void VisuGUI_SelectionPrefDlg::update() -{ - VISU_PickingSettings* aPickingSettings = VISU_PickingSettings::Get(); - - myCursorSizeSpinBox->setValue( aPickingSettings->GetCursorSize() ); - myPyramidHeightSpinBox->setValue( aPickingSettings->GetPyramidHeight() ); - myPointToleranceSpinBox->setValue( aPickingSettings->GetPointTolerance() ); - - vtkFloatingPointType* aColor = aPickingSettings->GetColor(); - mySelectionColorButton->setColor( QColor( ( int )( aColor[0] * 255.0 ), - ( int )( aColor[1] * 255.0 ), - ( int )( aColor[2] * 255.0 ) ) ); - - myInfoWindowGroup->setChecked( aPickingSettings->GetInfoWindowEnabled() ); - myTransparencySpinBox->setValue( int(aPickingSettings->GetInfoWindowTransparency() * 100.0) ); - myPositionComboBox->setCurrentIndex( aPickingSettings->GetInfoWindowPosition() ); - myCameraGroup->setChecked( aPickingSettings->GetCameraMovementEnabled() ); - myZoomFactorSpinBox->setValue( aPickingSettings->GetZoomFactor() ); - myStepNumberSpinBox->setValue( aPickingSettings->GetStepNumber() ); -} - -void VisuGUI_SelectionPrefDlg::accept() -{ - onApply(); - - QDialog::accept(); -} - -void VisuGUI_SelectionPrefDlg::onApply() -{ - VISU_PickingSettings* aPickingSettings = VISU_PickingSettings::Get(); - - aPickingSettings->SetCursorSize( myCursorSizeSpinBox->value() ); - aPickingSettings->SetPyramidHeight( myPyramidHeightSpinBox->value() ); - aPickingSettings->SetPointTolerance( myPointToleranceSpinBox->value() ); - - QColor aButtonColor = mySelectionColorButton->color(); - vtkFloatingPointType aColor[3]; - aColor[0] = aButtonColor.red() / 255.0; - aColor[1] = aButtonColor.green() / 255.0; - aColor[2] = aButtonColor.blue() / 255.0; - aPickingSettings->SetColor( aColor ); - - aPickingSettings->SetInfoWindowEnabled( myInfoWindowGroup->isChecked() ); - aPickingSettings->SetInfoWindowTransparency( myTransparencySpinBox->value() / 100.0 ); - aPickingSettings->SetInfoWindowPosition( myPositionComboBox->currentIndex() ); - aPickingSettings->SetCameraMovementEnabled( myCameraGroup->isChecked() ); - aPickingSettings->SetZoomFactor( myZoomFactorSpinBox->value() ); - aPickingSettings->SetStepNumber( myStepNumberSpinBox->value() ); - - aPickingSettings->InvokeEvent( VISU::UpdatePickingSettingsEvent,NULL ); -} - -void VisuGUI_SelectionPrefDlg::onHelp() -{ - QString aHelpFileName = "selection_preferences_page.html"; - LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication()); - if (app) { - VisuGUI* aVisuGUI = dynamic_cast( app->activeModule() ); - app->onHelpContextModule(aVisuGUI ? app->moduleName(aVisuGUI->moduleName()) : QString(""), aHelpFileName); - } - else { - QString platform; -#ifdef WIN32 - platform = "winapplication"; -#else - platform = "application"; -#endif - SUIT_MessageBox::warning(0, QObject::tr("WRN_WARNING"), - QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE"). - arg(app->resourceMgr()->stringValue("ExternalBrowser", platform)).arg(aHelpFileName) ); - } -} - -void VisuGUI_SelectionPrefDlg::keyPressEvent( QKeyEvent* e ) -{ - QDialog::keyPressEvent( e ); - if ( e->isAccepted() ) - return; - - if ( e->key() == Qt::Key_F1 ) - { - e->accept(); - onHelp(); - } -} diff --git a/src/VISUGUI/VisuGUI_SelectionPrefDlg.h b/src/VISUGUI/VisuGUI_SelectionPrefDlg.h deleted file mode 100644 index fcae10cc..00000000 --- a/src/VISUGUI/VisuGUI_SelectionPrefDlg.h +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// File : VisuGUI_SelectionPrefDlg.cxx -// Author : Oleg UVAROV -// Module : SALOME -// -#ifndef VisuGUI_SELECTIONPREFDLG_H -#define VisuGUI_SELECTIONPREFDLG_H - -#include - -class QComboBox; -class QGroupBox; -class QPushButton; - -class QtxColorButton; -class QtxDoubleSpinBox; -class QtxIntSpinBox; - -class VisuGUI_SelectionPrefDlg : public QDialog -{ - Q_OBJECT - -public: - VisuGUI_SelectionPrefDlg( QWidget* parent = 0 ); - ~VisuGUI_SelectionPrefDlg(); - -public: - void update(); - -private: - void keyPressEvent( QKeyEvent* e ); - -protected slots: - void accept(); - - void onApply(); - void onHelp(); - -private: - QtxDoubleSpinBox* myCursorSizeSpinBox; - QtxDoubleSpinBox* myPyramidHeightSpinBox; - QtxColorButton* mySelectionColorButton; - QtxDoubleSpinBox* myPointToleranceSpinBox; - - QGroupBox* myInfoWindowGroup; - QtxIntSpinBox* myTransparencySpinBox; - QComboBox* myPositionComboBox; - - QGroupBox* myCameraGroup; - QtxDoubleSpinBox* myZoomFactorSpinBox; - QtxIntSpinBox* myStepNumberSpinBox; - - QPushButton* myButtonOk; - QPushButton* myButtonApply; - QPushButton* myButtonCancel; - QPushButton* myButtonHelp; -}; - -#endif // VisuGUI_SELECTIONPREFDLG_H diff --git a/src/VISUGUI/VisuGUI_Sweep.cxx b/src/VISUGUI/VisuGUI_Sweep.cxx deleted file mode 100644 index cf33ba45..00000000 --- a/src/VISUGUI/VisuGUI_Sweep.cxx +++ /dev/null @@ -1,541 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_Slider.cxx -// Author : Oleg UVAROV -// Module : VISU -// -#include "VisuGUI_Sweep.h" - -#include "SUIT_ResourceMgr.h" - -#include "LightApp_SelectionMgr.h" - -#include "VISU_Actor.h" - -#include "VisuGUI.h" -#include "VisuGUI_Tools.h" -#include "VisuGUI_ViewTools.h" -#include "VISU_ColoredPrs3d_i.hh" -#include "VISU_Actor.h" - -#include "QtxDockWidget.h" -#include "QtxIntSpinBox.h" -#include "QtxDoubleSpinBox.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -/*! - Constructor -*/ -VisuGUI_Sweep::VisuGUI_Sweep( VisuGUI* theModule, - QMainWindow* theParent, - LightApp_SelectionMgr* theSelectionMgr ) - : QWidget( theParent ) - , myModule( theModule ) - , myViewWindow( NULL ) -{ - setWindowTitle( tr("TITLE") ); - setObjectName( tr("TITLE") ); - - SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr(); - - //---------------------------------------------------------------------------- - QVBoxLayout* aVBoxLayout = new QVBoxLayout( this ); - - QTabWidget* aTabWidget = new QTabWidget( this ); - aTabWidget->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Fixed ); - aVBoxLayout->addWidget( aTabWidget ); - - { - QWidget* aNavigationTab = new QWidget(); - { - QVBoxLayout* aVBoxLayout = new QVBoxLayout( aNavigationTab ); - { - QHBoxLayout* aHBoxLayout = new QHBoxLayout(); - - QLabel* aStartSweepPosition = new QLabel( aNavigationTab ); - aStartSweepPosition->setText( tr( "START_SWEEP_POSITION" ) ); - aHBoxLayout->addWidget( aStartSweepPosition ); - - mySweepSlider = new QSlider( aNavigationTab ); - mySweepSlider->setOrientation( Qt::Horizontal ); - mySweepSlider->setMinimum( 0 ); - aHBoxLayout->addWidget( mySweepSlider ); - - QLabel* anEndSweepPosition = new QLabel( aNavigationTab ); - anEndSweepPosition->setText( tr( "END_SWEEP_POSITION" ) ); - aHBoxLayout->addWidget( anEndSweepPosition ); - - aVBoxLayout->addLayout( aHBoxLayout ); - } - { - QHBoxLayout* aHBoxLayout = new QHBoxLayout(); - - myFirstButton = new QToolButton( aNavigationTab ); - myFirstButton->setIcon( aResourceMgr->loadPixmap( "VISU", tr( "ICON_SLIDER_FIRST" ) ) ); - myFirstButton->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ); - connect( myFirstButton, SIGNAL( clicked() ), SLOT( onFirst() ) ); - aHBoxLayout->addWidget( myFirstButton ); - - myPreviousButton = new QToolButton( aNavigationTab ); - myPreviousButton->setIcon( aResourceMgr->loadPixmap( "VISU", tr( "ICON_SLIDER_PREVIOUS" ) ) ); - myPreviousButton->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ); - connect( myPreviousButton, SIGNAL( clicked() ), SLOT( onPrevious() ) ); - aHBoxLayout->addWidget( myPreviousButton ); - - myPlayButton = new QToolButton( aNavigationTab ); - myPlayButton->setIcon( aResourceMgr->loadPixmap( "VISU", tr( "ICON_SLIDER_PLAY" ) ) ); - myPlayButton->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ); - myPlayButton->setCheckable( true ); - aHBoxLayout->addWidget( myPlayButton ); - - myNextButton = new QToolButton( aNavigationTab ); - myNextButton->setIcon( aResourceMgr->loadPixmap( "VISU", tr( "ICON_SLIDER_NEXT" ) ) ); - myNextButton->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ); - connect( myNextButton, SIGNAL( clicked() ), SLOT( onNext() ) ); - aHBoxLayout->addWidget( myNextButton ); - - myLastButton = new QToolButton( aNavigationTab ); - myLastButton->setIcon( aResourceMgr->loadPixmap( "VISU", tr( "ICON_SLIDER_LAST" ) ) ); - myLastButton->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ); - connect( myLastButton, SIGNAL( clicked() ), SLOT( onLast() ) ); - aHBoxLayout->addWidget( myLastButton ); - - aVBoxLayout->addLayout( aHBoxLayout ); - } - { - QHBoxLayout* aHBoxLayout = new QHBoxLayout(); - - QToolButton* aStopButton = new QToolButton( aNavigationTab ); - aStopButton->setIcon( aResourceMgr->loadPixmap( "VISU", tr( "ICON_SWEEP_STOP" ) ) ); - aStopButton->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ); - aStopButton->setCheckable( false ); - connect( aStopButton, SIGNAL( clicked( ) ), SLOT( onStop( ) ) ); - aHBoxLayout->addWidget( aStopButton ); - - myIsCycled = new QCheckBox( aNavigationTab ); - myIsCycled->setText( tr( "IS_CYCLED" ) ); - myIsCycled->setChecked( false ); - aHBoxLayout->addWidget( myIsCycled ); - - aVBoxLayout->addLayout( aHBoxLayout ); - } - - aTabWidget->addTab( aNavigationTab, tr( "NAVIGATION_TAB" ) ); - } - } - { - QWidget* aPropertiesTab = new QWidget(); - { - QGridLayout* aGridLayout = new QGridLayout( aPropertiesTab ); - { - QHBoxLayout* aHBoxLayout = new QHBoxLayout(); - - QLabel* aModeAnnotation = new QLabel( aPropertiesTab ); - aModeAnnotation->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Preferred ); - aModeAnnotation->setText( tr( "MODE" ) ); - aHBoxLayout->addWidget( aModeAnnotation ); - - mySweepMode = new QComboBox( aPropertiesTab ); - mySweepMode->insertItems( 0, QStringList() - << tr( "LINEAR" ) - << tr( "COSINUSOIDAL" ) - << tr( "SINUSOIDAL" ) ); - mySweepMode->setCurrentIndex( aResourceMgr->integerValue( "VISU", "sweeping_modes", 0 ) ); - aHBoxLayout->addWidget( mySweepMode ); - - myIntervals = new QComboBox( aPropertiesTab ); - myIntervals->insertItems( 0, QStringList() - << tr( "[ 0, +PI ]" ) - << tr( "[ -PI, +PI ]" ) ); - myIntervals->setCurrentIndex( aResourceMgr->integerValue( "VISU", "sweeping_is2PI", 0 ) ); - aHBoxLayout->addWidget( myIntervals ); - - aGridLayout->addLayout( aHBoxLayout, 0, 0, 1, 2 ); - } - - QLabel* aNumberOfStepsAnnotation = new QLabel( aPropertiesTab ); - aNumberOfStepsAnnotation->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Preferred ); - aNumberOfStepsAnnotation->setText( tr( "NUMBER_OF_STEPS" ) ); - aGridLayout->addWidget( aNumberOfStepsAnnotation, 1, 0, 1, 1 ); - - myNumberOfSteps = new QtxIntSpinBox( aPropertiesTab ); - connect( myNumberOfSteps, SIGNAL( valueChanged( int ) ), SLOT( onNumberOfStepsChanged( int ) ) ); - myNumberOfSteps->setValue( aResourceMgr->integerValue( "VISU", "sweeping_number_steps", 40 ) ); - aGridLayout->addWidget( myNumberOfSteps, 1, 1, 1, 1 ); - - QLabel* aStepDelayAnnotation = new QLabel( aPropertiesTab ); - aStepDelayAnnotation->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Preferred ); - aStepDelayAnnotation->setText( tr( "DELAY_BETWEEN_STEPS" ) ); - aGridLayout->addWidget( aStepDelayAnnotation, 2, 0, 1, 1 ); - - myStepDelay = new QtxDoubleSpinBox( aPropertiesTab ); - myStepDelay->setValue( aResourceMgr->doubleValue("VISU", "sweeping_time_step", 0.1) ); - aGridLayout->addWidget( myStepDelay, 2, 1, 1, 1 ); - } - - aTabWidget->addTab( aPropertiesTab, tr( "PROPERTIES_TAB" ) ); - } - - { - QSpacerItem* aSpacerItem = new QSpacerItem( 16, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); - aVBoxLayout->addItem( aSpacerItem ); - } - - - //---------------------------------------------------------------------------- - QtxDockWidget* aQtxDockWidget = new QtxDockWidget( true, theParent ); - theParent->addDockWidget( Qt::BottomDockWidgetArea , aQtxDockWidget ); - aQtxDockWidget->setObjectName( objectName() ); - aQtxDockWidget->setWidget( this ); - - myToggleViewAction = aQtxDockWidget->toggleViewAction(); - myToggleViewAction->setIcon( QIcon( aResourceMgr->loadPixmap( "VISU", tr( "ICON_SWEEP_PANEL" ) ) ) ); - myToggleViewAction->setToolTip( tr( "MEN_SWEEP_PANE" ) ); - myToggleViewAction->setText( tr( "MEN_SWEEP_PANE" ) ); - myToggleViewAction->setCheckable( true ); - aQtxDockWidget->setVisible( false ); - - connect( myToggleViewAction, SIGNAL( toggled( bool ) ), this, SLOT( onToggleView( bool ) ) ); - - //---------------------------------------------------------------------------- - myTimer = new QTimer( this ); - - myPlayPixmap = aResourceMgr->loadPixmap( "VISU", tr( "ICON_SLIDER_PLAY" ) ); - myPausePixmap = aResourceMgr->loadPixmap( "VISU", tr( "ICON_SLIDER_PAUSE" ) ); - - connect( myTimer, SIGNAL( timeout() ), SLOT( onTimeout() ) ); - - connect( myPlayButton, SIGNAL( toggled( bool ) ), SLOT( onPlay( bool ) ) ); - - connect( mySweepSlider, SIGNAL( valueChanged( int ) ), SLOT( onValueChanged( int ) ) ); - - connect( myStepDelay, SIGNAL( valueChanged( double ) ), SLOT( onDelayChanged( double ) ) ); - - connect( mySweepMode, SIGNAL( currentIndexChanged( int ) ), SLOT( onModeChanged( int ) ) ); - - connect( theModule, SIGNAL( moduleDeactivated() ), SLOT( onModuleDeactivated() ) ); - - connect( theModule, SIGNAL( moduleActivated() ), SLOT( onModuleActivated() ) ); - - connect( theSelectionMgr, SIGNAL( currentSelectionChanged() ), SLOT( onSelectionChanged() ) ); - - onSelectionChanged(); - - onModeChanged( mySweepMode->currentIndex() ); -} - - -//---------------------------------------------------------------------------- -VisuGUI_Sweep::~VisuGUI_Sweep() -{} - - -//---------------------------------------------------------------------------- -QAction* VisuGUI_Sweep::toggleViewAction() -{ - return myToggleViewAction; -} - - -//---------------------------------------------------------------------------- -void VisuGUI_Sweep::onModuleDeactivated() -{ - setHidden( true ); - - onEnable( true ); -} - - -//---------------------------------------------------------------------------- -void VisuGUI_Sweep::onModuleActivated() -{ - setHidden( false ); -} - - -//---------------------------------------------------------------------------- -namespace -{ - struct TEnabler - { - VisuGUI_Sweep* myWidget; - bool& myIsValidSelection; - - TEnabler( VisuGUI_Sweep* theWidget, bool& theIsValidSelection ) - : myWidget( theWidget ) - , myIsValidSelection( theIsValidSelection ) - {} - - ~TEnabler() - { - myWidget->onEnable( !myIsValidSelection ); - } - }; -} - - -//---------------------------------------------------------------------------- -void VisuGUI_Sweep::onSelectionChanged() -{ - VISU_Actor* anActor = NULL; - VISU::Prs3d_i* aPrs3d = NULL; - SVTK_ViewWindow* aViewWindow = NULL; - - bool anIsValidSelection = VISU::GetPrs3dSelectionInfo( myModule, aPrs3d, aViewWindow, anActor ); - - // To instantiate special helper class which will analyze validity of selection - // and make appropritate actions - TEnabler anEnabler( this, anIsValidSelection ); - - anIsValidSelection &= bool( aViewWindow ); - - // To keep the pointer on the view window properly it is necessary to get known when - // it will be destroyed - if ( myViewWindow != aViewWindow ) { - if ( myViewWindow ) - disconnect( myViewWindow, SIGNAL( destroyed( QObject * ) ), this, SLOT( onSelectionChanged() ) ); - - myViewWindow = aViewWindow; - - if ( myViewWindow ) - connect( myViewWindow, SIGNAL( destroyed( QObject * ) ), this, SLOT( onSelectionChanged() ) ); - } - - if(!VISU::GetActiveViewWindow(myModule)) { - myActor = NULL; - return; - } - - VISU::ColoredPrs3d_i* aColoredPrs3d = dynamic_cast< VISU::ColoredPrs3d_i* >( aPrs3d ); - anIsValidSelection &= ( aColoredPrs3d && aColoredPrs3d->IsTimeStampFixed() ); - - if ( myColoredPrs3d ) { - myColoredPrs3d->SetMapScale( 1.0 ); - myColoredPrs3d->UpdateActors(); - } - - myColoredPrs3d = aColoredPrs3d; - - anIsValidSelection &= ( anActor && anActor->GetVisibility() ); - - myActor = anActor; -} - - -//---------------------------------------------------------------------------- -void VisuGUI_Sweep::onValueChanged( int value ) -{ - bool anIsValidSelection = ( myColoredPrs3d != NULL ) - && (myActor.GetPointer() != NULL ); - - if ( !anIsValidSelection ) - return; - - QApplication::setOverrideCursor(Qt::WaitCursor); - - int aSweepMode = mySweepMode->currentIndex(); - int aNbSteps = myNumberOfSteps->value(); - - double anArgument = double( value ) / aNbSteps; - - int anIntervalMode = myIntervals->currentIndex(); - // To correct the input value according to the given interval mode - if ( aSweepMode != 0 ) { - switch ( anIntervalMode ) { - case 0 : - anArgument = vtkMath::Pi() * anArgument; - break; - case 1 : - anArgument = -vtkMath::Pi() + 2.0 * vtkMath::Pi() * anArgument; - break; - default : - break; - } - } - - // To correct the input value according to the given sweep mode - double aValue = anArgument; - switch ( aSweepMode ) { - case 1 : - aValue = ( 1.0 - cos( anArgument ) ) / 2.0; - break; - case 2 : - aValue = sin( anArgument - vtkMath::Pi() / 2.0 ); - break; - default : - break; - } - - try { - myColoredPrs3d->SetMapScale( aValue ); - myColoredPrs3d->UpdateActor( myActor ); - if(myViewWindow) - myViewWindow->Repaint(); - } catch (std::exception& exc) { - INFOS( "Follow exception was occured :\n" << exc.what() ); - } catch (...) { - INFOS( "Unknown exception was occured!" ); - } - - QApplication::restoreOverrideCursor(); -} - - -//---------------------------------------------------------------------------- -void VisuGUI_Sweep::onDelayChanged( double value ) -{ - myTimer->start( int( value * 1000 ) ); -} - - -//---------------------------------------------------------------------------- -void VisuGUI_Sweep::onNumberOfStepsChanged( int value ) -{ - int anOldNumberOfSteps = mySweepSlider->maximum(); - mySweepSlider->setMaximum( value ); - - double aValue = double( value ); - - double aNewSweepValue = aValue / anOldNumberOfSteps * mySweepSlider->value(); - mySweepSlider->setValue( int( aNewSweepValue + 1 ) ); - - double aNewPageStep = aValue / 10; - mySweepSlider->setPageStep( int( aNewPageStep + 1 ) ); -} - - -//---------------------------------------------------------------------------- -void VisuGUI_Sweep::onModeChanged( int ) -{ - myIntervals->setEnabled( mySweepMode->currentIndex() != 0 ); -} - - -//---------------------------------------------------------------------------- -void VisuGUI_Sweep::onFirst() -{ - mySweepSlider->setValue( mySweepSlider->minimum() ); -} - - -//---------------------------------------------------------------------------- -void VisuGUI_Sweep::onPrevious() -{ - mySweepSlider->setValue( mySweepSlider->value() - 1 ); -} - -void VisuGUI_Sweep::onNext() -{ - mySweepSlider->setValue( mySweepSlider->value() + 1 ); -} - -void VisuGUI_Sweep::onLast() -{ - mySweepSlider->setValue( mySweepSlider->maximum() ); -} - -//---------------------------------------------------------------------------- -void VisuGUI_Sweep::onPlay( bool on ) -{ - if ( on ) { - myPlayButton->setIcon( myPausePixmap ); - myTimer->start( int( myStepDelay->value() * 1000 ) ); - myPlayButton->setChecked( true ); - } else { - myTimer->stop(); - myPlayButton->setChecked( false ); - myPlayButton->setIcon( myPlayPixmap ); - } -} - - -//---------------------------------------------------------------------------- -void VisuGUI_Sweep::onToggleView( bool on ) -{ - if ( !on ) { - onPlay( on ); - } -} - - -//---------------------------------------------------------------------------- -void VisuGUI_Sweep::onStop() -{ - onPlay( false ); - mySweepSlider->setValue( mySweepSlider->maximum() ); - - if ( myViewWindow ) - myViewWindow->Repaint(); -} - - -//---------------------------------------------------------------------------- -void VisuGUI_Sweep::onEnable( bool on ) -{ - onStop(); - - mySweepSlider->setEnabled( !on ); - - myFirstButton->setEnabled( !on ); - myPreviousButton->setEnabled( !on ); - - myPlayButton->setEnabled( !on ); - - myNextButton->setEnabled( !on ); - myLastButton->setEnabled( !on ); -} - - -//---------------------------------------------------------------------------- -void VisuGUI_Sweep::onTimeout() -{ - int value = mySweepSlider->value(); - if ( value < mySweepSlider->maximum() ) { - mySweepSlider->setValue( value + 1 ); - } else { - if ( myIsCycled->isChecked() ) - mySweepSlider->setValue( 0 ); - else - myPlayButton->setChecked( false ); - //myStopButton->setEnabled( false ); - } -} - - -//---------------------------------------------------------------------------- diff --git a/src/VISUGUI/VisuGUI_Sweep.h b/src/VISUGUI/VisuGUI_Sweep.h deleted file mode 100644 index 1055330a..00000000 --- a/src/VISUGUI/VisuGUI_Sweep.h +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_Sweep.h -// Author : Oleg UVAROV -// Module : VISU -// -#ifndef VisuGUI_Sweep_HeaderFile -#define VisuGUI_Sweep_HeaderFile - -#include "SALOME_GenericObjPointer.hh" - -#include - -#include -#include - -class QComboBox; -class QToolButton; -class QSlider; -class QSpinBox; -class QCheckBox; -class QMainWindow; -class QTimer; -class QAction; - -class QtxIntSpinBox; -class QtxDoubleSpinBox; - -class LightApp_SelectionMgr; -class SVTK_ViewWindow; -class VISU_Actor; -class VisuGUI; - - -namespace VISU -{ - class ColoredPrs3d_i; -} - - -//---------------------------------------------------------------------------- -class VisuGUI_Sweep : public QWidget -{ - Q_OBJECT; - -public: - VisuGUI_Sweep( VisuGUI* theModule, - QMainWindow* theParent, - LightApp_SelectionMgr* theSelectionMgr ); - - virtual ~VisuGUI_Sweep(); - - QAction* toggleViewAction(); - -public slots: - virtual void onSelectionChanged(); - - virtual void onFirst(); - - virtual void onPrevious(); - - virtual void onPlay( bool ); - - virtual void onNext(); - - virtual void onLast(); - - virtual void onStop(); - - virtual void onEnable( bool ); - - virtual void onValueChanged( int ); - - virtual void onDelayChanged( double ); - - virtual void onNumberOfStepsChanged( int ); - - virtual void onModeChanged( int ); - - virtual void onTimeout(); - - virtual void onToggleView( bool ); - - void onModuleDeactivated(); - - void onModuleActivated(); - -private: - QSlider* mySweepSlider; - - QToolButton* myFirstButton; - QToolButton* myPreviousButton; - QToolButton* myPlayButton; - QToolButton* myNextButton; - QToolButton* myLastButton; - - QCheckBox* myIsCycled; - - QComboBox* mySweepMode; - QtxIntSpinBox* myNumberOfSteps; - - QComboBox* myIntervals; - QtxDoubleSpinBox* myStepDelay; - - QTimer* myTimer; - QPixmap myPlayPixmap; - QPixmap myPausePixmap; - QAction* myToggleViewAction; - - VisuGUI* myModule; - SVTK_ViewWindow* myViewWindow; - - vtkSmartPointer< VISU_Actor > myActor; - SALOME::GenericObjPtr< VISU::ColoredPrs3d_i > myColoredPrs3d; -}; - - -//---------------------------------------------------------------------------- - - -#endif diff --git a/src/VISUGUI/VisuGUI_Table3dDlg.cxx b/src/VISUGUI/VisuGUI_Table3dDlg.cxx deleted file mode 100644 index bc38e937..00000000 --- a/src/VISUGUI/VisuGUI_Table3dDlg.cxx +++ /dev/null @@ -1,831 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_Table3dDlg.cxx -// Author : Laurent CORNABE & Hubert ROLLAND -// -#include "VisuGUI_Table3dDlg.h" - -#include "VisuGUI.h" -#include "VisuGUI_Tools.h" -#include "VisuGUI_ViewTools.h" -#include "VisuGUI_InputPane.h" - -#include "VISU_ColoredPrs3dFactory.hh" -#include "VISU_ViewManager_i.hh" -#include "VISU_Prs3dUtils.hh" - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define SURFACE_PRS_ID 0 -#define CONTOUR_PRS_ID 1 - -//======================================================================= -//function : VisuGUI_Table3DPane -//purpose : -//======================================================================= -VisuGUI_Table3DPane::VisuGUI_Table3DPane( QWidget* parent ) - : QWidget( parent ), - myViewWindow( VISU::GetActiveViewWindow() ), - myPrs( 0 ), - myInitFromPrs( false ) -{ - QGridLayout* topLayout = new QGridLayout( this ); - topLayout->setMargin( 11 ); - topLayout->setSpacing( 6 ); - - // scale - QLabel* scaleLabel = new QLabel( tr( "SCALE" ), this ); - ScaleSpn = new QtxDoubleSpinBox( -1.e6, 1.e6, 0.1, this ); - // Presentation type - GBPrsTypeBox = new QGroupBox( tr( "PRESENTATION_TYPE" ), this ); - GBPrsType = new QButtonGroup( GBPrsTypeBox ); - QRadioButton* rb1 = new QRadioButton( tr( "SURFACE" ), GBPrsTypeBox ); - QRadioButton* rb2 = new QRadioButton( tr( "CONTOUR" ), GBPrsTypeBox ); - GBPrsType->addButton( rb1, SURFACE_PRS_ID ); - GBPrsType->addButton( rb2, CONTOUR_PRS_ID ); - QHBoxLayout* GBPrsTypeBoxLayout = new QHBoxLayout( GBPrsTypeBox ); - GBPrsTypeBoxLayout->setMargin( 11 ); - GBPrsTypeBoxLayout->setSpacing( 6 ); - GBPrsTypeBoxLayout->addWidget( rb1 ); - GBPrsTypeBoxLayout->addWidget( rb2 ); - - // nb Contours - QLabel* nbContLabel = new QLabel( tr( "NUMBER_CONTOURS" ), this ); - NbContoursSpn = new QSpinBox( this ); - NbContoursSpn->setMinimum( 1 ); - NbContoursSpn->setMaximum( 999 ); - NbContoursSpn->setSingleStep( 1 ); - - topLayout->addWidget( scaleLabel, 0, 0 ); - topLayout->addWidget( ScaleSpn, 0, 1 ); - topLayout->addWidget( GBPrsTypeBox, 1, 0, 1, 2 ); - topLayout->addWidget( nbContLabel, 2, 0 ); - topLayout->addWidget( NbContoursSpn, 2, 1 ); - topLayout->setRowStretch( 3, 5 ); - - // signals and slots connections - - connect( GBPrsType, SIGNAL( buttonClicked( int ) ), this, SLOT( onPrsType( int ) ) ); -} - -//======================================================================= -//function : destructor -//purpose : -//======================================================================= -VisuGUI_Table3DPane::~VisuGUI_Table3DPane() -{ -} - -//======================================================================= -//function : onPrsType -//purpose : -//======================================================================= -void VisuGUI_Table3DPane::onPrsType( int id ) -{ - NbContoursSpn->setEnabled( id == CONTOUR_PRS_ID ); -} - -//======================================================================= -//function : storeToPrsObject -//purpose : -//======================================================================= -int VisuGUI_Table3DPane::storeToPrsObject( VISU::PointMap3d_i* thePrs ) -{ - // scale - thePrs->SetScaleFactor( ScaleSpn->value() ); - - // prs type - thePrs->SetContourPrs( GBPrsType->checkedId() == CONTOUR_PRS_ID ); - - // nb contours - thePrs->SetNbOfContours( NbContoursSpn->value() ); - - return 1; -} - -//======================================================================= -//function : GetPrs -//purpose : -//======================================================================= -VISU::PointMap3d_i* VisuGUI_Table3DPane::GetPrs() -{ - return myPrs; -} - -//======================================================================= -//function : initFromPrsObject -//purpose : -//======================================================================= -void VisuGUI_Table3DPane::initFromPrsObject( VISU::PointMap3d_i* thePrs ) -{ - myInitFromPrs = true; - myPrs = thePrs; - - // scale - double aScale = thePrs->GetScaleFactor(); - if (aScale<0) - aScale = 0; - ScaleSpn->setValue( aScale ); - - // prs type - int id = thePrs->GetIsContourPrs() ? CONTOUR_PRS_ID : SURFACE_PRS_ID; - GBPrsType->button( id )->setChecked( true ); - onPrsType( id ); - - // nb contours - NbContoursSpn->setValue( thePrs->GetNbOfContours() ); -} - -//======================================================================= -//function : Table Scalar Bar -//purpose : -//======================================================================= - -VisuGUI_TableScalarBarPane::VisuGUI_TableScalarBarPane( QWidget* parent ) - : QWidget( parent ), - myBarPrs( 0 ) -{ - QGridLayout* topLayout = new QGridLayout( this ); - topLayout->setSpacing( 6 ); - topLayout->setMargin( 11 ); - - SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr(); - QString propertyName; - propertyName = QString( "scalar_bar_vertical_" ); - myVerX = aResourceMgr->doubleValue( "VISU", propertyName + "x", 0. ); - myVerY = aResourceMgr->doubleValue( "VISU", propertyName + "y", 0. ); - myVerW = aResourceMgr->doubleValue( "VISU", propertyName + "width", 0. ); - myVerH = aResourceMgr->doubleValue( "VISU", propertyName + "height", 0. ); - myVerTS = aResourceMgr->integerValue( "VISU", propertyName + "title_size", 0 ); - myVerLS = aResourceMgr->integerValue( "VISU", propertyName + "label_size", 0 ); - myVerBW = aResourceMgr->integerValue( "VISU", propertyName + "bar_width", 0 ); - myVerBH = aResourceMgr->integerValue( "VISU", propertyName + "bar_height", 0 ); - - propertyName = QString( "scalar_bar_horizontal_" ); - myHorX = aResourceMgr->doubleValue( "VISU", propertyName + "x", 0. ); - myHorY = aResourceMgr->doubleValue( "VISU", propertyName + "y", 0. ); - myHorW = aResourceMgr->doubleValue( "VISU", propertyName + "width", 0. ); - myHorH = aResourceMgr->doubleValue( "VISU", propertyName + "height", 0. ); - myHorTS = aResourceMgr->integerValue( "VISU", propertyName + "title_size", 0 ); - myHorLS = aResourceMgr->integerValue( "VISU", propertyName + "label_size", 0 ); - myHorBW = aResourceMgr->integerValue( "VISU", propertyName + "bar_width", 0 ); - myHorBH = aResourceMgr->integerValue( "VISU", propertyName + "bar_height", 0 ); - - // Range ============================================================ - RangeGroup = new QGroupBox( tr( "SCALAR_RANGE_GRP" ), this ); - QButtonGroup* RangeRB = new QButtonGroup( RangeGroup ); - QGridLayout* RangeGroupLayout = new QGridLayout( RangeGroup ); - RangeGroupLayout->setSpacing( 6 ); - RangeGroupLayout->setMargin( 11 ); - - CBLog = new QCheckBox( tr( "LOGARITHMIC_SCALING" ), RangeGroup ); - - RBFrange = new QRadioButton( tr( "FIELD_RANGE_BTN" ), RangeGroup ); - RBIrange = new QRadioButton( tr( "IMPOSED_RANGE_BTN" ), RangeGroup ); - RangeRB->addButton( RBFrange, 0 ); - RangeRB->addButton( RBIrange, 1 ); - RBFrange->setChecked( true ); - - MinEdit = new QLineEdit( RangeGroup ); - MinEdit->setMinimumWidth( 70 ); - MinEdit->setValidator( new QDoubleValidator( this ) ); - MinEdit->setText( "0.0" ); - QLabel* MinLabel = new QLabel( tr( "LBL_MIN" ), RangeGroup ); - MinLabel->setBuddy( MinEdit ); - - MaxEdit = new QLineEdit( RangeGroup ); - MaxEdit->setMinimumWidth( 70 ); - MaxEdit->setValidator( new QDoubleValidator( this ) ); - MaxEdit->setText( "0.0" ); - QLabel* MaxLabel = new QLabel( tr( "LBL_MAX" ), RangeGroup ); - MaxLabel->setBuddy( MaxEdit ); - - RangeGroupLayout->addWidget( CBLog, 1, 0, 1, 4 ); - RangeGroupLayout->addWidget( RBFrange, 2, 0, 1, 2 ); - RangeGroupLayout->addWidget( RBIrange, 2, 2, 1, 2 ); - RangeGroupLayout->addWidget( MinLabel, 3, 0 ); - RangeGroupLayout->addWidget( MinEdit, 3, 1 ); - RangeGroupLayout->addWidget( MaxLabel, 3, 2 ); - RangeGroupLayout->addWidget( MaxEdit, 3, 3 ); - - // Colors and Labels ======================================================== - QGroupBox* ColLabGroup = new QGroupBox( tr( "COLORS_LABELS_GRP" ), this ); - QHBoxLayout* ColLabGroupLayout = new QHBoxLayout( ColLabGroup ); - ColLabGroupLayout->setSpacing( 6 ); - ColLabGroupLayout->setMargin( 11 ); - - QLabel* ColorLabel = new QLabel( tr( "LBL_NB_COLORS" ), ColLabGroup ); - ColorSpin = new QSpinBox( ColLabGroup ); - ColorSpin->setMinimum( 2 ); - ColorSpin->setMaximum( 256 ); - ColorSpin->setSingleStep( 1 ); - ColorSpin->setMinimumWidth( 70 ); - ColorSpin->setValue( 64 ); - - QLabel* LabelLabel = new QLabel( tr( "LBL_NB_LABELS" ), ColLabGroup ); - LabelSpin = new QSpinBox( ColLabGroup ); - LabelSpin->setMinimum( 2 ); - LabelSpin->setMaximum( 65 ); - LabelSpin->setSingleStep( 1 ); - LabelSpin->setMinimumWidth( 70 ); - LabelSpin->setValue( 5 ); - - ColLabGroupLayout->addWidget( ColorLabel ); - ColLabGroupLayout->addWidget( ColorSpin ); - ColLabGroupLayout->addWidget( LabelLabel ); - ColLabGroupLayout->addWidget( LabelSpin ); - - // Orientation ========================================================== - QGroupBox* OrientGroup = new QGroupBox( tr( "ORIENTATION_GRP" ), this ); - QButtonGroup* OrientRB = new QButtonGroup( OrientGroup ); - QHBoxLayout* OrientGroupLayout = new QHBoxLayout( OrientGroup ); - OrientGroupLayout->setSpacing( 6 ); - OrientGroupLayout->setMargin( 11 ); - - RBvert = new QRadioButton( tr( "VERTICAL_BTN" ), OrientGroup ); - RBhori = new QRadioButton( tr( "HORIZONTAL_BTN" ), OrientGroup ); - OrientRB->addButton( RBvert, 0 ); - OrientRB->addButton( RBhori, 1 ); - RBvert->setChecked( true ); - OrientGroupLayout->addWidget( RBvert ); - OrientGroupLayout->addWidget( RBhori ); - - // Origin =============================================================== - QGroupBox* OriginGroup = new QGroupBox( tr( "ORIGIN_GRP" ), this ); - QHBoxLayout* OriginGroupLayout = new QHBoxLayout( OriginGroup ); - OriginGroupLayout->setSpacing( 6 ); - OriginGroupLayout->setMargin( 11 ); - - QLabel* XLabel = new QLabel( tr( "LBL_X" ), OriginGroup ); - XSpin = new QtxDoubleSpinBox( 0.0, 1.0, 0.1, OriginGroup ); - XSpin->setMinimumWidth( 70 ); - XSpin->setValue( 0.01 ); - - QLabel* YLabel = new QLabel( tr( "LBL_Y" ), OriginGroup ); - YSpin = new QtxDoubleSpinBox( 0.0, 1.0, 0.1, OriginGroup ); - YSpin->setMinimumWidth( 70 ); - YSpin->setValue( 0.1 ); - - OriginGroupLayout->addWidget( XLabel ); - OriginGroupLayout->addWidget( XSpin ); - OriginGroupLayout->addWidget( YLabel ); - OriginGroupLayout->addWidget( YSpin ); - - // Dimensions ========================================================= - QGroupBox* DimGroup = new QGroupBox( tr( "DIMENSIONS_GRP" ), this ); - QHBoxLayout* DimGroupLayout = new QHBoxLayout( DimGroup ); - DimGroupLayout->setSpacing( 6 ); - DimGroupLayout->setMargin( 11 ); - - QLabel* WidthLabel = new QLabel( tr( "LBL_WIDTH" ), DimGroup ); - WidthSpin = new QtxDoubleSpinBox( 0.0, 1.0, 0.1, DimGroup ); - WidthSpin->setMinimumWidth( 70 ); - WidthSpin->setValue( 0.1 ); - - QLabel* HeightLabel = new QLabel( tr( "LBL_HEIGHT" ), DimGroup ); - HeightSpin = new QtxDoubleSpinBox( 0.0, 1.0, 0.1, DimGroup ); - HeightSpin->setMinimumWidth( 70 ); - HeightSpin->setValue( 0.8 ); - - DimGroupLayout->addWidget( WidthLabel ); - DimGroupLayout->addWidget( WidthSpin ); - DimGroupLayout->addWidget( HeightLabel ); - DimGroupLayout->addWidget( HeightSpin ); - - myTextBtn = new QPushButton( tr( "Text properties..." ), this ); - myBarBtn = new QPushButton( tr( "Bar properties..." ), this ); - - // main layout ========================================================= - - topLayout->addWidget( RangeGroup, 0, 0, 1, 2 ); - topLayout->addWidget( ColLabGroup, 1, 0, 1, 2 ); - topLayout->addWidget( OrientGroup, 2, 0, 1, 2 ); - topLayout->addWidget( OriginGroup, 3, 0, 1, 2 ); - topLayout->addWidget( DimGroup, 4, 0, 1, 2 ); - topLayout->addWidget( myTextBtn, 5, 0 ); - topLayout->addWidget( myBarBtn, 5, 1 ); - - // init ================================================================ - - myTextDlg = new VisuGUI_TextPrefDlg( this ); - myTextDlg->setTitleVisible( true ); - myBarDlg = new VisuGUI_BarPrefDlg( this ); - - if ( RBvert->isChecked() ) { - myBarDlg->setRatios( myVerTS, myVerLS, myVerBW, myVerBH ); - } else { - myBarDlg->setRatios( myHorTS, myHorLS, myHorBW, myHorBH ); - } - - int lp = aResourceMgr->integerValue( "VISU", propertyName + "scalar_bar_label_precision", 3 ); - myBarDlg->setLabelsPrecision( lp ); - - myBarDlg->setUnitsVisible( aResourceMgr->booleanValue( "VISU", propertyName + "display_units", true ) ); - - // signals and slots connections =========================================== - connect( RangeRB, SIGNAL( buttonClicked( int ) ), this, SLOT( changeRange( int ) ) ); - connect( OrientRB, SIGNAL( buttonClicked( int ) ), this, SLOT( changeDefaults( int ) ) ); - connect( XSpin, SIGNAL( valueChanged( double ) ), this, SLOT( XYChanged( double ) ) ); - connect( YSpin, SIGNAL( valueChanged( double ) ), this, SLOT( XYChanged( double ) ) ); - connect( myTextBtn, SIGNAL( clicked() ), this, SLOT( onTextPref() ) ); - connect( myBarBtn, SIGNAL( clicked() ), this, SLOT( onBarPref() ) ); - changeDefaults( 0 ); - myIsStoreTextProp = true; - myBusy = false; -} - -//---------------------------------------------------------------------------- - -void VisuGUI_TableScalarBarPane::onBarPref() -{ - if ( RBvert->isChecked() ) - myBarDlg->setRatios( myVerTS, myVerLS, myVerBW, myVerBH ); - else - myBarDlg->setRatios( myHorTS, myHorLS, myHorBW, myHorBH ); - if ( myBarDlg->exec() ) { - if ( RBvert->isChecked() ) - myBarDlg->getRatios( myVerTS, myVerLS, myVerBW, myVerBH ); - else - myBarDlg->getRatios( myHorTS, myHorLS, myHorBW, myHorBH ); - } -} - -//---------------------------------------------------------------------------- -/** - * Initialise dialog box from presentation object - */ -void VisuGUI_TableScalarBarPane::initFromPrsObject( VISU::PointMap3d_i* thePrs ) -{ - myBarPrs = dynamic_cast( thePrs ); - - if ( !myBarPrs ) - return; - - switch ( myBarPrs->GetScaling() ) { - case VISU::LOGARITHMIC: - CBLog->setChecked( true ); - break; - default: - CBLog->setChecked( false ); - } - - setRange( myBarPrs->GetMin(), myBarPrs->GetMax(), myBarPrs->IsRangeFixed() ); - - setScalarBarData( myBarPrs->GetNbColors(), myBarPrs->GetLabels() ); - - // "Title" - CORBA::String_var aTitle = myBarPrs->GetTitle(); - myTextDlg->setTitleText( aTitle.in() ); - myTitle = aTitle.in(); - - vtkFloatingPointType R, G, B; - myBarPrs->GetTitleColor( R, G, B ); - - setPosAndSize( myBarPrs->GetPosX(), - myBarPrs->GetPosY(), - myBarPrs->GetWidth(), - myBarPrs->GetHeight(), - myBarPrs->GetBarOrientation() ); - - myVerTS = myBarPrs->GetTitleSize(); - myVerLS = myBarPrs->GetLabelSize(); - myVerBW = myBarPrs->GetBarWidth(); - myVerBH = myBarPrs->GetBarHeight(); - myBarDlg->setRatios( myVerTS, myVerLS, myVerBW, myVerBH ); - - myBarDlg->setLabelsPrecision( VISU::ToPrecision( myBarPrs->GetLabelsFormat() ) ); - myBarDlg->setUnitsVisible( myBarPrs->IsUnitsVisible() ); - - myTextDlg->myTitleFont->SetData( QColor( (int)(R*255.), (int)(G*255.), (int)(B*255.) ), - myBarPrs->GetTitFontType(), - myBarPrs->IsBoldTitle(), - myBarPrs->IsItalicTitle(), - myBarPrs->IsShadowTitle() ); - - // "Labels" - myBarPrs->GetLabelColor( R, G, B ); - - myTextDlg->myLabelFont->SetData( QColor( (int)(R*255.), (int)(G*255.), (int)(B*255.) ), - myBarPrs->GetLblFontType(), - myBarPrs->IsBoldLabel(), - myBarPrs->IsItalicLabel(), - myBarPrs->IsShadowLabel() ); -} - -//---------------------------------------------------------------------------- -/** - * Store values to presentation object - */ -int VisuGUI_TableScalarBarPane::storeToPrsObject( VISU::PointMap3d_i* thePrs ) { - if( !myBarPrs ) - return 0; - - myBarPrs->SetPosition( XSpin->value(), YSpin->value() ); - myBarPrs->SetSize( WidthSpin->value(), HeightSpin->value() ); - - if(RBvert->isChecked()) { - myBarPrs->SetRatios(myVerTS, myVerLS, myVerBW, myVerBH); - } else { - myBarPrs->SetRatios(myHorTS, myHorLS, myHorBW, myHorBH); - } - - std::string f = VISU::ToFormat( myBarDlg->getLabelsPrecision() ); - myBarPrs->SetLabelsFormat( f.c_str() ); - myBarPrs->SetUnitsVisible( myBarDlg->isUnitsVisible() ); - - myBarPrs->SetBarOrientation( ( RBvert->isChecked() )? VISU::ColoredPrs3dBase::VERTICAL : VISU::ColoredPrs3dBase::HORIZONTAL ); - if ( CBLog->isChecked() ) - myBarPrs->SetScaling( VISU::LOGARITHMIC ); - else - myBarPrs->SetScaling( VISU::LINEAR ); - - if ( RBFrange->isChecked() ) { - myBarPrs->SetSourceRange(); - } else { - myBarPrs->SetRange( MinEdit->text().toDouble(), MaxEdit->text().toDouble() ); - } - myBarPrs->SetNbColors( ColorSpin->value() ); - myBarPrs->SetLabels( LabelSpin->value() ); - - if ( myIsStoreTextProp ) { - // "Title" - myBarPrs->SetTitle( myTextDlg->getTitleText().toLatin1().constData() ); - - QColor aTitColor( 255, 255, 255 ); - int aTitleFontFamily = VTK_ARIAL; - bool isTitleBold = false; - bool isTitleItalic = false; - bool isTitleShadow = false; - - myTextDlg->myTitleFont->GetData( aTitColor, aTitleFontFamily, isTitleBold, isTitleItalic, isTitleShadow ); - - myBarPrs->SetBoldTitle( isTitleBold ); - myBarPrs->SetItalicTitle( isTitleItalic ); - myBarPrs->SetShadowTitle( isTitleShadow ); - myBarPrs->SetTitFontType( aTitleFontFamily ); - myBarPrs->SetTitleColor( aTitColor.red()/255., - aTitColor.green()/255., - aTitColor.blue()/255. ); - - // "Label" - QColor aLblColor( 255, 255, 255 ); - int aLabelFontFamily = VTK_ARIAL; - bool isLabelBold = false; - bool isLabelItalic = false; - bool isLabelShadow = false; - - myTextDlg->myLabelFont->GetData( aLblColor, aLabelFontFamily, isLabelBold, isLabelItalic, isLabelShadow ); - - myBarPrs->SetBoldLabel( isLabelBold); - myBarPrs->SetItalicLabel( isLabelItalic ); - myBarPrs->SetShadowLabel( isLabelShadow ); - myBarPrs->SetLblFontType( aLabelFontFamily ); - myBarPrs->SetLabelColor( aLblColor.red()/255., - aLblColor.green()/255., - aLblColor.blue()/255. ); - // myIsStoreTextProp = false; - } - return 1; -} - -//---------------------------------------------------------------------------- -/*! - Sets default values and range mode -*/ -void VisuGUI_TableScalarBarPane::setRange( double imin, double imax, bool sbRange ) -{ - MinEdit->setText( QString::number( imin ) ); - MaxEdit->setText( QString::number( imax ) ); - - if ( sbRange ) - RBIrange->setChecked( true ); - else - RBFrange->setChecked( true ); - - changeRange( sbRange ); -} - -//---------------------------------------------------------------------------- -/*! - Called when Range mode is changed -*/ -void VisuGUI_TableScalarBarPane::changeRange( int ) -{ - if ( RBFrange->isChecked() ) { - myBarPrs->SetSourceRange(); - MinEdit->setEnabled( false ); - MaxEdit->setEnabled( false ); - } else { - myBarPrs->SetRange( myBarPrs->GetMin(), myBarPrs->GetMax() ); - myBarPrs->SetRange( MinEdit->text().toDouble(), MaxEdit->text().toDouble() ); - MinEdit->setEnabled( true ); - MaxEdit->setEnabled( true ); - } - - MinEdit->setText( QString::number( myBarPrs->GetMin() ) ); - MaxEdit->setText( QString::number( myBarPrs->GetMax() ) ); -} - -//---------------------------------------------------------------------------- -/*! - Called when X,Y position is changed -*/ -void VisuGUI_TableScalarBarPane::XYChanged( double ) -{ - QtxDoubleSpinBox* snd = (QtxDoubleSpinBox*)sender(); - if ( snd == XSpin ) { - WidthSpin->setMaximum( 1.0 - XSpin->value() ); - } - if ( snd == YSpin ) { - HeightSpin->setMaximum( 1.0 - YSpin->value() ); - } -} - -//---------------------------------------------------------------------------- -/*! - -*/ -void VisuGUI_TableScalarBarPane::changeScalarMode( int ) -{ -//do nothing -} - -//---------------------------------------------------------------------------- -/*! - Sets size and position -*/ -void VisuGUI_TableScalarBarPane::setPosAndSize( double x, double y, double w, double h, bool vert ) -{ - if ( vert ) { - myVerX = x; - myVerY = y; - myVerW = w; - myVerH = h; - RBvert->setChecked( true ); - } - else { - myHorX = x; - myHorY = y; - myHorW = w; - myHorH = h; - RBhori->setChecked( true ); - } - changeDefaults( 0 ); -} - -//---------------------------------------------------------------------------- -/*! - Sets colors and labels number -*/ -void VisuGUI_TableScalarBarPane::setScalarBarData( int colors, int labels ) -{ - ColorSpin->setValue( colors ); - LabelSpin->setValue( labels ); -} - -//---------------------------------------------------------------------------- -void VisuGUI_TableScalarBarPane::onTextPref() -{ - myTextDlg->storeBeginValues(); - myIsStoreTextProp = myTextDlg->exec() || myIsStoreTextProp; -} - -//---------------------------------------------------------------------------- -VisuGUI_TableScalarBarPane::~VisuGUI_TableScalarBarPane() -{ -} - -//---------------------------------------------------------------------------- -/*! - Called when orientation is changed -*/ -void VisuGUI_TableScalarBarPane::changeDefaults( int ) -{ - if ( RBvert->isChecked() ) { - XSpin->setValue( myVerX ); - YSpin->setValue( myVerY ); - WidthSpin->setValue( myVerW ); - HeightSpin->setValue( myVerH ); - } - else { - XSpin->setValue( myHorX ); - YSpin->setValue( myHorY ); - WidthSpin->setValue( myHorW ); - HeightSpin->setValue( myHorH ); - } -} - -//======================================================================= -//function : Check -//purpose : Called when button is clicked, validates data and closes dialog -//======================================================================= -bool VisuGUI_TableScalarBarPane::check() -{ - double minVal = MinEdit->text().toDouble(); - double maxVal = MaxEdit->text().toDouble(); - if ( RBIrange->isChecked() ) { - if (minVal >= maxVal) { - SUIT_MessageBox::warning( this,tr("WRN_VISU"), - tr("MSG_MINMAX_VALUES") ); - return false; - } - } - - // check if logarithmic mode is on and check imposed range to not contain negative values - if ( CBLog->isChecked() ) { - if ( minVal <= 0.0 ) { - if ( RBIrange->isChecked() ) { - SUIT_MessageBox::warning( this, - tr("WRN_VISU"), - tr("WRN_LOGARITHMIC_RANGE") ); - } else { - if ( minVal == 0) - SUIT_MessageBox::warning( this, - tr("WRN_VISU"), - tr("WRN_LOGARITHMIC_RANGE") ); - else - SUIT_MessageBox::warning( this, - tr("WRN_VISU"), - tr("WRN_LOGARITHMIC_FIELD_RANGE") ); - RBIrange->setChecked(true); - changeRange(1); - } - return false; - } - } - return true; -} - -//======================================================================= -//function : Constructor -//purpose : -//======================================================================= -VisuGUI_Table3DDlg::VisuGUI_Table3DDlg ( SalomeApp_Module* theModule ) - : QDialog ( VISU::GetDesktop( theModule ) ) -{ - setModal( false ); - setWindowTitle( tr( "Point Map 3D Definition" ) ); - setSizeGripEnabled( true ); - - QVBoxLayout* TopLayout = new QVBoxLayout( this ); - TopLayout->setSpacing( 6 ); - TopLayout->setMargin( 11 ); - - myTabBox = new QTabWidget( this ); - myIsoPane = new VisuGUI_Table3DPane( this ); - myScalarBarPane = new VisuGUI_TableScalarBarPane( this ); - - myTabBox->addTab( myIsoPane, tr( "DLG_PREF_TITLE" ) ); - myTabBox->addTab( myScalarBarPane, tr( "DLG_PROP_TITLE" ) ); - - QGroupBox* GroupButtons = new QGroupBox( this ); - QHBoxLayout* GroupButtonsLayout = new QHBoxLayout( GroupButtons ); - GroupButtonsLayout->setSpacing( 6 ); - GroupButtonsLayout->setMargin( 11 ); - - QPushButton* buttonOk = new QPushButton( tr( "&OK" ), GroupButtons ); - buttonOk->setAutoDefault( true ); - buttonOk->setDefault( true ); - QPushButton* buttonApply = new QPushButton( tr( "&Apply" ), GroupButtons ); - buttonApply->setAutoDefault( true ); - QPushButton* buttonCancel = new QPushButton( tr( "&Cancel" ), GroupButtons ); - buttonCancel->setAutoDefault( true ); - QPushButton* buttonHelp = new QPushButton( tr( "&Help" ), GroupButtons ); - buttonHelp->setAutoDefault( true ); - - GroupButtonsLayout->addWidget( buttonOk ); - GroupButtonsLayout->addWidget( buttonApply ); - GroupButtonsLayout->addSpacing( 10 ); - GroupButtonsLayout->addStretch(); - GroupButtonsLayout->addWidget( buttonCancel ); - GroupButtonsLayout->addWidget( buttonHelp ); - - TopLayout->addWidget( myTabBox ); - TopLayout->addWidget( GroupButtons ); - - // signals and slots connections - connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); - connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); - connect( buttonHelp, SIGNAL( clicked() ), this, SLOT( onHelp() ) ); - connect( buttonApply, SIGNAL( clicked() ), this, SLOT( onApply() ) ); -} - -//======================================================================= -//function : Destructor -//purpose : -//======================================================================= -VisuGUI_Table3DDlg::~VisuGUI_Table3DDlg() -{ -} - -//======================================================================= -//function : accept -//purpose : -//======================================================================= -void VisuGUI_Table3DDlg::accept() -{ - if (myScalarBarPane->check()) - QDialog::accept(); -} - -//======================================================================= -//function : onApply -//purpose : -//======================================================================= -void VisuGUI_Table3DDlg::onApply() -{ - if (myScalarBarPane->check()) { - storeToPrsObject( myPrsCopy ); - myPrsCopy->UpdateActors(); - } -} - -//======================================================================= -//function : onHelp -//purpose : -//======================================================================= -void VisuGUI_Table3DDlg::onHelp() -{ - QString aHelpFileName = "table_3d_page.html"; - LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication()); - if (app) { - VisuGUI* aVisuGUI = dynamic_cast( app->activeModule() ); - app->onHelpContextModule(aVisuGUI ? app->moduleName(aVisuGUI->moduleName()) : QString(""), aHelpFileName); - } - else { - QString platform; -#ifdef WIN32 - platform = "winapplication"; -#else - platform = "application"; -#endif - SUIT_MessageBox::warning( this, QObject::tr("WRN_WARNING"), - tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE"). - arg(app->resourceMgr()->stringValue("ExternalBrowser", platform)).arg(aHelpFileName) ); - } - -} - -//======================================================================= -//function : storeToPrsObject -//purpose : -//======================================================================= -int VisuGUI_Table3DDlg::storeToPrsObject( VISU::PointMap3d_i* thePrs ) -{ - int anIsOk = myIsoPane->storeToPrsObject( thePrs ); - anIsOk &= myScalarBarPane->storeToPrsObject( thePrs ); - - return anIsOk; -} - -//======================================================================= -//function : initFromPrsObject -//purpose : -//======================================================================= -void VisuGUI_Table3DDlg::initFromPrsObject( VISU::PointMap3d_i* thePrs ) -{ - myPrsCopy = thePrs; - myIsoPane->initFromPrsObject( thePrs ); - myScalarBarPane->initFromPrsObject( thePrs ); -} diff --git a/src/VISUGUI/VisuGUI_Table3dDlg.h b/src/VISUGUI/VisuGUI_Table3dDlg.h deleted file mode 100644 index 867e4267..00000000 --- a/src/VISUGUI/VisuGUI_Table3dDlg.h +++ /dev/null @@ -1,188 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_Table3dDlg.h -// Author : Laurent CORNABE & Hubert ROLLAND -// -#ifndef VISUGUI_TABLE3D_H -#define VISUGUI_TABLE3D_H - -#include "VisuGUI_Prs3dDlg.h" - -#include -#include - -class QTabWidget; -class QButtonGroup; -class QGroupBox; -class QComboBox; -class QCheckBox; -class QLineEdit; -class QRadioButton; -class QPushButton; -class QSpinBox; -class QtxDoubleSpinBox; -class VisuGUI_TextPrefDlg; -class VisuGUI_BarPrefDlg; -class SVTK_ViewWindow; -class SalomeApp_Module; - -namespace VISU -{ - class PointMap3d_i; -}; - -class VisuGUI_Table3DPane : public QWidget -{ - Q_OBJECT - -public: - VisuGUI_Table3DPane( QWidget* ); - ~VisuGUI_Table3DPane(); - - void initFromPrsObject( VISU::PointMap3d_i* ); - int storeToPrsObject( VISU::PointMap3d_i* ); - - VISU::PointMap3d_i* GetPrs(); - -private slots: - void onPrsType( int ); - -private: - bool myInitFromPrs; - - SVTK_ViewWindow* myViewWindow; - VISU::PointMap3d_i* myPrs; - - QtxDoubleSpinBox* ScaleSpn; - QGroupBox* GBPrsTypeBox; - QButtonGroup* GBPrsType; - QSpinBox* NbContoursSpn; -}; - -class VisuGUI_TableScalarBarPane : public QWidget -{ - Q_OBJECT - -public: - VisuGUI_TableScalarBarPane( QWidget* ); - ~VisuGUI_TableScalarBarPane(); - - void setRange( double, double, bool ); - void setDefaultRange( double, double ); - int getOrientation(); - void setPosAndSize( double, double, double, double, bool ); - void setScalarBarData( int, int ); - bool isIRange(); - double getMin(); - double getMax(); - double getX(); - double getY(); - double getWidth(); - double getHeight(); - int getNbColors(); - int getNbLabels(); - bool isLogarithmic(); - void setLogarithmic( bool on ); - // bool isToSave() {return CBSave ? CBSave->isChecked() : false;} - - void storeToResources(); - - void initFromPrsObject( VISU::PointMap3d_i* ); - int storeToPrsObject( VISU::PointMap3d_i* ); - - bool check(); - -private slots: - void changeDefaults( int ); - void changeRange( int ); - void XYChanged( double ); - void changeScalarMode( int ); - void onTextPref(); - void onBarPref(); - -private: - QGroupBox* RangeGroup; - QRadioButton* RBFrange; - QRadioButton* RBIrange; - QLineEdit* MinEdit; - QLineEdit* MaxEdit; - - QRadioButton* RBhori; - QRadioButton* RBvert; - - QtxDoubleSpinBox* XSpin; - QtxDoubleSpinBox* YSpin; - - QtxDoubleSpinBox* WidthSpin; - QtxDoubleSpinBox* HeightSpin; - - QSpinBox* ColorSpin; - QSpinBox* LabelSpin; - - QCheckBox* CBSave; - QCheckBox* CBLog; - QComboBox* myModeCombo; - QPushButton* myTextBtn; - QPushButton* myBarBtn; - VisuGUI_TextPrefDlg* myTextDlg; - VisuGUI_BarPrefDlg* myBarDlg; - - double myHorX, myHorY, myHorW, myHorH; - double myVerX, myVerY, myVerW, myVerH; - int myHorTS, myHorLS, myHorBW, myHorBH; - int myVerTS, myVerLS, myVerBW, myVerBH; - bool myIsStoreTextProp; - - std::string myTitle; - VISU::PointMap3d_i* myBarPrs; - - bool myBusy; -}; - -/////////////////////////////////////////////////////// - -class VisuGUI_Table3DDlg : public QDialog -{ - Q_OBJECT - -public: - VisuGUI_Table3DDlg( SalomeApp_Module* ); - ~VisuGUI_Table3DDlg(); - - virtual void initFromPrsObject( VISU::PointMap3d_i* ); - virtual int storeToPrsObject( VISU::PointMap3d_i* ); - -protected slots: - void accept(); - void onHelp(); - void onApply(); - -private: - QTabWidget* myTabBox; - VisuGUI_Table3DPane* myIsoPane; - VisuGUI_TableScalarBarPane* myScalarBarPane; - - SALOME::GenericObjPtr myPrsCopy; -}; - -#endif // VISUGUI_TABLE3D_H diff --git a/src/VISUGUI/VisuGUI_ValuesLabelingDlg.cxx b/src/VISUGUI/VisuGUI_ValuesLabelingDlg.cxx deleted file mode 100755 index 83ccb7b7..00000000 --- a/src/VISUGUI/VisuGUI_ValuesLabelingDlg.cxx +++ /dev/null @@ -1,233 +0,0 @@ -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// File : VisuGUI_ValuesLabelingDlg.cxx -// Author : Litonin SERGEY -// Module : SALOME - -#include "VisuGUI_ValuesLabelingDlg.h" -#include "VisuGUI.h" - -#include -#include -#include -#include -#include -#include -#include - -/*! - \class VisuGUI_ValuesLabelingDlg - \brief This class is intended for changing parameters of labeling values - of 3D colored presentations -*/ - -/*! - \brief Constructor - \param theModule module -*/ -VisuGUI_ValuesLabelingDlg::VisuGUI_ValuesLabelingDlg( SalomeApp_Module* theModule ) -: VisuGUI_Prs3dDlg( theModule ) -{ - setWindowTitle( tr( "PARAMETERS_OF_VALUES_LABELING" ) ); - - // font groups - - QGroupBox* aFGrp = new QGroupBox( tr( "LABELS" ), this ); - - QLabel* aFont = new QLabel( tr( "FONT" ) ); - QLabel* aColor = new QLabel( tr( "COLOR" ) ); - myFont = new QtxFontEdit( aFGrp ); - myColor = new QtxColorButton( aFGrp ); - myColor->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); - - QGridLayout* aFLay = new QGridLayout( aFGrp ); - aFLay->setSpacing( 5 ); - aFLay->setMargin( 5 ); - - aFLay->addWidget( aFont, 0, 0 ); - aFLay->addWidget( myFont, 0, 1 ); - aFLay->addWidget( aColor, 1, 0 ); - aFLay->addWidget( myColor, 1, 1 ); - - // buttons - - QGroupBox* aBtnGrp = new QGroupBox( this ); - QGridLayout* aBtnLay = new QGridLayout( aBtnGrp ); - aBtnLay->setAlignment( Qt::AlignTop ); - aBtnLay->setSpacing( 5 ); - aBtnLay->setMargin( 5 ); - - QPushButton* anOK = new QPushButton( tr("BUT_OK"), aBtnGrp ); - anOK->setAutoDefault( true ); - anOK->setDefault( true ); - aBtnLay->addWidget( anOK, 0, 0 ); - aBtnLay->addItem( new QSpacerItem( 5, 5, QSizePolicy::Expanding, QSizePolicy::Minimum ), 0, 1 ); - - QPushButton* aCancel = new QPushButton( tr("BUT_CANCEL") , aBtnGrp ); - aCancel->setAutoDefault( true ); - aBtnLay->addWidget( aCancel, 0, 2 ); - - QPushButton* aHelp = new QPushButton( tr("BUT_HELP") , aBtnGrp ); - aHelp->setAutoDefault( true ); - aBtnLay->addWidget( aHelp, 0, 3 ); - - myFont->setMode( QtxFontEdit::Custom ); - myFont->setFeatures( QtxFontEdit::Family | QtxFontEdit::Bold | QtxFontEdit::Italic | - QtxFontEdit::Shadow | QtxFontEdit::UserSize | QtxFontEdit::Size ); - QStringList fam; - fam.append( tr( "VISU_FONT_ARIAL" ) ); - fam.append( tr( "VISU_FONT_COURIER" ) ); - fam.append( tr( "VISU_FONT_TIMES" ) ); - myFont->setFonts( fam ); - - // Layout widgets - - QVBoxLayout* aMainLay = new QVBoxLayout( this ); - aMainLay->setSpacing( 5 ); - aMainLay->setMargin( 5 ); - aMainLay->addWidget( aFGrp ); - aMainLay->addWidget( aBtnGrp ); - - // Connect signals and slots - connect( anOK,SIGNAL( clicked() ), SLOT( accept() ) ); - connect( aCancel, SIGNAL( clicked() ), SLOT( reject() ) ); - connect( aHelp, SIGNAL( clicked() ), SLOT( onHelp() ) ); - - setFixedSize( minimumSizeHint() ); -} - -/*! - \brief Destructor -*/ -VisuGUI_ValuesLabelingDlg::~VisuGUI_ValuesLabelingDlg() -{ -} - -/*! - \brief Initializes dialog fields using specified presentation - \param thePrs presentation - \param theInit not used - \sa storeToPrsObject() -*/ -void VisuGUI_ValuesLabelingDlg::initFromPrsObject( VISU::ColoredPrs3d_i* thePrs, bool ) -{ - if ( !thePrs ) - return; - - int aFType = thePrs->GetValLblFontType(); - - double aSize = thePrs->GetValLblFontSize(); - - bool isBold = thePrs->IsBoldValLbl(); - bool isItalic = thePrs->IsItalicValLbl(); - bool isShadow = thePrs->IsShadowValLbl(); - - vtkFloatingPointType aGRB[ 3 ]; - thePrs->GetValLblFontColor( aGRB[ 0 ], aGRB[ 1 ], aGRB[ 2 ] ); - - // font - QFont aFont; - - QString aFamily; - if ( aFType == VTK_ARIAL ) - aFamily = "Arial"; - else if ( aFType == VTK_COURIER ) - aFamily = "Courier"; - else if ( aFType == VTK_TIMES ) - aFamily = "Times"; - - aFont.setFamily( aFamily ); - aFont.setPointSize( aSize ); - aFont.setBold( isBold ); - aFont.setItalic( isItalic ); - aFont.setOverline( isShadow ); - - myFont->setCurrentFont( aFont ); - - // color - QColor aColor( aGRB[ 0 ] * 255, aGRB[ 1 ] * 255, aGRB[ 2 ] * 255 ); - myColor->setColor( aColor ); -} - -/*! - \brief Updates presentation in accordance with dialog input data - \param thePrs to be updated - \sa initFromPrsObject() -*/ -int VisuGUI_ValuesLabelingDlg::storeToPrsObject( VISU::ColoredPrs3d_i* thePrs ) -{ - if ( !thePrs ) - return 0; - - QFont aFont = myFont->currentFont(); - - // type - if ( aFont.family() == "Arial" ) - thePrs->SetValLblFontType( VTK_ARIAL ); - else if ( aFont.family() == "Courier" ) - thePrs->SetValLblFontType( VTK_COURIER ); - else if ( aFont.family() == "Times" ) - thePrs->SetValLblFontType( VTK_TIMES ); - - // size - int aSize = aFont.pointSize(); - if ( aSize > 0 ) - thePrs->SetValLblFontSize( aSize ); - - // bold, italic, shadow - thePrs->SetBoldValLbl( aFont.bold() ); - thePrs->SetItalicValLbl( aFont.italic() ); - thePrs->SetShadowValLbl( aFont.overline() ); - - // color - QColor aColor = myColor->color(); - thePrs->SetValLblFontColor( - aColor.red() / 255., aColor.green() / 255., aColor.blue() / 255. ); - - return 1; -} - -/*! - \brief Gets help file name -*/ -QString VisuGUI_ValuesLabelingDlg::GetContextHelpFilePath() -{ - return "values_labeling_page.html"; -} - - - - - - - - - - - - - - - - - - - - diff --git a/src/VISUGUI/VisuGUI_ValuesLabelingDlg.h b/src/VISUGUI/VisuGUI_ValuesLabelingDlg.h deleted file mode 100755 index 6f8d0e23..00000000 --- a/src/VISUGUI/VisuGUI_ValuesLabelingDlg.h +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// File : VisuGUI_ValuesLabelingDlg.h -// Author : Sergey LITONIN -// Module : SALOME - -#ifndef VisuGUI_ValuesLabelingDlg_H -#define VisuGUI_ValuesLabelingDlg_H - -#include - -class QtxFontEdit; -class QtxColorButton; - -class VisuGUI_ValuesLabelingDlg : public VisuGUI_Prs3dDlg -{ - Q_OBJECT - -public: - VisuGUI_ValuesLabelingDlg( SalomeApp_Module* theModule ); - ~VisuGUI_ValuesLabelingDlg(); - - virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs, bool theInit ); - - virtual int storeToPrsObject( VISU::ColoredPrs3d_i* thePrs ); - -protected: - virtual QString GetContextHelpFilePath(); - -private: - QtxFontEdit* myFont; - QtxColorButton* myColor; -}; - -#endif // VisuGUI_ValuesLabelingDlg_H - - - - - - - - - - - - - - diff --git a/src/VISUGUI/VisuGUI_ViewExtender.cxx b/src/VISUGUI/VisuGUI_ViewExtender.cxx deleted file mode 100644 index 243108d9..00000000 --- a/src/VISUGUI/VisuGUI_ViewExtender.cxx +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_ViewExtender.cxx -// Author : Vitaly Smetannikov -// Module : VISU -// -#include "VisuGUI_ViewExtender.h" - -#include "VisuGUI.h" -#include "VisuGUI_SegmentationMgr.h" -#include "VisuGUI_ViewTools.h" -#include "VisuGUI_Tools.h" -#include - -#include -#include - -#include -#include -#include - -#include -#include - - - -//using namespace std; - -VisuGUI_ViewExtender::VisuGUI_ViewExtender(VisuGUI* theModule): - myModule(theModule) -{ -} - -//**************************************************************** -VisuGUI_ViewExtender::~VisuGUI_ViewExtender() -{ - QMapIterator aIt(myViewMgrMap); - while (aIt.hasNext()) { - aIt.next(); - delete aIt.value(); - } -} - -//**************************************************************** -int VisuGUI_ViewExtender::createToolbar(SUIT_ViewWindow* theView) -{ - SVTK_ViewWindow* aViewWindow = dynamic_cast(theView); - if (!aViewWindow) return -1; - - VisuGUI_SegmentationMgr* aMgr = getSegmentationMgr(aViewWindow); - return aMgr->createToolbar(theView->toolMgr()); -} - -//**************************************************************** -void VisuGUI_ViewExtender::contextMenuPopup(QMenu* theMenu) -{ -// SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow(myModule); -// if (!aViewWindow) return; - -// SalomeApp_Application* anApp = myModule->getApp(); -// LightApp_SelectionMgr* aSelectionMgr = VISU::GetSelectionMgr(myModule); -// myListIO.Clear(); -// aSelectionMgr->selectedObjects(myListIO); -// if (myListIO.IsEmpty()) return; - -// theMenu->addSeparator(); -// theMenu->addAction(tr("VISU_SETPLANES_MNU"), this, SLOT(onSetPlanes())); -} - - -//**************************************************************** -void VisuGUI_ViewExtender::activate(SUIT_ViewModel* theViewer) -{ - // Connect to signal on destroy ViewWindow - SVTK_Viewer* aViewer = dynamic_cast(theViewer); - if (aViewer) { - if (!myViewers.contains(aViewer)) { - SUIT_ViewManager* aMgr = aViewer->getViewManager(); - connect(aMgr, SIGNAL(deleteView(SUIT_ViewWindow*)), - this, SLOT(onViewDeleted(SUIT_ViewWindow*))); - connect(aViewer, SIGNAL(actorAdded(SVTK_ViewWindow*, VTKViewer_Actor*)), - this, SLOT(onAddActor(SVTK_ViewWindow*, VTKViewer_Actor*))); - myViewers.append(aViewer); - } - } -} - -//**************************************************************** -void VisuGUI_ViewExtender::deactivate(SUIT_ViewModel*) -{ - QMapIterator aIt(myViewMgrMap); - while (aIt.hasNext()) { - aIt.next(); - aIt.value()->deactivate(); - } -} - - -//**************************************************************** -VisuGUI_SegmentationMgr* VisuGUI_ViewExtender::getSegmentationMgr(SVTK_ViewWindow* theWindow) -{ - if (myViewMgrMap.contains(theWindow)) - return myViewMgrMap[theWindow]; - - VisuGUI_SegmentationMgr* aMgr = new VisuGUI_SegmentationMgr(myModule, theWindow); - myViewMgrMap[theWindow] = aMgr; - return aMgr; -} - -//**************************************************************** -void VisuGUI_ViewExtender::onViewDeleted(SUIT_ViewWindow* theWindow) -{ - SVTK_ViewWindow* aWindow = dynamic_cast(theWindow); - if (!aWindow) return; - - if (!myViewMgrMap.contains(aWindow)) return; - delete myViewMgrMap[aWindow]; - myViewMgrMap.remove(aWindow); -} - -//**************************************************************** -void VisuGUI_ViewExtender::onAddActor(SVTK_ViewWindow* theWindow, VTKViewer_Actor* theActor) -{ - if (!myViewMgrMap.contains(theWindow)) return; - myViewMgrMap[theWindow]->onAddActor(theActor); -} diff --git a/src/VISUGUI/VisuGUI_ViewExtender.h b/src/VISUGUI/VisuGUI_ViewExtender.h deleted file mode 100644 index 16303177..00000000 --- a/src/VISUGUI/VisuGUI_ViewExtender.h +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU VISUGUI : GUI of VISU component -// File : VisuGUI_ViewExtender.h -// Author : Vitaly Smetannikov -// Module : VISU -// -#ifndef VisuGUI_ViewExtender_HeaderFile -#define VisuGUI_ViewExtender_HeaderFile - -#include -#include -#include -#include - -class VisuGUI; -//class QtxAction; -//class QDialog; - -class VisuGUI_SegmentationMgr; -class SVTK_Viewer; -class SVTK_ViewWindow; -class SUIT_ViewWindow; -class VTKViewer_Actor; - - -class VisuGUI_ViewExtender: public QObject, public CAM_ViewExtender -{ - Q_OBJECT - - public: - VisuGUI_ViewExtender(VisuGUI* theModule); - - virtual ~VisuGUI_ViewExtender(); - - virtual int createToolbar(SUIT_ViewWindow* theView); - virtual void contextMenuPopup(QMenu* theMenu); - - virtual void activate(SUIT_ViewModel*); - virtual void deactivate(SUIT_ViewModel*); - - VisuGUI_SegmentationMgr* getSegmentationMgr(SVTK_ViewWindow* theWindow); - - -private slots: - // void onPlanesMgr(); - // void onDialogDestroy(); - // void onShowPlanes(bool); - // void onDeactivatePlanes(bool); - void onViewDeleted(SUIT_ViewWindow* theWindow); - void onAddActor(SVTK_ViewWindow* theWindow, VTKViewer_Actor* theActor); - - private: - - //enum { ClippingPlaneMgrId, ShowClippingPlanesId, DeactivateClippingPlanesId }; - - //QMap myActionsMap; - VisuGUI* myModule; - - //QDialog* myNonModalDlg; - - //VisuGUI_SegmentationMgr* mySegmentationMgr; - QMap myViewMgrMap; - - QList myViewers; - - //SALOME_ListIO myListIO; - -}; - - -#endif diff --git a/src/VISU_I/VISU_ClippingPlaneMgr.cxx b/src/VISU_I/VISU_ClippingPlaneMgr.cxx deleted file mode 100644 index d9c9d40b..00000000 --- a/src/VISU_I/VISU_ClippingPlaneMgr.cxx +++ /dev/null @@ -1,512 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -#include "VISU_ClippingPlaneMgr.hxx" -#include "VISU_ColoredPrs3dHolder_i.hh" - -//#include CORBA_SERVER_HEADER(SALOMEDS) -//#include CORBA_SERVER_HEADER(SALOMEDS_Attributes) - -#include "SALOMEDSClient_GenericAttribute.hxx" -#include "SALOMEDSClient_AttributeName.hxx" -#include "SALOMEDSClient_AttributeSequenceOfReal.hxx" -#include "SALOMEDSClient_AttributeInteger.hxx" - - -#include - - -#define CLIP_PLANES_FOLDER "Clipping Planes" - -using namespace std; - -//************************************************************* -VISU_ClippingPlaneMgr::VISU_ClippingPlaneMgr() -{ - myPlanes = vtkImplicitFunctionCollection::New(); -} - -//************************************************************* -VISU_ClippingPlaneMgr::~VISU_ClippingPlaneMgr() -{ - myPlanes->Delete(); -} - -//************************************************************* -void VISU_ClippingPlaneMgr::SetStudy(_PTR(Study) theStudy) -{ - if (myStudy == theStudy) return; - myStudy = theStudy; - myPlanes->RemoveAllItems(); - if (!myStudy) return; - - _PTR(SObject) aFolder = GetClippingPlanesFolder(false); - if (aFolder) { - _PTR(ChildIterator) aIter = myStudy->NewChildIterator(aFolder); - int i; - for (i = 0; aIter->More(); aIter->Next(), i++) { // For each plane - _PTR(SObject) aSObject = aIter->Value(); - VISU_CutPlaneFunction* aPlane = VISU_CutPlaneFunction::New(); - aPlane->setPlaneObject(aSObject); - aPlane->setName(aSObject->GetName()); - - _PTR(GenericAttribute) anAttr; - if (aSObject->FindAttribute(anAttr, "AttributeSequenceOfReal")) { - _PTR(AttributeSequenceOfReal) aArray(anAttr); - aPlane->SetOrigin(aArray->Value(1), aArray->Value(2), aArray->Value(3)); - aPlane->SetNormal(aArray->Value(4), aArray->Value(5), aArray->Value(6)); - } - if (aSObject->FindAttribute(anAttr, "AttributeInteger")) { - _PTR(AttributeInteger) aFlag(anAttr); - aPlane->setAuto(aFlag->Value() == 1); - } else - aPlane->setAuto(false); - - applyPlaneToAll(aPlane); - myPlanes->AddItem(aPlane); - } - } -} - - -void VISU_ClippingPlaneMgr::applyPlaneToAll(VISU_CutPlaneFunction* thePlane) -{ - _PTR(SComponent) aVisuSO = myStudy->FindComponent("VISU"); - _PTR(ChildIterator) aChildIter = myStudy->NewChildIterator(aVisuSO); - for (aChildIter->InitEx(true); aChildIter->More(); aChildIter->Next()) { - _PTR(SObject) aSObject = aChildIter->Value(); - CORBA::Object_var anObject = VISU::ClientSObjectToObject(aSObject); - if(VISU::Base_i* aBase = dynamic_cast(VISU::GetServant(anObject).in())) { - VISU::Prs3d_i* aPrs; - if(aBase->GetType() == VISU::TCOLOREDPRS3DHOLDER){ - CORBA::Object_var anObject = aBase->_this(); - VISU::ColoredPrs3dHolder_var aHolder = VISU::ColoredPrs3dHolder::_narrow(anObject); - VISU::Prs3d_var aPrs3d = aHolder->GetDevice(); - aPrs = dynamic_cast(VISU::GetServant(aPrs3d).in()); - } else { - aPrs = dynamic_cast(aBase); - } - if (aPrs) { - if (!ContainsPlane(aPrs, thePlane)) { - if (thePlane->isAuto()) - aPrs->AddClippingPlane(thePlane); - else { - string aPrsEntry = aPrs->GetEntry(); - if (aPrsEntry.length() == 0) { - VISU::ColoredPrs3d_i* aColPrs = dynamic_cast(aPrs); - if (aColPrs) - aPrsEntry = aColPrs->GetHolderEntry(); - } - - _PTR(SObject) aSObject = thePlane->getPlaneObject(); - _PTR(ChildIterator) aRefIter = myStudy->NewChildIterator(aSObject); - for (; aRefIter->More(); aRefIter->Next()) { - _PTR(SObject) aObj = aRefIter->Value(); - _PTR(SObject) aRefPrsObject; - if (aObj->ReferencedObject(aRefPrsObject)) { // If it is referenced on current plane - if (aRefPrsObject->GetID() == aPrsEntry) { - aPrs->AddClippingPlane(thePlane); - } - } - } - } - } - } - } - } -} - -//************************************************************* -long VISU_ClippingPlaneMgr::CreateClippingPlane(double X,double Y, double Z, - double dX, double dY, double dZ, - bool isAuto, const char* name) -{ - _PTR(SObject) aObjPtr = CreateClippingPlaneObject(X, Y, Z, dX, dY, dZ, isAuto, name); - return myPlanes->GetNumberOfItems() - 1; -} - - -//************************************************************* -_PTR(SObject) VISU_ClippingPlaneMgr::CreateClippingPlaneObject(double X,double Y, double Z, - double dX, double dY, double dZ, - bool isAuto, const char* name) -{ - _PTR(SObject) aPlaneObj; - if(!myStudy->GetProperties()->IsLocked()) { - _PTR(SObject) aFolder = GetClippingPlanesFolder(true); - if (aFolder) { - _PTR(StudyBuilder) aBuilder = myStudy->NewBuilder(); - aPlaneObj = aBuilder->NewObject(aFolder); - - // Save Name - _PTR(GenericAttribute) anAttr; - anAttr = aBuilder->FindOrCreateAttribute(aPlaneObj,"AttributeName"); - _PTR(AttributeName) aName(anAttr); - aName->SetValue(name); - - //Save Parameters - double aParams[6]; - aParams[0] = X; - aParams[1] = Y; - aParams[2] = Z; - aParams[3] = dX; - aParams[4] = dY; - aParams[5] = dZ; - - anAttr = aBuilder->FindOrCreateAttribute(aPlaneObj,"AttributeSequenceOfReal"); - _PTR(AttributeSequenceOfReal) aArray(anAttr); - if (aArray->Length() == 6) { - for (int i = 0; i < 6; i++) - aArray->ChangeValue(i+1, aParams[i]); - } else { - for (int i = 0; i < 6; i++) - aArray->Add(aParams[i]); - } - // Save Bool Flag - anAttr = aBuilder->FindOrCreateAttribute(aPlaneObj,"AttributeInteger"); - _PTR(AttributeInteger) aFlag(anAttr); - aFlag->SetValue(isAuto? 1 : 0); - - vtkSmartPointer aPlane = VISU_CutPlaneFunction::New(); - aPlane->Delete(); //vtkSmartPointer specific - aPlane->setPlaneObject(aPlaneObj); - aPlane->SetOrigin(X, Y, Z); - aPlane->SetNormal(dX, dY, dZ); - aPlane->setName(name); - aPlane->setAuto(isAuto); - applyPlaneToAll(aPlane); - myPlanes->AddItem(aPlane.GetPointer()); - } - } - return aPlaneObj; -} - - -//************************************************************* -void VISU_ClippingPlaneMgr::EditClippingPlane(long id, double X,double Y, double Z, - double dX, double dY, double dZ, - bool isAuto, const char* name) -{ - VISU_CutPlaneFunction* aPlane = GetClippingPlane(id); - if (aPlane != NULL) { - _PTR(SObject) aSObj = aPlane->getPlaneObject(); - aPlane->SetOrigin(X, Y, Z); - aPlane->SetNormal(dX, dY, dZ); - aPlane->setName(name); - aPlane->setAuto(isAuto); - - if(!myStudy->GetProperties()->IsLocked()) { - _PTR(GenericAttribute) anAttr; - if (aSObj->FindAttribute(anAttr, "AttributeSequenceOfReal")) { - _PTR(AttributeSequenceOfReal) aArray(anAttr); - aArray->ChangeValue(1, X); - aArray->ChangeValue(2, Y); - aArray->ChangeValue(3, Z); - aArray->ChangeValue(4, dX); - aArray->ChangeValue(5, dY); - aArray->ChangeValue(6, dZ); - } - if (aSObj->FindAttribute(anAttr, "AttributeInteger")) { - _PTR(AttributeInteger) aFlag(anAttr); - aFlag->SetValue(isAuto? 1 : 0); - } - if (aSObj->FindAttribute(anAttr, "AttributeName")) { - _PTR(AttributeName) aName(anAttr); - aName->SetValue(name); - } - // Remove references on presentations if it becomes Auto plane - _PTR(SObject) aPlaneSObj = aPlane->getPlaneObject(); - if (aPlane->isAuto()) { - _PTR(ChildIterator) aIter = myStudy->NewChildIterator(aPlaneSObj); - _PTR(StudyBuilder) aBuilder = myStudy->NewBuilder(); - for (; aIter->More(); aIter->Next()) { - _PTR(SObject) aObj = aIter->Value(); - aBuilder->RemoveObject(aObj); - } - } - } - } -} - - - -//************************************************************* - /* Returns clipping plane by its Id */ -VISU_CutPlaneFunction* VISU_ClippingPlaneMgr::GetClippingPlane(long id) -{ - if ((id < 0) || (id >= GetClippingPlanesNb())) - return NULL; - return (VISU_CutPlaneFunction*) myPlanes->GetItemAsObject(id); -} - -//************************************************************* - /* Returns -1 if Plane is not exists */ -int VISU_ClippingPlaneMgr::GetPlaneId(VISU_CutPlaneFunction* thePlane) -{ - int aTag = thePlane->getPlaneObject()->Tag(); - int aRes = -1; - VISU_CutPlaneFunction* aPlane; - for (int i = 0; i < GetClippingPlanesNb(); i++) { - aPlane = GetClippingPlane(i); - if (aPlane->getPlaneObject()->Tag() == aTag) { - aRes = i; - break; - } - } - return aRes; -} - - -//************************************************************* - /* Deletes clipping plane by its Id */ -bool VISU_ClippingPlaneMgr::DeleteClippingPlane(long id) -{ - _PTR(SObject) aFolder = GetClippingPlanesFolder(false); - if (aFolder) { - VISU_CutPlaneFunction* aPlane = GetClippingPlane(id); - if (aPlane != NULL) { - _PTR(SComponent) aVisuSO = myStudy->FindComponent("VISU"); - _PTR(ChildIterator) aChildIter = myStudy->NewChildIterator(aVisuSO); - for (aChildIter->InitEx(true); aChildIter->More(); aChildIter->Next()) { - _PTR(SObject) aSObject = aChildIter->Value(); - CORBA::Object_var anObject = VISU::ClientSObjectToObject(aSObject); - if(VISU::Base_i* aBase = dynamic_cast(VISU::GetServant(anObject).in())) { - VISU::Prs3d_i* aPrs; - if(aBase->GetType() == VISU::TCOLOREDPRS3DHOLDER){ - CORBA::Object_var anObject = aBase->_this(); - VISU::ColoredPrs3dHolder_var aHolder = VISU::ColoredPrs3dHolder::_narrow(anObject); - VISU::Prs3d_var aPrs3d = aHolder->GetDevice(); - aPrs = dynamic_cast(VISU::GetServant(aPrs3d).in()); - } else - aPrs = dynamic_cast(aBase); - - if (aPrs) { - if (ContainsPlane(aPrs, aPlane)) { - short aTag1 = aPlane->getPlaneObject()->Tag(); - for (int j = aPrs->GetNumberOfClippingPlanes()-1; j > -1; j--) { - VISU_CutPlaneFunction* aPln = dynamic_cast - (aPrs->GetClippingPlane(j)); - if (aPln) { - short aTag2 = aPln->getPlaneObject()->Tag(); - if (aTag1 == aTag2) { - aPrs->RemoveClippingPlane(j); - break; - } - } - } - } - } - } - } - _PTR(SObject) aSObj = aPlane->getPlaneObject(); - if (aSObj) { - _PTR(StudyBuilder) aBuilder = myStudy->NewBuilder(); - aBuilder->RemoveObject(aSObj); - } - myPlanes->RemoveItem(id); - return true; - } - } - return false; -} - -//************************************************************* -bool VISU_ClippingPlaneMgr::ContainsPlane(VISU::Prs3d_ptr thePrs, VISU_CutPlaneFunction* thePlane) -{ - VISU::Prs3d_i* aPrs = dynamic_cast(VISU::GetServant(thePrs).in()); - return ContainsPlane(aPrs, thePlane); -} - -//************************************************************* -bool VISU_ClippingPlaneMgr::ContainsPlane(VISU::Prs3d_i* thePrs, VISU_CutPlaneFunction* thePlane) -{ - VISU::Prs3d_i* aPrs = thePrs; - if (thePrs->GetType() == VISU::TCOLOREDPRS3DHOLDER) { - VISU::ColoredPrs3dHolder_i* aHolder = dynamic_cast(thePrs); - if (!aHolder) return false; - aPrs = aHolder->GetPrs3dDevice(); - } - string aEntry = thePlane->getPlaneObject()->GetID(); - for (int i = 0; i < thePrs->GetNumberOfClippingPlanes(); i++) { - VISU_CutPlaneFunction* aPlane = dynamic_cast(thePrs->GetClippingPlane(i)); - if (aPlane) { - if (aPlane->getPlaneObject()->GetID() == aEntry) { - return true; - } - } - } - return false; -} - - -//************************************************************* - /* Applyes a clipping plane with Id to presentation thePrs */ -bool VISU_ClippingPlaneMgr::ApplyClippingPlane(VISU::Prs3d_i* thePrs, long id) -{ - //VISU::Prs3d_i* aPrs = dynamic_cast(VISU::GetServant(thePrs).in()); - if (!thePrs) return false; - - VISU_CutPlaneFunction* aPlane = GetClippingPlane(id); - if (!aPlane) return false; - if (!ContainsPlane(thePrs, aPlane)) { - thePrs->AddClippingPlane(aPlane); - if (!aPlane->isAuto()) { - string aEntry = thePrs->GetEntry(); - if (aEntry.length() == 0) { - VISU::ColoredPrs3d_i* aColPrs = dynamic_cast(thePrs); - if (aColPrs) - aEntry = aColPrs->GetHolderEntry(); - } - if(!myStudy->GetProperties()->IsLocked()) { - _PTR(StudyBuilder) aBuilder = myStudy->NewBuilder(); - _PTR(SObject) aPrsSObj = myStudy->FindObjectID(aEntry); - _PTR(SObject) aSObject = aPlane->getPlaneObject(); - _PTR(SObject) aNewObj = aBuilder->NewObject(aSObject); - aBuilder->Addreference(aNewObj, aPrsSObj); - } - } - return true; - } - return false; -} - -//************************************************************* -bool VISU_ClippingPlaneMgr::DetachClippingPlane(VISU::Prs3d_i* thePrs, long id) -{ - VISU_CutPlaneFunction* aPlane = GetClippingPlane(id); - //VISU::Prs3d_i* aPrs = dynamic_cast(VISU::GetServant(thePrs).in()); - if (aPlane && thePrs) { - if (ContainsPlane(thePrs, aPlane)) { - bool isRemoved = false; - short aTag1 = aPlane->getPlaneObject()->Tag(); - for (int j = thePrs->GetNumberOfClippingPlanes()-1; j > -1; j--) { - VISU_CutPlaneFunction* aPln = dynamic_cast - (thePrs->GetClippingPlane(j)); - if (aPln) { - short aTag2 = aPln->getPlaneObject()->Tag(); - if (aTag1 == aTag2) { - thePrs->RemoveClippingPlane(j); - isRemoved = true; - break; - } - } - } - if(!myStudy->GetProperties()->IsLocked()) { - _PTR(SObject) aSObject = aPlane->getPlaneObject(); - _PTR(StudyBuilder) aBuilder = myStudy->NewBuilder(); - - string aEntry = thePrs->GetEntry(); - if (aEntry.length() == 0) { - VISU::ColoredPrs3d_i* aColPrs = dynamic_cast(thePrs); - if (aColPrs) - aEntry = aColPrs->GetHolderEntry(); - } - _PTR(ChildIterator) aIter = myStudy->NewChildIterator(aSObject); - for (; aIter->More(); aIter->Next()) { - _PTR(SObject) aRefObj = aIter->Value(); - if(aRefObj) { - _PTR(SObject) aRefPrsObject; - if (aRefObj->ReferencedObject(aRefPrsObject)) { - if (aRefPrsObject->GetID() == aEntry) { - aBuilder->RemoveObject(aRefObj); - break; - } - } - } - } - } - return isRemoved; - } - } - return false; -} - - -//************************************************************* - /* Get number of clipping planes */ -long VISU_ClippingPlaneMgr::GetClippingPlanesNb() -{ - return myPlanes->GetNumberOfItems(); -} - - -//************************************************************* -_PTR(SObject) VISU_ClippingPlaneMgr::GetClippingPlanesFolder(bool toCreate) -{ - _PTR(SObject) aFolder; - _PTR(SComponent) aVisuSO = myStudy->FindComponent("VISU"); - if (!aVisuSO) return aFolder; - - aFolder = myStudy->FindObject(CLIP_PLANES_FOLDER); - if (!aFolder && toCreate) { - _PTR(StudyBuilder) aBuilder = myStudy->NewBuilder(); - aFolder = aBuilder->NewObject(aVisuSO); - - _PTR(GenericAttribute) anAttr; - anAttr = aBuilder->FindOrCreateAttribute(aFolder,"AttributeName"); - _PTR(AttributeName) aName(anAttr); - aName->SetValue(CLIP_PLANES_FOLDER); - } - return aFolder; -} - - - - -//**************************************************************** -//**************************************************************** -//**************************************************************** -VISU_CutPlaneFunction* VISU_CutPlaneFunction::New() -{ - return new VISU_CutPlaneFunction(); -} - -void VISU_CutPlaneFunction::setActive(bool theActive) -{ - myIsActive = theActive; - Modified(); -} - -double VISU_CutPlaneFunction::EvaluateFunction(double x[3]) -{ - if (myIsActive) - return vtkPlane::EvaluateFunction(x); - else - return -1; -} - -double VISU_CutPlaneFunction::EvaluateFunction(double x, double y, double z) -{ - if (myIsActive) - return vtkPlane::EvaluateFunction(x,y,z); - else - return -1; -} - -VISU_CutPlaneFunction::VISU_CutPlaneFunction(): - myIsActive(true) -{ -} - -VISU_CutPlaneFunction::~VISU_CutPlaneFunction() -{ -} - diff --git a/src/VISU_I/VISU_ClippingPlaneMgr.hxx b/src/VISU_I/VISU_ClippingPlaneMgr.hxx deleted file mode 100644 index 33dbbcd4..00000000 --- a/src/VISU_I/VISU_ClippingPlaneMgr.hxx +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File : VISU_ClippingPlaneMgr.hxx -// Author : VSV -// Module : VISU -// -#ifndef _VISU_ClippingPlane_H_ -#define _VISU_ClippingPlane_H_ - -#include "VISU_I.hxx" -#include "VISUConfig.hh" -#include "SALOME_Component_i.hxx" -#include "VISU_ColoredPrs3d_i.hh" - -#include -#include - -class vtkImplicitFunctionCollection; - - -class VISU_I_EXPORT VISU_CutPlaneFunction: public vtkPlane -{ -public: - static VISU_CutPlaneFunction* New(); - - vtkTypeMacro(VISU_CutPlaneFunction, vtkPlane); - - virtual double EvaluateFunction(double x[3]); - virtual double EvaluateFunction(double x, double y, double z); - - void setActive(bool theActive); - bool isActive() const { return myIsActive; } - - void setPlaneObject(_PTR(SObject) aSOPlane) { mySObject = aSOPlane; } - _PTR(SObject) getPlaneObject() const { return mySObject; } - - void setName(std::string theName) { myName = theName; } - std::string getName() const { return myName; } - - void setAuto(bool isAuto) { myIsAuto = isAuto; } - bool isAuto() const { return myIsAuto; } - -protected: - VISU_CutPlaneFunction(); - ~VISU_CutPlaneFunction(); - -private: - bool myIsActive; - _PTR(SObject) mySObject; - std::string myName; - bool myIsAuto; -}; - - - -class VISU_I_EXPORT VISU_ClippingPlaneMgr { -public: - VISU_ClippingPlaneMgr(); - ~VISU_ClippingPlaneMgr(); - - void SetStudy(_PTR(Study) theStudy); - - - long CreateClippingPlane(double X,double Y, double Z, - double dX, double dY, double dZ, - bool isAuto, const char* name); - - void EditClippingPlane(long id, double X,double Y, double Z, - double dX, double dY, double dZ, - bool isAuto, const char* name); - - _PTR(SObject) CreateClippingPlaneObject(double X,double Y, double Z, - double dX, double dY, double dZ, - bool isAuto, const char* name); - - /* Returns clipping plane by its Id */ - VISU_CutPlaneFunction* GetClippingPlane(long id); - - /* Returns -1 if Plane is not exists */ - int GetPlaneId(VISU_CutPlaneFunction* thePlane); - - /* Deletes clipping plane by its Id */ - bool DeleteClippingPlane(long id); - - /* Applyes a clipping plane with Id to presentation thePrs */ - bool ApplyClippingPlane(VISU::Prs3d_i* thePrs, long id); - - bool DetachClippingPlane(VISU::Prs3d_i* thePrs, long id); - - /* Get number of clipping planes */ - long GetClippingPlanesNb(); - - _PTR(SObject) GetClippingPlanesFolder(bool toCreate); - - static bool ContainsPlane(VISU::Prs3d_ptr thePrs, VISU_CutPlaneFunction* thePlane); - static bool ContainsPlane(VISU::Prs3d_i* thePrs, VISU_CutPlaneFunction* thePlane); - - vtkImplicitFunctionCollection* GetPlanesList() const { return myPlanes; } - - -private: - void applyPlaneToAll(VISU_CutPlaneFunction* thePlane); - - - _PTR(Study) myStudy; - - vtkImplicitFunctionCollection* myPlanes; -}; - -#endif diff --git a/src/VISU_I/VISU_Deformation_i.cc b/src/VISU_I/VISU_Deformation_i.cc deleted file mode 100755 index 7ed03fa0..00000000 --- a/src/VISU_I/VISU_Deformation_i.cc +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// File : VISU_Deformation_i.cc -// Author : -// Module : VISU -// -#include "VISU_Deformation_i.hh" -#include "VISU_Result_i.hh" -#include "VISU_Prs3dUtils.hh" - -#include "VISU_DeformationPL.hxx" -#include "VISU_Convertor.hxx" -#include "VISU_DeformationPL.hxx" -#include "VISUConfig.hh" - -#ifdef _DEBUG_ -static int MYDEBUG = 0; -#else -static int MYDEBUG = 0; -#endif - -//--------------------------------------------------------------- -VISU::Deformation_i::Deformation_i(VISU::ColoredPrs3d_i *thePrs3d): - myColoredPrs3d(thePrs3d) -{ - if(MYDEBUG) MESSAGE("Deformation_i::Deformation_i()"); -} - -//--------------------------------------------------------------- -VISU::Deformation_i::~Deformation_i() -{ - if(MYDEBUG) MESSAGE("Deformation_i::~Deformation_i()"); -} - -//--------------------------------------------------------------- -void VISU::Deformation_i::SetScale(CORBA::Double theScale) -{ - if(MYDEBUG) MESSAGE("Deformation_i::SetScale()"); - - VISU::TSetModified aModified(GetColoredPrs3d()); - - ProcessVoidEvent(new TVoidMemFun1ArgEvent - (GetSpecificDeformedPL(), &VISU_DeformationPL::SetScale, theScale)); -} - -//--------------------------------------------------------------- -void VISU::Deformation_i::InitDeformedPipeLine(VISU_DeformationPL* theDeformedPipeLine){ - - if(MYDEBUG) MESSAGE("Deformation_i::InitDeformedPipeLine()"); - myDeformationPL = theDeformedPipeLine; -} - -//--------------------------------------------------------------- -CORBA::Double -VISU::Deformation_i -::GetScale() -{ - if(MYDEBUG) MESSAGE("Deformation_i::GetScale()"); - return GetSpecificDeformedPL()->GetScale(); -} - -//--------------------------------------------------------------- -VISU::Entity VISU::Deformation_i::GetVectorialFieldEntity(){ - return myVectorialEntity; -} - -//--------------------------------------------------------------- -char* VISU::Deformation_i::GetVectorialFieldName(){ - return CORBA::string_dup(myVectorialFieldName.c_str()); -} - -//--------------------------------------------------------------- -void VISU::Deformation_i:: -DeformationToStream(std::ostringstream& theStr) -{ - Storable::DataToStream(theStr,"myScaleFactor", GetScale()); - Storable::DataToStream(theStr,"myVectorialField", GetVectorialFieldName()); - Storable::DataToStream(theStr,"myVectorialEntiry", GetVectorialFieldEntity()); - -} - -//--------------------------------------------------------------- -void -VISU::Deformation_i::RestoreDeformation(SALOMEDS::SObject_ptr theSObject, - const Storable::TRestoringMap& theMap) -{ - SetScale(VISU::Storable::FindValue(theMap,"myScaleFactor").toDouble()); - VISU::Entity anEntity = VISU::Entity(VISU::Storable::FindValue(theMap, "myVectorialEntiry").toInt()); - - SetVectorialField(anEntity, - VISU::Storable::FindValue(theMap, "myVectorialField").toLatin1().constData()); -} - -//--------------------------------------------------------------- -void -VISU::Deformation_i::SameAsDeformation(const Deformation_i *aDeformedPrs){ - if(const Deformation_i* aPrs = dynamic_cast(aDeformedPrs)) { - Deformation_i* anOrigin = const_cast(aPrs); - - CORBA::String_var aVectorialFieldName = anOrigin->GetVectorialFieldName(); - VISU::Entity anEntity = anOrigin->GetVectorialFieldEntity(); - this->SetVectorialField(anEntity, - aVectorialFieldName); - this->SetScale(anOrigin->GetScale()); - } -} - -void VISU::Deformation_i::SetVectorialField(Entity theEntity, const char* theFieldName){ - if(MYDEBUG) MESSAGE("CutPlanes_i::SetVectorialField()"); - - bool anIsModified = false; - if(!anIsModified) - anIsModified |= GetVectorialFieldEntity() != theEntity; - - if(!anIsModified) - anIsModified |= GetVectorialFieldName() != theFieldName; - - if(!anIsModified) - return; - - ColoredPrs3d_i *aColoredPrs = GetColoredPrs3d(); - int aTimeStampNumber = aColoredPrs->GetTimeStampNumber(); - - VISU::TEntity aEntity = VISU::TEntity(theEntity); - - VISU::Result_i::PInput anInput = aColoredPrs->GetCResult()->GetInput(aColoredPrs->GetCMeshName(), - theEntity, - theFieldName, - aTimeStampNumber); - - PField aVectorialField = anInput->GetField(aColoredPrs->GetCMeshName(), aEntity, theFieldName); - - VISU::PUnstructuredGridIDMapper anIDMapper = - anInput->GetTimeStampOnMesh(aColoredPrs->GetCMeshName(), - aEntity, - theFieldName, - aTimeStampNumber); - if(GetSpecificDeformedPL() && anIDMapper) { - ProcessVoidEvent(new TVoidMemFun1ArgEvent - (GetSpecificDeformedPL(), &VISU_DeformationPL::SetVectorialField, anIDMapper)); - - VISU::TSetModified aModified(GetColoredPrs3d()); - - myVectorialEntity = theEntity; - myVectorialFieldName = theFieldName; - myVectorialField = anIDMapper; - } -}; diff --git a/src/VISU_I/VISU_Deformation_i.hh b/src/VISU_I/VISU_Deformation_i.hh deleted file mode 100755 index 85dcf3ae..00000000 --- a/src/VISU_I/VISU_Deformation_i.hh +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// File : VISU_Deformation_i.hxx -// Author : -// Module : VISU -// -#ifndef VISU_Deformation_i_HeaderFile -#define VISU_Deformation_i_HeaderFile - -#include "VISU_I.hxx" -#include "VISU_ColoredPrs3d_i.hh" -#include "VISU_DeformationPL.hxx" - - - -namespace VISU{ - - class VISU_I_EXPORT Deformation_i : public virtual POA_VISU::Deformation - { - Deformation_i(const Deformation_i&); - public: - typedef VISU::Deformation TInterface; - - Deformation_i(VISU::ColoredPrs3d_i* theColoredPrs3d); - virtual ~Deformation_i(); - - virtual - void - SetScale(CORBA::Double theScale); - - virtual - CORBA::Double - GetScale(); - - virtual - void - DeformationToStream(std::ostringstream& theStr); - - virtual - void - RestoreDeformation(SALOMEDS::SObject_ptr theSObject, - const Storable::TRestoringMap& theMap); - - virtual - void - SameAsDeformation(const Deformation_i *aDeformedPrs); - - virtual - VISU::Entity - GetVectorialFieldEntity(); - - virtual - char* - GetVectorialFieldName(); - - virtual void SetVectorialField(Entity theEntity, const char* theFieldName); - - protected: - virtual - void - InitDeformedPipeLine(VISU_DeformationPL* theDeformedPipeLine); - - VISU_DeformationPL* - GetSpecificDeformedPL() const - { - return myDeformationPL; - } - - ColoredPrs3d_i* GetColoredPrs3d(){ - return myColoredPrs3d; - } - - - private: - VISU_DeformationPL *myDeformationPL; - - PField myVectorialField; - VISU::Entity myVectorialEntity; - std::string myVectorialFieldName; - ColoredPrs3d_i *myColoredPrs3d; - - }; -} - -#endif diff --git a/src/VISU_I/VISU_DeformedShapeAndScalarMap_i.cc b/src/VISU_I/VISU_DeformedShapeAndScalarMap_i.cc deleted file mode 100644 index 8fa94e4d..00000000 --- a/src/VISU_I/VISU_DeformedShapeAndScalarMap_i.cc +++ /dev/null @@ -1,409 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File : VISU_DeformedShapeAndScalarMap_i.cc -// Author : Eugeny Nikolaev -// Module : VISU -// -#include "VISU_DeformedShapeAndScalarMap_i.hh" -#include "VISU_Prs3dUtils.hh" -#include "VISU_Result_i.hh" - -#include "VISU_ScalarMapAct.h" -#include "VISU_DeformedShapeAndScalarMapPL.hxx" -#include "VISU_Convertor.hxx" - -#include "SUIT_ResourceMgr.h" -#include "SALOME_Event.h" - -#include -#include -#include - -#ifdef _DEBUG_ -static int MYDEBUG = 0; -#else -static int MYDEBUG = 0; -#endif - -static int INCMEMORY = 4+12; - -using namespace std; - -//--------------------------------------------------------------- -size_t -VISU::DeformedShapeAndScalarMap_i -::IsPossible(Result_i* theResult, - const std::string& theMeshName, - VISU::Entity theEntity, - const std::string& theFieldName, - CORBA::Long theTimeStampNumber, - bool theIsMemoryCheck) -{ - size_t aResult = 0; - try{ - aResult = TSuperClass::IsPossible(theResult, - theMeshName, - theEntity, - theFieldName, - theTimeStampNumber, - false); - if(theIsMemoryCheck && aResult){ - VISU::Result_i::PInput anInput = theResult->GetInput(theMeshName, - theEntity, - theFieldName, - theTimeStampNumber); - VISU::PField aField = anInput->GetField(theMeshName, - (VISU::TEntity)theEntity, - theFieldName); - if(aField->myNbComp <= 1) - return 0; - - bool anIsEstimated = true; - size_t aSize = anInput->GetTimeStampOnMeshSize(theMeshName, - (VISU::TEntity)theEntity, - theFieldName, - theTimeStampNumber, - anIsEstimated); - if(anIsEstimated) - aSize *= INCMEMORY; - aResult = VISU_PipeLine::CheckAvailableMemory(aSize); - if(MYDEBUG) - MESSAGE("DeformedShapeAndScalarMap_i::IsPossible - CheckAvailableMemory = "<(theOrigin)){ - DeformedShapeAndScalarMap_i* anOrigin = const_cast(aPrs3d); - CORBA::String_var aFieldName = anOrigin->GetScalarFieldName(); - - SetScalarField(anOrigin->GetScalarEntity(), - aFieldName, - anOrigin->GetScalarTimeStampNumber()); - SetTitle(anOrigin->GetTitle()); //fix of 20094 issue - SetScalarMode(anOrigin->GetScalarMode()); // - if(!IsRangeFixed() && IsPipeLineExists()) //fix of 20107 issue - SetSourceRange(); // - Update(); - } -} - - -//--------------------------------------------------------------- -void -VISU::DeformedShapeAndScalarMap_i -::SetScale(CORBA::Double theScale) -{ - VISU::TSetModified aModified(this); - - ProcessVoidEvent(new TVoidMemFun1ArgEvent - (GetSpecificPL(), &VISU_DeformedShapeAndScalarMapPL::SetScale, theScale)); -} - - -//--------------------------------------------------------------- -CORBA::Double -VISU::DeformedShapeAndScalarMap_i -::GetScale() -{ - return myDeformedShapeAndScalarMapPL->GetScale(); -} - - -//--------------------------------------------------------------- -void -VISU::DeformedShapeAndScalarMap_i -::CreatePipeLine(VISU_PipeLine* thePipeLine) -{ - if(!thePipeLine){ - myDeformedShapeAndScalarMapPL = VISU_DeformedShapeAndScalarMapPL::New(); - }else - myDeformedShapeAndScalarMapPL = dynamic_cast(thePipeLine); - - myDeformedShapeAndScalarMapPL->GetMapper()->SetScalarVisibility(1); - - TSuperClass::CreatePipeLine(myDeformedShapeAndScalarMapPL); -} - - -//--------------------------------------------------------------- -bool -VISU::DeformedShapeAndScalarMap_i -::CheckIsPossible() -{ - return IsPossible(GetCResult(),GetCMeshName(),GetEntity(),GetCFieldName(),GetTimeStampNumber(),true); -} - - -//--------------------------------------------------------------- -VISU_Actor* -VISU::DeformedShapeAndScalarMap_i -::CreateActor() -{ - VISU_Actor* anActor = TSuperClass::CreateActor(true); - SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr(); - int aDispMode = aResourceMgr->integerValue("VISU", "scalar_def_represent", 2); - bool toShrink = aResourceMgr->booleanValue("VISU", "scalar_def_shrink", false); - anActor->SetRepresentation(aDispMode); - if (toShrink) - anActor->SetShrink(); - anActor->SetVTKMapping(false); - return anActor; -} - - -//--------------------------------------------------------------- -void -VISU::DeformedShapeAndScalarMap_i -::UpdateActor(VISU_Actor* theActor) -{ - if(VISU_ScalarMapAct* anActor = dynamic_cast(theActor)){ - anActor->SetBarVisibility(true); - GetPipeLine()->GetMapper()->SetScalarVisibility(1); - } - TSuperClass::UpdateActor(theActor); -} - - -//--------------------------------------------------------------- -void -VISU::DeformedShapeAndScalarMap_i -::SetField(VISU::PField theField) -{ - TSuperClass::SetField(theField); - - if(!myScalarField) - myScalarField = theField; -} - - -//--------------------------------------------------------------- -void -VISU::DeformedShapeAndScalarMap_i -::SetScalarField(VISU::Entity theEntity, - const char* theFieldName, - CORBA::Long theTimeStampNumber) -{ - bool anIsModified = false; - - if(!anIsModified) - anIsModified |= myScalarEntity != theEntity; - - if(!anIsModified) - anIsModified |= myScalarFieldName != theFieldName; - - if(!anIsModified) - anIsModified |= myScalarTimeStampNumber != theTimeStampNumber; - - if(!anIsModified) - return; - - VISU::TSetModified aModified(this); - - VISU::TEntity aEntity = VISU::TEntity(theEntity); - VISU::Result_i::PInput anInput = GetCResult()->GetInput(GetCMeshName(), - theEntity, - theFieldName, - theTimeStampNumber); - myScalarField = anInput->GetField(GetCMeshName(), aEntity, theFieldName); - - VISU::PUnstructuredGridIDMapper anIDMapper = - anInput->GetTimeStampOnMesh(GetCMeshName(), - aEntity, - theFieldName, - theTimeStampNumber); - - vtkUnstructuredGrid* anOutput = anIDMapper->GetUnstructuredGridOutput(); - if(myDeformedShapeAndScalarMapPL && anOutput) - ProcessVoidEvent(new TVoidMemFun1ArgEvent - (GetSpecificPL(), &VISU_DeformedShapeAndScalarMapPL::SetScalars, anOutput)); - - myScalarEntity = theEntity; - myScalarFieldName = theFieldName; - myScalarTimeStampNumber = theTimeStampNumber; - - SetTitle(theFieldName); - SetScalarMode(GetScalarMode()); - if(!IsRangeFixed() && IsPipeLineExists()) - SetSourceRange(); - - myParamsTime.Modified(); -} - - -//--------------------------------------------------------------- -VISU::Entity -VISU::DeformedShapeAndScalarMap_i -::GetScalarEntity() -{ - return myScalarEntity; -} - - -//--------------------------------------------------------------- -char* -VISU::DeformedShapeAndScalarMap_i -::GetScalarFieldName() -{ - return CORBA::string_dup(myScalarFieldName.c_str()); -} - - -//--------------------------------------------------------------- -CORBA::Long -VISU::DeformedShapeAndScalarMap_i -::GetScalarTimeStampNumber() -{ - return myScalarTimeStampNumber; -} - - -//--------------------------------------------------------------- -VISU::PField -VISU::DeformedShapeAndScalarMap_i -::GetScalarField() -{ - return myScalarField; -} diff --git a/src/VISU_I/VISU_DeformedShapeAndScalarMap_i.hh b/src/VISU_I/VISU_DeformedShapeAndScalarMap_i.hh deleted file mode 100644 index a50f64df..00000000 --- a/src/VISU_I/VISU_DeformedShapeAndScalarMap_i.hh +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File: VISU_DeformedShapeAndScalarMap_i.hh -// Author: Eugeny Nikolaev -// Module : VISU -// -#ifndef VISU_DeformedShapeAndScalarMap_i_HeaderFile -#define VISU_DeformedShapeAndScalarMap_i_HeaderFile - -#include "VISU_ScalarMap_i.hh" - -class VISU_DeformedShapeAndScalarMapPL; - -namespace VISU -{ - //---------------------------------------------------------------------------- - //! Class of Scalar Map on Deformed Shape presentation. - class VISU_I_EXPORT DeformedShapeAndScalarMap_i : public virtual POA_VISU::DeformedShapeAndScalarMap, - public virtual ScalarMap_i - { - static int myNbPresent; - DeformedShapeAndScalarMap_i(const DeformedShapeAndScalarMap_i&); - - public: - //---------------------------------------------------------------------------- - typedef ScalarMap_i TSuperClass; - typedef VISU::DeformedShapeAndScalarMap TInterface; - - explicit - DeformedShapeAndScalarMap_i(EPublishInStudyMode thePublishInStudyModep); - - virtual - ~DeformedShapeAndScalarMap_i(); - - virtual - VISU::VISUType - GetType() - { - return VISU::TDEFORMEDSHAPEANDSCALARMAP; - } - - virtual - void - SetScale(CORBA::Double theScale); - - virtual - CORBA::Double - GetScale(); - - virtual - void - SameAs(const Prs3d_i* theOrigin); - - VISU_DeformedShapeAndScalarMapPL* - GetSpecificPL() - { - return myDeformedShapeAndScalarMapPL; - } - - protected: - //! Redefines VISU_ColoredPrs3d_i::SetField - virtual - void - SetField(VISU::PField theField); - - //! Redefines VISU_ColoredPrs3d_i::CreatePipeLine - virtual - void - CreatePipeLine(VISU_PipeLine* thePipeLine); - - //! Redefines VISU_ColoredPrs3d_i::CheckIsPossible - virtual - bool - CheckIsPossible(); - - public: - //! Redefines VISU_ColoredPrs3d_i::IsPossible - static - size_t - IsPossible(Result_i* theResult, - const std::string& theMeshName, - VISU::Entity theEntity, - const std::string& theFieldName, - CORBA::Long theTimeStampNumber, - bool theIsMemoryCheck); - - //! Redefines VISU_ColoredPrs3d_i::IsPossible - virtual - Storable* - Create(const std::string& theMeshName, - VISU::Entity theEntity, - const std::string& theFieldName, - CORBA::Long theTimeStampNumber); - - //! Redefines VISU_ColoredPrs3d_i::ToStream - virtual - void - ToStream(std::ostringstream& theStr); - - //! Redefines VISU_ColoredPrs3d_i::Restore - virtual - Storable* - Restore(SALOMEDS::SObject_ptr theSObject, - const Storable::TRestoringMap& theMap); - - static const std::string myComment; - - virtual - const char* - GetComment() const; - - virtual - QString - GenerateName(); - - virtual - const char* - GetIconName(); - - virtual - VISU_Actor* - CreateActor(); - - virtual - void - UpdateActor(VISU_Actor* theActor) ; - - virtual - void - SetScalarField(VISU::Entity theEntity, - const char* theFieldName, - CORBA::Long theTimeStampNumber); - - virtual - VISU::Entity - GetScalarEntity(); - - virtual - char* - GetScalarFieldName(); - - virtual - CORBA::Long - GetScalarTimeStampNumber(); - - virtual - VISU::PField - GetScalarField(); - - private: - VISU_DeformedShapeAndScalarMapPL *myDeformedShapeAndScalarMapPL; - - PField myScalarField; - VISU::Entity myScalarEntity; - std::string myScalarFieldName; - CORBA::Long myScalarTimeStampNumber; - }; -} -#endif diff --git a/src/VISU_I/VISU_MonoColorPrs_i.cc b/src/VISU_I/VISU_MonoColorPrs_i.cc deleted file mode 100644 index b7ddf576..00000000 --- a/src/VISU_I/VISU_MonoColorPrs_i.cc +++ /dev/null @@ -1,185 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File : VISU_MonoColorPrs_i.cxx -// Author : Vitaly Smetannikov -// Module : VISU -// -#include "VISU_MonoColorPrs_i.hh" -#include "VISU_Prs3dUtils.hh" -#include "VISU_PipeLineUtils.hxx" -#include "VISU_ScalarMapAct.h" - -#include "VISU_PipeLine.hxx" - -#include -#include - -#ifdef _DEBUG_ -static int MYDEBUG = 0; -#else -static int MYDEBUG = 0; -#endif - -//--------------------------------------------------------------- -VISU::MonoColorPrs_i -::MonoColorPrs_i(EPublishInStudyMode thePublishInStudyMode): - ColoredPrs3d_i(thePublishInStudyMode), - ScalarMap_i(thePublishInStudyMode) -{ - if(MYDEBUG) MESSAGE("MonoColorPrs_i::MonoColorPrs_i"); -} - -//--------------------------------------------------------------- -void -VISU::MonoColorPrs_i -::SameAs(const Prs3d_i* theOrigin) -{ - TSuperClass::SameAs(theOrigin); - - if(const MonoColorPrs_i* aPrs3d = dynamic_cast(theOrigin)){ - MonoColorPrs_i* anOrigin = const_cast(aPrs3d); - SetColor(anOrigin->GetColor()); - ShowColored(anOrigin->IsColored()); - } -} - - -//--------------------------------------------------------------- -VISU::Storable* -VISU::MonoColorPrs_i -::Create(const std::string& theMeshName, - VISU::Entity theEntity, - const std::string& theFieldName, - CORBA::Long theTimeStampNumber) -{ - myIsColored = false; - myColor.R = myColor.G = myColor.B = 0.5; - return TSuperClass::Create(theMeshName,theEntity,theFieldName,theTimeStampNumber); -} - -//--------------------------------------------------------------- -VISU::Storable* -VISU::MonoColorPrs_i -::Restore(SALOMEDS::SObject_ptr theSObject, - const Storable::TRestoringMap& theMap) -{ - if(!TSuperClass::Restore(theSObject, theMap)) - return NULL; - - myIsColored = VISU::Storable::FindValue(theMap,"myIsColored").toInt(); - myColor.R = VISU::Storable::FindValue(theMap,"myColor.R").toDouble(); - myColor.G = VISU::Storable::FindValue(theMap,"myColor.G").toDouble(); - myColor.B = VISU::Storable::FindValue(theMap,"myColor.B").toDouble(); - - return this; -} - -//--------------------------------------------------------------- -void -VISU::MonoColorPrs_i -::ToStream(std::ostringstream& theStr) -{ - TSuperClass::ToStream(theStr); - - Storable::DataToStream( theStr, "myIsColored", myIsColored ); - Storable::DataToStream( theStr, "myColor.R", myColor.R ); - Storable::DataToStream( theStr, "myColor.G", myColor.G ); - Storable::DataToStream( theStr, "myColor.B", myColor.B ); -} - - -//--------------------------------------------------------------- -VISU::MonoColorPrs_i::~MonoColorPrs_i() -{ - if(MYDEBUG) MESSAGE("MonoColorPrs_i::~MonoColorPrs_i()"); -} - -//--------------------------------------------------------------- -CORBA::Boolean VISU::MonoColorPrs_i::IsColored() -{ - return myIsColored; -} - - - -//--------------------------------------------------------------- -void -VISU::MonoColorPrs_i::ShowColored(CORBA::Boolean theColored) -{ - if(myIsColored == theColored) - return; - myIsColored = theColored; - myParamsTime.Modified(); -} - -//--------------------------------------------------------------- -SALOMEDS::Color VISU::MonoColorPrs_i::GetColor() -{ - return myColor; -} - -//--------------------------------------------------------------- -void VISU::MonoColorPrs_i::SetColor(const SALOMEDS::Color& theColor) -{ - bool anIsSameValue = VISU::CheckIsSameValue(myColor.R, theColor.R); - anIsSameValue &= VISU::CheckIsSameValue(myColor.G, theColor.G); - anIsSameValue &= VISU::CheckIsSameValue(myColor.B, theColor.B); - if(anIsSameValue) - return; - - VISU::TSetModified aModified(this); - - myColor = theColor; - myParamsTime.Modified(); -} - -//--------------------------------------------------------------- -VISU_Actor* VISU::MonoColorPrs_i::CreateActor(bool toSupressShrinking) -{ - VISU_Actor* anActor = TSuperClass::CreateActor(toSupressShrinking); - anActor->GetProperty()->SetColor(myColor.R,myColor.G,myColor.B); - return anActor; -} - -//--------------------------------------------------------------- -VISU_Actor* VISU::MonoColorPrs_i::CreateActor() -{ - return CreateActor(false); -} - -//--------------------------------------------------------------- -void VISU::MonoColorPrs_i::UpdateActor(VISU_ActorBase* theActor) -{ - if(VISU_ScalarMapAct* anActor = dynamic_cast(theActor)){ - if(IsColored()){ - anActor->SetBarVisibility(true); - GetPipeLine()->GetMapper()->SetScalarVisibility(1); - }else{ - anActor->SetBarVisibility(false); - GetPipeLine()->GetMapper()->SetScalarVisibility(0); - anActor->GetProperty()->SetColor(myColor.R,myColor.G,myColor.B); - } - TSuperClass::UpdateActor(theActor); - } -} - diff --git a/src/VISU_I/VISU_MonoColorPrs_i.hh b/src/VISU_I/VISU_MonoColorPrs_i.hh deleted file mode 100644 index 4e71e354..00000000 --- a/src/VISU_I/VISU_MonoColorPrs_i.hh +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File : VISU_MonoColorPrs_i.hxx -// Author : Vitaly Smetannikov -// Module : VISU -// -#ifndef VISU_MonoColorPrs_i_HeaderFile -#define VISU_MonoColorPrs_i_HeaderFile - -#include -#include "VISU_ScalarMap_i.hh" - -namespace VISU -{ - //---------------------------------------------------------------------------- - class VISU_I_EXPORT MonoColorPrs_i : public virtual POA_VISU::MonoColorPrs, - public virtual ScalarMap_i - { - MonoColorPrs_i(const MonoColorPrs_i&); - - public: - //---------------------------------------------------------------------------- - typedef ScalarMap_i TSuperClass; - typedef VISU::MonoColorPrs TInterface; - - explicit MonoColorPrs_i(EPublishInStudyMode thePublishInStudyModep); - - virtual void SameAs(const Prs3d_i* theOrigin); - - virtual ~MonoColorPrs_i(); - - virtual CORBA::Boolean IsColored(); - - virtual void ShowColored(CORBA::Boolean theColored); - - virtual SALOMEDS::Color GetColor(); - - virtual void SetColor(const SALOMEDS::Color& theColor); - - protected: - SALOMEDS::Color myColor; - bool myIsColored; - - public: - virtual Storable* Create(const std::string& theMeshName, - VISU::Entity theEntity, - const std::string& theFieldName, - CORBA::Long theTimeStampNumber); - - virtual void ToStream(std::ostringstream& theStr); - - virtual Storable* Restore(SALOMEDS::SObject_ptr theSObject, - const Storable::TRestoringMap& theMap); - - virtual VISU_Actor* CreateActor(); - - virtual VISU_Actor* CreateActor(bool toSupressShrinking); - - virtual void UpdateActor(VISU_ActorBase* theActor); - }; -}; -#endif diff --git a/src/VISU_I/VISU_OptionalDeformation_i.cc b/src/VISU_I/VISU_OptionalDeformation_i.cc deleted file mode 100755 index d7263255..00000000 --- a/src/VISU_I/VISU_OptionalDeformation_i.cc +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// File : VISU_OptionalDeformation_i.cc -// Author : -// Module : VISU -// -#include "VISU_OptionalDeformation_i.hh" -#include "VISU_Result_i.hh" -#include "VISU_Prs3dUtils.hh" -#include "VISUConfig.hh" - -#include "VISU_OptionalDeformationPL.hxx" - - -#ifdef _DEBUG_ -static int MYDEBUG = 0; -#else -static int MYDEBUG = 0; -#endif - -//--------------------------------------------------------------- -VISU::OptionalDeformation_i::OptionalDeformation_i(VISU::ColoredPrs3d_i *theColoredPrs3d): - Deformation_i(theColoredPrs3d) -{ - if(MYDEBUG) MESSAGE("OptionalDeformation_i::OptionalDeformation_i()"); -} - -//--------------------------------------------------------------- -VISU::OptionalDeformation_i::~OptionalDeformation_i() -{ - if(MYDEBUG) MESSAGE("OptionalDeformation_i::~OptionalDeformation_i()"); -} - -//--------------------------------------------------------------- -void VISU::OptionalDeformation_i::UseDeformation(CORBA::Boolean theFlag){ - if(MYDEBUG) MESSAGE("OptionalDeformation_i::UseDeformation()"); - - VISU::TSetModified aModified(GetColoredPrs3d()); - - ProcessVoidEvent(new TVoidMemFun1ArgEvent - (GetSpecificDeformedPL(), &VISU_OptionalDeformationPL::UseDeformation, theFlag)); -} - -//--------------------------------------------------------------- -CORBA::Boolean VISU::OptionalDeformation_i::IsDeformed(){ - - if(MYDEBUG) MESSAGE("OptionalDeformation_i::IsDeformed()"); - return GetSpecificDeformedPL()->IsDeformed(); -} - - -void VISU::OptionalDeformation_i::InitDeformedPipeLine(VISU_DeformationPL* theDeformedPipeLine){ - - if(MYDEBUG) MESSAGE("OptionalDeformation_i::InitDeformedPipeLine()"); - myOptionalDeformationPL = dynamic_cast(theDeformedPipeLine); - - TSuperClass::InitDeformedPipeLine(myOptionalDeformationPL); -} - -//--------------------------------------------------------------- -void VISU::OptionalDeformation_i:: -DeformationToStream(std::ostringstream& theStr) -{ - Storable::DataToStream(theStr,"IsDeformed", IsDeformed()); - if(IsDeformed()) - TSuperClass::DeformationToStream(theStr); -} - -//--------------------------------------------------------------- -void -VISU::OptionalDeformation_i::RestoreDeformation(SALOMEDS::SObject_ptr theSObject, - const Storable::TRestoringMap& theMap) -{ - UseDeformation(Storable::FindValue(theMap,"IsDeformed").toInt()); - if(IsDeformed()) - TSuperClass::RestoreDeformation(theSObject,theMap); -} - - - -void -VISU::OptionalDeformation_i::SameAsDeformation(const Deformation_i *aDeformedPrs){ - - if(const OptionalDeformation_i* aPrs3d = dynamic_cast(aDeformedPrs)){ - OptionalDeformation_i* anOrigin = const_cast(aPrs3d); - UseDeformation(anOrigin->IsDeformed()); - - if(anOrigin->IsDeformed()){ - TSuperClass::SameAsDeformation(aDeformedPrs); - } - } -} diff --git a/src/VISU_I/VISU_OptionalDeformation_i.hh b/src/VISU_I/VISU_OptionalDeformation_i.hh deleted file mode 100755 index b7ba13f3..00000000 --- a/src/VISU_I/VISU_OptionalDeformation_i.hh +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// File : VISU_Deformation_i.hxx -// Author : -// Module : VISU -// -#ifndef VISU_OptionalDeformation_i_HeaderFile -#define VISU_OptionalDeformation_i_HeaderFile - -#include "VISU_I.hxx" -#include "VISU_Deformation_i.hh" -#include "VISU_OptionalDeformationPL.hxx" - -namespace VISU { - class VISU_I_EXPORT OptionalDeformation_i : public virtual POA_VISU::OptionalDeformation, - public virtual Deformation_i - { - OptionalDeformation_i(const OptionalDeformation_i&); - public: - typedef VISU::OptionalDeformation TInterface; - typedef Deformation_i TSuperClass; - - OptionalDeformation_i(VISU::ColoredPrs3d_i* theModifiedEngine); - virtual ~OptionalDeformation_i(); - - virtual void UseDeformation(CORBA::Boolean theFlag); - virtual CORBA::Boolean IsDeformed(); - - - virtual - void - DeformationToStream(std::ostringstream& theStr); - - virtual - void - RestoreDeformation(SALOMEDS::SObject_ptr theSObject, - const Storable::TRestoringMap& theMap); - - virtual - void - SameAsDeformation(const Deformation_i *aDeformedPrs); - - protected: - virtual - void InitDeformedPipeLine(VISU_DeformationPL* theDeformedPipeLine); - - VISU_OptionalDeformationPL* - GetSpecificDeformedPL() const - { - return myOptionalDeformationPL; - } - - private: - VISU_OptionalDeformationPL* myOptionalDeformationPL; - - }; -} -#endif diff --git a/src/VISU_I/VISU_PointMap3d_i.cc b/src/VISU_I/VISU_PointMap3d_i.cc deleted file mode 100644 index f03b72ca..00000000 --- a/src/VISU_I/VISU_PointMap3d_i.cc +++ /dev/null @@ -1,1255 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File : VISU_PointMap3d_i.cc -// Author : Dmitry Matveitchev -// Module : VISU -// -#include "VISU_PointMap3d_i.hh" - -#include "VISU_CutLines_i.hh" -#include "VISU_Result_i.hh" -#include "VISU_ViewManager_i.hh" -#include "VISU_ScalarBarActor.hxx" -#include "SUIT_ResourceMgr.h" - -#include "SALOME_Event.h" -#include "VISU_Prs3dUtils.hh" -#include "SPlot2d_Curve.h" -#include "VISU_PipeLineUtils.hxx" - -#include "VISU_TableReader.hxx" -#include "VISU_ConvertorUtils.hxx" -#include "VISU_DeformedGridPL.hxx" - -#include "SALOME_InteractiveObject.hxx" -#include "VISU_Gen_i.hh" - -#include -#include - -#include - -#ifdef _DEBUG_ -static int MYDEBUG = 0; -#else -static int MYDEBUG = 0; -#endif - -using namespace std; - -//---------------------------------------------------------------- -// PointMap3d Object -//---------------------------------------------------------------- -int VISU::PointMap3d_i::myNbPresent = 0; -const string VISU::PointMap3d_i::myComment = "POINTMAP3D"; -/*! - Generate unique name -*/ -QString VISU::PointMap3d_i::GenerateName() -{ - return VISU::GenerateName( "Table3D - ", ++myNbPresent ); -} -/*! - Gets comment string -*/ -const char* VISU::PointMap3d_i::GetComment() const -{ - return myComment.c_str(); -} -/*! - Constructor -*/ -VISU::PointMap3d_i::PointMap3d_i( SALOMEDS::Study_ptr theStudy, const char* theObjectEntry ) - : Table_i(theStudy, theObjectEntry), - myActorCollection(vtkActorCollection::New()), - myIsActiveState(true) -{ - if(MYDEBUG) MESSAGE("PointMap3d_i::PointMap3d_i - this = "<FindObjectID(theObjectEntry); - myOffset[0] = myOffset[1] = myOffset[2] = 0; - myActorCollection->Delete(); -} -/*! - Destructor -*/ -VISU::PointMap3d_i::~PointMap3d_i() -{ - if(MYDEBUG) MESSAGE("PointMap3d_i::~PointMap3d_i - this = "< TSignal; - const TSignal& mySignal; - - TInvokeSignalEvent(const TSignal& theSignal): - mySignal(theSignal) - {} - - virtual - void - Execute() - { - mySignal(); - } - }; -} - -//---------------------------------------------------------------------------- -void -VISU::PointMap3d_i -::SetTitle( const char* theTitle ) -{ - SetName( theTitle, true ); -} - -//---------------------------------------------------------------------------- -char* -VISU::PointMap3d_i -::GetTitle() -{ - return CORBA::string_dup( GetName().c_str() ); -} - -//---------------------------------------------------------------------------- -SALOMEDS::SObject_var -VISU::PointMap3d_i -::GetSObject() const -{ - return mySObj; -} - -//---------------------------------------------------------------------------- -std::string -VISU::PointMap3d_i -::GetObjectEntry() -{ - CORBA::String_var anEntry = mySObj->GetID(); - return anEntry.in(); -} - -//---------------------------------------------------------------------------- -Handle(SALOME_InteractiveObject) -VISU::PointMap3d_i -::GetIO() -{ - if( myIO.IsNull() ) - myIO = new SALOME_InteractiveObject(GetEntry().c_str(), "VISU", GetName().c_str()); - - return myIO; -} - -//---------------------------------------------------------------------------- -/*! - Creates table3d object -*/ -VISU::Storable* VISU::PointMap3d_i::Create() -{ - // generate name ... - SetName(GetTableTitle().toLatin1().constData(), false); - - if ( GetName() == "" ) { - if ( !mySObj->_is_nil() ) { - CutLines_i* pCutLines = NULL; - CORBA::Object_var anObj = SObjectToObject(mySObj); - if(!CORBA::is_nil(anObj)){ - VISU::CutLines_var aCutLines = VISU::CutLines::_narrow(anObj); - if(!aCutLines->_is_nil()) - pCutLines = dynamic_cast(GetServant(aCutLines).in()); - } - if (!pCutLines) - if (mySObj->GetName()) SetName(mySObj->GetName(), false); - } - } - - if ( GetName() == "" ) - SetName(GenerateName().toLatin1().constData(), false); - - // Create Pipeline - myTablePL = VISU_DeformedGridPL::New(); - myTablePL->SetPolyDataIDMapper(GetTableIDMapper()); - myTablePL->Update(); - - SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr(); - - bool isUnits = aResourceMgr->booleanValue( "VISU", "scalar_bar_display_units", true ); - SetUnitsVisible(isUnits); - - SetSourceRange(); - - if( aResourceMgr->booleanValue("VISU", "scalar_bar_logarithmic", false) ) - SetScaling(VISU::LOGARITHMIC); - else - SetScaling(VISU::LINEAR); - - int aNumberOfColors = aResourceMgr->integerValue( "VISU", "scalar_bar_num_colors", 64 ); - SetNbColors(aNumberOfColors); - - int aRangeType = aResourceMgr->integerValue("VISU" , "scalar_range_type", 0); - UseFixedRange(aRangeType == 1); - if(aRangeType == 1){ - float aMin = aResourceMgr->doubleValue("VISU", "scalar_range_min", 0); - float aMax = aResourceMgr->doubleValue("VISU", "scalar_range_max", 0); - SetRange(aMin, aMax); - } - - int lp = aResourceMgr->integerValue( "VISU", "scalar_bar_label_precision", 3 ); - SetLabelsFormat( VISU::ToFormat( lp ).c_str() ); - - // Orientation - int anOrientation = aResourceMgr->integerValue("VISU", "scalar_bar_orientation", 0); - if(anOrientation == 1) - SetBarOrientation(VISU::ColoredPrs3dBase::HORIZONTAL); - else - SetBarOrientation(VISU::ColoredPrs3dBase::VERTICAL); - - // Scalar Bar origin - QString propertyName = QString( "scalar_bar_%1_" ).arg( anOrientation == 0 ? "vertical" : "horizontal" ); - - vtkFloatingPointType aXorigin = (myBarOrientation == VISU::ColoredPrs3dBase::VERTICAL) ? 0.01 : 0.2; - aXorigin = aResourceMgr->doubleValue("VISU", propertyName + "x", aXorigin); - myPosition[0] = aXorigin; - - vtkFloatingPointType aYorigin = (myBarOrientation == VISU::ColoredPrs3dBase::VERTICAL) ? 0.1 : 0.012; - aYorigin = aResourceMgr->doubleValue("VISU", propertyName + "y", aYorigin); - myPosition[1] = aYorigin; - - // Scalar Bar size - myWidth = (myBarOrientation == VISU::ColoredPrs3dBase::VERTICAL)? 0.1 : 0.6; - myWidth = aResourceMgr->doubleValue("VISU", propertyName + "width", myWidth); - - myHeight = (myBarOrientation == VISU::ColoredPrs3dBase::VERTICAL)? 0.8:0.12; - myHeight = aResourceMgr->doubleValue("VISU", propertyName + "height", myHeight); - - myTitleSize = aResourceMgr->doubleValue("VISU", propertyName + "title_size", 0); - myLabelSize = aResourceMgr->doubleValue("VISU", propertyName + "label_size", 0); - myBarWidth = aResourceMgr->doubleValue("VISU", propertyName + "bar_width", 0); - myBarHeight = aResourceMgr->doubleValue("VISU", propertyName + "bar_height", 0); - - // Nb of Labels - myNumberOfLabels = aResourceMgr->integerValue( "VISU", "scalar_bar_num_labels", 5 ); - - // Fonts properties definition - myIsBoldTitle = myIsItalicTitle = myIsShadowTitle = true; - myTitFontType = VTK_ARIAL; - - if(aResourceMgr->hasValue( "VISU", "scalar_bar_title_font" )){ - QFont f = aResourceMgr->fontValue( "VISU", "scalar_bar_title_font" ); - if ( f.family() == "Arial" ) - myTitFontType = VTK_ARIAL; - else if ( f.family() == "Courier" ) - myTitFontType = VTK_COURIER; - else if ( f.family() == "Times" ) - myTitFontType = VTK_TIMES; - - myIsBoldTitle = f.bold(); - myIsItalicTitle = f.italic(); - myIsShadowTitle = f.overline(); - } - - QColor aTextColor = aResourceMgr->colorValue( "VISU", "scalar_bar_title_color", QColor( 255, 255, 255 ) ); - - myTitleColor[0] = aTextColor.red() / 255; - myTitleColor[1] = aTextColor.green() / 255; - myTitleColor[2] = aTextColor.blue() / 255; - - myIsBoldLabel = myIsItalicLabel = myIsShadowLabel = true; - myLblFontType = VTK_ARIAL; - - if( aResourceMgr->hasValue( "VISU", "scalar_bar_label_font" )){ - QFont f = aResourceMgr->fontValue( "VISU", "scalar_bar_label_font" ); - if ( f.family() == "Arial" ) - myLblFontType = VTK_ARIAL; - else if ( f.family() == "Courier" ) - myLblFontType = VTK_COURIER; - else if ( f.family() == "Times" ) - myLblFontType = VTK_TIMES; - - myIsBoldLabel = f.bold(); - myIsItalicLabel = f.italic(); - myIsShadowLabel = f.overline(); - } - - QColor aLabelColor = aResourceMgr->colorValue( "VISU", "scalar_bar_label_color", QColor( 255, 255, 255 ) ); - - myLabelColor[0] = aLabelColor.red() / 255; - myLabelColor[1] = aLabelColor.green() / 255; - myLabelColor[2] = aLabelColor.blue() / 255; - - // scalar bar default position - bool anIsArrangeBar = aResourceMgr->booleanValue("VISU", "scalar_bars_default_position", 0); - int aPlace = 1; - if (anIsArrangeBar){ - aPlace = aResourceMgr->integerValue("VISU", "scalar_bar_position_num",0); - } - if(myBarOrientation == VISU::ColoredPrs3dBase::HORIZONTAL){ - myPosition[1] += myHeight*(aPlace-1); - } else { - myPosition[0] += myWidth*(aPlace-1); - } - - return Build( false ); -} - -/* - GetIDMapper -*/ - -VISU::PTableIDMapper -VISU::PointMap3d_i -::GetTableIDMapper() -{ - //Initialisate table mapper - SALOMEDS::GenericAttribute_var anAttr; - mySObj->FindAttribute(anAttr, "AttributeTableOfReal"); - SALOMEDS::AttributeTableOfReal_var aTableOfReal = SALOMEDS::AttributeTableOfReal::_narrow(anAttr); - - PTableIDMapper aTableIDMapper( new TTableIDMapper() ); - TTable2D& aTable2D = *aTableIDMapper; - - aTable2D.myTitle = aTableOfReal->GetTitle(); - - SALOMEDS::StringSeq_var aColStrList = aTableOfReal->GetColumnTitles(); - SALOMEDS::StringSeq_var aRowStrList = aTableOfReal->GetRowTitles(); - - for ( int i = 0; i < aRowStrList->length(); i++ ) { - aTable2D.myColumnTitles.push_back( aRowStrList[ i ].in() ); - } - - int aCols = aTableOfReal->GetNbColumns(); - int aRows = aTableOfReal->GetNbRows(); - - for (int i=1; i<=aCols; i++) { - TTable2D::TRow aRow; - aRow.myTitle = aColStrList[ i-1 ].in(); - for (int j=1; j<=aRows; j++) { - double aVal = aTableOfReal->GetValue(j, i); - QString aValStr = QString::number(aVal); - aRow.myValues.push_back( aValStr.toLatin1().constData() ); - } - if( aRow.myValues.size() > 0 ) - aTable2D.myRows.push_back( aRow ); - } - - return aTableIDMapper; -} - -/* - Create Actor -*/ -VISU_PointMap3dActor* VISU::PointMap3d_i::CreateActor() -{ - VISU_PointMap3dActor* anActor = VISU_PointMap3dActor::New(); - anActor->SetPipeLine(myTablePL); - anActor->SetFactory(this); - - SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr(); - int aDispMode = aResourceMgr->integerValue("VISU", "point_map_represent", 2); - bool toShrink = aResourceMgr->booleanValue("VISU", "scalar_map_shrink", false); - anActor->SetRepresentation(aDispMode); - if (toShrink) anActor->SetShrink(); - - Handle (SALOME_InteractiveObject) anIO = new SALOME_InteractiveObject(GetEntry().c_str(), "VISU", GetName().c_str()); - anActor->setIO(anIO); - - myUpdateActorsSignal.connect(boost::bind(&VISU_Actor::UpdateFromFactory,anActor)); - // myRemoveActorsFromRendererSignal.connect(boost::bind(&VISU_Actor::RemoveFromRender,anActor)); - - myActorCollection->AddItem(anActor); - - UpdateActor( anActor ); - - return anActor; -} - -/* - Update Actor -*/ -void VISU::PointMap3d_i::UpdateActor(VISU_ActorBase* theActor) -{ - if(VISU_PointMap3dActor* anActor = dynamic_cast(theActor)){ - Update(); - VISU_ScalarBarActor *aScalarBar = anActor->GetScalarBar(); - aScalarBar->SetLookupTable(GetSpecificPL()->GetBarTable()); - aScalarBar->SetTitle(GetTitle()); - aScalarBar->SetOrientation(GetBarOrientation()); - aScalarBar->GetPositionCoordinate()->SetCoordinateSystemToNormalizedViewport(); - aScalarBar->GetPositionCoordinate()->SetValue(GetPosX(),GetPosY()); - aScalarBar->SetWidth(GetWidth()); - aScalarBar->SetHeight(GetHeight()); - aScalarBar->SetNumberOfLabels(GetLabels()); - aScalarBar->SetRatios(myTitleSize, myLabelSize, - myBarWidth, myBarHeight); - aScalarBar->SetNumberOfLabels(GetLabels()); - aScalarBar->SetLabelFormat(GetLabelsFormat()); - - vtkFloatingPointType anRGB[3]; - - vtkTextProperty* aTitleProp = aScalarBar->GetTitleTextProperty(); - aTitleProp->SetFontFamily(GetTitFontType()); - - GetTitleColor(anRGB[0],anRGB[1],anRGB[2]); - aTitleProp->SetColor(anRGB[0],anRGB[1],anRGB[2]); - - IsBoldTitle()? aTitleProp->BoldOn() : aTitleProp->BoldOff(); - IsItalicTitle()? aTitleProp->ItalicOn() : aTitleProp->ItalicOff(); - IsShadowTitle()? aTitleProp->ShadowOn() : aTitleProp->ShadowOff(); - - vtkTextProperty* aLabelProp = aScalarBar->GetLabelTextProperty(); - aLabelProp->SetFontFamily(GetLblFontType()); - - GetLabelColor(anRGB[0],anRGB[1],anRGB[2]); - aLabelProp->SetColor(anRGB[0],anRGB[1],anRGB[2]); - - IsBoldLabel()? aLabelProp->BoldOn() : aLabelProp->BoldOff(); - IsItalicLabel()? aLabelProp->ItalicOn() : aLabelProp->ItalicOff(); - IsShadowLabel()? aLabelProp->ShadowOn() : aLabelProp->ShadowOff(); - - aScalarBar->Modified(); - } - theActor->SetPosition(myOffset[0],myOffset[1],myOffset[2]); -} - -void -VISU::PointMap3d_i -::UpdateActors() -{ - if(MYDEBUG) MESSAGE("Prs3d_i::UpdateActors - this = "< - (GetSpecificPL(), &VISU_PipeLine::Update)); - - ProcessVoidEvent(new VISU::TInvokeSignalEvent(myUpdateActorsSignal)); -} - -//---------------------------------------------------------------------------- -void -VISU::PointMap3d_i -::Update() -{ - if(GetMTime() < myUpdateTime.GetMTime()) - return; - - if(MYDEBUG) MESSAGE("PointMap3d_i::Update - this = "< - (GetSpecificPL(), &VISU_PipeLine::Update)); - myUpdateTime.Modified(); - }catch(std::exception&){ - throw; - }catch(...){ - throw std::runtime_error("PointMap3d_i::Update >> unexpected exception was caught!!!"); - } -} - -//---------------------------------------------------------------------------- -unsigned long int -VISU::PointMap3d_i -::GetMTime() -{ - unsigned long int aTime = myParamsTime.GetMTime(); - if( GetSpecificPL() ) - aTime = std::max(aTime, GetSpecificPL()->GetMTime()); - return aTime; -} - -/*! - Builds presentation of table -*/ -VISU::Storable* VISU::PointMap3d_i::Build( int theRestoring ) -{ - - // look for reference SObject with table attribute - SALOMEDS::SObject_var SO = mySObj; - - if ( !SO->_is_nil() ) { - CutLines_i* pCutLines = NULL; - CORBA::Object_var anObj = SObjectToObject(SO); - if(!CORBA::is_nil(anObj)){ - VISU::CutLines_var aCutLines = VISU::CutLines::_narrow(anObj); - if(!aCutLines->_is_nil()) - pCutLines = dynamic_cast(GetServant(aCutLines).in()); - } - SALOMEDS::Study_var aStudy = GetStudyDocument(); - SALOMEDS::StudyBuilder_var Builder = GetStudyDocument()->NewBuilder(); - SALOMEDS::GenericAttribute_var anAttr; - // look for component - if ( !theRestoring ) { - SALOMEDS::SComponent_var SComponent = VISU::FindOrCreateVisuComponent( GetStudyDocument() ); - // create SObject and set attributes - QString aComment; - if(pCutLines) - aComment.sprintf("myComment=%s;mySourceId=CutLines",GetComment()); - else{ - aComment.sprintf("myComment=%s;mySourceId=TableAttr",GetComment()); - SALOMEDS::SObject_var aFatherSObject = SO->GetFather(); - if(aFatherSObject->FindAttribute(anAttr,"AttributeString")){ - SALOMEDS::AttributeString_var aCommentAttr = - SALOMEDS::AttributeString::_narrow(anAttr); - CORBA::String_var aValue = aCommentAttr->Value(); - Storable::TRestoringMap aMap; - Storable::StringToMap(aValue.in(),aMap); - bool anIsExist; - QString aMethodName = VISU::Storable::FindValue(aMap,"myComment",&anIsExist); - if(anIsExist){ - if(aMethodName == "ImportTables"){ - aComment.sprintf("myComment=%s;mySourceId=TableFile",GetComment()); - } - } - } - } - - string anEntry = CreateAttributes( GetStudyDocument(), - SO->GetID(),//SComponent->GetID(), - "ICON_TREE_TABLE", - GetID(), - GetName(), - "", - aComment.toLatin1().constData(), - pCutLines ); - // create SObject referenced to real table object - mySObj = SALOMEDS::SObject::_duplicate(GetStudyDocument()->FindObjectID( anEntry.c_str() )); - if(pCutLines) { - pCutLines->BuildTableOfReal(mySObj); - } - // mpv (PAL5357): reference attributes are unnecessary now - //SALOMEDS::SObject_var refSO = Builder->NewObject( mySObj ); - //Builder->Addreference( refSO, SO ); - } - - return this; - } - return NULL; -} -/*! - Restores table object from stream -*/ -VISU::Storable* VISU::PointMap3d_i::Restore( const Storable::TRestoringMap& theMap, SALOMEDS::SObject_ptr SO) -{ - if(MYDEBUG) MESSAGE(GetComment()); - SetName(VISU::Storable::FindValue(theMap,"myName").toLatin1().constData(), false); - myTitle = VISU::Storable::FindValue(theMap,"myTitle").toLatin1().constData(); - myOrientation = ( VISU::Table::Orientation )( VISU::Storable::FindValue(theMap,"myOrientation").toInt() ); - mySObj = SALOMEDS::SObject::_duplicate(SO); - - //Create PipeLine - myTablePL = VISU_DeformedGridPL::New(); - myTablePL->SetPolyDataIDMapper(GetTableIDMapper()); - myTablePL->Update(); - - //Restore Other Values - - float aMin = VISU::Storable::FindValue(theMap,"myScalarRange[0]").toDouble(); - float aMax = VISU::Storable::FindValue(theMap,"myScalarRange[1]").toDouble(); - SetRange(aMin, aMax); - - UseFixedRange(VISU::Storable::FindValue(theMap,"myIsFixedRange", "0").toInt()); - - SetNbColors(VISU::Storable::FindValue(theMap,"myNumberOfColors").toInt()); - SetUnitsVisible(VISU::Storable::FindValue(theMap,"myUnitsVisible", "1").toInt()); - SetLabelsFormat(VISU::Storable::FindValue(theMap,"myLabelsFormat", "%-#6.3g").toLatin1().constData()); - SetBarOrientation((VISU::ColoredPrs3dBase::Orientation)VISU::Storable::FindValue(theMap,"myBarOrientation").toInt()); - - SetTitle(VISU::Storable::FindValue(theMap,"myTitle").toLatin1().constData()); - myNumberOfLabels = VISU::Storable::FindValue(theMap,"myNumberOfLabels").toInt(); - myPosition[0] = VISU::Storable::FindValue(theMap,"myPosition[0]").toDouble(); - myPosition[1] = VISU::Storable::FindValue(theMap,"myPosition[1]").toDouble(); - myWidth = VISU::Storable::FindValue(theMap,"myWidth").toDouble(); - myHeight = VISU::Storable::FindValue(theMap,"myHeight").toDouble(); - myTitleSize = VISU::Storable::FindValue(theMap,"myTitleSize").toInt(); - myLabelSize = VISU::Storable::FindValue(theMap,"myLabelSize").toInt(); - myBarWidth = VISU::Storable::FindValue(theMap,"myBarWidth").toInt(); - myBarHeight = VISU::Storable::FindValue(theMap,"myBarHeight").toInt(); - - myTitFontType = VISU::Storable::FindValue(theMap,"myTitFontType").toInt(); - myIsBoldTitle = VISU::Storable::FindValue(theMap,"myIsBoldTitle").toInt(); - myIsItalicTitle = VISU::Storable::FindValue(theMap,"myIsItalicTitle").toInt(); - myIsShadowTitle = VISU::Storable::FindValue(theMap,"myIsShadowTitle").toInt(); - myTitleColor[0] = VISU::Storable::FindValue(theMap,"myTitleColor[0]").toFloat(); - myTitleColor[1] = VISU::Storable::FindValue(theMap,"myTitleColor[1]").toFloat(); - myTitleColor[2] = VISU::Storable::FindValue(theMap,"myTitleColor[2]").toFloat(); - - myLblFontType = VISU::Storable::FindValue(theMap,"myLblFontType").toInt(); - myIsBoldLabel = VISU::Storable::FindValue(theMap,"myIsBoldLabel").toInt(); - myIsItalicLabel = VISU::Storable::FindValue(theMap,"myIsItalicLabel").toInt(); - myIsShadowLabel = VISU::Storable::FindValue(theMap,"myIsShadowLabel").toInt(); - myLabelColor[0] = VISU::Storable::FindValue(theMap,"myLabelColor[0]").toFloat(); - myLabelColor[1] = VISU::Storable::FindValue(theMap,"myLabelColor[1]").toFloat(); - myLabelColor[2] = VISU::Storable::FindValue(theMap,"myLabelColor[2]").toFloat(); - - myParamsTime.Modified(); - return Build( true ); -} -/*! - Flushes table data into stream -*/ -void VISU::PointMap3d_i::ToStream( std::ostringstream& theStr ) -{ - Storable::DataToStream( theStr, "myName", GetName().c_str() ); - Storable::DataToStream( theStr, "myTitle", myTitle.c_str() ); - Storable::DataToStream( theStr, "myOrientation", myOrientation ); - - Storable::DataToStream( theStr, "myScalarRange[0]", GetMin() ); - Storable::DataToStream( theStr, "myScalarRange[1]", GetMax() ); - Storable::DataToStream( theStr, "myIsFixedRange", IsRangeFixed() ); - - Storable::DataToStream( theStr, "myNumberOfColors", int(GetNbColors()) ); - Storable::DataToStream( theStr, "myBarOrientation", myBarOrientation ); - - Storable::DataToStream( theStr, "myTitle", myTitle.c_str() ); - Storable::DataToStream( theStr, "myUnitsVisible", myIsUnits ); - Storable::DataToStream( theStr, "myNumberOfLabels", myNumberOfLabels ); - Storable::DataToStream( theStr, "myLabelsFormat", myLabelsFormat.c_str() ); - Storable::DataToStream( theStr, "myPosition[0]", myPosition[0] ); - Storable::DataToStream( theStr, "myPosition[1]", myPosition[1] ); - Storable::DataToStream( theStr, "myWidth", myWidth ); - Storable::DataToStream( theStr, "myHeight", myHeight ); - Storable::DataToStream( theStr, "myTitleSize", myTitleSize ); - Storable::DataToStream( theStr, "myLabelSize", myLabelSize ); - Storable::DataToStream( theStr, "myBarWidth", myBarWidth ); - Storable::DataToStream( theStr, "myBarHeight", myBarHeight ); - - Storable::DataToStream( theStr, "myTitFontType", myTitFontType ); - Storable::DataToStream( theStr, "myIsBoldTitle", myIsBoldTitle ); - Storable::DataToStream( theStr, "myIsItalicTitle", myIsItalicTitle ); - Storable::DataToStream( theStr, "myIsShadowTitle", myIsShadowTitle ); - Storable::DataToStream( theStr, "myTitleColor[0]", myTitleColor[0] ); - Storable::DataToStream( theStr, "myTitleColor[1]", myTitleColor[1] ); - Storable::DataToStream( theStr, "myTitleColor[2]", myTitleColor[2] ); - - Storable::DataToStream( theStr, "myLblFontType", myLblFontType ); - Storable::DataToStream( theStr, "myIsBoldLabel", myIsBoldLabel ); - Storable::DataToStream( theStr, "myIsItalicLabel", myIsItalicLabel ); - Storable::DataToStream( theStr, "myIsShadowLabel", myIsShadowLabel ); - Storable::DataToStream( theStr, "myLabelColor[0]", myLabelColor[0] ); - Storable::DataToStream( theStr, "myLabelColor[1]", myLabelColor[1] ); - Storable::DataToStream( theStr, "myLabelColor[2]", myLabelColor[2] ); -} -/*! - Called from engine to restore table from the file -*/ -VISU::Storable* VISU::PointMap3d_i::StorableEngine(SALOMEDS::SObject_ptr theSObject, - const Storable::TRestoringMap& theMap, - const std::string& thePrefix, - CORBA::Boolean theIsMultiFile) -{ - SALOMEDS::Study_var aStudy = theSObject->GetStudy(); - VISU::PointMap3d_i* pResent = new VISU::PointMap3d_i( aStudy, "" ); - return pResent->Restore( theMap, theSObject); -} -/*! - Gets title for the original table object -*/ -QString VISU::PointMap3d_i::GetTableTitle() -{ - SALOMEDS::SObject_var SO = mySObj; - SALOMEDS::StudyBuilder_var Builder = GetStudyDocument()->NewBuilder(); - SALOMEDS::GenericAttribute_var anAttr; - SALOMEDS::AttributeTableOfInteger_var anInt; - SALOMEDS::AttributeTableOfReal_var aReal; - if ( !SO->_is_nil() ) { - if ( Builder->FindAttribute( SO, anAttr, "AttributeTableOfInteger" ) ) { - anInt = SALOMEDS::AttributeTableOfInteger::_narrow( anAttr ); - CORBA::String_var aString = anInt->GetTitle(); - return aString.in(); - } - else if ( Builder->FindAttribute( SO, anAttr, "AttributeTableOfReal" ) ) { - aReal = SALOMEDS::AttributeTableOfReal::_narrow( anAttr ); - CORBA::String_var aString = aReal->GetTitle(); - return aString.in(); - } - } - return ""; -} - -//--------------------------------------------------------------- -void VISU::PointMap3d_i::RemoveFromStudy() -{ - struct TRemoveFromStudy: public SALOME_Event - { - VISU::PointMap3d_i* myRemovable; - TRemoveFromStudy(VISU::PointMap3d_i* theRemovable): - myRemovable(theRemovable) - {} - - virtual - void - Execute() - { - VISU::RemoveFromStudy(myRemovable->GetSObject(),false); - } - }; - - // Remove the table with all curves - ProcessVoidEvent(new TRemoveFromStudy(this)); -} - -//---------------------------------------------------------------- -void VISU::PointMap3d_i::SetOffset(CORBA::Float theDx, CORBA::Float theDy, CORBA::Float theDz) -{ - myOffset[0] = theDx; - myOffset[1] = theDy; - myOffset[2] = theDz; - myParamsTime.Modified(); -} - -void VISU::PointMap3d_i::GetOffset(CORBA::Float& theDx, CORBA::Float& theDy, CORBA::Float& theDz) -{ - theDx = myOffset[0]; - theDy = myOffset[1]; - theDz = myOffset[2]; -} - -CORBA::Float VISU::PointMap3d_i::GetMemorySize() -{ - CORBA::Float aSize = GetSpecificPL()->GetMemorySize(); - - int anEnd = myActorCollection->GetNumberOfItems(); - for(int anId = 0; anId < anEnd; anId++) - if(vtkObject* anObject = myActorCollection->GetItemAsObject(anId)) - if(VISU_Actor* anActor = dynamic_cast(anObject)){ - aSize += anActor->GetMemorySize(); - //cout<<"Prs3d_i::GetMemorySize - "<GetValue(1, 1); - - for (int i=1; i<=aTableOfReal->GetNbColumns(); i++) - for (int j=1; j<=aTableOfReal->GetNbRows(); j++) { - double aVal = aTableOfReal->GetValue(j, i); - if (aVal < aMin) - aMin = aVal; - } - - return aMin; -} - -CORBA::Double VISU::PointMap3d_i::GetMaxTableValue() -{ - SALOMEDS::GenericAttribute_var anAttr; - mySObj->FindAttribute(anAttr, "AttributeTableOfReal"); - SALOMEDS::AttributeTableOfReal_var aTableOfReal = SALOMEDS::AttributeTableOfReal::_narrow(anAttr); - double aMax = aTableOfReal->GetValue(1, 1); - - for (int i=1; i<=aTableOfReal->GetNbColumns(); i++) - for (int j=1; j<=aTableOfReal->GetNbRows(); j++) { - double aVal = aTableOfReal->GetValue(j, i); - if (aVal > aMax) - aMax = aVal; - } - - return aMax; -} - -CORBA::Double VISU::PointMap3d_i::GetMax() -{ - return myTablePL->GetScalarRange()[1]; -} - -void VISU::PointMap3d_i::SetRange(CORBA::Double theMin, CORBA::Double theMax) -{ - vtkFloatingPointType aScalarRange[2] = {theMin, theMax}; - ProcessVoidEvent(new TVoidMemFun1ArgEvent - (GetSpecificPL(), &VISU_DeformedGridPL::SetScalarRange, aScalarRange)); - - UseFixedRange(true); -} - -CORBA::Double VISU::PointMap3d_i::GetSourceMin() -{ - vtkFloatingPointType aRange[2]; - GetSpecificPL()->GetSourceRange(aRange); - return aRange[0]; -} - -CORBA::Double VISU::PointMap3d_i::GetSourceMax() -{ - vtkFloatingPointType aRange[2]; - GetSpecificPL()->GetSourceRange(aRange); - return aRange[1]; -} - -void VISU::PointMap3d_i::SetSourceRange() -{ - GetSpecificPL()->SetSourceRange(); - ProcessVoidEvent(new TVoidMemFunEvent - (GetSpecificPL(), &VISU_DeformedGridPL::SetSourceRange)); - - UseFixedRange(false); -} - -CORBA::Boolean VISU::PointMap3d_i::IsRangeFixed() -{ - return myIsFixedRange; -} - -void VISU::PointMap3d_i::UseFixedRange(bool theRange) -{ - if(myIsFixedRange == theRange) - return; - - myIsFixedRange = theRange; -} - -void VISU::PointMap3d_i::SetPosition(CORBA::Double theX, CORBA::Double theY) -{ - bool anIsSameValue = VISU::CheckIsSameValue(myPosition[0], theX); - anIsSameValue &= VISU::CheckIsSameValue(myPosition[1], theY); - if(anIsSameValue) - return; - - myPosition[0] = theX; - myPosition[1] = theY; -} - -CORBA::Double VISU::PointMap3d_i::GetPosX() -{ - return myPosition[0]; -} - -CORBA::Double VISU::PointMap3d_i::GetPosY() -{ - return myPosition[1]; -} - -void VISU::PointMap3d_i::SetSize(CORBA::Double theWidth, CORBA::Double theHeight) -{ - bool anIsSameValue = VISU::CheckIsSameValue(myWidth, theWidth); - anIsSameValue &= VISU::CheckIsSameValue(myHeight, theHeight); - if(anIsSameValue) - return; - - myWidth = theWidth; - myHeight = theHeight; -} - -CORBA::Double VISU::PointMap3d_i::GetHeight() -{ - return myHeight; -} - -CORBA::Double VISU::PointMap3d_i::GetWidth() -{ - return myWidth; -} - -void VISU::PointMap3d_i::SetNbColors(CORBA::Long theNbColors) -{ - ProcessVoidEvent(new TVoidMemFun1ArgEvent - (GetSpecificPL(), &VISU_DeformedGridPL::SetNbColors, theNbColors)); -} - -CORBA::Long VISU::PointMap3d_i::GetNbColors() -{ - return GetSpecificPL()->GetNbColors(); -} - -void VISU::PointMap3d_i::SetLabels(CORBA::Long theNbLabels) -{ - if(myNumberOfLabels == theNbLabels) - return; - - myNumberOfLabels = theNbLabels; -} - -CORBA::Long VISU::PointMap3d_i::GetLabels() -{ - return myNumberOfLabels; -} - -void VISU::PointMap3d_i::SetBarOrientation(VISU::ColoredPrs3dBase::Orientation theBarOrientation) -{ - if(myBarOrientation == theBarOrientation) - return; - - myBarOrientation = theBarOrientation; -} - -VISU::ColoredPrs3dBase::Orientation VISU::PointMap3d_i::GetBarOrientation() -{ - return myBarOrientation; -} - -//------------------- ScaledPrs3d Methods ----------------------- - -void VISU::PointMap3d_i::SetScaling(VISU::Scaling theScaling) -{ - ProcessVoidEvent(new TVoidMemFun1ArgEvent - (GetSpecificPL(), &VISU_DeformedGridPL::SetScaling, theScaling)); -} - -VISU::Scaling VISU::PointMap3d_i::GetScaling() -{ - return VISU::Scaling(GetSpecificPL()->GetScaling()); -} - -//------------------- Check Table on Positive Values ------------ -bool VISU::PointMap3d_i::IsPositiveTable() -{ - SALOMEDS::GenericAttribute_var anAttr; - mySObj->FindAttribute(anAttr, "AttributeTableOfReal"); - SALOMEDS::AttributeTableOfReal_var aTableOfReal = SALOMEDS::AttributeTableOfReal::_narrow(anAttr); - - for (int i=1; i<=aTableOfReal->GetNbColumns(); i++) - for (int j=1; j<=aTableOfReal->GetNbRows(); j++) { - double aVal = aTableOfReal->GetValue(j, i); - if (aVal < 0) - return false; - } - - return true; -} - -//------------------- Plot3dBase Methods ------------------------ - -void VISU::PointMap3d_i::SetScaleFactor (CORBA::Double theScaleFactor) -{ - ProcessVoidEvent(new TVoidMemFun1ArgEvent - (GetSpecificPL(), &VISU_DeformedGridPL::SetScaleFactor, theScaleFactor)); -} - -CORBA::Double VISU::PointMap3d_i::GetScaleFactor () -{ - return myTablePL->GetScaleFactor(); -} - -void VISU::PointMap3d_i::SetContourPrs (CORBA::Boolean theIsContourPrs ) -{ - ProcessVoidEvent(new TVoidMemFun1ArgEvent - (GetSpecificPL(), &VISU_DeformedGridPL::SetContourPrs, theIsContourPrs)); -} - -CORBA::Boolean VISU::PointMap3d_i::GetIsContourPrs() -{ - return myTablePL->GetIsContourPrs(); -} - -void VISU::PointMap3d_i::SetNbOfContours (CORBA::Long theNb) -{ - ProcessVoidEvent(new TVoidMemFun1ArgEvent - (GetSpecificPL(), &VISU_DeformedGridPL::SetNumberOfContours, theNb)); -} - -CORBA::Long VISU::PointMap3d_i::GetNbOfContours () -{ - return myTablePL->GetNumberOfContours(); -} - -//-------------------- Actor Factory Methods -------------------- - -bool VISU::PointMap3d_i::GetActiveState () -{ - return myIsActiveState; -} - -void VISU::PointMap3d_i::SetActiveState ( bool theState ) -{ - myIsActiveState = theState; -} - -void VISU::PointMap3d_i::RemoveActor (VISU_ActorBase* theActor) -{ - myActorCollection->RemoveItem(theActor); -} - -void VISU::PointMap3d_i::RemoveActors () -{ - ProcessVoidEvent(new TInvokeSignalEvent(myRemoveActorsFromRendererSignal)); - myActorCollection->RemoveAllItems(); -} - - -//-----------------------Text Properties & Label Properties------------------ -bool VISU::PointMap3d_i::IsBoldTitle() -{ - return myIsBoldTitle; -} - -//---------------------------------------------------------------------------- -void VISU::PointMap3d_i::SetBoldTitle(bool theIsBoldTitle) -{ - if(myIsBoldTitle == theIsBoldTitle) - return; - - myIsBoldTitle = theIsBoldTitle; - myParamsTime.Modified(); -} - -//---------------------------------------------------------------------------- -bool VISU::PointMap3d_i::IsItalicTitle() -{ - return myIsItalicTitle; -} - -//---------------------------------------------------------------------------- -void VISU::PointMap3d_i::SetItalicTitle(bool theIsItalicTitle) -{ - if(myIsItalicTitle == theIsItalicTitle) - return; - - myIsItalicTitle = theIsItalicTitle; - myParamsTime.Modified(); -} - -//---------------------------------------------------------------------------- -bool VISU::PointMap3d_i::IsShadowTitle() -{ - return myIsShadowTitle; -} - -//---------------------------------------------------------------------------- -void VISU::PointMap3d_i::SetShadowTitle(bool theIsShadowTitle) -{ - if(myIsShadowTitle == theIsShadowTitle) - return; - - myIsShadowTitle = theIsShadowTitle; - myParamsTime.Modified(); -} - -//---------------------------------------------------------------------------- -int VISU::PointMap3d_i::GetTitFontType() -{ - return myTitFontType; -} - -//---------------------------------------------------------------------------- -void VISU::PointMap3d_i::SetTitFontType(int theTitFontType) -{ - if(myTitFontType == theTitFontType) - return; - - myTitFontType = theTitFontType; - myParamsTime.Modified(); -} - -//---------------------------------------------------------------------------- -void VISU::PointMap3d_i::GetTitleColor(vtkFloatingPointType& theR, - vtkFloatingPointType& theG, - vtkFloatingPointType& theB) -{ - theR = myTitleColor[0]; - theG = myTitleColor[1]; - theB = myTitleColor[2]; -} - -//---------------------------------------------------------------------------- -void VISU::PointMap3d_i::SetTitleColor(vtkFloatingPointType theR, - vtkFloatingPointType theG, - vtkFloatingPointType theB) -{ - bool anIsSameValue = VISU::CheckIsSameValue(myTitleColor[0], theR); - anIsSameValue &= VISU::CheckIsSameValue(myTitleColor[1], theG); - anIsSameValue &= VISU::CheckIsSameValue(myTitleColor[2], theB); - if(anIsSameValue) - return; - - myTitleColor[0] = theR; - myTitleColor[1] = theG; - myTitleColor[2] = theB; - myParamsTime.Modified(); -} - -//---------------------------------------------------------------------------- -bool VISU::PointMap3d_i::IsBoldLabel() -{ - return myIsBoldLabel; -} - -//---------------------------------------------------------------------------- -void VISU::PointMap3d_i::SetBoldLabel(bool theIsBoldLabel) -{ - if(myIsBoldLabel == theIsBoldLabel) - return; - - myIsBoldLabel = theIsBoldLabel; - myParamsTime.Modified(); -} - -//---------------------------------------------------------------------------- -bool VISU::PointMap3d_i::IsItalicLabel() -{ - return myIsItalicLabel; -} - -//---------------------------------------------------------------------------- -void VISU::PointMap3d_i::SetItalicLabel(bool theIsItalicLabel) -{ - if(myIsItalicLabel == theIsItalicLabel) - return; - - myIsItalicLabel = theIsItalicLabel; - myParamsTime.Modified(); -} - -//---------------------------------------------------------------------------- -bool VISU::PointMap3d_i::IsShadowLabel() -{ - return myIsShadowLabel; -} - -//---------------------------------------------------------------------------- -void VISU::PointMap3d_i::SetShadowLabel(bool theIsShadowLabel) -{ - if(myIsShadowLabel == theIsShadowLabel) - return; - - myIsShadowLabel = theIsShadowLabel; - myParamsTime.Modified(); -} - -//---------------------------------------------------------------------------- -int VISU::PointMap3d_i::GetLblFontType() -{ - return myLblFontType; -} - -//---------------------------------------------------------------------------- -void VISU::PointMap3d_i::SetLblFontType(int theLblFontType) -{ - if(myLblFontType == theLblFontType) - return; - - myLblFontType = theLblFontType; - myParamsTime.Modified(); -} - -//---------------------------------------------------------------------------- -void VISU::PointMap3d_i::GetLabelColor(vtkFloatingPointType& theR, - vtkFloatingPointType& theG, - vtkFloatingPointType& theB) -{ - theR = myLabelColor[0]; - theG = myLabelColor[1]; - theB = myLabelColor[2]; -} - -//---------------------------------------------------------------------------- -void VISU::PointMap3d_i::SetLabelColor(vtkFloatingPointType theR, - vtkFloatingPointType theG, - vtkFloatingPointType theB) -{ - bool anIsSameValue = VISU::CheckIsSameValue(myLabelColor[0], theR); - anIsSameValue &= VISU::CheckIsSameValue(myLabelColor[1], theG); - anIsSameValue &= VISU::CheckIsSameValue(myLabelColor[2], theB); - if(anIsSameValue) - return; - - myLabelColor[0] = theR; - myLabelColor[1] = theG; - myLabelColor[2] = theB; - myParamsTime.Modified(); -} - -//---------------------------------------------------------------------------- -CORBA::Long VISU::PointMap3d_i::GetTitleSize() -{ - return myTitleSize; -} - -//---------------------------------------------------------------------------- -CORBA::Long VISU::PointMap3d_i::GetLabelSize() -{ - return myLabelSize; -} - -//---------------------------------------------------------------------------- -CORBA::Long VISU::PointMap3d_i::GetBarWidth() -{ - return myBarWidth; -} - -//---------------------------------------------------------------------------- -CORBA::Long VISU::PointMap3d_i::GetBarHeight() -{ - return myBarHeight; -} - -//---------------------------------------------------------------------------- -void -VISU::PointMap3d_i::SetLabelsFormat(const char* theFormat) -{ - if( myLabelsFormat != theFormat ){ - myLabelsFormat = theFormat; - myParamsTime.Modified(); - } -} - -//---------------------------------------------------------------------------- -char* VISU::PointMap3d_i::GetLabelsFormat() -{ - return CORBA::string_dup(myLabelsFormat.c_str()); -} - -//---------------------------------------------------------------------------- -void VISU::PointMap3d_i::SetUnitsVisible(CORBA::Boolean isVisible) -{ - if( myIsUnits != isVisible ){ - myIsUnits = isVisible; - myParamsTime.Modified(); - } -} - -//---------------------------------------------------------------------------- -CORBA::Boolean VISU::PointMap3d_i::IsUnitsVisible() -{ - return myIsUnits; -} - -//---------------------------------------------------------------------------- -void VISU::PointMap3d_i::SetRatios(CORBA::Long theTitleSize, - CORBA::Long theLabelSize, - CORBA::Long theBarWidth, CORBA::Long theBarHeight) -{ - bool anIsSameValue = VISU::CheckIsSameValue(myTitleSize, theTitleSize); - anIsSameValue &= VISU::CheckIsSameValue(myLabelSize, theLabelSize); - anIsSameValue &= VISU::CheckIsSameValue(myBarWidth, theBarWidth); - anIsSameValue &= VISU::CheckIsSameValue(myBarHeight, theBarHeight); - if(anIsSameValue) - return; - - myTitleSize = theTitleSize; - myLabelSize = theLabelSize; - myBarWidth = theBarWidth; - myBarHeight = theBarHeight; - myParamsTime.Modified(); -} diff --git a/src/VISU_I/VISU_PointMap3d_i.hh b/src/VISU_I/VISU_PointMap3d_i.hh deleted file mode 100644 index 547191d8..00000000 --- a/src/VISU_I/VISU_PointMap3d_i.hh +++ /dev/null @@ -1,269 +0,0 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// VISU OBJECT : interactive object for VISU entities implementation -// File : VISU_PointMap3d_i.hh -// Author : -// Module : VISU -// -#ifndef VISU_PointMap3d_i_HeaderFile -#define VISU_PointMap3d_i_HeaderFile - -#include "VISU_PrsObject_i.hh" -#include "SALOME_GenericObj_i.hh" - -#include "VISU_TableReader.hxx" -#include "VISU_PointMap3dActor.h" -#include "VISU_Table_i.hh" -#include "VISU_ActorFactory.h" -#include "VISU_DeformedGridPL.hxx" - -#include -#include - -namespace VISU -{ - - struct TActorFactory; - - //============================================================================== - class VISU_I_EXPORT PointMap3d_i : public virtual POA_VISU::PointMap3d, - public virtual SALOME::GenericObj_i, - public virtual TActorFactory, - public virtual Table_i - { - static int myNbPresent; - PointMap3d_i( const PointMap3d_i& ); - public: - PointMap3d_i( SALOMEDS::Study_ptr theStudy, const char* theObjectEntry); - - virtual ~PointMap3d_i(); - virtual VISU::VISUType GetType() { return VISU::TPOINTMAP3D;}; - - virtual void SetTitle( const char* theTitle ); - virtual char* GetTitle(); - - virtual void RemoveFromStudy(); - virtual void UpdateActor(VISU_ActorBase* thePointMap3dActor); - virtual void UpdateActors(); - - virtual void Update(); - - virtual Handle(SALOME_InteractiveObject) GetIO(); - - //----------- override Prs3d methods ----------------------------- - - //! Move the 3D presentation according to the given offset parameters - virtual void SetOffset(CORBA::Float theDx, CORBA::Float theDy, CORBA::Float theDz); - - //! Gets offset parameters for the 3D presentation - virtual void GetOffset(CORBA::Float& theDx, CORBA::Float& theDy, CORBA::Float& theDz); - - //! Gets memory size actually used by the presentation (Mb). - virtual CORBA::Float GetMemorySize(); - - //----------- override ColoredPrs3dBase methods ------------------ - - virtual CORBA::Double GetMin(); - virtual CORBA::Double GetMax(); - virtual CORBA::Double GetMinTableValue(); - virtual CORBA::Double GetMaxTableValue(); - virtual void SetRange(CORBA::Double theMin, CORBA::Double theMax); - - virtual CORBA::Double GetSourceMin(); - virtual CORBA::Double GetSourceMax(); - virtual void SetSourceRange(); - - virtual CORBA::Boolean IsRangeFixed(); - - virtual void SetPosition(CORBA::Double X, CORBA::Double Y); - virtual CORBA::Double GetPosX(); - virtual CORBA::Double GetPosY(); - - virtual void SetSize(CORBA::Double theWidth, CORBA::Double theHeight); - - virtual void SetRatios(CORBA::Long theTitleSize, CORBA::Long theLabelSize, - CORBA::Long theBarWidth, CORBA::Long theBarHeight); - - virtual CORBA::Double GetWidth(); - virtual CORBA::Double GetHeight(); - - virtual void SetNbColors(CORBA::Long theNbColors); - virtual CORBA::Long GetNbColors(); - - virtual void SetLabels(CORBA::Long theNbLabels); - virtual CORBA::Long GetLabels(); - - virtual void SetLabelsFormat(const char* theFormat); - virtual char* GetLabelsFormat(); - - virtual void SetBarOrientation(VISU::ColoredPrs3dBase::Orientation theOrientation); - virtual VISU::ColoredPrs3dBase::Orientation GetBarOrientation(); - - void UseFixedRange(bool theUseFixedRange); - - // ScaledMap Methods - - virtual VISU::Scaling GetScaling(); - virtual void SetScaling(VISU::Scaling theScaling); - - bool IsPositiveTable(); - - // Plot3dBase methods - - void SetScaleFactor (CORBA::Double theScaleFactor); - CORBA::Double GetScaleFactor(); - - void SetContourPrs (CORBA::Boolean theIsContourPrs ); - CORBA::Boolean GetIsContourPrs(); - - void SetNbOfContours (CORBA::Long); - CORBA::Long GetNbOfContours(); - - VISU_DeformedGridPL* GetSpecificPL() const { return myTablePL; } - - // TActorFactory Methods - - //! Gets know whether the factory instance can be used for actor management or not - virtual bool GetActiveState(); - - virtual void SetActiveState(bool theState); - - //! Return modified time of the factory - virtual unsigned long int GetMTime(); - - //! To unregister the actor - virtual void RemoveActor(VISU_ActorBase* theActor); - virtual void RemoveActors(); - - //------ Text Properties & Label Properties ------------------------ - - virtual bool IsBoldTitle(); - virtual void SetBoldTitle(bool isBold); - virtual bool IsItalicTitle(); - virtual void SetItalicTitle(bool isItalic); - virtual bool IsShadowTitle(); - virtual void SetShadowTitle(bool isShadow); - virtual int GetTitFontType(); - virtual void SetTitFontType(int theType); - virtual void GetTitleColor(vtkFloatingPointType& theR, - vtkFloatingPointType& theG, - vtkFloatingPointType& theB); - virtual void SetTitleColor(vtkFloatingPointType theR, - vtkFloatingPointType theG, - vtkFloatingPointType theB); - - virtual bool IsBoldLabel(); - virtual void SetBoldLabel(bool isBold); - virtual bool IsItalicLabel(); - virtual void SetItalicLabel(bool isItalic); - virtual bool IsShadowLabel(); - virtual void SetShadowLabel(bool isShadow); - virtual int GetLblFontType(); - virtual void SetLblFontType(int theType); - virtual void GetLabelColor(vtkFloatingPointType& theR, - vtkFloatingPointType& theG, - vtkFloatingPointType& theB); - virtual void SetLabelColor(vtkFloatingPointType theR, - vtkFloatingPointType theG, - vtkFloatingPointType theB); - - //------------------------------------------------------------------- - virtual CORBA::Long GetTitleSize(); - virtual CORBA::Long GetLabelSize(); - virtual CORBA::Long GetBarWidth(); - virtual CORBA::Long GetBarHeight(); - - virtual void SetUnitsVisible(CORBA::Boolean isVisible); - virtual CORBA::Boolean IsUnitsVisible(); - - //------------------------------------------------------------------- - - protected: - Storable* Build(int theRestoring); - - VISU::Table::Orientation myOrientation; - VISU::ColoredPrs3dBase::Orientation myBarOrientation; - std::string myTitle; - std::string myScalarBarTitle; - bool myIsUnits; - SALOMEDS::SObject_var mySObj; - int myNumberOfLabels; - std::string myLabelsFormat; - vtkFloatingPointType myPosition[2], - myWidth, myHeight, - myTitleSize, - myLabelSize, - myBarWidth, myBarHeight; - bool myIsFixedRange; - CORBA::Float myOffset[3]; - bool myIsActiveState; - vtkTimeStamp myParamsTime; - vtkTimeStamp myUpdateTime; - - Handle(SALOME_InteractiveObject) myIO; - - - //Font management - bool myIsBoldTitle; - bool myIsItalicTitle; - bool myIsShadowTitle; - int myTitFontType; - vtkFloatingPointType myTitleColor[3]; - - bool myIsBoldLabel; - bool myIsItalicLabel; - bool myIsShadowLabel; - int myLblFontType; - vtkFloatingPointType myLabelColor[3]; - - boost::signal0 myUpdateActorsSignal; - boost::signal0 myRemoveActorsFromRendererSignal; - vtkSmartPointer myActorCollection; - - public: - // virtual Storable* Create( const VISU::PTableIDMapper& theTableIDMapper ); - virtual Storable* Create(); - VISU_PointMap3dActor* CreateActor(); - VISU::PTableIDMapper GetTableIDMapper(); - - SALOMEDS::SObject_var GetSObject() const; - VISU_DeformedGridPL* myTablePL; - - virtual Storable* Restore( const Storable::TRestoringMap& theMap, - SALOMEDS::SObject_ptr SO); - - static Storable* StorableEngine(SALOMEDS::SObject_ptr theSObject, - const Storable::TRestoringMap& theMap, - const std::string& thePrefix, - CORBA::Boolean theIsMultiFile); - - virtual void ToStream( std::ostringstream& theStr ); - static const std::string myComment; - virtual const char* GetComment() const; - virtual QString GenerateName(); - virtual QString GetTableTitle(); - - virtual std::string GetObjectEntry(); - }; -} - -#endif diff --git a/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc b/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc new file mode 100644 index 00000000..ac6a8322 --- /dev/null +++ b/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc @@ -0,0 +1,404 @@ +// VISU OBJECT : interactive object for VISU entities implementation +// +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// +// +// File : VISU_ScalarMapOnDeformedShape_i.cc +// Author : Eugeny Nikolaev +// Module : VISU + +#include "VISU_ScalarMapOnDeformedShape_i.hh" +#include "VISU_Prs3dUtils.hh" +#include "VISU_Result_i.hh" + +#include "VISU_ScalarMapAct.h" +#include "VISU_ScalarMapOnDeformedShapePL.hxx" +#include "VISU_Convertor.hxx" + +#include "SUIT_ResourceMgr.h" +#include "SALOME_Event.hxx" + +#include +#include +#include + +#ifdef _DEBUG_ +static int MYDEBUG = 0; +#else +static int MYDEBUG = 0; +#endif + +static int INCMEMORY = 4+12; + + +//--------------------------------------------------------------- +size_t +VISU::ScalarMapOnDeformedShape_i +::IsPossible(Result_i* theResult, + const std::string& theMeshName, + VISU::Entity theEntity, + const std::string& theFieldName, + CORBA::Long theTimeStampNumber, + bool theIsMemoryCheck) +{ + size_t aResult = 0; + try{ + aResult = TSuperClass::IsPossible(theResult, + theMeshName, + theEntity, + theFieldName, + theTimeStampNumber, + false); + if(theIsMemoryCheck && aResult){ + VISU::Result_i::PInput anInput = theResult->GetInput(theMeshName, + theEntity, + theFieldName, + theTimeStampNumber); + VISU::PField aField = anInput->GetField(theMeshName, + (VISU::TEntity)theEntity, + theFieldName); + if(aField->myNbComp <= 1) + return 0; + + bool anIsEstimated = true; + size_t aSize = anInput->GetTimeStampOnMeshSize(theMeshName, + (VISU::TEntity)theEntity, + theFieldName, + theTimeStampNumber, + anIsEstimated); + if(anIsEstimated) + aSize *= INCMEMORY; + aResult = VISU_PipeLine::CheckAvailableMemory(aSize); + if(MYDEBUG) + MESSAGE("ScalarMapOnDeformedShape_i::IsPossible - CheckAvailableMemory = "<(theOrigin)){ + ScalarMapOnDeformedShape_i* anOrigin = const_cast(aPrs3d); + CORBA::String_var aFieldName = anOrigin->GetScalarFieldName(); + + SetScalarField(anOrigin->GetScalarEntity(), + aFieldName, + anOrigin->GetScalarTimeStampNumber()); + Update(); + } +} + + +//--------------------------------------------------------------- +void +VISU::ScalarMapOnDeformedShape_i +::SetScale(CORBA::Double theScale) +{ + VISU::TSetModified aModified(this); + + ProcessVoidEvent(new TVoidMemFun1ArgEvent + (GetSpecificPL(), &VISU_ScalarMapOnDeformedShapePL::SetScale, theScale)); +} + + +//--------------------------------------------------------------- +CORBA::Double +VISU::ScalarMapOnDeformedShape_i +::GetScale() +{ + return myScalarMapOnDeformedShapePL->GetScale(); +} + + +//--------------------------------------------------------------- +void +VISU::ScalarMapOnDeformedShape_i +::CreatePipeLine(VISU_PipeLine* thePipeLine) +{ + if(!thePipeLine){ + myScalarMapOnDeformedShapePL = VISU_ScalarMapOnDeformedShapePL::New(); + }else + myScalarMapOnDeformedShapePL = dynamic_cast(thePipeLine); + + myScalarMapOnDeformedShapePL->GetMapper()->SetScalarVisibility(1); + + TSuperClass::CreatePipeLine(myScalarMapOnDeformedShapePL); +} + + +//--------------------------------------------------------------- +bool +VISU::ScalarMapOnDeformedShape_i +::CheckIsPossible() +{ + return IsPossible(GetCResult(),GetCMeshName(),GetEntity(),GetCFieldName(),GetTimeStampNumber(),true); +} + + +//--------------------------------------------------------------- +VISU_Actor* +VISU::ScalarMapOnDeformedShape_i +::CreateActor() +{ + VISU_Actor* anActor = TSuperClass::CreateActor(true); + SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr(); + int aDispMode = aResourceMgr->integerValue("VISU", "scalar_def_represent", 2); + bool toShrink = aResourceMgr->booleanValue("VISU", "scalar_def_shrink", false); + anActor->SetRepresentation(aDispMode); + if (toShrink) + anActor->SetShrink(); + anActor->SetVTKMapping(false); + return anActor; +} + + +//--------------------------------------------------------------- +void +VISU::ScalarMapOnDeformedShape_i +::UpdateActor(VISU_Actor* theActor) +{ + if(VISU_ScalarMapAct* anActor = dynamic_cast(theActor)){ + anActor->SetBarVisibility(true); + GetPipeLine()->GetMapper()->SetScalarVisibility(1); + } + TSuperClass::UpdateActor(theActor); +} + + +//--------------------------------------------------------------- +void +VISU::ScalarMapOnDeformedShape_i +::SetField(VISU::PField theField) +{ + TSuperClass::SetField(theField); + + if(!myScalarField) + myScalarField = theField; +} + + +//--------------------------------------------------------------- +void +VISU::ScalarMapOnDeformedShape_i +::SetScalarField(VISU::Entity theEntity, + const char* theFieldName, + CORBA::Long theTimeStampNumber) +{ + bool anIsModified = false; + + if(!anIsModified) + anIsModified |= myScalarEntity != theEntity; + + if(!anIsModified) + anIsModified |= myScalarFieldName != theFieldName; + + if(!anIsModified) + anIsModified |= myScalarTimeStampNumber != theTimeStampNumber; + + if(!anIsModified) + return; + + VISU::TSetModified aModified(this); + + VISU::TEntity aEntity = VISU::TEntity(theEntity); + VISU::Result_i::PInput anInput = GetCResult()->GetInput(GetCMeshName(), + theEntity, + theFieldName, + theTimeStampNumber); + myScalarField = anInput->GetField(GetCMeshName(), aEntity, theFieldName); + + VISU::PUnstructuredGridIDMapper anIDMapper = + anInput->GetTimeStampOnMesh(GetCMeshName(), + aEntity, + theFieldName, + theTimeStampNumber); + + vtkUnstructuredGrid* anOutput = anIDMapper->GetUnstructuredGridOutput(); + if(myScalarMapOnDeformedShapePL && anOutput) + ProcessVoidEvent(new TVoidMemFun1ArgEvent + (GetSpecificPL(), &VISU_ScalarMapOnDeformedShapePL::SetScalars, anOutput)); + + myScalarEntity = theEntity; + myScalarFieldName = theFieldName; + myScalarTimeStampNumber = theTimeStampNumber; + + SetTitle(theFieldName); + SetScalarMode(GetScalarMode()); + if(!IsRangeFixed() && IsPipeLineExists()) + SetSourceRange(); + + myParamsTime.Modified(); +} + + +//--------------------------------------------------------------- +VISU::Entity +VISU::ScalarMapOnDeformedShape_i +::GetScalarEntity() +{ + return myScalarEntity; +} + + +//--------------------------------------------------------------- +char* +VISU::ScalarMapOnDeformedShape_i +::GetScalarFieldName() +{ + return CORBA::string_dup(myScalarFieldName.c_str()); +} + + +//--------------------------------------------------------------- +CORBA::Long +VISU::ScalarMapOnDeformedShape_i +::GetScalarTimeStampNumber() +{ + return myScalarTimeStampNumber; +} + + +//--------------------------------------------------------------- +VISU::PField +VISU::ScalarMapOnDeformedShape_i +::GetScalarField() +{ + return myScalarField; +} diff --git a/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.hh b/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.hh new file mode 100644 index 00000000..83f2e64d --- /dev/null +++ b/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.hh @@ -0,0 +1,179 @@ +// VISU OBJECT : interactive object for VISU entities implementation +// +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// +// +// File: VISU_ScalarMapOnDeformedShape_i.hh +// Author: Eugeny Nikolaev +// Module : VISU + +#ifndef VISU_ScalarMapOnDeformedShape_i_HeaderFile +#define VISU_ScalarMapOnDeformedShape_i_HeaderFile + +#include "VISU_ScalarMap_i.hh" + +class VISU_ScalarMapOnDeformedShapePL; + +namespace VISU +{ + //---------------------------------------------------------------------------- + //! Class of Scalar Map on Deformed Shape presentation. + class VISU_I_EXPORT ScalarMapOnDeformedShape_i : public virtual POA_VISU::ScalarMapOnDeformedShape, + public virtual ScalarMap_i + { + static int myNbPresent; + ScalarMapOnDeformedShape_i(const ScalarMapOnDeformedShape_i&); + + public: + //---------------------------------------------------------------------------- + typedef ScalarMap_i TSuperClass; + typedef VISU::ScalarMapOnDeformedShape TInterface; + + explicit + ScalarMapOnDeformedShape_i(EPublishInStudyMode thePublishInStudyModep); + + virtual + ~ScalarMapOnDeformedShape_i(); + + virtual + VISU::VISUType + GetType() + { + return VISU::TSCALARMAPONDEFORMEDSHAPE; + } + + virtual + void + SetScale(CORBA::Double theScale); + + virtual + CORBA::Double + GetScale(); + + virtual + void + SameAs(const Prs3d_i* theOrigin); + + VISU_ScalarMapOnDeformedShapePL* + GetSpecificPL() + { + return myScalarMapOnDeformedShapePL; + } + + protected: + //! Redefines VISU_ColoredPrs3d_i::SetField + virtual + void + SetField(VISU::PField theField); + + //! Redefines VISU_ColoredPrs3d_i::CreatePipeLine + virtual + void + CreatePipeLine(VISU_PipeLine* thePipeLine); + + //! Redefines VISU_ColoredPrs3d_i::CheckIsPossible + virtual + bool + CheckIsPossible(); + + public: + //! Redefines VISU_ColoredPrs3d_i::IsPossible + static + size_t + IsPossible(Result_i* theResult, + const std::string& theMeshName, + VISU::Entity theEntity, + const std::string& theFieldName, + CORBA::Long theTimeStampNumber, + bool theIsMemoryCheck); + + //! Redefines VISU_ColoredPrs3d_i::IsPossible + virtual + Storable* + Create(const std::string& theMeshName, + VISU::Entity theEntity, + const std::string& theFieldName, + CORBA::Long theTimeStampNumber); + + //! Redefines VISU_ColoredPrs3d_i::ToStream + virtual + void + ToStream(std::ostringstream& theStr); + + //! Redefines VISU_ColoredPrs3d_i::Restore + virtual + Storable* + Restore(SALOMEDS::SObject_ptr theSObject, + const Storable::TRestoringMap& theMap); + + static const std::string myComment; + + virtual + const char* + GetComment() const; + + virtual + QString + GenerateName(); + + virtual + const char* + GetIconName(); + + virtual + VISU_Actor* + CreateActor(); + + virtual + void + UpdateActor(VISU_Actor* theActor) ; + + virtual + void + SetScalarField(VISU::Entity theEntity, + const char* theFieldName, + CORBA::Long theTimeStampNumber); + + virtual + VISU::Entity + GetScalarEntity(); + + virtual + char* + GetScalarFieldName(); + + virtual + CORBA::Long + GetScalarTimeStampNumber(); + + virtual + VISU::PField + GetScalarField(); + + private: + VISU_ScalarMapOnDeformedShapePL *myScalarMapOnDeformedShapePL; + + PField myScalarField; + VISU::Entity myScalarEntity; + std::string myScalarFieldName; + CORBA::Long myScalarTimeStampNumber; + }; +} +#endif diff --git a/src/VISU_SWIG/visu_pointmap3d.py b/src/VISU_SWIG/visu_pointmap3d.py deleted file mode 100755 index 0736c27c..00000000 --- a/src/VISU_SWIG/visu_pointmap3d.py +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -import os -import VISU -from visu_gui import * - -aTableFile = os.getenv('DATA_DIR') + '/Tables/table_test.xls' - -aTableSObject = myVisu.ImportTables(aTableFile) - -aTable = None -if aTableSObject: - anIsFound, aSObject = aTableSObject.FindSubObject(1) - if anIsFound: - aTable = aSObject.GetObject() - -aViewManager = myVisu.GetViewManager(); -aView = aViewManager.Create3DView() -if aView is None : print "Creating View Error" -print aTable - -##########Get Values################ -aScaleFactor = aTable.GetScaleFactor(); -anIsContourPrs = aTable.GetIsContourPrs(); -aNbOfContours = aTable.GetNbOfContours(); -aScaling = aTable.GetScaling(); -aMin = aTable.GetMin(); -aMax = aTable.GetMax(); -aSourceMin = aTable.GetSourceMin(); -aSourceMax = aTable.GetSourceMax(); -aPosX = aTable.GetPosX(); -aPosY = aTable.GetPosY(); -aHeight = aTable.GetHeight(); -aWidth = aTable.GetWidth(); -aNbColors = aTable.GetNbColors(); -aLabels = aTable.GetLabels(); -aBarOrientation = aTable.GetBarOrientation(); - - -print "Get Values:" -print "aScaleFactor = ", aScaleFactor -print "anIsContourPrs = ", anIsContourPrs -print "aNbOfContours = ", aNbOfContours -print "aScaling = ", aScaling -print "===== SCALAR BAR =======" -print "aMin = ", aMin -print "aMax = ", aMax -print "aSourceMin = ", aSourceMin -print "aSourceMax = ", aSourceMax -print "aPosX = ", aPosX -print "aPosY = ", aPosY -print "aHeight = ", aHeight -print "aWidth = ", aWidth -print "aNbColors = ", aNbColors -print "aLabels = ", aLabels -print "aBarOrientation = ", aBarOrientation - -aView.DisplayOnly( aTable ) -aView.FitAll() \ No newline at end of file