1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #include "GEOM_Superv_i.hh"
22 #include "SALOME_LifeCycleCORBA.hxx"
24 #include CORBA_SERVER_HEADER(SALOME_Session)
25 #include "SALOMEDSClient_ClientFactory.hxx"
27 #define isNewStudy(a,b) (a > 0 && a != b)
30 //=============================================================================
32 //=============================================================================
33 GEOM_Superv_i::GEOM_Superv_i(CORBA::ORB_ptr orb,
34 PortableServer::POA_ptr poa,
35 PortableServer::ObjectId * contId,
36 const char *instanceName,
37 const char *interfaceName) :
38 Engines_Component_i(orb, poa, contId, instanceName, interfaceName)
40 MESSAGE("GEOM_Superv_i::GEOM_Superv_i");
43 _id = _poa->activate_object(_thisObj);
44 name_service = new SALOME_NamingService(_orb);
45 //get RootPOA (the default)
46 //myPOA = PortableServer::RefCountServantBase::_default_POA();
47 CORBA::Object_var anObj = _orb->resolve_initial_references("RootPOA");
48 myPOA = PortableServer::POA::_narrow(anObj);
55 myBasicOp = GEOM::GEOM_IBasicOperations::_nil();
56 my3DPrimOp = GEOM::GEOM_I3DPrimOperations::_nil();
57 myBoolOp = GEOM::GEOM_IBooleanOperations::_nil();
58 myInsOp = GEOM::GEOM_IInsertOperations::_nil();
59 myTransfOp = GEOM::GEOM_ITransformOperations::_nil();
60 myShapesOp = GEOM::GEOM_IShapesOperations::_nil();
61 myBlocksOp = GEOM::GEOM_IBlocksOperations::_nil();
62 myCurvesOp = GEOM::GEOM_ICurvesOperations::_nil();
63 myLocalOp = GEOM::GEOM_ILocalOperations::_nil();
64 myGroupOp = GEOM::GEOM_IGroupOperations::_nil();
67 //=============================================================================
69 //=============================================================================
70 GEOM_Superv_i::~GEOM_Superv_i()
72 MESSAGE("GEOM_Superv_i::~GEOM_Superv_i");
76 //============================================================================
77 // function : register()
78 // purpose : register 'name' in 'name_service'
79 //============================================================================
80 void GEOM_Superv_i::register_name(char * name)
82 GEOM::GEOM_Superv_ptr g = GEOM::GEOM_Superv::_narrow(POA_GEOM::GEOM_Superv::_this());
83 name_service->Register(g, strdup(name));
86 //=============================================================================
88 //=============================================================================
89 void GEOM_Superv_i::setGeomEngine()
91 // get GEOM_Gen engine
92 SALOME_LifeCycleCORBA* lcc = new SALOME_LifeCycleCORBA( name_service );
93 Engines::Component_var comp = lcc->FindOrLoad_Component( "FactoryServer", "GEOM" );
95 myGeomEngine = GEOM::GEOM_Gen::_narrow(comp);
98 //=============================================================================
100 //=============================================================================
101 void GEOM_Superv_i::SetStudyID( CORBA::Long theId )
103 // mkr : PAL10770 -->
104 myLastStudyID = myStudyID;
106 CORBA::Object_ptr anObject = name_service->Resolve("/Kernel/Session");
107 if ( !CORBA::is_nil(anObject) ) {
108 SALOME::Session_var aSession = SALOME::Session::_narrow(anObject);
109 if ( !CORBA::is_nil(aSession) ) {
110 int aStudyID = aSession->GetActiveStudyId();
111 if ( theId != aStudyID && aStudyID > 0) { // mkr : IPAL12128
112 MESSAGE("Warning : given study ID theId="<<theId<<" is wrong and will be replaced by the value "<<aStudyID);
113 myStudyID = aStudyID;
116 myStudyID = theId; // mkr : IPAL12128
120 if ( isNewStudy(myLastStudyID,myStudyID) ) {
121 if (CORBA::is_nil(myGeomEngine)) setGeomEngine();
122 string anEngine = _orb->object_to_string( myGeomEngine );
124 CORBA::Object_var anObj = name_service->Resolve("/myStudyManager");
125 if ( !CORBA::is_nil(anObj) ) {
126 SALOMEDS::StudyManager_var aStudyManager = SALOMEDS::StudyManager::_narrow(anObj);
127 if ( !CORBA::is_nil(aStudyManager) ) {
128 _PTR(Study) aDSStudy = ClientFactory::Study(aStudyManager->GetStudyByID(myStudyID));
130 _PTR(SComponent) aSCO = aDSStudy->FindComponent(myGeomEngine->ComponentDataType());
132 _PTR(StudyBuilder) aBuilder = aDSStudy->NewBuilder();
133 if ( aBuilder ) aBuilder->LoadWith( aSCO, anEngine );
139 // mkr : PAL10770 <--
142 //=============================================================================
144 //=============================================================================
145 GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfGO()
147 MESSAGE("GEOM_Superv_i::CreateListOfGO()");
148 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>();
149 return aListPtr->_this();
152 //=============================================================================
153 // AddItemToListOfGO:
154 //=============================================================================
155 void GEOM_Superv_i::AddItemToListOfGO(GEOM::GEOM_List_ptr& theList,
156 GEOM::GEOM_Object_ptr theObject)
158 MESSAGE("GEOM_Superv_i::AddItemToListOfGO(...)");
159 if (GEOM_List_i<GEOM::ListOfGO>* aList =
160 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theList, myPOA).in())) {
161 aList->AddObject(theObject);
162 MESSAGE(" NewLength = "<<aList->GetList().length());
166 //=============================================================================
168 //=============================================================================
169 GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfLong()
171 MESSAGE("GEOM_Superv_i::CreateListOfLong()");
172 GEOM_List_i<GEOM::ListOfLong>* aListPtr = new GEOM_List_i<GEOM::ListOfLong>();
173 return aListPtr->_this();
176 //=============================================================================
177 // AddItemToListOfLong:
178 //=============================================================================
179 void GEOM_Superv_i::AddItemToListOfLong(GEOM::GEOM_List_ptr& theList,
180 CORBA::Long theObject)
182 MESSAGE("GEOM_Superv_i::AddItemToListOfLong(...)");
183 if (GEOM_List_i<GEOM::ListOfLong>* aList =
184 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theList, myPOA).in())) {
185 aList->AddObject(theObject);
186 MESSAGE(" NewLength = "<<aList->GetList().length());
190 //=============================================================================
191 // CreateListOfDouble:
192 //=============================================================================
193 GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfDouble()
195 MESSAGE("GEOM_Superv_i::CreateListOfDouble()");
196 GEOM_List_i<GEOM::ListOfDouble>* aListPtr = new GEOM_List_i<GEOM::ListOfDouble>();
197 return aListPtr->_this();
200 //=============================================================================
201 // AddItemToListOfDouble:
202 //=============================================================================
203 void GEOM_Superv_i::AddItemToListOfDouble(GEOM::GEOM_List_ptr& theList,
204 CORBA::Double theObject)
206 MESSAGE("GEOM_Superv_i::AddItemToListOfDouble(...)");
207 if (GEOM_List_i<GEOM::ListOfDouble>* aList =
208 dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theList, myPOA).in())) {
209 aList->AddObject(theObject);
210 MESSAGE(" NewLength = "<<aList->GetList().length());
214 //=============================================================================
216 //=============================================================================
217 void GEOM_Superv_i::getBasicOp()
219 if (CORBA::is_nil(myGeomEngine))
221 // get GEOM_IBasicOperations interface
222 if (CORBA::is_nil(myBasicOp) || isNewStudy(myLastStudyID,myStudyID))
223 myBasicOp = myGeomEngine->GetIBasicOperations(myStudyID);
226 //=============================================================================
228 //=============================================================================
229 void GEOM_Superv_i::get3DPrimOp()
231 if (CORBA::is_nil(myGeomEngine))
233 // get GEOM_I3DPrimOperations interface
234 if (CORBA::is_nil(my3DPrimOp) || isNewStudy(myLastStudyID,myStudyID))
235 my3DPrimOp = myGeomEngine->GetI3DPrimOperations(myStudyID);
238 //=============================================================================
240 //=============================================================================
241 void GEOM_Superv_i::getBoolOp()
243 if (CORBA::is_nil(myGeomEngine))
245 // get GEOM_IBooleanOperations interface
246 if (CORBA::is_nil(myBoolOp) || isNewStudy(myLastStudyID,myStudyID))
247 myBoolOp = myGeomEngine->GetIBooleanOperations(myStudyID);
250 //=============================================================================
252 //=============================================================================
253 void GEOM_Superv_i::getInsOp()
255 if (CORBA::is_nil(myGeomEngine))
257 // get GEOM_IInsertOperations interface
258 if (CORBA::is_nil(myInsOp) || isNewStudy(myLastStudyID,myStudyID))
259 myInsOp = myGeomEngine->GetIInsertOperations(myStudyID);
262 //=============================================================================
264 //=============================================================================
265 void GEOM_Superv_i::getTransfOp()
267 if (CORBA::is_nil(myGeomEngine))
269 // get GEOM_ITransformOperations interface
270 if (CORBA::is_nil(myTransfOp) || isNewStudy(myLastStudyID,myStudyID))
271 myTransfOp = myGeomEngine->GetITransformOperations(myStudyID);
274 //=============================================================================
276 //=============================================================================
277 void GEOM_Superv_i::getShapesOp()
279 if (CORBA::is_nil(myGeomEngine))
281 // get GEOM_IShapesOperations interface
282 if (CORBA::is_nil(myShapesOp) || isNewStudy(myLastStudyID,myStudyID))
283 myShapesOp = myGeomEngine->GetIShapesOperations(myStudyID);
286 //=============================================================================
288 //=============================================================================
289 void GEOM_Superv_i::getBlocksOp()
291 if (CORBA::is_nil(myGeomEngine))
293 // get GEOM_IBlocksOperations interface
294 if (CORBA::is_nil(myBlocksOp) || isNewStudy(myLastStudyID,myStudyID))
295 myBlocksOp = myGeomEngine->GetIBlocksOperations(myStudyID);
298 //=============================================================================
300 //=============================================================================
301 void GEOM_Superv_i::getCurvesOp()
303 if (CORBA::is_nil(myGeomEngine))
305 // get GEOM_ICurvesOperations interface
306 if (CORBA::is_nil(myCurvesOp) || isNewStudy(myLastStudyID,myStudyID))
307 myCurvesOp = myGeomEngine->GetICurvesOperations(myStudyID);
310 //=============================================================================
312 //=============================================================================
313 void GEOM_Superv_i::getLocalOp()
315 if (CORBA::is_nil(myGeomEngine))
317 // get GEOM_ILocalOperations interface
318 if (CORBA::is_nil(myLocalOp) || isNewStudy(myLastStudyID,myStudyID))
319 myLocalOp = myGeomEngine->GetILocalOperations(myStudyID);
322 //=============================================================================
324 //=============================================================================
325 void GEOM_Superv_i::getGroupOp()
327 if (CORBA::is_nil(myGeomEngine))
329 // get GEOM_IGroupOperations interface
330 if (CORBA::is_nil(myGroupOp) || isNewStudy(myLastStudyID,myStudyID))
331 myGroupOp = myGeomEngine->GetIGroupOperations(myStudyID);
334 //=============================================================================
336 //=============================================================================
337 PortableServer::ServantBase_var GEOM_Superv_i::GetServant(CORBA::Object_ptr theObject,
338 PortableServer::POA_ptr thePOA)
340 if(CORBA::is_nil(theObject)) return NULL;
341 PortableServer::Servant aServant = thePOA->reference_to_servant(theObject);
345 //============================================================================
347 // purpose : save OCAF/Geom document
348 //============================================================================
349 SALOMEDS::TMPFile* GEOM_Superv_i::Save(SALOMEDS::SComponent_ptr theComponent,
351 CORBA::Boolean isMultiFile)
353 SALOMEDS::TMPFile_var aStreamFile;
354 return aStreamFile._retn();
357 //============================================================================
358 // function : SaveASCII()
360 //============================================================================
361 SALOMEDS::TMPFile* GEOM_Superv_i::SaveASCII(SALOMEDS::SComponent_ptr theComponent,
363 CORBA::Boolean isMultiFile)
365 SALOMEDS::TMPFile_var aStreamFile;
366 return aStreamFile._retn();
369 //============================================================================
372 //============================================================================
373 CORBA::Boolean GEOM_Superv_i::Load(SALOMEDS::SComponent_ptr theComponent,
374 const SALOMEDS::TMPFile& theStream,
376 CORBA::Boolean isMultiFile)
381 //============================================================================
382 // function : LoadASCII()
384 //============================================================================
385 CORBA::Boolean GEOM_Superv_i::LoadASCII(SALOMEDS::SComponent_ptr theComponent,
386 const SALOMEDS::TMPFile& theStream,
388 CORBA::Boolean isMultiFile)
393 //============================================================================
394 // function : Close()
396 //============================================================================
397 void GEOM_Superv_i::Close(SALOMEDS::SComponent_ptr theComponent)
401 //============================================================================
402 // function : ComponentDataType()
404 //============================================================================
405 char* GEOM_Superv_i::ComponentDataType()
410 //============================================================================
411 // function : IORToLocalPersistentID()
413 //============================================================================
414 char* GEOM_Superv_i::IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
415 const char* IORString,
416 CORBA::Boolean isMultiFile,
417 CORBA::Boolean isASCII)
422 //============================================================================
423 // function : LocalPersistentIDToIOR()
424 // purpose : Create/Load CORBA object from a persistent ref (an entry)
425 // : Used when a study is loaded
426 // : The IOR (IORName) of object created is returned
427 //============================================================================
428 char* GEOM_Superv_i::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject,
429 const char* aLocalPersistentID,
430 CORBA::Boolean isMultiFile,
431 CORBA::Boolean isASCII)
436 //============================================================================
437 // function : CanPublishInStudy
439 //============================================================================
440 CORBA::Boolean GEOM_Superv_i::CanPublishInStudy(CORBA::Object_ptr theIOR)
442 if (CORBA::is_nil(myGeomEngine))
444 return myGeomEngine->CanPublishInStudy(theIOR);
447 //============================================================================
448 // function : PublishInStudy
450 //============================================================================
451 SALOMEDS::SObject_ptr GEOM_Superv_i::PublishInStudy(SALOMEDS::Study_ptr theStudy,
452 SALOMEDS::SObject_ptr theSObject,
453 CORBA::Object_ptr theObject,
454 const char* theName) throw (SALOME::SALOME_Exception)
456 if (CORBA::is_nil(myGeomEngine))
458 return myGeomEngine->PublishInStudy(theStudy, theSObject, theObject, theName);
461 //============================================================================
462 // function : CanCopy()
464 //============================================================================
465 CORBA::Boolean GEOM_Superv_i::CanCopy(SALOMEDS::SObject_ptr theObject)
470 //============================================================================
471 // function : CopyFrom()
473 //============================================================================
474 SALOMEDS::TMPFile* GEOM_Superv_i::CopyFrom(SALOMEDS::SObject_ptr theObject, CORBA::Long& theObjectID)
476 SALOMEDS::TMPFile_var aStreamFile;
477 return aStreamFile._retn();
480 //============================================================================
481 // function : CanPaste()
483 //============================================================================
484 CORBA::Boolean GEOM_Superv_i::CanPaste(const char* theComponentName, CORBA::Long theObjectID)
489 //============================================================================
490 // function : PasteInto()
492 //============================================================================
493 SALOMEDS::SObject_ptr GEOM_Superv_i::PasteInto(const SALOMEDS::TMPFile& theStream,
494 CORBA::Long theObjectID,
495 SALOMEDS::SObject_ptr theObject)
497 SALOMEDS::SObject_var aNewSO;
498 return aNewSO._retn();
501 //================= Primitives Construction : BasicOperations =================
502 //=============================================================================
504 //=============================================================================
505 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointXYZ(CORBA::Double theX,
509 beginService( " GEOM_Superv_i::MakePointXYZ" );
510 MESSAGE("GEOM_Superv_i::MakePointXYZ");
512 // make vertex and return
513 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointXYZ(theX, theY, theZ);
514 endService( " GEOM_Superv_i::MakePointXYZ" );
518 //=============================================================================
519 // MakePointWithReference:
520 //=============================================================================
521 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointWithReference (GEOM::GEOM_Object_ptr theReference,
526 beginService( " GEOM_Superv_i::MakePointWithReference" );
527 MESSAGE("GEOM_Superv_i::MakePointWithReference");
529 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointWithReference(theReference, theX, theY, theZ);
530 endService( " GEOM_Superv_i::MakePointWithReference" );
534 //=============================================================================
536 //=============================================================================
537 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
538 CORBA::Double theParameter)
540 beginService( " GEOM_Superv_i::MakePointOnCurve" );
541 MESSAGE("GEOM_Superv_i::MakePointOnCurve");
543 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointOnCurve(theRefCurve, theParameter);
544 endService( " GEOM_Superv_i::MakePointOnCurve" );
548 //=============================================================================
549 // MakeTangentOnCurve:
550 //=============================================================================
551 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTangentOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
552 CORBA::Double theParameter)
554 beginService( " GEOM_Superv_i::MakeTangentOnCurve" );
555 MESSAGE("GEOM_Superv_i::MakeTangentOnCurve");
557 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeTangentOnCurve(theRefCurve, theParameter);
558 endService( " GEOM_Superv_i::MakeTangentOnCurve" );
562 //=============================================================================
564 //=============================================================================
565 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeVectorDXDYDZ (CORBA::Double theDX,
569 beginService( " GEOM_Superv_i::MakeVectorDXDYDZ" );
570 MESSAGE("GEOM_Superv_i::MakeVectorDXDYDZ");
572 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeVectorDXDYDZ(theDX, theDY, theDZ);
573 endService( " GEOM_Superv_i::MakeVectorDXDYDZ" );
577 //=============================================================================
579 //=============================================================================
580 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeVectorTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
581 GEOM::GEOM_Object_ptr thePnt2)
583 beginService( " GEOM_Superv_i::MakeVectorTwoPnt" );
584 MESSAGE("GEOM_Superv_i::MakeVector");
586 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeVectorTwoPnt(thePnt1, thePnt2);
587 endService( " GEOM_Superv_i::MakeVectorTwoPnt" );
591 //=============================================================================
593 //=============================================================================
594 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeLineTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
595 GEOM::GEOM_Object_ptr thePnt2)
597 beginService( " GEOM_Superv_i::MakeLineTwoPnt");
598 MESSAGE("GEOM_Superv_i::MakeLineTwoPnt");
600 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeLineTwoPnt(thePnt1, thePnt2);
601 endService( " GEOM_Superv_i::MakeLineTwoPnt");
605 //=============================================================================
606 // MakePlaneThreePnt:
607 //=============================================================================
608 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneThreePnt (GEOM::GEOM_Object_ptr thePnt1,
609 GEOM::GEOM_Object_ptr thePnt2,
610 GEOM::GEOM_Object_ptr thePnt3,
611 CORBA::Double theTrimSize)
613 beginService( " GEOM_Superv_i::MakePlaneThreePnt");
614 MESSAGE("GEOM_Superv_i::MakePlaneThreePnt");
616 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlaneThreePnt(thePnt1, thePnt2, thePnt3, theTrimSize);
617 endService( " GEOM_Superv_i::MakePlaneThreePnt");
621 //=============================================================================
623 //=============================================================================
624 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlanePntVec (GEOM::GEOM_Object_ptr thePnt,
625 GEOM::GEOM_Object_ptr theVec,
626 CORBA::Double theTrimSize)
628 beginService( " GEOM_Superv_i::MakePlanePntVec" );
629 MESSAGE("GEOM_Superv_i::MakePlanePntVec");
631 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlanePntVec(thePnt, theVec, theTrimSize);
632 endService( " GEOM_Superv_i::MakePlanePntVec" );
636 //=============================================================================
638 //=============================================================================
639 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneFace (GEOM::GEOM_Object_ptr theFace,
640 CORBA::Double theTrimSize)
642 beginService( " GEOM_Superv_i::MakePlaneFace" );
643 MESSAGE("GEOM_Superv_i::MakePlaneFace");
645 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlaneFace(theFace, theTrimSize);
646 endService( " GEOM_Superv_i::MakePlaneFace" );
650 //=============================================================================
652 //=============================================================================
653 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarker
654 (CORBA::Double theOX , CORBA::Double theOY , CORBA::Double theOZ,
655 CORBA::Double theXDX, CORBA::Double theXDY, CORBA::Double theXDZ,
656 CORBA::Double theYDX, CORBA::Double theYDY, CORBA::Double theYDZ)
658 beginService( " GEOM_Superv_i::MakeMarker" );
659 MESSAGE("GEOM_Superv_i::MakeMarker");
661 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeMarker(theOX, theOY, theOZ, theXDX, theXDY, theXDZ, theYDX, theYDY, theYDZ);
662 endService( " GEOM_Superv_i::MakeMarker" );
666 //=============================================================================
667 // MakeTangentPlaneOnFace:
668 //=============================================================================
669 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTangentPlaneOnFace (GEOM::GEOM_Object_ptr theFace,
670 CORBA::Double theParameterU,
671 CORBA::Double theParameterV,
672 CORBA::Double theTrimSize)
674 beginService( " GEOM_Superv_i::MakeTangentPlaneOnFace" );
675 MESSAGE("GEOM_Superv_i::MakeTangentPlaneOnFace");
677 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeTangentPlaneOnFace(theFace, theParameterU,theParameterV,theTrimSize);
678 endService( " GEOM_Superv_i::MakeTangentPlaneOnFace" );
682 //================= Primitives Construction : 3DPrimOperations ================
683 //=============================================================================
685 //=============================================================================
686 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBox (CORBA::Double theX1,
693 beginService( " GEOM_Superv_i::MakeBox" );
694 MESSAGE("GEOM_Superv_i::MakeBox");
697 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxTwoPnt(myBasicOp->MakePointXYZ(theX1, theY1, theZ1),
698 myBasicOp->MakePointXYZ(theX2, theY2, theZ2));
699 endService( " GEOM_Superv_i::MakeBox" );
703 //=============================================================================
705 //=============================================================================
706 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxDXDYDZ (CORBA::Double theDX,
710 beginService( " GEOM_Superv_i::MakeBoxDXDYDZ" );
711 MESSAGE("GEOM_Superv_i::MakeBoxDXDYDZ");
713 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxDXDYDZ(theDX, theDY, theDZ);
714 endService( " GEOM_Superv_i::MakeBoxDXDYDZ" );
718 //=============================================================================
720 //=============================================================================
721 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
722 GEOM::GEOM_Object_ptr thePnt2)
724 beginService( " GEOM_Superv_i::MakeBoxTwoPnt" );
725 MESSAGE("GEOM_Superv_i::MakeBoxTwoPnt");
727 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxTwoPnt(thePnt1, thePnt2);
728 endService( " GEOM_Superv_i::MakeBoxTwoPnt" );
732 //=============================================================================
733 // MakeCylinderPntVecRH:
734 //=============================================================================
735 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
736 GEOM::GEOM_Object_ptr theAxis,
737 CORBA::Double theRadius,
738 CORBA::Double theHeight)
740 beginService( " GEOM_Superv_i::MakeCylinderPntVecRH" );
741 MESSAGE("GEOM_Superv_i::MakeCylinderPntVecRH");
743 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeCylinderPntVecRH(thePnt, theAxis, theRadius, theHeight);
744 endService( " GEOM_Superv_i::MakeCylinderPntVecRH" );
748 //=============================================================================
750 //=============================================================================
751 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderRH (CORBA::Double theR,
754 beginService( " GEOM_Superv_i::MakeCylinderRH" );
755 MESSAGE("GEOM_Superv_i::MakeCylinderRH");
757 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeCylinderRH(theR, theH);
758 endService( " GEOM_Superv_i::MakeCylinderRH" );
762 //=============================================================================
764 //=============================================================================
765 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSphere (CORBA::Double theX,
768 CORBA::Double theRadius)
770 beginService( " GEOM_Superv_i::MakeSphepe" );
771 MESSAGE("GEOM_Superv_i::MakeSphepe");
774 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSpherePntR(myBasicOp->MakePointXYZ(theX, theY, theZ), theRadius);
775 endService( " GEOM_Superv_i::MakeSphepe" );
779 //=============================================================================
781 //=============================================================================
782 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSphereR (CORBA::Double theR)
784 beginService( " GEOM_Superv_i::MakeSphereR" );
785 MESSAGE("GEOM_Superv_i::MakeSphereR");
787 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSphereR(theR);
788 endService( " GEOM_Superv_i::MakeSphereR" );
792 //=============================================================================
794 //=============================================================================
795 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
798 beginService( " GEOM_Superv_i::MakeSpherePntR" );
799 MESSAGE("GEOM_Superv_i::MakeSpherePntR");
801 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSpherePntR(thePnt, theR);
802 endService( " GEOM_Superv_i::MakeSpherePntR" );
806 //=============================================================================
807 // MakeTorusPntVecRR:
808 //=============================================================================
809 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTorusPntVecRR (GEOM::GEOM_Object_ptr thePnt,
810 GEOM::GEOM_Object_ptr theVec,
811 CORBA::Double theRMajor,
812 CORBA::Double theRMinor)
814 beginService( " GEOM_Superv_i::MakeTorusPntVecRR" );
815 MESSAGE("GEOM_Superv_i::MakeTorusPntVecRR");
817 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeTorusPntVecRR(thePnt, theVec, theRMajor, theRMinor);
818 endService( " GEOM_Superv_i::MakeTorusPntVecRR" );
822 //=============================================================================
824 //=============================================================================
825 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTorusRR (CORBA::Double theRMajor,
826 CORBA::Double theRMinor)
828 beginService( " GEOM_Superv_i::MakeTorusRR" );
829 MESSAGE("GEOM_Superv_i::MakeTorusRR");
831 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeTorusRR(theRMajor, theRMinor);
832 endService( " GEOM_Superv_i::MakeTorusRR" );
836 //=============================================================================
837 // MakeConePntVecR1R2H:
838 //=============================================================================
839 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
840 GEOM::GEOM_Object_ptr theAxis,
843 CORBA::Double theHeight)
845 beginService( " GEOM_Superv_i::MakeConePntVecR1R2H" );
846 MESSAGE("GEOM_Superv_i::MakeConePntVecR1R2H");
848 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeConePntVecR1R2H(thePnt, theAxis, theR1, theR2, theHeight);
849 endService( " GEOM_Superv_i::MakeConePntVecR1R2H" );
853 //=============================================================================
855 //=============================================================================
856 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeConeR1R2H (CORBA::Double theR1,
858 CORBA::Double theHeight)
860 beginService( " GEOM_Superv_i::MakeConeR1R2H" );
861 MESSAGE("GEOM_Superv_i::MakeConeR1R2H");
863 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeConeR1R2H(theR1, theR2, theHeight);
864 endService( " GEOM_Superv_i::MakeConeR1R2H" );
868 //=============================================================================
870 //=============================================================================
871 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
872 GEOM::GEOM_Object_ptr theVec,
875 beginService( " GEOM_Superv_i::MakePrismVecH" );
876 MESSAGE("GEOM_Superv_i::MakePrismVecH");
878 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismVecH(theBase, theVec, theH);
879 endService( " GEOM_Superv_i::MakePrismVecH" );
884 //=============================================================================
886 //=============================================================================
887 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
888 GEOM::GEOM_Object_ptr thePoint1,
889 GEOM::GEOM_Object_ptr thePoint2)
891 beginService( " GEOM_Superv_i::MakePrismTwoPnt" );
892 MESSAGE("GEOM_Superv_i::MakePrismTwoPnt");
894 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismTwoPnt(theBase, thePoint1, thePoint2);
895 endService( " GEOM_Superv_i::MakePrismTwoPnt" );
899 //=============================================================================
901 //=============================================================================
902 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipe (GEOM::GEOM_Object_ptr theBase,
903 GEOM::GEOM_Object_ptr thePath)
905 beginService( " GEOM_Superv_i::MakePipe" );
906 MESSAGE("GEOM_Superv_i::MakePipe");
908 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePipe(theBase, thePath);
909 endService( " GEOM_Superv_i::MakePipe" );
913 //=============================================================================
914 // MakeRevolutionAxisAngle:
915 //=============================================================================
916 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
917 GEOM::GEOM_Object_ptr theAxis,
918 CORBA::Double theAngle)
920 beginService( " GEOM_Superv_i::MakeRevolutionAxisAngle" );
921 MESSAGE("GEOM_Superv_i::MakeRevolutionAxisAngle");
923 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeRevolutionAxisAngle(theBase, theAxis, theAngle);
924 endService( " GEOM_Superv_i::MakeRevolutionAxisAngle" );
928 //=============================================================================
930 //=============================================================================
931 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilling (GEOM::GEOM_Object_ptr theShape,
932 CORBA::Long theMinDeg, CORBA::Long theMaxDeg,
933 CORBA::Double theTol2D, CORBA::Double theTol3D,
934 CORBA::Long theNbIter)
936 beginService( " GEOM_Superv_i::MakeFilling" );
937 MESSAGE("GEOM_Superv_i::MakeFilling");
939 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeFilling(theShape, theMinDeg, theMaxDeg, theTol2D, theTol3D, theNbIter);
940 endService( " GEOM_Superv_i::MakeFilling" );
944 //============================= BooleanOperations =============================
945 //=============================================================================
947 //=============================================================================
948 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoolean (GEOM::GEOM_Object_ptr theShape1,
949 GEOM::GEOM_Object_ptr theShape2,
950 CORBA::Long theOperation)
952 beginService( " GEOM_Superv_i::MakeBoolean" );
953 // theOperation indicates the operation to be done:
954 // 1 - Common, 2 - Cut, 3 - Fuse, 4 - Section
955 MESSAGE("GEOM_Superv_i::MakeBoolean");
957 GEOM::GEOM_Object_ptr anObj = myBoolOp->MakeBoolean(theShape1, theShape2, theOperation);
958 endService( " GEOM_Superv_i::MakeBoolean" );
962 //=============================================================================
964 //=============================================================================
965 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeThruSections(const GEOM::ListOfGO& theSeqSections,
966 CORBA::Boolean theModeSolid,
967 CORBA::Double thePreci,
968 CORBA::Boolean theRuled)
970 beginService( " GEOM_Superv_i::MakeThruSections" );
971 MESSAGE("GEOM_Superv_i::MakeThruSections");
973 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeThruSections(theSeqSections, theModeSolid,thePreci,theRuled);
974 endService( " GEOM_Superv_i::MakeThruSections" );
978 //=============================================================================
980 //=============================================================================
981 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeWithDifferentSections(const GEOM::ListOfGO& theBases,
982 const GEOM::ListOfGO& theLocations,
983 GEOM::GEOM_Object_ptr thePath,
984 CORBA::Boolean theWithContact,
985 CORBA::Boolean theWithCorrections)
987 beginService( " GEOM_Superv_i::MakePipeWithDifferentSections" );
988 MESSAGE("GEOM_Superv_i::MakePipeWithDifferentSections");
990 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePipeWithDifferentSections(theBases,theLocations, thePath,theWithContact,theWithCorrections);
991 endService( " GEOM_Superv_i::MakePipeWithDifferentSections" );
994 //=============================================================================
996 //=============================================================================
997 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFuse (GEOM::GEOM_Object_ptr theShape1,
998 GEOM::GEOM_Object_ptr theShape2)
1000 beginService( " GEOM_Superv_i::MakeFuse" );
1001 MESSAGE("GEOM_Superv_i::MakeFuse");
1003 GEOM::GEOM_Object_ptr anObj = myBoolOp->MakeBoolean(theShape1, theShape2, 3);
1004 endService( " GEOM_Superv_i::MakeFuse" );
1008 //=============================================================================
1010 //=============================================================================
1011 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePartition (GEOM::GEOM_List_ptr theShapes,
1012 GEOM::GEOM_List_ptr theTools,
1013 GEOM::GEOM_List_ptr theKeepInside,
1014 GEOM::GEOM_List_ptr theRemoveInside,
1015 CORBA::Short theLimit,
1016 CORBA::Boolean theRemoveWebs,
1017 GEOM::GEOM_List_ptr theMaterials)
1019 beginService( " GEOM_Superv_i::MakePartition" );
1020 MESSAGE("GEOM_Superv_i::MakePartition");
1021 GEOM_List_i<GEOM::ListOfGO>* aListImplS =
1022 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShapes, myPOA).in());
1023 GEOM_List_i<GEOM::ListOfGO>* aListImplT =
1024 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theTools, myPOA).in());
1025 GEOM_List_i<GEOM::ListOfGO>* aListImplKI =
1026 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theKeepInside, myPOA).in());
1027 GEOM_List_i<GEOM::ListOfGO>* aListImplRI =
1028 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theRemoveInside, myPOA).in());
1029 GEOM_List_i<GEOM::ListOfLong>* aListImplM =
1030 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theMaterials, myPOA).in());
1031 if (aListImplS && aListImplT && aListImplKI && aListImplRI && aListImplM) {
1033 GEOM::GEOM_Object_ptr anObj = myBoolOp->MakePartition(aListImplS->GetList(), aListImplT->GetList(),
1034 aListImplKI->GetList(), aListImplRI->GetList(),
1035 theLimit, theRemoveWebs, aListImplM->GetList());
1036 endService( " GEOM_Superv_i::MakePartition" );
1039 endService( " GEOM_Superv_i::MakePartition" );
1043 //=============================================================================
1044 // MakeHalfPartition:
1045 //=============================================================================
1046 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHalfPartition (GEOM::GEOM_Object_ptr theShape,
1047 GEOM::GEOM_Object_ptr thePlane)
1049 beginService( " GEOM_Superv_i::MakeHalfPartition" );
1050 MESSAGE("GEOM_Superv_i::MakeHalfPartition");
1052 GEOM::GEOM_Object_ptr anObj = myBoolOp->MakeHalfPartition(theShape, thePlane);
1053 endService( " GEOM_Superv_i::MakeHalfPartition" );
1057 //============================== InsertOperations =============================
1058 //=============================================================================
1060 //=============================================================================
1061 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCopy (GEOM::GEOM_Object_ptr theOriginal)
1063 beginService( " GEOM_Superv_i::MakeCopy" );
1064 MESSAGE("GEOM_Superv_i::MakeCopy");
1066 GEOM::GEOM_Object_ptr anObj = myInsOp->MakeCopy(theOriginal);
1067 endService( " GEOM_Superv_i::MakeCopy" );
1071 //=============================================================================
1073 //=============================================================================
1074 void GEOM_Superv_i::Export (GEOM::GEOM_Object_ptr theObject,
1075 const char* theFileName,
1076 const char* theFormatName)
1078 beginService( " GEOM_Superv_i::Export" );
1079 MESSAGE("GEOM_Superv_i::Export");
1081 myInsOp->Export(theObject, theFileName, theFormatName);
1082 endService( " GEOM_Superv_i::Export" );
1085 //=============================================================================
1087 //=============================================================================
1088 GEOM::GEOM_Object_ptr GEOM_Superv_i::Import (const char* theFileName,
1089 const char* theFormatName)
1091 beginService( " GEOM_Superv_i::Import" );
1092 MESSAGE("GEOM_Superv_i::Import");
1094 GEOM::GEOM_Object_ptr anObj = myInsOp->Import(theFileName, theFormatName);
1095 endService( " GEOM_Superv_i::Import" );
1099 //=============================================================================
1100 // ImportTranslators:
1101 //=============================================================================
1102 void GEOM_Superv_i::ImportTranslators (GEOM::string_array_out theFormats,
1103 GEOM::string_array_out thePatterns)
1105 beginService( " GEOM_Superv_i::ImportTranslators" );
1106 MESSAGE("GEOM_Superv_i::ImportTranslators");
1108 myInsOp->ImportTranslators(theFormats, thePatterns);
1109 endService( " GEOM_Superv_i::ImportTranslators" );
1112 //=============================================================================
1113 // ExportTranslators:
1114 //=============================================================================
1115 void GEOM_Superv_i::ExportTranslators (GEOM::string_array_out theFormats,
1116 GEOM::string_array_out thePatterns)
1118 beginService( " GEOM_Superv_i::ExportTranslators" );
1119 MESSAGE("GEOM_Superv_i::ExportTranslators");
1121 myInsOp->ExportTranslators(theFormats, thePatterns);
1122 endService( " GEOM_Superv_i::ExportTranslators" );
1125 //============================= TransformOperations ===========================
1126 //=============================================================================
1127 // TranslateTwoPoints:
1128 //=============================================================================
1129 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
1130 GEOM::GEOM_Object_ptr thePoint1,
1131 GEOM::GEOM_Object_ptr thePoint2)
1133 beginService( " GEOM_Superv_i::TranslateTwoPoints" );
1134 MESSAGE("GEOM_Superv_i::TranslateTwoPoints");
1136 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateTwoPoints(theObject, thePoint1, thePoint2);
1137 endService( " GEOM_Superv_i::TranslateTwoPoints" );
1141 //=============================================================================
1142 // TranslateTwoPointsCopy:
1143 //=============================================================================
1144 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
1145 GEOM::GEOM_Object_ptr thePoint1,
1146 GEOM::GEOM_Object_ptr thePoint2)
1148 beginService( " GEOM_Superv_i::TranslateTwoPointsCopy" );
1149 MESSAGE("GEOM_Superv_i::TranslateTwoPointsCopy");
1151 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateTwoPointsCopy(theObject, thePoint1, thePoint2);
1152 endService( " GEOM_Superv_i::TranslateTwoPointsCopy" );
1156 //=============================================================================
1158 //=============================================================================
1159 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject,
1160 CORBA::Double theDX,
1161 CORBA::Double theDY,
1162 CORBA::Double theDZ)
1164 beginService( " GEOM_Superv_i::TranslateDXDYDZ" );
1165 MESSAGE("GEOM_Superv_i::TranslateDXDYDZ");
1167 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateDXDYDZ(theObject, theDX, theDY, theDZ);
1168 endService( " GEOM_Superv_i::TranslateDXDYDZ" );
1172 //=============================================================================
1173 // TranslateDXDYDZCopy:
1174 //=============================================================================
1175 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject,
1176 CORBA::Double theDX,
1177 CORBA::Double theDY,
1178 CORBA::Double theDZ)
1180 beginService( " GEOM_Superv_i::TranslateDXDYDZCopy" );
1181 MESSAGE("GEOM_Superv_i::TranslateDXDYDZCopy");
1183 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateDXDYDZCopy(theObject, theDX, theDY, theDZ);
1184 endService( " GEOM_Superv_i::TranslateDXDYDZCopy" );
1188 //=============================================================================
1190 //=============================================================================
1191 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVector (GEOM::GEOM_Object_ptr theObject,
1192 GEOM::GEOM_Object_ptr theVector)
1194 beginService( " GEOM_Superv_i::TranslateVector" );
1195 MESSAGE("GEOM_Superv_i::TranslateVector");
1197 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVector(theObject, theVector);
1198 endService( " GEOM_Superv_i::TranslateVector" );
1202 //=============================================================================
1203 // TranslateVectorCopy:
1204 //=============================================================================
1205 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
1206 GEOM::GEOM_Object_ptr theVector)
1208 beginService( " GEOM_Superv_i::TranslateVectorCopy" );
1209 MESSAGE("GEOM_Superv_i::TranslateVectorCopy");
1211 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVectorCopy(theObject, theVector);
1212 endService( " GEOM_Superv_i::TranslateVectorCopy" );
1216 //=============================================================================
1217 // MultiTranslate1D:
1218 //=============================================================================
1219 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiTranslate1D (GEOM::GEOM_Object_ptr theObject,
1220 GEOM::GEOM_Object_ptr theVector,
1221 CORBA::Double theStep,
1222 CORBA::Long theNbTimes)
1224 beginService( " GEOM_Superv_i::MultiTranslate1D" );
1225 MESSAGE("GEOM_Superv_i::MultiTranslate1D");
1227 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiTranslate1D(theObject, theVector, theStep, theNbTimes);
1228 endService( " GEOM_Superv_i::MultiTranslate1D" );
1232 //=============================================================================
1233 // MultiTranslate2D:
1234 //=============================================================================
1235 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiTranslate2D (GEOM::GEOM_Object_ptr theObject,
1236 GEOM::GEOM_Object_ptr theVector1,
1237 CORBA::Double theStep1,
1238 CORBA::Long theNbTimes1,
1239 GEOM::GEOM_Object_ptr theVector2,
1240 CORBA::Double theStep2,
1241 CORBA::Long theNbTimes2)
1243 beginService( " GEOM_Superv_i::MultiTranslate2D" );
1244 MESSAGE("GEOM_Superv_i::MultiTranslate2D");
1246 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiTranslate2D(theObject, theVector1, theStep1, theNbTimes1,
1247 theVector2, theStep2, theNbTimes2);
1248 endService( " GEOM_Superv_i::MultiTranslate2D" );
1252 //=============================================================================
1254 //=============================================================================
1255 GEOM::GEOM_Object_ptr GEOM_Superv_i::Rotate (GEOM::GEOM_Object_ptr theObject,
1256 GEOM::GEOM_Object_ptr theAxis,
1257 CORBA::Double theAngle)
1259 beginService( " GEOM_Superv_i::Rotate" );
1260 MESSAGE("GEOM_Superv_i::Rotate");
1262 GEOM::GEOM_Object_ptr anObj = myTransfOp->Rotate(theObject, theAxis, theAngle);
1263 endService( " GEOM_Superv_i::Rotate" );
1267 //=============================================================================
1269 //=============================================================================
1270 GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateCopy (GEOM::GEOM_Object_ptr theObject,
1271 GEOM::GEOM_Object_ptr theAxis,
1272 CORBA::Double theAngle)
1274 beginService( " GEOM_Superv_i::RotateCopy" );
1275 MESSAGE("GEOM_Superv_i::RotateCopy");
1277 GEOM::GEOM_Object_ptr anObj = myTransfOp->RotateCopy(theObject, theAxis, theAngle);
1278 endService( " GEOM_Superv_i::RotateCopy" );
1282 //=============================================================================
1284 //=============================================================================
1285 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
1286 GEOM::GEOM_Object_ptr theAxis,
1287 CORBA::Long theNbTimes)
1289 beginService( " GEOM_Superv_i::MultiRotate1D" );
1290 MESSAGE("GEOM_Superv_i::MultiRotate1D");
1292 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiRotate1D(theObject, theAxis, theNbTimes);
1293 endService( " GEOM_Superv_i::MultiRotate1D" );
1297 //=============================================================================
1299 //=============================================================================
1300 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
1301 GEOM::GEOM_Object_ptr theAxis,
1302 CORBA::Double theAngle,
1303 CORBA::Long theNbTimes1,
1304 CORBA::Double theStep,
1305 CORBA::Long theNbTimes2)
1307 beginService( " GEOM_Superv_i::MultiRotate2D" );
1308 MESSAGE("GEOM_Superv_i::MultiRotate2D");
1310 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiRotate2D(theObject, theAxis, theAngle, theNbTimes1, theStep, theNbTimes2);
1311 endService( " GEOM_Superv_i::MultiRotate2D" );
1315 //=============================================================================
1317 //=============================================================================
1318 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlane (GEOM::GEOM_Object_ptr theObject,
1319 GEOM::GEOM_Object_ptr thePlane)
1321 beginService( " GEOM_Superv_i::MirrorPlane" );
1322 MESSAGE("GEOM_Superv_i::MirrorPlane");
1324 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPlane(theObject, thePlane);
1325 endService( " GEOM_Superv_i::MirrorPlane" );
1329 //=============================================================================
1331 //=============================================================================
1332 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject,
1333 GEOM::GEOM_Object_ptr thePlane)
1335 beginService( " GEOM_Superv_i::MirrorPlaneCopy" );
1336 MESSAGE("GEOM_Superv_i::MirrorPlaneCopy");
1338 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPlaneCopy(theObject, thePlane);
1339 endService( " GEOM_Superv_i::MirrorPlaneCopy" );
1343 //=============================================================================
1345 //=============================================================================
1346 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxis (GEOM::GEOM_Object_ptr theObject,
1347 GEOM::GEOM_Object_ptr theAxis)
1349 beginService( " GEOM_Superv_i::MirrorAxis" );
1350 MESSAGE("GEOM_Superv_i::MirrorAxis");
1352 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorAxis(theObject, theAxis);
1353 endService( " GEOM_Superv_i::MirrorAxis" );
1357 //=============================================================================
1359 //=============================================================================
1360 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject,
1361 GEOM::GEOM_Object_ptr theAxis)
1363 beginService( " GEOM_Superv_i::MirrorAxisCopy" );
1364 MESSAGE("GEOM_Superv_i::MirrorAxisCopy");
1366 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorAxisCopy(theObject, theAxis);
1367 endService( " GEOM_Superv_i::MirrorAxisCopy" );
1371 //=============================================================================
1373 //=============================================================================
1374 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPoint (GEOM::GEOM_Object_ptr theObject,
1375 GEOM::GEOM_Object_ptr thePoint)
1377 beginService( " GEOM_Superv_i::MirrorPoint" );
1378 MESSAGE("GEOM_Superv_i::MirrorPoint");
1380 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPoint(theObject, thePoint);
1381 endService( " GEOM_Superv_i::MirrorPoint" );
1385 //=============================================================================
1387 //=============================================================================
1388 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPointCopy (GEOM::GEOM_Object_ptr theObject,
1389 GEOM::GEOM_Object_ptr thePoint)
1391 beginService( " GEOM_Superv_i::MirrorPoint" );
1392 MESSAGE("GEOM_Superv_i::MirrorPointCopy");
1394 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPointCopy(theObject, thePoint);
1395 endService( " GEOM_Superv_i::MirrorPoint" );
1399 //=============================================================================
1401 //=============================================================================
1402 GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShape (GEOM::GEOM_Object_ptr theObject,
1403 CORBA::Double theOffset)
1405 beginService( " GEOM_Superv_i::OffsetShape" );
1406 MESSAGE("GEOM_Superv_i::OffsetShape");
1408 GEOM::GEOM_Object_ptr anObj = myTransfOp->OffsetShape(theObject, theOffset);
1409 endService( " GEOM_Superv_i::OffsetShape" );
1413 //=============================================================================
1415 //=============================================================================
1416 GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject,
1417 CORBA::Double theOffset)
1419 beginService( " GEOM_Superv_i::OffsetShapeCopy" );
1420 MESSAGE("GEOM_Superv_i::OffsetShapeCopy");
1422 GEOM::GEOM_Object_ptr anObj = myTransfOp->OffsetShapeCopy(theObject, theOffset);
1423 endService( " GEOM_Superv_i::OffsetShapeCopy" );
1427 //=============================================================================
1429 //=============================================================================
1430 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShape (GEOM::GEOM_Object_ptr theObject,
1431 GEOM::GEOM_Object_ptr thePoint,
1432 CORBA::Double theFactor)
1434 beginService( " GEOM_Superv_i::ScaleShape" );
1435 MESSAGE("GEOM_Superv_i::ScaleShape");
1437 GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShape(theObject, thePoint, theFactor);
1438 endService( " GEOM_Superv_i::ScaleShape" );
1442 //=============================================================================
1444 //=============================================================================
1445 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject,
1446 GEOM::GEOM_Object_ptr thePoint,
1447 CORBA::Double theFactor)
1449 beginService( " GEOM_Superv_i::ScaleShapeCopy" );
1450 MESSAGE("GEOM_Superv_i::ScaleShapeCopy");
1452 GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShapeCopy(theObject, thePoint, theFactor);
1453 endService( " GEOM_Superv_i::ScaleShapeCopy" );
1457 //=============================================================================
1459 //=============================================================================
1460 GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionShape (GEOM::GEOM_Object_ptr theObject,
1461 GEOM::GEOM_Object_ptr theStartLCS,
1462 GEOM::GEOM_Object_ptr theEndLCS)
1464 beginService( " GEOM_Superv_i::PositionShape" );
1465 MESSAGE("GEOM_Superv_i::PositionShape");
1467 GEOM::GEOM_Object_ptr anObj = myTransfOp->PositionShape(theObject, theStartLCS, theEndLCS);
1468 endService( " GEOM_Superv_i::PositionShape" );
1472 //=============================================================================
1473 // PositionShapeCopy:
1474 //=============================================================================
1475 GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
1476 GEOM::GEOM_Object_ptr theStartLCS,
1477 GEOM::GEOM_Object_ptr theEndLCS)
1479 beginService( " GEOM_Superv_i::PositionShapeCopy" );
1480 MESSAGE("GEOM_Superv_i::PositionShapeCopy");
1482 GEOM::GEOM_Object_ptr anObj = myTransfOp->PositionShapeCopy(theObject, theStartLCS, theEndLCS);
1483 endService( " GEOM_Superv_i::PositionShapeCopy" );
1487 //=============================== ShapesOperations ============================
1488 //=============================================================================
1490 //=============================================================================
1491 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
1492 GEOM::GEOM_Object_ptr thePnt2)
1494 beginService( " GEOM_Superv_i::MakeEdge" );
1495 MESSAGE("GEOM_Superv_i::MakeEdge");
1497 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeEdge(thePnt1, thePnt2);
1498 endService( " GEOM_Superv_i::MakeEdge" );
1502 //=============================================================================
1504 //=============================================================================
1505 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeWire (GEOM::GEOM_List_ptr theEdgesAndWires)
1507 beginService( " GEOM_Superv_i::MakeWire" );
1508 MESSAGE("GEOM_Superv_i::MakeWire");
1509 if (GEOM_List_i<GEOM::ListOfGO>* aListImplEW =
1510 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theEdgesAndWires, myPOA).in())) {
1512 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeWire(aListImplEW->GetList());
1513 endService( " GEOM_Superv_i::MakeWire" );
1516 endService( " GEOM_Superv_i::MakeWire" );
1520 //=============================================================================
1522 //=============================================================================
1523 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFace (GEOM::GEOM_Object_ptr theWire,
1524 CORBA::Boolean isPlanarWanted)
1526 beginService( " GEOM_Superv_i::MakeFace" );
1527 MESSAGE("GEOM_Superv_i::MakeFace");
1529 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeFace(theWire, isPlanarWanted);
1530 endService( " GEOM_Superv_i::MakeFace" );
1534 //=============================================================================
1536 //=============================================================================
1537 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceWires (GEOM::GEOM_List_ptr theWires,
1538 CORBA::Boolean isPlanarWanted)
1540 beginService( " GEOM_Superv_i::MakeFaceWires" );
1541 MESSAGE("GEOM_Superv_i::MakeFaceWires");
1542 if (GEOM_List_i<GEOM::ListOfGO>* aListImplW =
1543 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theWires, myPOA).in())) {
1545 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeFaceWires(aListImplW->GetList(), isPlanarWanted);
1546 endService( " GEOM_Superv_i::MakeFaceWires" );
1549 endService( " GEOM_Superv_i::MakeFaceWires" );
1553 //=============================================================================
1555 //=============================================================================
1556 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeShell (GEOM::GEOM_List_ptr theFacesAndShells)
1558 beginService( " GEOM_Superv_i::MakeShell" );
1559 MESSAGE("GEOM_Superv_i::MakeShell");
1560 if (GEOM_List_i<GEOM::ListOfGO>* aListImplFS =
1561 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theFacesAndShells, myPOA).in())) {
1563 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeShell(aListImplFS->GetList());
1564 endService( " GEOM_Superv_i::MakeShell" );
1567 endService( " GEOM_Superv_i::MakeShell" );
1571 //=============================================================================
1573 //=============================================================================
1574 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSolidShell (GEOM::GEOM_Object_ptr theShell)
1576 beginService( " GEOM_Superv_i::MakeSolidShell" );
1577 MESSAGE("GEOM_Superv_i::MakeSolidShell");
1579 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeSolidShell(theShell);
1580 endService( " GEOM_Superv_i::MakeSolidShell" );
1584 //=============================================================================
1586 //=============================================================================
1587 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSolidShells (GEOM::GEOM_List_ptr theShells)
1589 beginService( " GEOM_Superv_i::MakeSolidShells" );
1590 MESSAGE("GEOM_Superv_i::MakeSolidShells");
1591 if (GEOM_List_i<GEOM::ListOfGO>* aListImplS =
1592 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShells, myPOA).in())) {
1594 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeSolidShells(aListImplS->GetList());
1595 endService( " GEOM_Superv_i::MakeSolidShells" );
1598 endService( " GEOM_Superv_i::MakeSolidShells" );
1602 //=============================================================================
1604 //=============================================================================
1605 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCompound (GEOM::GEOM_List_ptr theShapes)
1607 beginService( " GEOM_Superv_i::MakeCompound" );
1608 MESSAGE("GEOM_Superv_i::MakeCompound");
1609 if (GEOM_List_i<GEOM::ListOfGO>* aListImpl =
1610 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShapes, myPOA).in())) {
1612 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeCompound(aListImpl->GetList());
1613 endService( " GEOM_Superv_i::MakeCompound" );
1616 endService( " GEOM_Superv_i::MakeCompound" );
1620 //=============================================================================
1622 //=============================================================================
1623 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
1624 CORBA::Double theTolerance)
1626 beginService( " GEOM_Superv_i::MakeGlueFaces" );
1627 MESSAGE("GEOM_Superv_i::MakeGlueFaces");
1629 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeGlueFaces(theShape, theTolerance);
1630 endService( " GEOM_Superv_i::MakeGlueFaces" );
1634 //=============================================================================
1636 //=============================================================================
1637 GEOM::GEOM_List_ptr GEOM_Superv_i::MakeExplode (GEOM::GEOM_Object_ptr theShape,
1638 CORBA::Long theShapeType,
1639 CORBA::Boolean isSorted)
1641 beginService( " GEOM_Superv_i::MakeExplode" );
1642 MESSAGE("GEOM_Superv_i::MakeExplode");
1645 GEOM::ListOfGO* aList = myShapesOp->MakeExplode(theShape, theShapeType, isSorted);
1646 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aList));
1647 MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
1648 endService( " GEOM_Superv_i::MakeExplode" );
1649 return aListPtr->_this();
1652 //=============================================================================
1654 //=============================================================================
1655 CORBA::Long GEOM_Superv_i::NumberOfFaces (GEOM::GEOM_Object_ptr theShape)
1657 beginService( " GEOM_Superv_i::NumberOfFaces" );
1658 MESSAGE("GEOM_Superv_i::NumberOfFaces");
1660 CORBA::Long aRes = myShapesOp->NumberOfFaces(theShape);
1661 endService( " GEOM_Superv_i::NumberOfFaces" );
1665 //=============================================================================
1667 //=============================================================================
1668 CORBA::Long GEOM_Superv_i::NumberOfEdges (GEOM::GEOM_Object_ptr theShape)
1670 beginService( " GEOM_Superv_i::NumberOfEdges" );
1671 MESSAGE("GEOM_Superv_i::NumberOfEdges");
1673 CORBA::Long aRes = myShapesOp->NumberOfEdges(theShape);
1674 endService( " GEOM_Superv_i::NumberOfEdges" );
1678 //=============================================================================
1679 // ChangeOrientation:
1680 //=============================================================================
1681 GEOM::GEOM_Object_ptr GEOM_Superv_i::ChangeOrientation (GEOM::GEOM_Object_ptr theShape)
1683 beginService( " GEOM_Superv_i::ChangeOrientation" );
1684 MESSAGE("GEOM_Superv_i::ChangeOrientation");
1686 GEOM::GEOM_Object_ptr anObj = myShapesOp->ChangeOrientation(theShape);
1687 endService( " GEOM_Superv_i::ChangeOrientation" );
1692 //=============================== BlocksOperations ============================
1693 //=============================================================================
1694 // MakeQuad4Vertices:
1695 //=============================================================================
1696 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad4Vertices (GEOM::GEOM_Object_ptr thePnt1,
1697 GEOM::GEOM_Object_ptr thePnt2,
1698 GEOM::GEOM_Object_ptr thePnt3,
1699 GEOM::GEOM_Object_ptr thePnt4)
1701 beginService( " GEOM_Superv_i::MakeQuad4Vertices" );
1702 MESSAGE("GEOM_Superv_i::MakeQuad4Vertices");
1704 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeQuad4Vertices(thePnt1, thePnt2, thePnt3, thePnt4);
1705 endService( " GEOM_Superv_i::MakeQuad4Vertices" );
1709 //=============================================================================
1711 //=============================================================================
1712 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad (GEOM::GEOM_Object_ptr theEdge1,
1713 GEOM::GEOM_Object_ptr theEdge2,
1714 GEOM::GEOM_Object_ptr theEdge3,
1715 GEOM::GEOM_Object_ptr theEdge4)
1717 beginService( " GEOM_Superv_i::MakeQuad" );
1718 MESSAGE("GEOM_Superv_i::MakeQuad");
1720 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeQuad(theEdge1, theEdge2, theEdge3, theEdge4);
1721 endService( " GEOM_Superv_i::MakeQuad" );
1725 //=============================================================================
1727 //=============================================================================
1728 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad2Edges (GEOM::GEOM_Object_ptr theEdge1,
1729 GEOM::GEOM_Object_ptr theEdge2)
1731 beginService( " GEOM_Superv_i::MakeQuad2Edges" );
1732 MESSAGE("GEOM_Superv_i::MakeQuad2Edges");
1734 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeQuad2Edges(theEdge1, theEdge2);
1735 endService( " GEOM_Superv_i::MakeQuad2Edges" );
1739 //=============================================================================
1741 //=============================================================================
1742 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHexa (GEOM::GEOM_Object_ptr theFace1,
1743 GEOM::GEOM_Object_ptr theFace2,
1744 GEOM::GEOM_Object_ptr theFace3,
1745 GEOM::GEOM_Object_ptr theFace4,
1746 GEOM::GEOM_Object_ptr theFace5,
1747 GEOM::GEOM_Object_ptr theFace6)
1749 beginService( " GEOM_Superv_i::MakeHexa" );
1750 MESSAGE("GEOM_Superv_i::MakeHexa");
1752 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeHexa(theFace1, theFace2, theFace3, theFace4, theFace5, theFace6);
1753 endService( " GEOM_Superv_i::MakeHexa" );
1757 //=============================================================================
1759 //=============================================================================
1760 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHexa2Faces (GEOM::GEOM_Object_ptr theFace1,
1761 GEOM::GEOM_Object_ptr theFace2)
1763 beginService( " GEOM_Superv_i::MakeHexa2Faces" );
1764 MESSAGE("GEOM_Superv_i::MakeHexa2Faces");
1766 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeHexa2Faces(theFace1, theFace2);
1767 endService( " GEOM_Superv_i::MakeHexa2Faces" );
1771 //=============================================================================
1773 //=============================================================================
1774 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetPoint (GEOM::GEOM_Object_ptr theShape,
1778 CORBA::Double theEpsilon)
1780 beginService( " GEOM_Superv_i::GetPoint" );
1781 MESSAGE("GEOM_Superv_i::GetPoint");
1783 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetPoint(theShape, theX, theY, theZ, theEpsilon);
1784 endService( " GEOM_Superv_i::GetPoint" );
1788 //=============================================================================
1790 //=============================================================================
1791 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetEdge (GEOM::GEOM_Object_ptr theShape,
1792 GEOM::GEOM_Object_ptr thePoint1,
1793 GEOM::GEOM_Object_ptr thePoint2)
1795 beginService( " GEOM_Superv_i::GetEdge" );
1796 MESSAGE("GEOM_Superv_i::GetEdge");
1798 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetEdge(theShape, thePoint1, thePoint2);
1799 endService( " GEOM_Superv_i::GetEdge" );
1803 //=============================================================================
1804 // GetEdgeNearPoint:
1805 //=============================================================================
1806 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetEdgeNearPoint (GEOM::GEOM_Object_ptr theShape,
1807 GEOM::GEOM_Object_ptr thePoint)
1809 beginService( " GEOM_Superv_i::GetEdgeNearPoint" );
1810 MESSAGE("GEOM_Superv_i::GetEdgeNearPoint");
1812 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetEdgeNearPoint(theShape, thePoint);
1813 endService( " GEOM_Superv_i::GetEdgeNearPoint" );
1817 //=============================================================================
1819 //=============================================================================
1820 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByPoints (GEOM::GEOM_Object_ptr theShape,
1821 GEOM::GEOM_Object_ptr thePoint1,
1822 GEOM::GEOM_Object_ptr thePoint2,
1823 GEOM::GEOM_Object_ptr thePoint3,
1824 GEOM::GEOM_Object_ptr thePoint4)
1826 beginService( " GEOM_Superv_i::GetFaceByPoints" );
1827 MESSAGE("GEOM_Superv_i::GetFaceByPoints");
1829 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceByPoints(theShape, thePoint1, thePoint2, thePoint3, thePoint4);
1830 endService( " GEOM_Superv_i::GetFaceByPoints" );
1834 //=============================================================================
1836 //=============================================================================
1837 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByEdges (GEOM::GEOM_Object_ptr theShape,
1838 GEOM::GEOM_Object_ptr theEdge1,
1839 GEOM::GEOM_Object_ptr theEdge2)
1841 beginService( " GEOM_Superv_i::GetFaceByEdges" );
1842 MESSAGE("GEOM_Superv_i::GetFaceByEdges");
1844 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceByEdges(theShape, theEdge1, theEdge2);
1845 endService( " GEOM_Superv_i::GetFaceByEdges" );
1849 //=============================================================================
1851 //=============================================================================
1852 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetOppositeFace (GEOM::GEOM_Object_ptr theBlock,
1853 GEOM::GEOM_Object_ptr theFace)
1855 beginService( " GEOM_Superv_i::GetOppositeFace" );
1856 MESSAGE("GEOM_Superv_i::GetOppositeFace");
1858 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetOppositeFace(theBlock, theFace);
1859 endService( " GEOM_Superv_i::GetOppositeFace" );
1863 //=============================================================================
1864 // GetFaceNearPoint:
1865 //=============================================================================
1866 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceNearPoint (GEOM::GEOM_Object_ptr theShape,
1867 GEOM::GEOM_Object_ptr thePoint)
1869 beginService( " GEOM_Superv_i::GetFaceNearPoint" );
1870 MESSAGE("GEOM_Superv_i::GetFaceNearPoint");
1872 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceNearPoint(theShape, thePoint);
1873 endService( " GEOM_Superv_i::GetFaceNearPoint" );
1877 //=============================================================================
1878 // GetFaceByNormale:
1879 //=============================================================================
1880 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByNormale (GEOM::GEOM_Object_ptr theBlock,
1881 GEOM::GEOM_Object_ptr theVector)
1883 beginService( " GEOM_Superv_i::GetFaceByNormale" );
1884 MESSAGE("GEOM_Superv_i::GetFaceByNormale");
1886 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceByNormale(theBlock, theVector);
1887 endService( " GEOM_Superv_i::GetFaceByNormale" );
1891 //=============================================================================
1892 // IsCompoundOfBlocks:
1893 //=============================================================================
1894 CORBA::Boolean GEOM_Superv_i::IsCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
1895 CORBA::Long theMinNbFaces,
1896 CORBA::Long theMaxNbFaces,
1897 CORBA::Long& theNbBlocks)
1899 beginService( " GEOM_Superv_i::IsCompoundOfBlocks" );
1900 MESSAGE("GEOM_Superv_i::IsCompoundOfBlocks");
1902 CORBA::Boolean aRes = myBlocksOp->IsCompoundOfBlocks(theCompound, theMinNbFaces, theMaxNbFaces, theNbBlocks);
1903 endService( " GEOM_Superv_i::IsCompoundOfBlocks" );
1907 //=============================================================================
1908 // CheckCompoundOfBlocks:
1909 //=============================================================================
1910 CORBA::Boolean GEOM_Superv_i::CheckCompoundOfBlocks
1911 (GEOM::GEOM_Object_ptr theCompound,
1912 GEOM::GEOM_IBlocksOperations::BCErrors_out theErrors)
1914 beginService( " GEOM_Superv_i::CheckCompoundOfBlocks" );
1915 MESSAGE("GEOM_Superv_i::CheckCompoundOfBlocks");
1917 CORBA::Boolean aRes = myBlocksOp->CheckCompoundOfBlocks(theCompound, theErrors);
1918 endService( " GEOM_Superv_i::CheckCompoundOfBlocks" );
1922 //=============================================================================
1924 //=============================================================================
1925 char* GEOM_Superv_i::PrintBCErrors (GEOM::GEOM_Object_ptr theCompound,
1926 const GEOM::GEOM_IBlocksOperations::BCErrors& theErrors)
1928 beginService( " GEOM_Superv_i::PrintBCErrors" );
1929 MESSAGE("GEOM_Superv_i::PrintBCErrors");
1931 char* anErrors = myBlocksOp->PrintBCErrors(theCompound, theErrors);
1932 endService( " GEOM_Superv_i::PrintBCErrors" );
1936 //=============================================================================
1937 // ExplodeCompoundOfBlocks:
1938 //=============================================================================
1939 GEOM::GEOM_List_ptr GEOM_Superv_i::ExplodeCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
1940 CORBA::Long theMinNbFaces,
1941 CORBA::Long theMaxNbFaces)
1943 beginService( " GEOM_Superv_i::ExplodeCompoundOfBlocks" );
1944 MESSAGE("GEOM_Superv_i::ExplodeCompoundOfBlocks");
1946 GEOM::ListOfGO* aBlocks = myBlocksOp->ExplodeCompoundOfBlocks(theCompound, theMinNbFaces, theMaxNbFaces);
1947 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aBlocks));
1948 endService( " GEOM_Superv_i::ExplodeCompoundOfBlocks" );
1949 return aListPtr->_this();
1952 //=============================================================================
1953 // GetBlockNearPoint:
1954 //=============================================================================
1955 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetBlockNearPoint (GEOM::GEOM_Object_ptr theCompound,
1956 GEOM::GEOM_Object_ptr thePoint)
1958 beginService( " GEOM_Superv_i::GetBlockNearPoint" );
1959 MESSAGE("GEOM_Superv_i::GetBlockNearPoint");
1961 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetBlockNearPoint(theCompound, thePoint);
1962 endService( " GEOM_Superv_i::GetBlockNearPoint" );
1966 //=============================================================================
1968 //=============================================================================
1969 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetBlockByParts (GEOM::GEOM_Object_ptr theCompound,
1970 GEOM::GEOM_List_ptr theParts)
1972 beginService( " GEOM_Superv_i::GetBlockByParts" );
1973 MESSAGE("GEOM_Superv_i::GetBlockByParts");
1974 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
1975 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theParts, myPOA).in())) {
1977 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetBlockByParts(theCompound, aListImplP->GetList());
1978 endService( " GEOM_Superv_i::GetBlockByParts" );
1981 endService( " GEOM_Superv_i::GetBlockByParts" );
1985 //=============================================================================
1986 // GetBlocksByParts:
1987 //=============================================================================
1988 GEOM::GEOM_List_ptr GEOM_Superv_i::GetBlocksByParts (GEOM::GEOM_Object_ptr theCompound,
1989 GEOM::GEOM_List_ptr theParts)
1991 beginService( " GEOM_Superv_i::GetBlocksByParts" );
1992 MESSAGE("GEOM_Superv_i::GetBlocksByParts");
1993 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
1994 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theParts, myPOA).in())) {
1997 GEOM::ListOfGO* aBlocks = myBlocksOp->GetBlocksByParts(theCompound, aListImplP->GetList());
1998 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aBlocks));
1999 endService( " GEOM_Superv_i::GetBlocksByParts" );
2000 return aListPtr->_this();
2002 endService( " GEOM_Superv_i::GetBlocksByParts" );
2006 //=============================================================================
2007 // MakeMultiTransformation1D:
2008 //=============================================================================
2009 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation1D (GEOM::GEOM_Object_ptr theBlock,
2010 CORBA::Long theDirFace1,
2011 CORBA::Long theDirFace2,
2012 CORBA::Long theNbTimes)
2014 beginService( " GEOM_Superv_i::MakeMultiTransformation1D" );
2015 MESSAGE("GEOM_Superv_i::MakeMultiTransformation1D");
2017 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeMultiTransformation1D(theBlock, theDirFace1, theDirFace2, theNbTimes);
2018 endService( " GEOM_Superv_i::MakeMultiTransformation1D" );
2022 //=============================================================================
2023 // MakeMultiTransformation2D:
2024 //=============================================================================
2025 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation2D
2026 (GEOM::GEOM_Object_ptr theBlock,
2027 CORBA::Long theDirFace1U,
2028 CORBA::Long theDirFace2U,
2029 CORBA::Long theNbTimesU,
2030 CORBA::Long theDirFace1V,
2031 CORBA::Long theDirFace2V,
2032 CORBA::Long theNbTimesV)
2034 beginService( " GEOM_Superv_i::MakeMultiTransformation2D" );
2035 MESSAGE("GEOM_Superv_i::MakeMultiTransformation2D");
2037 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeMultiTransformation2D(theBlock,
2038 theDirFace1U, theDirFace2U, theNbTimesU,
2039 theDirFace1V, theDirFace2V, theNbTimesV);
2040 endService( " GEOM_Superv_i::MakeMultiTransformation2D" );
2044 //=============================== CurvesOperations ============================
2045 //=============================================================================
2046 // MakeCirclePntVecR:
2047 //=============================================================================
2048 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCirclePntVecR (GEOM::GEOM_Object_ptr theCenter,
2049 GEOM::GEOM_Object_ptr theVector,
2052 beginService( " GEOM_Superv_i::MakeCirclePntVecR" );
2053 MESSAGE("GEOM_Superv_i::MakeCirclePntVecR");
2055 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeCirclePntVecR(theCenter, theVector, theR);
2056 endService( " GEOM_Superv_i::MakeCirclePntVecR" );
2060 //=============================================================================
2061 // MakeCircleThreePnt:
2062 //=============================================================================
2063 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCircleThreePnt (GEOM::GEOM_Object_ptr thePnt1,
2064 GEOM::GEOM_Object_ptr thePnt2,
2065 GEOM::GEOM_Object_ptr thePnt3)
2067 beginService( " GEOM_Superv_i::MakeCircleThreePnt" );
2068 MESSAGE("GEOM_Superv_i::MakeCircleThreePnt");
2070 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeCircleThreePnt(thePnt1, thePnt2, thePnt3);
2071 endService( " GEOM_Superv_i::MakeCircleThreePnt" );
2075 //=============================================================================
2077 //=============================================================================
2078 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEllipse (GEOM::GEOM_Object_ptr theCenter,
2079 GEOM::GEOM_Object_ptr theVector,
2080 CORBA::Double theRMajor,
2081 CORBA::Double theRMinor)
2083 beginService( " GEOM_Superv_i::MakeEllipse" );
2084 MESSAGE("GEOM_Superv_i::MakeEllipse");
2086 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeEllipse(theCenter, theVector, theRMajor, theRMinor);
2087 endService( " GEOM_Superv_i::MakeEllipse" );
2091 //=============================================================================
2093 //=============================================================================
2094 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArc (GEOM::GEOM_Object_ptr thePnt1,
2095 GEOM::GEOM_Object_ptr thePnt2,
2096 GEOM::GEOM_Object_ptr thePnt3)
2098 beginService( " GEOM_Superv_i::MakeArc" );
2099 MESSAGE("GEOM_Superv_i::MakeArc");
2101 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeArc(thePnt1, thePnt2, thePnt3);
2102 endService( " GEOM_Superv_i::MakeArc" );
2106 //=============================================================================
2108 //=============================================================================
2109 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePolyline (GEOM::GEOM_List_ptr thePoints)
2111 beginService( " GEOM_Superv_i::MakePolyline" );
2112 MESSAGE("GEOM_Superv_i::MakePolyline");
2113 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2114 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
2116 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakePolyline(aListImplP->GetList());
2117 endService( " GEOM_Superv_i::MakePolyline" );
2120 endService( " GEOM_Superv_i::MakePolyline" );
2124 //=============================================================================
2125 // MakeSplineBezier:
2126 //=============================================================================
2127 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineBezier (GEOM::GEOM_List_ptr thePoints)
2129 beginService( " GEOM_Superv_i::MakeSplineBezier" );
2130 MESSAGE("GEOM_Superv_i::MakeSplineBezier");
2131 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2132 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
2134 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSplineBezier(aListImplP->GetList());
2135 endService( " GEOM_Superv_i::MakeSplineBezier" );
2138 endService( " GEOM_Superv_i::MakeSplineBezier" );
2142 //=============================================================================
2143 // MakeSplineInterpolation:
2144 //=============================================================================
2145 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineInterpolation (GEOM::GEOM_List_ptr thePoints)
2147 beginService( " GEOM_Superv_i::MakeSplineInterpolation" );
2148 MESSAGE("GEOM_Superv_i::MakeSplineInterpolation");
2149 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2150 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
2152 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSplineInterpolation(aListImplP->GetList());
2153 endService( " GEOM_Superv_i::MakeSplineInterpolation" );
2156 endService( " GEOM_Superv_i::MakeSplineInterpolation" );
2160 //=============================================================================
2162 //=============================================================================
2163 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSketcher (const char* theCommand,
2164 GEOM::GEOM_List_ptr theWorkingPlane)
2166 beginService( " GEOM_Superv_i::MakeSketcher" );
2167 MESSAGE("GEOM_Superv_i::MakeSketcher");
2168 if (GEOM_List_i<GEOM::ListOfDouble>* aListImplWP =
2169 dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theWorkingPlane, myPOA).in())) {
2171 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSketcher(theCommand, aListImplWP->GetList());
2172 endService( " GEOM_Superv_i::MakeSketcher" );
2175 endService( " GEOM_Superv_i::MakeSketcher" );
2179 //=============================== LocalOperations =============================
2180 //=============================================================================
2182 //=============================================================================
2183 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletAll (GEOM::GEOM_Object_ptr theShape,
2186 beginService( " GEOM_Superv_i::MakeFilletAll" );
2187 MESSAGE("GEOM_Superv_i::MakeFilletAllMakeSketcher");
2189 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletAll(theShape, theR);
2190 endService( " GEOM_Superv_i::MakeFilletAll" );
2194 //=============================================================================
2196 //=============================================================================
2197 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletEdges (GEOM::GEOM_Object_ptr theShape,
2199 GEOM::GEOM_List_ptr theEdges)
2201 beginService( " GEOM_Superv_i::MakeFilletEdges" );
2202 MESSAGE("GEOM_Superv_i::MakeFilletEdges");
2203 if (GEOM_List_i<GEOM::ListOfLong>* aListImplE =
2204 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
2206 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletEdges(theShape, theR, aListImplE->GetList());
2207 endService( " GEOM_Superv_i::MakeFilletEdges" );
2210 endService( " GEOM_Superv_i::MakeFilletEdges" );
2214 //=============================================================================
2216 //=============================================================================
2217 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletFaces (GEOM::GEOM_Object_ptr theShape,
2219 GEOM::GEOM_List_ptr theFaces)
2221 beginService( " GEOM_Superv_i::MakeFilletFaces" );
2222 MESSAGE("GEOM_Superv_i::MakeFilletFaces");
2223 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
2224 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
2226 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletFaces(theShape, theR, aListImplF->GetList());
2227 endService( " GEOM_Superv_i::MakeFilletFaces" );
2230 endService( " GEOM_Superv_i::MakeFilletFaces" );
2234 //=============================================================================
2236 //=============================================================================
2237 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferAll (GEOM::GEOM_Object_ptr theShape, CORBA::Double theD)
2239 beginService( " GEOM_Superv_i::MakeChamferAll" );
2240 MESSAGE("GEOM_Superv_i::MakeChamferAll");
2242 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferAll(theShape, theD);
2243 endService( " GEOM_Superv_i::MakeChamferAll" );
2247 //=============================================================================
2249 //=============================================================================
2250 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdge (GEOM::GEOM_Object_ptr theShape,
2251 CORBA::Double theD1, CORBA::Double theD2,
2252 CORBA::Long theFace1, CORBA::Long theFace2)
2254 beginService( " GEOM_Superv_i::MakeChamferEdge" );
2255 MESSAGE("GEOM_Superv_i::MakeChamferEdge");
2257 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdge(theShape, theD1, theD2, theFace1, theFace2);
2258 endService( " GEOM_Superv_i::MakeChamferEdge" );
2262 //=============================================================================
2263 // MakeChamferFaces:
2264 //=============================================================================
2265 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferFaces (GEOM::GEOM_Object_ptr theShape,
2266 CORBA::Double theD1, CORBA::Double theD2,
2267 GEOM::GEOM_List_ptr theFaces)
2269 beginService( " GEOM_Superv_i::MakeChamferFaces" );
2270 MESSAGE("GEOM_Superv_i::MakeChamferFaces");
2271 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
2272 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
2274 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferFaces(theShape, theD1, theD2, aListImplF->GetList());
2275 endService( " GEOM_Superv_i::MakeChamferFaces" );
2278 endService( " GEOM_Superv_i::MakeChamferFaces" );
2282 //=============================================================================
2284 //=============================================================================
2285 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArchimede (GEOM::GEOM_Object_ptr theShape,
2286 CORBA::Double theWeight,
2287 CORBA::Double theWaterDensity,
2288 CORBA::Double theMeshingDeflection)
2290 beginService( " GEOM_Superv_i::MakeArchimede" );
2291 MESSAGE("GEOM_Superv_i::MakeArchimede");
2293 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeArchimede(theShape, theWeight, theWaterDensity, theMeshingDeflection);
2294 endService( " GEOM_Superv_i::MakeArchimede" );
2298 //=============================================================================
2299 // GetSubShapeIndexMakeFilletAll:
2300 //=============================================================================
2301 CORBA::Long GEOM_Superv_i::GetSubShapeIndex (GEOM::GEOM_Object_ptr theShape,
2302 GEOM::GEOM_Object_ptr theSubShape)
2304 beginService( " GEOM_Superv_i::GetSubShapeIndex" );
2305 MESSAGE("GEOM_Superv_i::GetSubShapeIndexMakeArchimede");
2307 CORBA::Long aRes = myLocalOp->GetSubShapeIndex(theShape, theSubShape);
2308 endService( " GEOM_Superv_i::GetSubShapeIndex" );
2312 //=============================== GroupOperations =============================
2313 //=============================================================================
2315 //=============================================================================
2316 GEOM::GEOM_Object_ptr GEOM_Superv_i::CreateGroup (GEOM::GEOM_Object_ptr theMainShape,
2317 CORBA::Long theShapeType)
2319 beginService( " GEOM_Superv_i::CreateGroup" );
2320 MESSAGE("GEOM_Superv_i::CreateGroup");
2322 GEOM::GEOM_Object_ptr anObj = myGroupOp->CreateGroup(theMainShape, theShapeType);
2323 endService( " GEOM_Superv_i::CreateGroup" );
2327 //=============================================================================
2329 //=============================================================================
2330 void GEOM_Superv_i::AddObject (GEOM::GEOM_Object_ptr theGroup,
2331 CORBA::Long theSubShapeId)
2333 beginService( " GEOM_Superv_i::AddObject" );
2334 MESSAGE("GEOM_Superv_i::AddObject");
2336 myGroupOp->AddObject(theGroup, theSubShapeId);
2337 endService( " GEOM_Superv_i::AddObject" );
2340 //=============================================================================
2342 //=============================================================================
2343 void GEOM_Superv_i::RemoveObject (GEOM::GEOM_Object_ptr theGroup,
2344 CORBA::Long theSubShapeId)
2346 beginService( " GEOM_Superv_i::RemoveObject" );
2347 MESSAGE("GEOM_Superv_i::RemoveObject");
2349 myGroupOp->RemoveObject(theGroup, theSubShapeId);
2350 endService( " GEOM_Superv_i::RemoveObject" );
2353 //=============================================================================
2355 //=============================================================================
2356 CORBA::Long GEOM_Superv_i::GetType (GEOM::GEOM_Object_ptr theGroup)
2358 beginService( " GEOM_Superv_i::GetType" );
2359 MESSAGE("GEOM_Superv_i::GetType");
2361 CORBA::Long aResult = myGroupOp->GetType(theGroup);
2362 endService( " GEOM_Superv_i::GetType" );
2366 //=============================================================================
2368 //=============================================================================
2369 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetMainShape (GEOM::GEOM_Object_ptr theGroup)
2371 beginService( " GEOM_Superv_i::GetMainShape" );
2372 MESSAGE("GEOM_Superv_i::GetMainShape");
2374 GEOM::GEOM_Object_ptr anObj = myGroupOp->GetMainShape(theGroup);
2375 endService( " GEOM_Superv_i::GetMainShape" );
2379 //=============================================================================
2381 //=============================================================================
2382 GEOM::GEOM_List_ptr GEOM_Superv_i::GetObjects (GEOM::GEOM_Object_ptr theGroup)
2384 beginService( " GEOM_Superv_i::GetObjects" );
2385 MESSAGE("GEOM_Superv_i::GetObjects");
2388 GEOM::ListOfLong* aList = myGroupOp->GetObjects(theGroup);
2389 GEOM_List_i<GEOM::ListOfLong>* aListPtr = new GEOM_List_i<GEOM::ListOfLong>(*(aList));
2390 MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
2391 endService( " GEOM_Superv_i::GetObjects" );
2392 return aListPtr->_this();
2395 //=====================================================================================
2397 //=====================================================================================
2400 PortableServer::ObjectId * GEOM_SupervEngine_factory(CORBA::ORB_ptr orb,
2401 PortableServer::POA_ptr poa,
2402 PortableServer::ObjectId * contId,
2403 const char *instanceName,
2404 const char * interfaceName)
2406 GEOM_Superv_i * myGEOM_Superv_i = new GEOM_Superv_i(orb, poa, contId, instanceName, interfaceName);
2407 myGEOM_Superv_i->register_name("/myGEOM_Superv");
2408 return myGEOM_Superv_i->getId() ;