From c9919de19ef97bc876e89eed97e73054c62f5314 Mon Sep 17 00:00:00 2001 From: nri Date: Tue, 14 Oct 2003 08:51:59 +0000 Subject: [PATCH] sources v1.2c --- idl/VISU_Gen.idl | 141 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 112 insertions(+), 29 deletions(-) diff --git a/idl/VISU_Gen.idl b/idl/VISU_Gen.idl index ff5e3583..5d62ff55 100644 --- a/idl/VISU_Gen.idl +++ b/idl/VISU_Gen.idl @@ -5,14 +5,11 @@ // File : VISU_Gen.idl // Author : Alexey Petrov -/*! \file VISU_Gen.idl This file conatins a set of interfaces of %VISU module. - This module will provide various forms of data visualization in %SALOME application. +/*! \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. */ -/*! - \defgroup Visu SALOME VISU module -*/ #ifndef __VISU_GEN__ #define __VISU_GEN__ @@ -23,17 +20,22 @@ #include "SALOMEDS_Attributes.idl" #include "MED.idl" -/*! \ingroup Visu - The main package of interfaces of the module %VISU. +/*! + The main package of interfaces of the post-processing module %VISU. */ module VISU { //------------------------------------------------------- typedef string IdType; - enum Scaling{ LINEAR, LOGARITHMIC}; +/*! + 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. */ + }; enum Entity{ NODE, EDGE, FACE, CELL}; - //enum Entity{ CELL, FACE, EDGE, NODE}; /*! - This enumeration contains a set of elements defining the type of the module. + This enumeration contains a set of elements defining the type of the %VISU object. */ enum VISUType{ TNONE, TCURVE, TTABLE, TCONTAINER, TMESH, TSCALARMAP, @@ -54,7 +56,7 @@ Returns the type of the presentable object }; /*! \brief Presentable object interface - It is the root class of all presentable objects. +Presentable object interface is the root class of all presentable objects. */ interface PrsObject : Base{ }; @@ -119,29 +121,29 @@ Gets the color of the curve. */ SALOMEDS::Color GetColor(); /*! - This enumeration contains a set of elements defining the representation type of markers (data points) with help of + 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. */ enum MarkerType{ NONE, CIRCLE, RECTANGLE, DIAMOND, DTRIANGLE, UTRIANGLE, LTRIANGLE, RTRIANGLE, CROSS, XCROSS }; /*! -Sets the representation type of markers (data points) with help of +Sets the presentation type of markers (data points) with help of which the curve is constructed on the graphics. */ void SetMarker(in MarkerType theType); /*! -Gets the representation type of markers (data points) with help of +Gets the presentation type of markers (data points) with help of which the curve is constructed on the graphics. */ MarkerType GetMarker(); /*! This enumeration contains a set of elements defining the - type of representation of curve lines on the graphics. + type of presentation of a curve line on the graphics. */ enum LineType{ VOIDLINE, SOLIDLINE, DASHLINE, DOTLINE, DASHDOTLINE, DASHDOTDOTLINE}; /*! -Sets the type of representation of curve lines on the graphics. +Sets the type of presentation of curve lines on the graphics. */ void SetLine(in LineType theType, in long theLineWidth); /*! @@ -179,17 +181,25 @@ Removes all curves from the container. }; //------------------------------------------------------- +/*! \brief 3D presentation interface + +This is a root class for all 3D presentations, which can be displayed in %VISU module. +*/ interface Prs3d : PrsObject{ +/*! Kills a 3D presentation. +*/ void Destroy(); }; /*! This enumeration contains a set of elements defining the - type of representation of the mesh. + type of presentation of the mesh. */ enum PresentationType{ POINT, WIREFRAME, SHADED, + INSIDEFRAME, + SURFACEFRAME, SHRINK }; /*! \brief Interface of the mesh. @@ -335,7 +345,7 @@ Gets the title of this presentable object. Presentation parameters of the deformed shape presentation. */ - interface DeformedShape : ScalarMap{ + interface DeformedShape : ScalarMap{ /*! Sets the scale of the presentatable object. */ @@ -344,16 +354,24 @@ Sets the scale of the presentatable object. Gets the scale of the presentatable object. */ double GetScale(); + + boolean IsColored(); + void ShowColored(in boolean theColored); + + SALOMEDS::Color GetColor(); + void SetColor(in SALOMEDS::Color theColor); }; //------------------------------------------------------- /*! \brief Cut planes interface -Presentation parameters of Cut planes presentation. +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. */ interface CutPlanes : ScalarMap{ /*! This enumeration contains a set of elements defining the orientation in 3D space - of cut planes presentation. + of the cut planes. */ enum Orientation {XY, YZ, ZX}; /*! @@ -364,9 +382,43 @@ Sets the type of orientation in 3D space of cut planes presentation. Gets the type of orientation in 3D space of cut planes presentation. */ Orientation GetOrientationType(); +/*! +Sets the displacement of the cut planes in 3D space. + +\param 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 equal. If the value is higher or lower than 0.5, the planes will be displaced +to one or another side. +*/ void SetDisplacement(in double theDisp); +/*! +Gets the displacement of the cut planes in 3D space. +*/ double GetDisplacement(); /*! +Sets the position of a definite cut plane +*/ + void SetPlanePosition(in long thePlaneNumber, in double thePlanePosition); + +/*! +Sets the position of the choosen plane to default value +*/ + void SetDefault(in long thePlaneNumber); + +/*! +Gets the position of the choosen plane +*/ + + double GetPlanePosition(in long thePlaneNumber); + +/*! +Determines whether the choosen plane has default position +*/ + + boolean IsDefault(in long thePlaneNumber); + +/*! Sets the number of cut planes. */ void SetNbPlanes(in long theNb); @@ -392,10 +444,6 @@ Sets rotation angle of the cut plane presentation. double GetRotateY(); }; //------------------------------------------------------- - /*! \brief Interface of the stream lines representation - This interface contains presentation parameters of - stream lines presentations. - */ /*! \brief Cut lines interface Presentation parameters of Cut lines presentation. @@ -414,6 +462,18 @@ Presentation parameters of Cut lines presentation. 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(); @@ -429,7 +489,10 @@ Presentation parameters of Cut lines presentation. double GetRotateY(); double GetRotateY2(); }; - + /*! \brief Interface of the stream lines representation + This interface contains presentation parameters of + stream lines presentations. + */ interface StreamLines : DeformedShape{ enum Direction{ FORWARD, BACKWARD, @@ -572,6 +635,7 @@ This interface serves for inner representation of data generated in other source This data is needed for further construction of graphical presentations. */ interface Result : Base { + boolean BuildAll(); }; //------------------------------------------------------- interface ViewManager; @@ -858,26 +922,44 @@ False if the parameters with this name don't exist. //------------------------------------------------------- +/*! \brief Interface of the Table view + +This interface is used for creation of a view necessary for presentation of a table. +*/ interface TableView : View { - + }; //------------------------------------------------------- +/*! \brief Interface of the XY plot view + +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. +*/ interface XYPlot : View { +/*! Sets the title of the XY plot +\param theTitle The title of the XY plot +*/ + void SetSubTitle(in string theTitle); +/*! Gets the title of the XY plot +*/ string GetSubTitle(); - +/*! +This enumeration contains a set of elements determining the type of the curve lines, which +will be displayed in your XY plot. +*/ enum CurveType { POINTS, MULTYLINE, SPLINE}; 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); @@ -921,6 +1003,7 @@ False if the parameters with this name don't exist. void Destroy(in View theView); + void ProcessEvents(); }; }; #endif -- 2.39.2