23#ifndef __GEOM_GEN_I_H__
24#define __GEOM_GEN_I_H__
31#include <SALOMEconfig.h>
32#include CORBA_SERVER_HEADER(GEOM_Gen)
34#include CORBA_CLIENT_HEADER(SALOMEDS)
35#include CORBA_CLIENT_HEADER(SALOMEDS_Attributes)
38#include "SALOME_Component_i.hxx"
39#include "SALOME_NamingService.hxx"
58#include <TopTools_IndexedMapOfShape.hxx>
59#include <TopTools_SequenceOfShape.hxx>
76 GEOM::GEOM_Gen_ptr theEngine,
97 PortableServer::POA_ptr poa,
98 PortableServer::ObjectId * contId,
99 const char *instanceName,
100 const char *interfaceName,
101 bool withRegistry =
true);
107 CORBA::ORB_ptr
GetORB() {
return CORBA::ORB::_duplicate(_orb); }
116 SALOMEDS::TMPFile* Save(SALOMEDS::SComponent_ptr theComponent,
120 SALOMEDS::TMPFile* SaveASCII(SALOMEDS::SComponent_ptr theComponent,
124 CORBA::Boolean Load(SALOMEDS::SComponent_ptr theComponent,
125 const SALOMEDS::TMPFile& theStream,
129 CORBA::Boolean LoadASCII(SALOMEDS::SComponent_ptr theComponent,
130 const SALOMEDS::TMPFile& theStream,
134 void Close(SALOMEDS::SComponent_ptr theComponent);
135 char* ComponentDataType();
138 char* IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
139 const char* IORString,
140 CORBA::Boolean isMultiFile,
141 CORBA::Boolean isASCII);
142 char* LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject,
143 const char* aLocalPersistentID,
144 CORBA::Boolean isMultiFile,
145 CORBA::Boolean isASCII);
147 bool CanPublishInStudy(CORBA::Object_ptr theIOR);
148 SALOMEDS::SObject_ptr PublishInStudy(SALOMEDS::SObject_ptr theSObject,
149 CORBA::Object_ptr theObject,
150 const char* theName) ;
152 GEOM::ListOfGO* PublishNamedShapesInStudy(CORBA::Object_ptr theObject);
154 CORBA::Boolean CanCopy(SALOMEDS::SObject_ptr theObject);
155 SALOMEDS::TMPFile* CopyFrom(SALOMEDS::SObject_ptr theObject, CORBA::Long& theObjectID);
156 CORBA::Boolean CanPaste(
const char* theComponentName, CORBA::Long theObjectID);
157 SALOMEDS::SObject_ptr PasteInto(
const SALOMEDS::TMPFile& theStream,
158 CORBA::Long theObjectID,
159 SALOMEDS::SObject_ptr theObject);
164 SALOMEDS::SObject_ptr AddInStudy (GEOM::GEOM_BaseObject_ptr theObject,
166 GEOM::GEOM_BaseObject_ptr theFather);
171 GEOM::ListOfGO* RestoreSubShapesO (GEOM::GEOM_Object_ptr theObject,
174 CORBA::Boolean theInheritFirstArg,
175 CORBA::Boolean theAddPrefix);
180 GEOM::ListOfGO* RestoreGivenSubShapesO (GEOM::GEOM_Object_ptr theObject,
183 CORBA::Boolean theInheritFirstArg,
184 CORBA::Boolean theAddPrefix);
189 GEOM::ListOfGO* RestoreSubShapesSO (SALOMEDS::SObject_ptr theSObject,
192 CORBA::Boolean theInheritFirstArg,
193 CORBA::Boolean theAddPrefix);
213 virtual GEOM::GEOM_IBasicOperations_ptr GetIBasicOperations();
216 virtual GEOM::GEOM_ITransformOperations_ptr GetITransformOperations();
219 virtual GEOM::GEOM_I3DPrimOperations_ptr GetI3DPrimOperations();
222 virtual GEOM::GEOM_IShapesOperations_ptr GetIShapesOperations();
225 virtual GEOM::GEOM_IBlocksOperations_ptr GetIBlocksOperations();
228 virtual GEOM::GEOM_IBooleanOperations_ptr GetIBooleanOperations()
232 virtual GEOM::GEOM_ICurvesOperations_ptr GetICurvesOperations()
236 virtual GEOM::GEOM_ILocalOperations_ptr GetILocalOperations()
240 virtual GEOM::GEOM_IHealingOperations_ptr GetIHealingOperations()
244 virtual GEOM::GEOM_IInsertOperations_ptr GetIInsertOperations()
248 virtual GEOM::GEOM_IMeasureOperations_ptr GetIMeasureOperations()
252 virtual GEOM::GEOM_IGroupOperations_ptr GetIGroupOperations()
256 virtual GEOM::GEOM_IFieldOperations_ptr GetIFieldOperations()
260 virtual GEOM::GEOM_ITestOperations_ptr GetITestOperations()
263 virtual GEOM::GEOM_ICanonicalRecognition_ptr GetICanonicalRecognition();
266 virtual GEOM::GEOM_IOperations_ptr GetPluginOperations (
const char* theLibName)
270 virtual GEOM::GEOM_Object_ptr AddSubShape (GEOM::GEOM_Object_ptr theMainShape,
273 virtual void RemoveObject(GEOM::GEOM_BaseObject_ptr theObject);
275 virtual char* GetStringFromIOR(GEOM::GEOM_Object_ptr theObject);
277 virtual GEOM::GEOM_Object_ptr GetIORFromString(
const char* stringIOR);
279 virtual Engines::TMPFile* DumpPython(CORBA::Boolean isPublished,
280 CORBA::Boolean isMultiFile,
281 CORBA::Boolean& isValidScript);
283 char* GetDumpName (
const char* theStudyEntry);
288 virtual bool hasObjectInfo();
289 virtual char* getObjectInfo(
const char* entry);
292 virtual char* getVersion();
295 SALOMEDS::SObject_ptr CreateFolder(
const char* theName,
296 SALOMEDS::SObject_ptr theFather);
299 void MoveToFolder(GEOM::GEOM_Object_ptr theObject,
300 SALOMEDS::SObject_ptr theFolder);
304 SALOMEDS::SObject_ptr theFolder);
308 SALOMEDS::SObject_ptr where,
323 virtual GEOM::GEOM_BaseObject_ptr GetObject(
const char* theEntry);
326 SALOMEDS::SComponent_var findOrCreateComponent();
328 GEOM::ListOfGO* RestoreSubShapes (GEOM::GEOM_Object_ptr theObject,
329 SALOMEDS::SObject_ptr theSObject,
332 CORBA::Boolean theInheritFirstArg,
333 CORBA::Boolean theAddPrefix);
335 GEOM::ListOfGO* RestoreSubShapesOneLevel (SALOMEDS::SObject_ptr theOldSO,
336 SALOMEDS::SObject_ptr theNewSO,
337 GEOM::GEOM_Object_ptr theNewO,
340 CORBA::Boolean theAddPrefix);
342 GEOM::ListOfGO* RestoreGivenSubShapes (GEOM::GEOM_Object_ptr theObject,
343 SALOMEDS::SObject_ptr theSObject,
346 CORBA::Boolean theInheritFirstArg,
347 CORBA::Boolean theAddPrefix);
349 GEOM::ListOfGO* RestoreGivenSubShapesOneLevel (SALOMEDS::SObject_ptr theOldSO,
350 SALOMEDS::SObject_ptr theNewSO,
351 GEOM::GEOM_Object_ptr theNewO,
352 std::set<std::string> theArgs,
354 CORBA::Boolean theAddPrefix);
357 void CreateAndPublishGroup(GEOM::GEOM_Object_var theMainShape,
358 const TopTools_IndexedMapOfShape& anIndices,
359 const TopTools_SequenceOfShape& SeqS,
360 const TColStd_SequenceOfAsciiString& SeqN,
361 const Standard_CString& GrName,
362 GEOM::ListOfGO_var aResList);
364 void getUpwardDependency( GEOM::GEOM_BaseObject_ptr gbo,
366 std::map< std::string, std::set<std::string> > &passedEntries,
369 void getDownwardDependency( GEOM::GEOM_BaseObject_ptr gbo,
371 std::map< std::string, std::set<std::string> > &passedEntries,
374 void includeParentDependencies(GEOM::GEOM_BaseObject_ptr gbo,
375 std::set<std::string>& aSelected,
376 std::set<std::string>& aParents,
377 std::set<std::string>& aChildren,
378 std::set<std::string>& anOthers);
380 void includeSubObjects(
const std::string& aSelectedEntry,
381 std::set<std::string>& aSelected,
382 std::set<std::string>& aParents,
383 std::set<std::string>& aChildren,
384 std::set<std::string>& anOthers);
386 void LoadPlugin(
const std::string& theLibName);
static const TopTools_IndexedMapOfShape & theIndices
Definition: GEOMImpl_ShapeDriver.cxx:127
#define GEOM_I_EXPORT
Definition: GEOM_GEOM_I.hxx:33
Definition: GEOMImpl_Gen.hxx:48
Definition: GEOM_Gen_i.hh:87
CORBA::ORB_ptr GetORB()
Definition: GEOM_Gen_i.hh:107
virtual void BreakLink(const char *)
Definition: GEOM_Gen_i.hh:389
char * _name
Definition: GEOM_Gen_i.hh:394
virtual SALOMEDS::Study_var getStudyServant()=0
::GEOMImpl_Gen * _impl
Definition: GEOM_Gen_i.hh:393
std::map< std::string, GEOM_GenericOperationsCreator * > myOpCreatorMap
Definition: GEOM_Gen_i.hh:397
Definition: GEOM_Gen_i.hh:72
virtual ~GEOM_GenericOperationsCreator()
Definition: GEOM_Gen_i.hh:80
virtual GEOM_IOperations_i * Create(PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine, ::GEOMImpl_Gen *theGenImpl)=0
Definition: GEOM_IOperations_i.hh:37
std::vector< LevelInfo > LevelsList
Definition: GEOMUtils.hxx:70
find_shape_method
Kind of method to find inside one main shape some sub-shapes, corresponding to other given shape (its...
Definition: GEOM_Gen.idl:122
sequence< SALOMEDS::SObject > object_list
Definition: GEOM_Gen.idl:293
sequence< GEOM_Object > ListOfGO
Definition: GEOM_Gen.idl:290
sequence< long > ListOfLong
Definition: GEOM_Gen.idl:279
sequence< string > string_array
Definition: GEOM_Gen.idl:276