1 // Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 #ifndef __SHAPERSTUDY_GEN__
24 #define __SHAPERSTUDY_GEN__
26 #include "GEOM_Gen.idl"
27 #include "SALOMEDS.idl"
28 #include "SALOME_Exception.idl"
30 module SHAPERSTUDY_ORB
33 interface SHAPER_Object : GEOM::GEOM_Object
36 * \brief Puts the shape to the object by BRep stream.
38 void SetShapeByStream(in string theStream);
40 * \brief Sets the internal entry of the object, common for all objects in SHAPER-STUDY
42 void SetEntry( in string theInternalEntry );
44 * \brief Sets SObject of this object (when it is published)
46 void SetSO( in SALOMEDS::SObject theInternalEntry );
48 * \brief Returns SObject of this object
50 SALOMEDS::SObject GetSO();
52 * \brief Returns true if shape is already dead
56 * \brief Makes the dead-copy of the shape and returns it
58 SHAPER_Object MakeDead();
60 * \brief Returns the stream of the previous version of the shape stored here
62 SALOMEDS::TMPFile GetOldShapeStream();
64 * \brief Sets internal type of operation created this object. For group it is 37, shape 1.
66 void SetType( in long theType );
69 * \brief Sets the shape by the pointer to the TopoDS_Shape
71 void SetShapeByPointer(in long long theShape);
75 * A group extension of the SHAPER object:
76 * it contains the selection-type and selected sub-shapes indices.
78 interface SHAPER_Group : SHAPER_Object
81 * \brief Sets what is returned in the GEOM_IGroupOperations::GetType
83 void SetSelectionType(in long theType);
85 * \brief Returns the type of the selected sub-shapes
87 long GetSelectionType();
89 * \brief Sets what is returned in the GEOM_IGroupOperations::GetObjects
91 void SetSelection(in GEOM::ListOfLong theSelection);
93 * \brief Returns the selected sub-shapes indices
95 GEOM::ListOfLong GetSelection();
98 interface Gen : GEOM::GEOM_Gen
101 * \brief Searches existing or creates a new SHAPERSTUDY_Object to interact with SHAPER
103 SHAPER_Object FindOrCreateShape(in string theInternalEntry);
106 interface IShapesOperations : GEOM::GEOM_IShapesOperations
110 interface IGroupOperations : GEOM::GEOM_IGroupOperations
113 * \brief Searches existing group of theOwner shape by the entry. Returns NULL if can not find.
115 SHAPER_Group FindGroup(in SHAPER_Object theOwner, in string theEntry);
118 interface SHAPER_Field : SHAPER_Group
121 * \brief Sets the type of values in the field
123 void SetValuesType(in short theType);
126 * \brief Sets the list of time step IDs in the field
128 void SetSteps(in GEOM::ListOfLong theSteps);
131 * \brief Sets the names of components
133 void SetComponents( in GEOM::string_array theComponents );
137 interface IFieldOperations : GEOM::GEOM_IFieldOperations
140 * \brief Searches existing field of theOwner shape by the entry. Returns NULL if can not find.
142 SHAPER_Field FindField(in SHAPER_Object theOwner, in string theEntry);
144 * \brief Creates a field of theMainShape.
146 SHAPER_Field CreateFieldByType(
147 in GEOM::GEOM_Object theMainShape, in long theShapeType);
150 interface IMeasureOperations : GEOM::GEOM_IMeasureOperations
154 interface SHAPER_FieldStep : GEOM::GEOM_FieldStep
158 interface SHAPER_DoubleFieldStep : GEOM::GEOM_DoubleFieldStep
162 interface SHAPER_IntFieldStep : GEOM::GEOM_IntFieldStep
166 interface SHAPER_BoolFieldStep : GEOM::GEOM_BoolFieldStep