3 // Author : Alexey Petrov
5 // Copyright : OPEN CASCADE
8 /*! \file VISU_Gen.idl This file conatins a set of interfaces of %VISU module.
9 This module will provide various forms of data visualization in %SALOME application.
10 These forms include data tables, XY plots, 3d representations
11 and combination of these forms.
14 \defgroup Visu SALOME VISU module
20 #include "SALOME_Exception.idl"
21 #include "SALOME_Component.idl"
22 #include "SALOMEDS.idl"
23 #include "SALOMEDS_Attributes.idl"
27 The main package of interfaces of the module %VISU.
30 //-------------------------------------------------------
31 const string VISU__doc__ = "Module VISU provides various forms of data visualization in SALOME application.\nThese forms include data tables, XY plots,\n3d representations and combination of these forms.";
32 typedef string IdType;
33 enum Scaling{ LINEAR, LOGARITHMIC};
34 enum Entity{ NODE, EDGE, FACE, CELL};
35 //enum Entity{ CELL, FACE, EDGE, NODE};
37 This enumeration contains a set of elements defining the type of the module.
40 TCURVE, TTABLE, TCONTAINER, TMESH, TSCALARMAP,
41 TISOSURFACE, TDEFORMEDSHAPE, TCUTPLANES, TVECTORS, TSTREAMLINES,
42 TVISUGEN, TVIEWMANAGER, TRESULT,
43 TXYPLOT, TTABLEVIEW, TVIEW3D,
44 TENTITY, TFAMILY, TGROUP, TFIELD, TTIMESTAMP,
48 Returns ID of the object.
51 const string GetID__doc__ = "Returns ID of the object.";
53 Returns the type of the presentable object
56 const string GetType__doc__ = "Returns the type of the module interface";
58 /*! \brief Presentable object interface
60 It is the root class of all presentable objects.
62 interface PrsObject : Base{
64 const string PrsObject__doc__ = "It is the root class of all presentable objects.";
65 //-------------------------------------------------------
66 /*! \brief %Table representation interface
68 Presentation parameters of the %Table view.
70 interface Table : PrsObject {
72 Sets the title of the table.
74 void SetTitle(in string theTitle);
75 const string SetTitle__doc__ = "Sets the title of the table.";
77 Gets the title of the table.
80 const string GetTitle__doc__ = "Gets the title of the table.";
82 This enumeration contains a set of elements defining the orientation of the table.
84 enum Orientation{ HORIZONTAL, /*!<Horizontal orientation of the table.*/
85 VERTIACAL /*!<Vertical orientation of the table.*/
88 Sets orientation of the table.
90 void SetOrientation(in Orientation theOrientation);
91 const string SetOrientation__doc__ = "Sets orientation of the table.";
93 Gets orientation of the table.
95 Orientation GetOrientation();
96 const string GetOrientation__doc__ = "Gets orientation of the table.";
98 Gets the number of rows of the table
101 const string GetNbRows__doc__ = "Gets the number of rows of the table.";
103 Gets the number of columns of the table
106 const string GetNbColumns__doc__ ="Gets the number of columns of the table.";
108 const string Table__doc__ = "The Table interface contains presentation\nparameters of the %Table view.";
109 //-------------------------------------------------------
110 /*! \brief Interface of curve representation.
112 Manages presentation parameters of one curve.
113 It can be used for presentation of a set of curves using a combined presentation.
115 interface Curve : PrsObject{
117 Sets the title of the curve.
119 void SetTitle(in string theTitle);
120 const string SetTitle__doc__ = "Sets the title of the curve.";
122 Gets the title of the curve.
125 const string GetTitle__doc__ = "Gets the title of the curve.";
127 Sets the color of the curve.
129 void SetColor(in SALOMEDS::Color theColor);
130 const string SetColor__doc__ = "Sets the color of the curve.";
132 Gets the color of the curve.
134 SALOMEDS::Color GetColor();
135 const string GetColor__doc__ = "Gets the color of the curve.";
137 This enumeration contains a set of elements defining the representation type of markers (data points) with help of
138 which the curve is constructed on the graphics.
140 enum MarkerType{ NONE, CIRCLE, RECTANGLE, DIAMOND,
141 DTRIANGLE, UTRIANGLE, LTRIANGLE, RTRIANGLE,
144 Sets the representation type of markers (data points) with help of
145 which the curve is constructed on the graphics.
147 void SetMarker(in MarkerType theType);
148 const string SetMarker__doc__ = "Sets the representation type of markers\n(data points) with help of which\nthe curve is constructed on the graphics.";
150 Gets the representation type of markers (data points) with help of
151 which the curve is constructed on the graphics.
153 MarkerType GetMarker();
154 const string GetMarker__doc__ = "Gets the representation type of markers\n(data points) with help of which the\ncurve is constructed on the graphics.";
156 This enumeration contains a set of elements defining the
157 type of representation of curve lines on the graphics.
159 enum LineType{ VOIDLINE, SOLIDLINE, DASHLINE, DOTLINE, DASHDOTLINE, DASHDOTDOTLINE};
161 Sets the type of representation of curve lines on the graphics.
163 void SetLine(in LineType theType, in long theLineWidth);
164 const string SetLine__doc__ = "Sets the type of representation of curve\nlines on the graphics.";
166 Gets the type of representation of curve lines on the graphics.
169 const string GetLine__doc__ = "Gets the type of representation of curve\nlines on the graphics.";
172 Gets the width of the curve line.
175 const string GetLineWidth__doc__ = "Gets the width of the curve line.";
177 const string Curve__doc__ = "The curve representation interface manages\npresentation parameters of one curve. It can be used\nfor presentation of a set of curves\nusing a combined presentation.";
178 //-------------------------------------------------------
179 /*! \brief The %Container presentable object interface
180 This interface contains a set of methods used for management of a group of curves
181 which are stored in the container.
183 interface Container : PrsObject{
185 Adds a curve into the container.
187 void AddCurve(in Curve theCurve);
188 const string AddCurve__doc__ = "Adds a curve into the container.";
190 Removes a curve from the container.
192 void RemoveCurve(in Curve theCurve);
193 const string RemoveCurve__doc__ = "Removes a curve from the container.";
195 Gets the number of curves which are stored in the container.
198 const string GetNbCurves__doc__ = "Gets the number of curves which\nare stored in the container.";
200 Removes all curves from the container.
203 const string Clear__doc__ = "Removes all curves from the container.";
206 const string Container__doc__ = "The Container presentable object\ninterface contains a set of methods\nused for management of a group of curves which\nare stored in the container.";
207 //-------------------------------------------------------
209 This enumeration contains a set of elements defining the
210 type of representation of the mesh.
213 enum PresentationType{ POINT,
218 /*! \brief Interface of the mesh.
220 This interface manages the presentation parameters of the mesh.
222 interface Mesh : PrsObject{
224 Sets the color of mesh cells.
226 void SetCellColor(in SALOMEDS::Color theColor);
227 const string SetCellColor__doc__ = "Sets the color of mesh cells.";
229 Gets the color of mesh cells.
231 SALOMEDS::Color GetCellColor();
232 const string GetCellColor__doc__ = "Gets the color of mesh cells.";
234 Sets the color of mesh nodes.
236 void SetNodeColor(in SALOMEDS::Color theColor);
237 const string SetNodeColor__doc__ = "Sets the color of mesh nodes.";
239 Gets the color of mesh nodes.
241 SALOMEDS::Color GetNodeColor();
242 const string GetNodeColor__doc__ = "Gets the color of mesh nodes.";
245 Sets the color of mesh links.
247 void SetLinkColor(in SALOMEDS::Color theColor);
248 const string SetLinkColor__doc__ = "Sets the color of mesh links.";
250 Gets the color of mesh links.
252 SALOMEDS::Color GetLinkColor();
253 const string GetLinkColor__doc__ = "Gets the color of mesh links.";
255 Sets the type of representation of the mesh.
257 void SetPresentationType(in PresentationType theType);
258 const string SetPresentationType__doc__ = "Sets the type of representation of the mesh.";
260 Gets the type of representation of the mesh.
262 PresentationType GetPresentationType();
263 const string GetPresentationType__doc__ = "Gets the type of representation of the mesh.";
265 const string Mesh__doc__ = "The Mesh interface manages the presentation parameters\nof the mesh.";
266 //-------------------------------------------------------
267 /*! \brief Interface of the %Scalar Map presentation
269 This interface contains presentation parameters of the ScalarMap presentation
271 interface ScalarMap : PrsObject{
272 void SetScalarMode(in long theScaling);
273 long GetScalarMode();
274 void SetScaling(in Scaling theScaling);
275 const string SetScaling__doc__ = "Sets the type of scaling of the values\nreflected by this presentation.";
277 Gets the type of scaling of the values reflected by this presentation.
279 Scaling GetScaling();
280 const string GetScaling__doc__ = "Gets the type of scaling of the values\nreflected by this presentation.";
282 Sets scalar range - min and max boundaries of this presentable object.
283 \param theMin Min boundary of this presentable object.
284 \param theMax Max boundary of this presentable object.
286 void SetRange(in double theMin, in double theMax);
287 const string SetRange__doc__ = "Sets scalar range - min and max boundaries\nof this presentable object.";
289 Gets the min boundary of this presentable object.
292 const string GetMin__doc__ = "Gets the min boundary of this presentable object.";
294 Gets the max boundary of this presentable object.
297 const string GetMax__doc__ = "Gets the max boundary of this presentable object.";
299 /*! %Orientation of this presentable object. */
301 HORIZONTAL, /*!< Horizontal orientation of this presentable object.*/
302 VERTICAL /*!< Vertical orientation of this presentable object.*/
305 Sets the type of orientation of this presentable object.
307 void SetOrientation(in Orientation theOrientation);
308 const string SetOrientation__doc__ = "Sets the type of orientation of this presentable object.";
310 Gets the type of orientation of this presentable object.
312 Orientation GetOrientation();
313 const string GetOrientation__doc__ = "Gets the type of orientation of this presentable object.";
315 /*! \brief Position of this presentable object.
317 Sets the position of this presentable object origin on the screen.
318 \param X Horizontal position. The value can be between 0 and 1.
319 \param Y Vertical position. The value can be between 0 and 1.
321 void SetPosition(in double X, in double Y);
322 const string SetPosition__doc__ = "Sets the position of this presentable object\norigin on the screen.";
324 Gets horizontal position of this presentable object origin.
327 const string GetPosX__doc__ = "Gets horizontal position of this presentable object origin.";
329 Gets vertical position of this presentable object origin.
332 const string GetPosY__doc__ = "Gets vertical position of this presentable object origin.";
333 /*! \brief Size of this presentable object.
335 Sets the size of the scalar bar.
336 \param theWidth Width of this presentable object. The value can be between 0 and 1.
337 \param theHeight Height of this presentable object. The value can be between 0 and 1.
339 void SetSize(in double theWidth, in double theHeight);
340 const string SetSize__doc__ = "Sets the size of the scalar bar.";
342 Gets the width of this presentable object.
345 const string GetWidth__doc__ = "Gets the width of this presentable object.";
347 Gets the height of this presentable object.
350 const string GetHeight__doc__ = "Gets the height of this presentable object.";
352 Sets the number of colors which will be used for presentation of this presentable object.
354 void SetNbColors(in long theNbColors);
355 const string SetNbColors__doc__ = "Sets the number of colors which will be\nused for presentation of this presentable object.";
357 Gets the number of colors which will be used for presentation of this presentable object.
360 const string GetNbColors__doc__ = "Gets the number of colors which will be\nused for presentation of this presentable object.";
362 Sets the number of labels which will be used for indication of the gradation
363 of this presentable object.
365 void SetLabels(in long theNbLabels);
366 const string SetLabels__doc__ = "Sets the number of labels which will be used\nfor indication of the gradation of this presentable object.";
368 Gets the number of labels which will be used for indication of the gradation
369 of this presentable object.
372 const string GetLabels__doc__ = "Gets the number of labels which will be used\nfor indication of the gradation of this presentable object.";
375 Sets the title of this presentable object. For scalar bar by default - the name of the selected result is used.
377 void SetTitle(in string theName);
378 const string SetTitle__doc__ = "Sets the title of this presentable object. For scalar bar by default - the name of the selected result is used.";
380 Gets the title of this presentable object.
383 const string GetTitle__doc__ = "Gets the title of this presentable object.";
385 const string ScalarMap__doc__ = "The scalarmap interface contains presentation\nparameters of the ScalarMap presentation.";
386 //-------------------------------------------------------
387 /*! \brief Deformed shape presentation interface
389 Presentation parameters of the deformed shape presentation.
391 interface DeformedShape : ScalarMap{
393 Sets the scale of the presentatable object.
395 void SetScale(in double theScale);
396 const string SetScale__doc__ = "Sets the scale of the deformed shape.";
398 Gets the scale of the presentatable object.
401 const string GetScale__doc__ = "Gets the scale of the deformed shape";
403 const string DeformedShape__doc__ = "The deformed shape interface contains\nthe presentation parameters of the deformed shape.";
404 //-------------------------------------------------------
405 /*! \brief Cut planes interface
407 Presentation parameters of Cut planes presentation.
409 interface CutPlanes : ScalarMap{
411 This enumeration contains a set of elements defining the orientation in 3D space
412 of cut planes presentation.
414 enum Orientation {XY, YZ, ZX};
416 Sets the type of orientation in 3D space of cut planes presentation.
418 void SetOrientationType(in Orientation theNb);
419 const string SetOrientationType__doc__ = "Sets the type of orientation in 3D\nspace of cut planes presentation.";
421 Gets the type of orientation in 3D space of cut planes presentation.
423 Orientation GetOrientationType();
424 const string GetOrientationType__doc__ = "Gets the type of orientation in 3D\nspace of cut planes presentation.";
426 Sets the number of cut planes.
428 void SetNbPlanes(in long theNb);
429 const string SetNbPlanes__doc__ = "Sets the number of cut planes.";
431 Gets the number of cut planes.
434 const string GetNbPlanes__doc__ = "Gets the number of cut planes.";
435 /*! Rotation around X-axis.
436 Sets rotation angle of the cut plane presentation.
438 void SetRotateX(in double theAngle);
439 const string SetRotateX__doc__ = "Rotation around X-axis.\nSets rotation angle of the cut plane presentation.";
440 /*! Rotation around X-axis.
441 Gets rotation angle of the cut plane presentation.
444 const string GetRotateX__doc__ = "Rotation around X-axis.\nGets rotation angle of the cut plane presentation.";
445 /*! Rotation around Y-axis.
446 Sets rotation angle of the cut plane presentation.
448 void SetRotateY(in double theAngle);
449 const string SetRotateY__doc__ = "Rotation around Y-axis.\nSets rotation angle of the cut plane presentation.";
450 /*! Rotation around Y-axis.
451 Sets rotation angle of the cut plane presentation.
454 const string GetRotateY__doc__ = "Rotation around Y-axis.\nGets rotation angle of the cut plane presentation.";
456 const string CutPlanes__doc__ = "The cut planes interface contains\nthe presentation parameters of cut planes presentation.";
457 //-------------------------------------------------------
458 /*! \brief Interface of the stream lines representation
459 This interface contains presentation parameters of
460 stream lines presentations.
462 interface StreamLines : DeformedShape{
463 enum Direction{ FORWARD,
468 const string StreamLines__doc__ = "";
471 /*! \brief Interface of the isometric surface representation
473 This interface contains presentation parameters of
474 isometric surface presentations.
476 interface IsoSurfaces : ScalarMap{
478 Sets the number of isometric surfaces.
480 void SetNbSurfaces(in long theNb);
481 const string SetNbSurfaces__doc__ = "Sets the number of isometric surfaces.";
483 Gets the number of isometric surfaces
485 long GetNbSurfaces();
486 const string GetNbSurfaces__doc__ = "Gets the number of isometric surfaces.";
488 const string IsoSurfaces__doc__ = "The isometric surface interface contains\nthe presentation parameters of the isometric surface presentations.";
489 //-------------------------------------------------------
490 /*! \brief Interface of the vector presentation.
492 This interface contains presentation parameters of the vector.
494 interface Vectors : DeformedShape{
496 Sets the width of the line of the vector.
498 void SetLineWidth(in double theWidth);
499 const string SetLineWidth__doc__ = "Sets the width of the line of the vector.";
501 Gets the width of the line of the vector.
503 double GetLineWidth();
504 const string GetLineWidth__doc__ = "Gets the width of the line of the vector.";
506 This enumeration contains a set of elements defining the type of representation of the vector head.
508 enum GlyphType{ ARROW,
514 Sets the type of representation of the vector head.
516 void SetGlyphType(in GlyphType theType);
517 const string SetGlyphType__doc__ = "Sets the type of representation of the vector head.";
519 Gets the type of representation of the vector head.
521 GlyphType GetGlyphType();
522 const string GetGlyphType__doc__ = "Gets the type of representation of the vector head.";
524 This enumeration contains a set of elements defining the position of the vector head.
527 enum GlyphPos{ CENTER, /*!<In the center of the vector.*/
528 TAIL, /*!<In the tail of the vector.*/
529 HEAD /*!<In the head of the vector.*/
532 Sets the position of the vector head.
534 void SetGlyphPos(in GlyphPos thePos);
535 const string SetGlyphPos__doc__ = "Sets the position of the vector head.";
537 Gets the position of the vector head.
539 GlyphPos GetGlyphPos();
540 const string GetGlyphPos__doc__ = "Gets the position of the vector head.";
542 const string Vectors__doc__ = "Interface of the vector presentation contains\nthe presentation parameters of the vector.";
543 //-------------------------------------------------------
544 /*! \brief Interface %Result
546 This interface serves for inner representation of data generated in other sources. (MED object or file)
547 This data is needed for further construction of graphical presentations.
549 interface Result : Base {
551 const string Result__doc__ = "This interface serves for inner representation\nof data generated in other sources. (MED object or file) This data is needed for further construction of graphical presentations.";
552 //-------------------------------------------------------
553 interface ViewManager;
554 /*! \brief %VISU_Gen interface
556 This is the main interface of %VISU component. It is necessary for creation of
557 post-processing presentations from given %Result and %Table object reference, using the views
558 provided by %ViewManager.
560 interface VISU_Gen : Engines::Component, SALOMEDS::Driver, Base{
561 void SetCurrentStudy(in SALOMEDS::Study theStudy);
562 SALOMEDS::Study GetCurrentStudy();
564 Gets the %ViewManager which is used for creation of
565 post-processing presentations.
567 ViewManager GetViewManager();
568 const string GetViewManager__doc__ = "Gets the ViewManager which is used for creation\nof post-processing presentations.";
571 Imports tables from a file and create TableAttribute in Sudy
573 SALOMEDS::SObject ImportTables(in string theFileName);
575 Imports data from a file.
577 Result ImportFile(in string theFileName);
578 const string ImportFile__doc__ = "Imports data from a file.";
580 Imports data from a %MED object field.
582 Result ImportMed(in SALOMEDS::SObject theMedSObject);
583 const string ImportMed__doc__ = "Imports data from a MED object field.";
586 Creates a %Mesh on the basis of the data generated in other sources (MED object or file).
588 const string CreateMesh__doc__ = "Creates a Mesh on the basis of the data\ngenerated in other sources (MED object or file).";
589 Mesh MeshOnEntity(in Result theResult, in string theMeshName, in Entity theEntity);
590 Mesh FamilyMeshOnEntity(in Result theResult, in string theMeshName, in Entity theEntity, in string theFamilyName);
591 Mesh GroupMesh(in Result theResult, in string theMeshName, in string theGroupName);
593 Creates a scalar bar presentation.
594 \param theResult Data generated in other sources. (MED object or file)
595 \param theMeshName One of the meshes presented in MED file
596 \param theEntity Type of entity where the field is defined
597 \param theFieldName Group of data attributed to the %MESH. The data can be scalar or vector.
598 \param theIteration Number of iteration on the field
600 ScalarMap ScalarMapOnField(in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in double theIteration);
601 const string CreateScalarMap__doc__ = "Creates a scalar bar presentation.";
603 Creates a deformed shape presentation.
604 \param theResult Data generated in other sources. (MED object or file)
605 \param theMeshName One of the meshes presented in MED file
606 \param theEntity Type of entity where the field is defined
607 \param theFieldName Group of data attributed to the %MESH. The data can be scalar or vector.
608 \param theIteration Number of iteration on the field
610 DeformedShape DeformedShapeOnField(in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in double theIteration);
611 const string CreateDeformedShape__doc__ = "Creates a deformed shape presentation.";
613 Creates a vector presentation.
614 \param theResult Data generated in other sources. (MED object or file)
615 \param theMeshName One of the meshes presented in MED file
616 \param theEntity Type of entity where the field is defined
617 \param theFieldName Group of data attributed to the %MESH. The data can be scalar or vector.
618 \param theIteration Number of iteration on the field
621 Vectors VectorsOnField(in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in double theIteration);
622 const string CreateVectors__doc__ = "Creates a vector presentation.";
624 Creates an iso surface presentation.
625 \param theResult Data generated in other sources. (MED object or file)
626 \param theMeshName One of the meshes presented in MED file
627 \param theEntity Type of entity where the field is defined
628 \param theFieldName Group of data attributed to the %MESH. The data can be scalar or vector.
629 \param theIteration Number of iteration on the field
632 IsoSurfaces IsoSurfacesOnField(in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in double theIteration);
633 const string CreateIsoSurfaces__doc__ = "Creates an iso surface presentation.";
635 Creates an stream lines presentation.
636 \param theResult Data generated in other sources. (MED object or file)
637 \param theMeshName One of the meshes presented in MED file
638 \param theEntity Type of entity where the field is defined
639 \param theFieldName Group of data attributed to the %MESH. The data can be scalar or vector.
640 \param theIteration Number of iteration on the field
642 StreamLines StreamLinesOnField(in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in double theIteration);
643 const string CreateStreamLines__doc__ = "Creates an stream lines presentation.";
646 Creates a presentation of cut planes.
647 \param theResult Data generated in other sources. (MED object or file)
648 \param theMeshName One of the meshes presented in MED file
649 \param theEntity Type of entity where the field is defined
650 \param theFieldName Group of data attributed to the %MESH. The data can be scalar or vector.
651 \param theIteration Number of iteration on the field
653 CutPlanes CutPlanesOnField(in Result theResult, in string theMeshName, in Entity theEntity, in string theFieldName, in double theIteration);
654 const string CreateCutPlanes__doc__ = "Creates a presentation of cut planes.";
656 Creates a table presentation.
658 Table CreateTable(in string theTableEntry);
659 const string CreateTable__doc__ = "Creates a table prasentation containing the data.";
661 Creates a curve on the basis of points, whose values are taken from the table.
662 \param theTable Table containing the data for construction of curves.
663 \param HRow Index of the row in the table: abscissa of the point.
664 \param VRow Index of the row in the table: ordinate of the point.
666 Curve CreateCurve(in Table theTable, in long theHRow, in long theVRow);
667 const string CreateCurve__doc__ = "Creates a curve on the basis of points, whose values\nare taken from the table.";
669 Creates a presentation form containing an array of references to the curves.
671 Container CreateContainer();
672 const string CreateContainer__doc__ = "Creates a presentation form containing an array\nof references to the curves.";
674 const string VISU_Gen__doc__ = "This is the main interface of the VISU component. It is\nnecessary for creation of post-processing presentations from given result and table object reference, using the views provided by the viewmanager.";
675 /*! \brief %View interface
677 Contains a set of methods used by the %View frame, which can be one of
678 the following types: 3d, Table, XY plot.
679 %View interface is a base for all types of %view interfaces.
681 interface View: Base{
683 Sets the title of the %View frame.
685 void SetTitle(in string theTitle);
686 const string SetTitle__doc__ = "Sets the title of the view frame.";
688 Gets the title of the %View frame.
691 const string GetTitle__doc__ = "Gets the title of the view frame.";
693 Sets background color of the %View frame.
695 void SetBackground(in SALOMEDS::Color theColor);
696 const string SetBackground__doc__ = "Sets background color of the view frame.";
698 Gets background color of the %View frame.
700 SALOMEDS::Color GetBackground();
701 const string GetBackground__doc__ = "Gets background color of the view frame.";
703 Minimizes to the task bar or to the bottom of the Desktop the %View frame.
706 const string Minimize__doc__ = "Minimizes to the task bar or to the bottom of the\nDesktop the view frame.";
708 Restores the %View frame.
711 const string Restore__doc__ = "Restores the view frame.";
713 Maximizes the %View frame.
716 const string Maximize__doc__ = "Maximizes the view frame.";
718 Removes all presentations (presentable objects) from the %view.
721 const string EraseAll__doc__ = "Removes all presentations (presentable objects) from the view.";
723 Displays all presentations (presentable objects) in the %view.
726 const string DisplayAll__doc__ = "Displays all presentations (presentable objects) in the view.";
728 Removes a definite presentation (presentable object) from the %view.
730 void Erase(in PrsObject thePrsObj);
731 const string Erase__doc__ = "Removes a definite presentation (presentable object) from the view.";
733 Displays a definite presentation (presentable object) in the %view.
735 void Display(in PrsObject thePrsObj);
736 const string Display__doc__ = "Displays a definite presentation (presentable object) in the view.";
738 Allows to display only a definite presentation (presentable object) in the %view.
739 All other presentations are removed from the %view.
741 void DisplayOnly(in PrsObject thePrsObj);
742 const string DisplayOnly__doc__ = "Allows to display only a definite presentation\n(presentable object) in the view. All other presentations are\nremoved from the view.";
747 const string Update__doc__ = "Updates the view.";
752 boolean SavePicture(in string theFileName);
753 const string SavePicture__doc__ = "Saves the view contents into image file.";
756 const string View__doc__ = "Contains a set of methods used by the view frame,\nwhich can be one of the following types:\n3d, table, XY plot.";
757 //-------------------------------------------------------
758 /*! \brief 3D view interface
760 This interface contains a set of methods necessary for representation of objects in 3D space.
763 interface View3D : View {
765 This enumeration contains a set of elements determining a predefined point of view
766 (position of the camera in 3D space relative to the presentable object).
768 enum ViewType{ FRONT, BACK, LEFT, RIGHT, TOP, BOTTOM};
770 This enumeration contains a set of elements determining the axis
772 enum Axis{ XAxis, YAxis, ZAxis};
774 Data type defining coordinates in 3D space.
776 typedef double XYZ[3];
779 Makes all presentations, which are currently present in the %view, completely visible.
783 const string FitAll__doc__ = "Makes all presentations, which are currently present in the\nview, completely visible.";
786 Sets a predefined point of view (FRONT, BACK, LEFT, RIGHT, TOP, BOTTOM). (In other words it means
787 a predefined position of the camera in 3D space with respect to the object which is represented.)
789 void SetView(in ViewType theType);
790 const string SetView__doc__ = "Sets a predefined point of view\n(FRONT, BACK, LEFT, RIGHT, TOP, BOTTOM).";
793 Sets the position of the camera in 3D space. This point is used as the first point of the vector defining
794 the view direction of the camera.
796 void SetPointOfView(in XYZ theCoord);
797 const string SetPointOfView__doc__ = "Sets the position of the camera in 3D space.";
799 Gets the position of the camera in 3D space.This point is used as the first point of the vector defining
800 the view direction of the camera.
802 XYZ GetPointOfView();
803 const string GetPointOfView__doc__ = "Gets the position of the camera in 3D space.";
805 Sets the vertical line of the camera in 3D space.
807 void SetViewUp(in XYZ theDir);
808 const string SetViewUp__doc__ = "Sets the vertical line of the camera in 3D space.";
810 Gets the vertical line of the camera in 3D space.
813 const string GetViewUp__doc__ = "Gets the vertical line of the camera in 3D space.";
815 Sets the point of sight of the camera. This point is used as the second point of the vector defining
816 the view direction of the camera.
818 void SetFocalPoint(in XYZ theDir);
819 const string SetFocalPoint__doc__ = "Sets the point of sight of the camera.";
821 Gets the point of sight of the camera. This point is used as the second point of the vector defining
822 the view direction of the camera.
825 const string GetFocalPoint__doc__ = "Gets the point of sight of the camera.";
827 Zooming of the presentable object. Sets the scale.
829 void SetParallelScale(in double theScale);
830 const string SetParallelScale__doc__ = "Zooming of the presentable object. Sets the scale.";
832 Zooming of the presentable object. Gets the scale.
834 double GetParallelScale();
835 const string GetParallelScale__doc__ = "Zooming of the presentable object. Gets the scale.";
837 Scaling of the view along a definite axis.
838 \param theAxis The axis of the scaling
839 \param theParam The coefficient of the scaling
841 void ScaleView(in Axis theAxis, in double theParam);
842 const string ScaleView__doc__ = "Scaling of the view along a definite axis and with a\ndefinite coefficient of the scaling.";
844 Removes the scaling of the view.
847 const string RemoveScale__doc__ = "Removes the scaling of the view.";
849 Returns True if the view parameters have been created, False if the parameters have been modified.
851 boolean SaveViewParams(in string theName);
852 const string SaveViewParams__doc__ = "Returns True if the view parameters have been created,\nFalse if the parameters have been modified.";
854 Returns True if the view parameters have been found and applied to the view,
855 False if the parameters with this name don't exist.
857 boolean RestoreViewParams(in string theName);
858 const string RestoreViewParams__doc__ = "Returns True if the view parameters have been found and\napplied to the view, False if the parameters with this name don't exist.";
860 const string View3D__doc__ = "This interface contains a set of methods necessary for representation\nof objects in 3D space.";
863 //-------------------------------------------------------
864 interface TableView : View {
869 //-------------------------------------------------------
870 interface XYPlot : View {
871 void SetSubTitle(in string theTitle);
872 string GetSubTitle();
874 enum CurveType { POINTS, MULTYLINE, SPLINE};
875 void SetCurveType(in CurveType theType);
876 CurveType GetCurveType();
878 void SetMarkerSize(in long theSize);
879 long GetMarkerSize();
881 void EnableXGrid(in boolean theMajor, in long theNumMajor, in boolean theMinor, in long theNumMinor);
882 void EnableYGrid(in boolean theMajor, in long theNumMajor, in boolean theMinor, in long theNumMinor);
884 void SetHorScaling(in Scaling theScaling);
885 Scaling GetHorScaling();
886 void SetVerScaling(in Scaling theScaling);
887 Scaling GetVerScaling();
889 void SetXTitle(in string theTitle);
892 void SetYTitle(in string theTitle);
895 void ShowLegend(in boolean theShowing);
900 //-------------------------------------------------------
901 /*! \brief Interface of the %ViewManager
903 The %ViewManager is necessary for work with view windows (creation and deletion).
906 interface ViewManager: Base{
907 /*! \brief Getting an active %View Frame
909 Returns an object reference to the active %View Frame.
910 Type of the %View must be checked.
911 \note <BR>Returns nil if there are no views currently opened.
914 View GetCurrentView();
915 const string GetCurrentView__doc__ = "Getting an active View Frame.\nReturns an object reference to the active view frame.";
916 /*! \brief Creation of a 3d %View.
918 Returns an object reference to the newly created 3d %View.
920 View3D Create3DView();
921 const string Create3DView__doc__ = "Creation of a 3d view.\nReturns an object reference to the newly created 3d view.";
923 TableView CreateTableView(in Table theTable);
925 const string CreateTableView__doc__ = "Creation of a table view.\nReturns an object reference to the newly created table view.";
926 XYPlot CreateXYPlot();
928 const string CreateXYPlot__doc__ = "Creation of a 2d view.\nReturns an object reference to the newly created XYPlot view.";
929 void Destroy(in View theView);
931 const string Destroy__doc__ = "Destroying of the view";
935 const string ViewManager__doc__ = "The ViewManager interface is necessary for work\nwith view windows (creation and deletion).";