From 87059649a597f596ea89148304b136593475167b Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 13 Jul 2005 12:09:47 +0000 Subject: [PATCH] Merge with branch V2_2_0_VISU_improvement --- Makefile.in | 3 +- idl/VISU_Gen.idl | 2022 +++++++++++++---------- resources/VISU_en.xml | 6 +- resources/VISU_fr.xml | 23 +- resources/Visu_graduated_axes.png | Bin 0 -> 351 bytes src/ENGINE/VISU_Engine_i.cc | 10 + src/ENGINE/VISU_Engine_i.hh | 2 + src/OBJECT/VISU_Actor.cxx | 4 +- src/PIPELINE/Makefile.in | 41 +- src/PIPELINE/SALOME_ExtractGeometry.cxx | 267 +++ src/PIPELINE/SALOME_ExtractGeometry.h | 70 + src/PIPELINE/VISUPipeLine.cxx | 69 +- src/PIPELINE/VISU_CutLinesPL.cxx | 46 +- src/PIPELINE/VISU_CutPlanesPL.cxx | 82 +- src/PIPELINE/VISU_CutPlanesPL.hxx | 50 +- src/PIPELINE/VISU_DeformedShapePL.cxx | 50 +- src/PIPELINE/VISU_Extractor.cxx | 48 +- src/PIPELINE/VISU_FieldTransform.cxx | 26 +- src/PIPELINE/VISU_IsoSurfacesPL.cxx | 45 +- src/PIPELINE/VISU_MeshPL.cxx | 47 +- src/PIPELINE/VISU_PipeLine.cxx | 273 ++- src/PIPELINE/VISU_PipeLine.hxx | 108 +- src/PIPELINE/VISU_Plot3DPL.cxx | 401 +++++ src/PIPELINE/VISU_Plot3DPL.hxx | 128 ++ src/PIPELINE/VISU_ScalarMapPL.cxx | 57 +- src/PIPELINE/VISU_StreamLinesPL.cxx | 80 +- src/PIPELINE/VISU_UsedPointsFilter.cxx | 42 +- src/PIPELINE/VISU_VectorsPL.cxx | 43 +- src/VISUGUI/Makefile.in | 10 + src/VISUGUI/VISU_images.po | 3 + src/VISUGUI/VISU_msg_en.po | 262 ++- src/VISUGUI/VisuGUI.cxx | 845 ++++++---- src/VISUGUI/VisuGUI.h | 29 +- src/VISUGUI/VisuGUI_ActionsDef.h | 28 +- src/VISUGUI/VisuGUI_ClippingDlg.cxx | 1027 ++++++++++++ src/VISUGUI/VisuGUI_ClippingDlg.h | 129 ++ src/VISUGUI/VisuGUI_CubeAxesDlg.cxx | 594 +++++++ src/VISUGUI/VisuGUI_CubeAxesDlg.h | 132 ++ src/VISUGUI/VisuGUI_CutLinesDlg.cxx | 6 +- src/VISUGUI/VisuGUI_CutPlanesDlg.cxx | 6 +- src/VISUGUI/VisuGUI_FontWg.cxx | 148 ++ src/VISUGUI/VisuGUI_FontWg.h | 68 + src/VISUGUI/VisuGUI_OffsetDlg.cxx | 210 +++ src/VISUGUI/VisuGUI_OffsetDlg.h | 55 + src/VISUGUI/VisuGUI_Plot3DDlg.cxx | 601 +++++++ src/VISUGUI/VisuGUI_Plot3DDlg.h | 117 ++ src/VISUGUI/VisuGUI_PopupTools.cxx | 2 + src/VISUGUI/VisuGUI_StreamLinesDlg.cxx | 7 +- src/VISUGUI/VisuGUI_TimeAnimation.cxx | 393 ++++- src/VISUGUI/VisuGUI_TimeAnimation.h | 106 +- src/VISUGUI/VisuGUI_Tools.cxx | 684 ++++++-- src/VISUGUI/VisuGUI_Tools.h | 160 +- src/VISU_I/Makefile.in | 4 +- src/VISU_I/VISUConfig.hh | 59 +- src/VISU_I/VISU_CutLines_i.hh | 41 +- src/VISU_I/VISU_CutPlanes_i.hh | 53 +- src/VISU_I/VISU_DeformedShape_i.hh | 40 +- src/VISU_I/VISU_DumpPython.cc | 200 ++- src/VISU_I/VISU_Gen_i.cc | 142 +- src/VISU_I/VISU_Gen_i.hh | 3 + src/VISU_I/VISU_IsoSurfaces_i.hh | 40 +- src/VISU_I/VISU_Mesh_i.cc | 11 +- src/VISU_I/VISU_Mesh_i.hh | 14 +- src/VISU_I/VISU_Plot3D_i.cc | 171 ++ src/VISU_I/VISU_Plot3D_i.hh | 77 + src/VISU_I/VISU_Prs3d_i.cc | 127 +- src/VISU_I/VISU_Prs3d_i.hh | 75 +- src/VISU_I/VISU_PrsObject_i.hh | 38 +- src/VISU_I/VISU_Result_i.cc | 341 +++- src/VISU_I/VISU_Result_i.hh | 71 +- src/VISU_I/VISU_ScalarMap_i.cc | 110 +- src/VISU_I/VISU_ScalarMap_i.hh | 72 +- src/VISU_I/VISU_StreamLines_i.hh | 51 +- src/VISU_I/VISU_Table_i.cc | 303 ++-- src/VISU_I/VISU_Table_i.hh | 59 +- src/VISU_I/VISU_TimeAnimation.cxx | 211 ++- src/VISU_I/VISU_TimeAnimation.h | 51 +- src/VISU_I/VISU_Vectors_i.hh | 43 +- src/VISU_I/VISU_ViewManager_i.cc | 250 ++- src/VISU_I/VISU_ViewManager_i.hh | 3 + src/VISU_SWIG/visu.py | 18 + 81 files changed, 9632 insertions(+), 2711 deletions(-) create mode 100755 resources/Visu_graduated_axes.png create mode 100755 src/PIPELINE/SALOME_ExtractGeometry.cxx create mode 100755 src/PIPELINE/SALOME_ExtractGeometry.h create mode 100644 src/PIPELINE/VISU_Plot3DPL.cxx create mode 100644 src/PIPELINE/VISU_Plot3DPL.hxx create mode 100644 src/VISUGUI/VisuGUI_ClippingDlg.cxx create mode 100644 src/VISUGUI/VisuGUI_ClippingDlg.h create mode 100755 src/VISUGUI/VisuGUI_CubeAxesDlg.cxx create mode 100755 src/VISUGUI/VisuGUI_CubeAxesDlg.h create mode 100755 src/VISUGUI/VisuGUI_FontWg.cxx create mode 100755 src/VISUGUI/VisuGUI_FontWg.h create mode 100644 src/VISUGUI/VisuGUI_OffsetDlg.cxx create mode 100644 src/VISUGUI/VisuGUI_OffsetDlg.h create mode 100644 src/VISUGUI/VisuGUI_Plot3DDlg.cxx create mode 100644 src/VISUGUI/VisuGUI_Plot3DDlg.h create mode 100644 src/VISU_I/VISU_Plot3D_i.cc create mode 100644 src/VISU_I/VISU_Plot3D_i.hh diff --git a/Makefile.in b/Makefile.in index 2a306bf1..cc45561e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -46,7 +46,8 @@ VISU_fr.xml \ VISU.config \ VISUCatalog.xml \ Visu_tree_visu.png \ -Visu_streamlines.png +Visu_streamlines.png \ +Visu_graduated_axes.png BIN_SCRIPT= \ VERSION diff --git a/idl/VISU_Gen.idl b/idl/VISU_Gen.idl index 96811492..a4b58de1 100644 --- a/idl/VISU_Gen.idl +++ b/idl/VISU_Gen.idl @@ -6,1120 +6,1441 @@ // Author : Alexey Petrov /*! \file VISU_Gen.idl 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. -*/ + * 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. + */ #ifndef __VISU_GEN__ -#define __VISU_GEN__ - -#include "SALOME_Exception.idl" +#define __VISU_GEN__ + +#include "SALOME_Exception.idl" #include "SALOME_GenericObj.idl" -#include "SALOME_Component.idl" -#include "SALOMEDS.idl" -#include "SALOMEDS_Attributes.idl" -#include "MED.idl" - -/*! - The main package of interfaces of the post-processing module %VISU. -*/ +#include "SALOME_Component.idl" +#include "SALOMEDS.idl" +#include "SALOMEDS_Attributes.idl" +#include "MED.idl" + +/*! + The main package of interfaces of the post-processing module %VISU. +*/ module VISU { - //------------------------------------------------------- - typedef string IdType; -/*! - This enumeration contains a set of elements defining the type of the scaling, which -can be applied on different presentations. -*/ - enum Scaling{ LINEAR, /*!< Linear type of scaling. */ - LOGARITHMIC /*!< Logarithmic type of scaling. */ - }; -/*! - This enumeration contains a set of elements defining the type of the %entity (topological units) constituting a mesh. -*/ - + //------------------------------------------------------- + typedef string IdType; + + /*! + * This enumeration contains a set of elements defining the type + * of the scaling, which can be applied on different presentations. + */ + enum Scaling{ LINEAR, /*!< Linear type of scaling. */ + LOGARITHMIC /*!< Logarithmic type of scaling. */ + }; + + /*! + * This enumeration contains a set of elements defining the + * type of the %entity (topological units) constituting a mesh. + */ enum Entity{ 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 */ }; -/*! - 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. -*/ - enum VISUType{ 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 */ - TISOSURFACE, /*!< Iso surface 3D presentation object */ - TDEFORMEDSHAPE, /*!< Deformed shape 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 */ - 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, /*!