1 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #include "GEOM_Superv_i.hh"
23 #include "SALOME_LifeCycleCORBA.hxx"
25 #include CORBA_SERVER_HEADER(SALOME_Session)
26 #include "SALOMEDSClient_ClientFactory.hxx"
28 #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");
73 if (!CORBA::is_nil(myBasicOp))
74 myBasicOp->UnRegister();
75 if (!CORBA::is_nil(myBoolOp))
76 myBoolOp->UnRegister();
77 if (!CORBA::is_nil(my3DPrimOp))
78 my3DPrimOp->UnRegister();
82 //============================================================================
83 // function : register()
84 // purpose : register 'name' in 'name_service'
85 //============================================================================
86 void GEOM_Superv_i::register_name(char * name)
88 GEOM::GEOM_Superv_var g = _this();
89 name_service->Register(g, name);
92 //=============================================================================
94 //=============================================================================
95 void GEOM_Superv_i::setGeomEngine()
97 if ( !CORBA::is_nil(myGeomEngine) )
100 // get GEOM_Gen engine
101 Engines::Container_var cont=GetContainerRef();
102 CORBA::String_var container_name=cont->name();
103 std::string shortName=container_name.in();
104 shortName=shortName.substr(12); // substract "/Containers/"
105 SALOME_LifeCycleCORBA* lcc = new SALOME_LifeCycleCORBA( name_service );
106 Engines::EngineComponent_var comp = lcc->FindOrLoad_Component( shortName.c_str(), "GEOM" );
109 myGeomEngine = GEOM::GEOM_Gen::_narrow(comp);
112 //=============================================================================
114 //=============================================================================
115 void GEOM_Superv_i::SetStudyID( CORBA::Long theId )
117 // mkr : PAL10770 -->
118 myLastStudyID = myStudyID;
120 CORBA::Object_ptr anObject = name_service->Resolve("/Kernel/Session");
121 if ( !CORBA::is_nil(anObject) ) {
122 SALOME::Session_var aSession = SALOME::Session::_narrow(anObject);
123 if ( !CORBA::is_nil(aSession) ) {
124 int aStudyID = aSession->GetActiveStudyId();
125 if ( theId != aStudyID && aStudyID > 0) { // mkr : IPAL12128
126 MESSAGE("Warning : given study ID theId="<<theId<<" is wrong and will be replaced by the value "<<aStudyID);
127 myStudyID = aStudyID;
130 myStudyID = theId; // mkr : IPAL12128
134 if ( isNewStudy(myLastStudyID,myStudyID) ) {
135 if (CORBA::is_nil(myGeomEngine)) setGeomEngine();
136 std::string anEngine = _orb->object_to_string( myGeomEngine );
138 CORBA::Object_var anObj = name_service->Resolve("/myStudyManager");
139 if ( !CORBA::is_nil(anObj) ) {
140 SALOMEDS::StudyManager_var aStudyManager = SALOMEDS::StudyManager::_narrow(anObj);
141 if ( !CORBA::is_nil(aStudyManager) ) {
142 _PTR(Study) aDSStudy = ClientFactory::Study(aStudyManager->GetStudyByID(myStudyID));
144 _PTR(SComponent) aSCO = aDSStudy->FindComponent(myGeomEngine->ComponentDataType());
146 _PTR(StudyBuilder) aBuilder = aDSStudy->NewBuilder();
147 if ( aBuilder ) aBuilder->LoadWith( aSCO, anEngine );
153 // mkr : PAL10770 <--
156 //=============================================================================
158 //=============================================================================
159 GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfGO()
161 MESSAGE("GEOM_Superv_i::CreateListOfGO()");
162 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>();
163 return aListPtr->_this();
166 //=============================================================================
167 // AddItemToListOfGO:
168 //=============================================================================
169 void GEOM_Superv_i::AddItemToListOfGO(GEOM::GEOM_List_ptr& theList,
170 GEOM::GEOM_Object_ptr theObject)
172 MESSAGE("GEOM_Superv_i::AddItemToListOfGO(...)");
173 GEOM::GEOM_Object_var anObj = GEOM::GEOM_Object::_duplicate(theObject);
174 if (GEOM_List_i<GEOM::ListOfGO>* aList =
175 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theList, myPOA).in())) {
176 aList->AddObject(anObj);
177 MESSAGE(" NewLength = "<<aList->GetList().length());
181 //=============================================================================
183 //=============================================================================
184 GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfLong()
186 MESSAGE("GEOM_Superv_i::CreateListOfLong()");
187 GEOM_List_i<GEOM::ListOfLong>* aListPtr = new GEOM_List_i<GEOM::ListOfLong>();
188 return aListPtr->_this();
191 //=============================================================================
192 // AddItemToListOfLong:
193 //=============================================================================
194 void GEOM_Superv_i::AddItemToListOfLong(GEOM::GEOM_List_ptr& theList,
195 CORBA::Long theObject)
197 MESSAGE("GEOM_Superv_i::AddItemToListOfLong(...)");
198 if (GEOM_List_i<GEOM::ListOfLong>* aList =
199 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theList, myPOA).in())) {
200 aList->AddObject(theObject);
201 MESSAGE(" NewLength = "<<aList->GetList().length());
205 //=============================================================================
206 // CreateListOfDouble:
207 //=============================================================================
208 GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfDouble()
210 MESSAGE("GEOM_Superv_i::CreateListOfDouble()");
211 GEOM_List_i<GEOM::ListOfDouble>* aListPtr = new GEOM_List_i<GEOM::ListOfDouble>();
212 return aListPtr->_this();
215 //=============================================================================
216 // AddItemToListOfDouble:
217 //=============================================================================
218 void GEOM_Superv_i::AddItemToListOfDouble(GEOM::GEOM_List_ptr& theList,
219 CORBA::Double theObject)
221 MESSAGE("GEOM_Superv_i::AddItemToListOfDouble(...)");
222 if (GEOM_List_i<GEOM::ListOfDouble>* aList =
223 dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theList, myPOA).in())) {
224 aList->AddObject(theObject);
225 MESSAGE(" NewLength = "<<aList->GetList().length());
229 //=============================================================================
231 //=============================================================================
232 void GEOM_Superv_i::getBasicOp()
234 if (CORBA::is_nil(myGeomEngine))
236 // get GEOM_IBasicOperations interface
237 if (CORBA::is_nil(myBasicOp) || isNewStudy(myLastStudyID,myStudyID)) {
238 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
239 // Try to get id of the study from the SALOME Session
240 if(myStudyID < 0 ) SetStudyID(-1);
241 myBasicOp = myGeomEngine->GetIBasicOperations(myStudyID);
245 //=============================================================================
247 //=============================================================================
248 void GEOM_Superv_i::get3DPrimOp()
250 if (CORBA::is_nil(myGeomEngine))
252 // get GEOM_I3DPrimOperations interface
253 if (CORBA::is_nil(my3DPrimOp) || isNewStudy(myLastStudyID,myStudyID)) {
254 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
255 // Try to get id of the study from the SALOME Session
256 if(myStudyID < 0 ) SetStudyID(-1);
257 my3DPrimOp = myGeomEngine->GetI3DPrimOperations(myStudyID);
261 //=============================================================================
263 //=============================================================================
264 void GEOM_Superv_i::getBoolOp()
266 if (CORBA::is_nil(myGeomEngine))
268 // get GEOM_IBooleanOperations interface
269 if (CORBA::is_nil(myBoolOp) || isNewStudy(myLastStudyID,myStudyID)) {
270 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
271 // Try to get id of the study from the SALOME Session
272 if(myStudyID < 0 ) SetStudyID(-1);
273 myBoolOp = myGeomEngine->GetIBooleanOperations(myStudyID);
277 //=============================================================================
279 //=============================================================================
280 void GEOM_Superv_i::getInsOp()
282 if (CORBA::is_nil(myGeomEngine))
284 // get GEOM_IInsertOperations interface
285 if (CORBA::is_nil(myInsOp) || isNewStudy(myLastStudyID,myStudyID)) {
286 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
287 // Try to get id of the study from the SALOME Session
288 if(myStudyID < 0 ) SetStudyID(-1);
289 myInsOp = myGeomEngine->GetIInsertOperations(myStudyID);
293 //=============================================================================
295 //=============================================================================
296 void GEOM_Superv_i::getTransfOp()
298 if (CORBA::is_nil(myGeomEngine))
300 // get GEOM_ITransformOperations interface
301 if (CORBA::is_nil(myTransfOp) || isNewStudy(myLastStudyID,myStudyID)) {
302 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
303 // Try to get id of the study from the SALOME Session
304 if(myStudyID < 0 ) SetStudyID(-1);
305 myTransfOp = myGeomEngine->GetITransformOperations(myStudyID);
309 //=============================================================================
311 //=============================================================================
312 void GEOM_Superv_i::getShapesOp()
314 if (CORBA::is_nil(myGeomEngine))
316 // get GEOM_IShapesOperations interface
317 if (CORBA::is_nil(myShapesOp) || isNewStudy(myLastStudyID,myStudyID)) {
318 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
319 // Try to get id of the study from the SALOME Session
320 if(myStudyID < 0 ) SetStudyID(-1);
321 myShapesOp = myGeomEngine->GetIShapesOperations(myStudyID);
325 //=============================================================================
327 //=============================================================================
328 void GEOM_Superv_i::getBlocksOp()
330 if (CORBA::is_nil(myGeomEngine))
332 // get GEOM_IBlocksOperations interface
333 if (CORBA::is_nil(myBlocksOp) || isNewStudy(myLastStudyID,myStudyID)) {
334 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
335 // Try to get id of the study from the SALOME Session
336 if(myStudyID < 0 ) SetStudyID(-1);
337 myBlocksOp = myGeomEngine->GetIBlocksOperations(myStudyID);
341 //=============================================================================
343 //=============================================================================
344 void GEOM_Superv_i::getCurvesOp()
346 if (CORBA::is_nil(myGeomEngine))
348 // get GEOM_ICurvesOperations interface
349 if (CORBA::is_nil(myCurvesOp) || isNewStudy(myLastStudyID,myStudyID)) {
350 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
351 // Try to get id of the study from the SALOME Session
352 if(myStudyID < 0 ) SetStudyID(-1);
353 myCurvesOp = myGeomEngine->GetICurvesOperations(myStudyID);
357 //=============================================================================
359 //=============================================================================
360 void GEOM_Superv_i::getLocalOp()
362 if (CORBA::is_nil(myGeomEngine))
364 // get GEOM_ILocalOperations interface
365 if (CORBA::is_nil(myLocalOp) || isNewStudy(myLastStudyID,myStudyID)) {
366 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
367 // Try to get id of the study from the SALOME Session
368 if(myStudyID < 0 ) SetStudyID(-1);
369 myLocalOp = myGeomEngine->GetILocalOperations(myStudyID);
373 //=============================================================================
375 //=============================================================================
376 void GEOM_Superv_i::getGroupOp()
378 if (CORBA::is_nil(myGeomEngine))
380 // get GEOM_IGroupOperations interface
381 if (CORBA::is_nil(myGroupOp) || isNewStudy(myLastStudyID,myStudyID)) {
382 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
383 // Try to get id of the study from the SALOME Session
384 if(myStudyID < 0 ) SetStudyID(-1);
385 myGroupOp = myGeomEngine->GetIGroupOperations(myStudyID);
389 //=============================================================================
391 //=============================================================================
392 void GEOM_Superv_i::getAdvancedOp()
394 if (CORBA::is_nil(myGeomEngine))
396 // get GEOM_IAdvancedOperations interface
397 if (CORBA::is_nil(myAdvancedOp) || isNewStudy(myLastStudyID,myStudyID)) {
398 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
399 // Try to get id of the study from the SALOME Session
400 if(myStudyID < 0 ) SetStudyID(-1);
401 myAdvancedOp = myGeomEngine->GetIAdvancedOperations(myStudyID);
405 //=============================================================================
407 //=============================================================================
408 PortableServer::ServantBase_var GEOM_Superv_i::GetServant(CORBA::Object_ptr theObject,
409 PortableServer::POA_ptr thePOA)
411 if(CORBA::is_nil(theObject)) return NULL;
412 PortableServer::Servant aServant = thePOA->reference_to_servant(theObject);
416 //============================================================================
418 // purpose : save OCAF/Geom document
419 //============================================================================
420 SALOMEDS::TMPFile* GEOM_Superv_i::Save(SALOMEDS::SComponent_ptr theComponent,
422 CORBA::Boolean isMultiFile)
424 SALOMEDS::TMPFile_var aStreamFile;
425 return aStreamFile._retn();
428 //============================================================================
429 // function : SaveASCII()
431 //============================================================================
432 SALOMEDS::TMPFile* GEOM_Superv_i::SaveASCII(SALOMEDS::SComponent_ptr theComponent,
434 CORBA::Boolean isMultiFile)
436 SALOMEDS::TMPFile_var aStreamFile;
437 return aStreamFile._retn();
440 //============================================================================
443 //============================================================================
444 CORBA::Boolean GEOM_Superv_i::Load(SALOMEDS::SComponent_ptr theComponent,
445 const SALOMEDS::TMPFile& theStream,
447 CORBA::Boolean isMultiFile)
452 //============================================================================
453 // function : LoadASCII()
455 //============================================================================
456 CORBA::Boolean GEOM_Superv_i::LoadASCII(SALOMEDS::SComponent_ptr theComponent,
457 const SALOMEDS::TMPFile& theStream,
459 CORBA::Boolean isMultiFile)
464 //============================================================================
465 // function : Close()
467 //============================================================================
468 void GEOM_Superv_i::Close(SALOMEDS::SComponent_ptr theComponent)
472 //============================================================================
473 // function : ComponentDataType()
475 //============================================================================
476 char* GEOM_Superv_i::ComponentDataType()
481 //============================================================================
482 // function : IORToLocalPersistentID()
484 //============================================================================
485 char* GEOM_Superv_i::IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
486 const char* IORString,
487 CORBA::Boolean isMultiFile,
488 CORBA::Boolean isASCII)
493 //============================================================================
494 // function : LocalPersistentIDToIOR()
495 // purpose : Create/Load CORBA object from a persistent ref (an entry)
496 // : Used when a study is loaded
497 // : The IOR (IORName) of object created is returned
498 //============================================================================
499 char* GEOM_Superv_i::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject,
500 const char* aLocalPersistentID,
501 CORBA::Boolean isMultiFile,
502 CORBA::Boolean isASCII)
507 //============================================================================
508 // function : CanPublishInStudy
510 //============================================================================
511 CORBA::Boolean GEOM_Superv_i::CanPublishInStudy(CORBA::Object_ptr theIOR)
513 if (CORBA::is_nil(myGeomEngine))
515 return myGeomEngine->CanPublishInStudy(theIOR);
518 //============================================================================
519 // function : PublishInStudy
521 //============================================================================
522 SALOMEDS::SObject_ptr GEOM_Superv_i::PublishInStudy(SALOMEDS::Study_ptr theStudy,
523 SALOMEDS::SObject_ptr theSObject,
524 CORBA::Object_ptr theObject,
525 const char* theName) throw (SALOME::SALOME_Exception)
527 if (CORBA::is_nil(myGeomEngine))
529 return myGeomEngine->PublishInStudy(theStudy, theSObject, theObject, theName);
532 //============================================================================
533 // function : PublishNamedShapesInStudy
535 //============================================================================
537 GEOM_Superv_i::PublishNamedShapesInStudy(SALOMEDS::Study_ptr theStudy,
538 //SALOMEDS::SObject_ptr theSObject,
539 CORBA::Object_ptr theObject)
541 if (CORBA::is_nil(myGeomEngine))
543 return myGeomEngine->PublishNamedShapesInStudy(theStudy, theObject);
546 //============================================================================
547 // function : CanCopy()
549 //============================================================================
550 CORBA::Boolean GEOM_Superv_i::CanCopy(SALOMEDS::SObject_ptr theObject)
555 //============================================================================
556 // function : CopyFrom()
558 //============================================================================
559 SALOMEDS::TMPFile* GEOM_Superv_i::CopyFrom(SALOMEDS::SObject_ptr theObject, CORBA::Long& theObjectID)
561 SALOMEDS::TMPFile_var aStreamFile;
562 return aStreamFile._retn();
565 //============================================================================
566 // function : CanPaste()
568 //============================================================================
569 CORBA::Boolean GEOM_Superv_i::CanPaste(const char* theComponentName, CORBA::Long theObjectID)
574 //============================================================================
575 // function : PasteInto()
577 //============================================================================
578 SALOMEDS::SObject_ptr GEOM_Superv_i::PasteInto(const SALOMEDS::TMPFile& theStream,
579 CORBA::Long theObjectID,
580 SALOMEDS::SObject_ptr theObject)
582 SALOMEDS::SObject_var aNewSO;
583 return aNewSO._retn();
586 //================= Primitives Construction : BasicOperations =================
587 //=============================================================================
589 //=============================================================================
590 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointXYZ(CORBA::Double theX,
594 beginService( " GEOM_Superv_i::MakePointXYZ" );
595 MESSAGE("GEOM_Superv_i::MakePointXYZ");
597 // make vertex and return
598 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointXYZ(theX, theY, theZ);
599 endService( " GEOM_Superv_i::MakePointXYZ" );
603 //=============================================================================
604 // MakePointWithReference:
605 //=============================================================================
606 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointWithReference (GEOM::GEOM_Object_ptr theReference,
611 beginService( " GEOM_Superv_i::MakePointWithReference" );
612 MESSAGE("GEOM_Superv_i::MakePointWithReference");
614 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointWithReference(theReference, theX, theY, theZ);
615 endService( " GEOM_Superv_i::MakePointWithReference" );
619 //=============================================================================
621 //=============================================================================
622 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
623 CORBA::Double theParameter)
625 beginService( " GEOM_Superv_i::MakePointOnCurve" );
626 MESSAGE("GEOM_Superv_i::MakePointOnCurve");
628 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointOnCurve(theRefCurve, theParameter);
629 endService( " GEOM_Superv_i::MakePointOnCurve" );
633 //=============================================================================
634 // MakePointOnCurveByLength:
635 //=============================================================================
636 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnCurveByLength (GEOM::GEOM_Object_ptr theRefCurve,
637 CORBA::Double theLength,
638 GEOM::GEOM_Object_ptr theStartPoint)
640 beginService( " GEOM_Superv_i::MakePointOnCurveByLength" );
641 MESSAGE("GEOM_Superv_i::MakePointOnCurveByLength");
643 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointOnCurveByLength(theRefCurve, theLength, theStartPoint);
644 endService( " GEOM_Superv_i::MakePointOnCurveByLength" );
648 //=============================================================================
649 // MakePointOnCurveByCoord
650 //=============================================================================
651 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnCurveByCoord (GEOM::GEOM_Object_ptr theRefCurve,
652 CORBA::Double theXParameter,
653 CORBA::Double theYParameter,
654 CORBA::Double theZParameter)
656 beginService( " GEOM_Superv_i::MakePointOnCurveByCoord" );
657 MESSAGE("GEOM_Superv_i::MakePointOnCurveByCoord");
659 GEOM::GEOM_Object_ptr anObj =
660 myBasicOp->MakePointOnCurveByCoord(theRefCurve, theXParameter,
661 theYParameter, theZParameter);
662 endService( " GEOM_Superv_i::MakePointOnCurveByCoord" );
666 //=============================================================================
667 // MakePointOnSurface:
668 //=============================================================================
669 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnSurface (GEOM::GEOM_Object_ptr theRefSurface,
670 CORBA::Double theUParameter,
671 CORBA::Double theVParameter)
673 beginService( " GEOM_Superv_i::MakePointOnSurface" );
674 MESSAGE("GEOM_Superv_i::MakePointOnSurface");
676 GEOM::GEOM_Object_ptr anObj =
677 myBasicOp->MakePointOnSurface(theRefSurface, theUParameter, theVParameter);
678 endService( " GEOM_Superv_i::MakePointOnSurface" );
682 //=============================================================================
683 // MakePointOnSurfaceByCoord
684 //=============================================================================
685 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnSurfaceByCoord (GEOM::GEOM_Object_ptr theRefSurface,
686 CORBA::Double theXParameter,
687 CORBA::Double theYParameter,
688 CORBA::Double theZParameter)
690 beginService( " GEOM_Superv_i::MakePointOnSurfaceByCoord" );
691 MESSAGE("GEOM_Superv_i::MakePointOnSurfaceByCoord");
693 GEOM::GEOM_Object_ptr anObj =
694 myBasicOp->MakePointOnSurfaceByCoord(theRefSurface, theXParameter,
695 theYParameter, theZParameter);
696 endService( " GEOM_Superv_i::MakePointOnSurfaceByCoord" );
700 //=============================================================================
701 // MakePointOnLinesIntersection:
702 //=============================================================================
703 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnLinesIntersection (GEOM::GEOM_Object_ptr theRefLine1,
704 GEOM::GEOM_Object_ptr theRefLine2)
706 beginService( " GEOM_Superv_i::MakePointOnLinesIntersection" );
707 MESSAGE("GEOM_Superv_i::MakePointOnLinesIntersection");
709 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointOnLinesIntersection(theRefLine1, theRefLine2);
710 endService( " GEOM_Superv_i::MakePointOnLinesIntersection" );
714 //=============================================================================
715 // MakeTangentOnCurve:
716 //=============================================================================
717 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTangentOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
718 CORBA::Double theParameter)
720 beginService( " GEOM_Superv_i::MakeTangentOnCurve" );
721 MESSAGE("GEOM_Superv_i::MakeTangentOnCurve");
723 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeTangentOnCurve(theRefCurve, theParameter);
724 endService( " GEOM_Superv_i::MakeTangentOnCurve" );
728 //=============================================================================
730 //=============================================================================
731 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeVectorDXDYDZ (CORBA::Double theDX,
735 beginService( " GEOM_Superv_i::MakeVectorDXDYDZ" );
736 MESSAGE("GEOM_Superv_i::MakeVectorDXDYDZ");
738 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeVectorDXDYDZ(theDX, theDY, theDZ);
739 endService( " GEOM_Superv_i::MakeVectorDXDYDZ" );
743 //=============================================================================
745 //=============================================================================
746 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeVectorTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
747 GEOM::GEOM_Object_ptr thePnt2)
749 beginService( " GEOM_Superv_i::MakeVectorTwoPnt" );
750 MESSAGE("GEOM_Superv_i::MakeVector");
752 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeVectorTwoPnt(thePnt1, thePnt2);
753 endService( " GEOM_Superv_i::MakeVectorTwoPnt" );
757 //=============================================================================
759 //=============================================================================
760 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeLineTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
761 GEOM::GEOM_Object_ptr thePnt2)
763 beginService( " GEOM_Superv_i::MakeLineTwoPnt");
764 MESSAGE("GEOM_Superv_i::MakeLineTwoPnt");
766 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeLineTwoPnt(thePnt1, thePnt2);
767 endService( " GEOM_Superv_i::MakeLineTwoPnt");
771 //=============================================================================
773 //=============================================================================
774 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeLineTwoFaces (GEOM::GEOM_Object_ptr theFace1,
775 GEOM::GEOM_Object_ptr theFace2)
777 beginService( " GEOM_Superv_i::MakeLineTwoFaces");
778 MESSAGE("GEOM_Superv_i::MakeLineTwoFaces");
780 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeLineTwoFaces(theFace1, theFace2);
781 endService( " GEOM_Superv_i::MakeLineTwoFaces");
785 //=============================================================================
786 // MakePlaneThreePnt:
787 //=============================================================================
788 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneThreePnt (GEOM::GEOM_Object_ptr thePnt1,
789 GEOM::GEOM_Object_ptr thePnt2,
790 GEOM::GEOM_Object_ptr thePnt3,
791 CORBA::Double theTrimSize)
793 beginService( " GEOM_Superv_i::MakePlaneThreePnt");
794 MESSAGE("GEOM_Superv_i::MakePlaneThreePnt");
796 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlaneThreePnt(thePnt1, thePnt2, thePnt3, theTrimSize);
797 endService( " GEOM_Superv_i::MakePlaneThreePnt");
801 //=============================================================================
803 //=============================================================================
804 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlanePntVec (GEOM::GEOM_Object_ptr thePnt,
805 GEOM::GEOM_Object_ptr theVec,
806 CORBA::Double theTrimSize)
808 beginService( " GEOM_Superv_i::MakePlanePntVec" );
809 MESSAGE("GEOM_Superv_i::MakePlanePntVec");
811 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlanePntVec(thePnt, theVec, theTrimSize);
812 endService( " GEOM_Superv_i::MakePlanePntVec" );
816 //=============================================================================
818 //=============================================================================
819 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneFace (GEOM::GEOM_Object_ptr theFace,
820 CORBA::Double theTrimSize)
822 beginService( " GEOM_Superv_i::MakePlaneFace" );
823 MESSAGE("GEOM_Superv_i::MakePlaneFace");
825 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlaneFace(theFace, theTrimSize);
826 endService( " GEOM_Superv_i::MakePlaneFace" );
830 //=============================================================================
832 //=============================================================================
833 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlane2Vec (GEOM::GEOM_Object_ptr theVec1,
834 GEOM::GEOM_Object_ptr theVec2,
835 CORBA::Double theTrimSize)
837 beginService( " GEOM_Superv_i::MakePlane2Vec" );
838 MESSAGE("GEOM_Superv_i::MakePlane2Vec");
840 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlane2Vec(theVec1, theVec2, theTrimSize);
841 endService( " GEOM_Superv_i::MakePlane2Vec" );
845 //=============================================================================
847 //=============================================================================
848 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneLCS (GEOM::GEOM_Object_ptr theLCS,
849 CORBA::Double theTrimSize,
850 CORBA::Double theOrientation)
852 beginService( " GEOM_Superv_i::MakePlaneLCS" );
853 MESSAGE("GEOM_Superv_i::MakePlaneLCS");
855 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlaneLCS(theLCS, theTrimSize, theOrientation);
856 endService( " GEOM_Superv_i::MakePlaneLCS" );
860 //=============================================================================
862 //=============================================================================
863 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarker
864 (CORBA::Double theOX , CORBA::Double theOY , CORBA::Double theOZ,
865 CORBA::Double theXDX, CORBA::Double theXDY, CORBA::Double theXDZ,
866 CORBA::Double theYDX, CORBA::Double theYDY, CORBA::Double theYDZ)
868 beginService( " GEOM_Superv_i::MakeMarker" );
869 MESSAGE("GEOM_Superv_i::MakeMarker");
871 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeMarker(theOX, theOY, theOZ, theXDX, theXDY, theXDZ, theYDX, theYDY, theYDZ);
872 endService( " GEOM_Superv_i::MakeMarker" );
876 //=============================================================================
877 // MakeMarkerFromShape:
878 //=============================================================================
879 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarkerFromShape (GEOM::GEOM_Object_ptr theShape)
881 beginService( " GEOM_Superv_i::MakeMarkerFromShape" );
882 MESSAGE("GEOM_Superv_i::MakeMarkerFromShape");
884 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeMarkerFromShape(theShape);
885 endService( " GEOM_Superv_i::MakeMarkerFromShape" );
889 //=============================================================================
890 // MakeMarkerPntTwoVec:
891 //=============================================================================
892 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarkerPntTwoVec (GEOM::GEOM_Object_ptr theOrigin,
893 GEOM::GEOM_Object_ptr theXVec,
894 GEOM::GEOM_Object_ptr theYVec)
896 beginService( " GEOM_Superv_i::MakeMarkerPntTwoVec" );
897 MESSAGE("GEOM_Superv_i::MakeMarkerPntTwoVec");
899 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeMarkerPntTwoVec(theOrigin, theXVec, theYVec);
900 endService( " GEOM_Superv_i::MakeMarkerPntTwoVec" );
904 //=============================================================================
905 // MakeTangentPlaneOnFace:
906 //=============================================================================
907 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTangentPlaneOnFace (GEOM::GEOM_Object_ptr theFace,
908 CORBA::Double theParameterU,
909 CORBA::Double theParameterV,
910 CORBA::Double theTrimSize)
912 beginService( " GEOM_Superv_i::MakeTangentPlaneOnFace" );
913 MESSAGE("GEOM_Superv_i::MakeTangentPlaneOnFace");
915 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeTangentPlaneOnFace(theFace, theParameterU,theParameterV,theTrimSize);
916 endService( " GEOM_Superv_i::MakeTangentPlaneOnFace" );
920 //================= Primitives Construction : 3DPrimOperations ================
921 //=============================================================================
923 //=============================================================================
924 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBox (CORBA::Double theX1,
931 beginService( " GEOM_Superv_i::MakeBox" );
932 MESSAGE("GEOM_Superv_i::MakeBox");
935 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxTwoPnt(myBasicOp->MakePointXYZ(theX1, theY1, theZ1),
936 myBasicOp->MakePointXYZ(theX2, theY2, theZ2));
937 endService( " GEOM_Superv_i::MakeBox" );
941 //=============================================================================
943 //=============================================================================
944 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxDXDYDZ (CORBA::Double theDX,
948 beginService( " GEOM_Superv_i::MakeBoxDXDYDZ" );
949 MESSAGE("GEOM_Superv_i::MakeBoxDXDYDZ");
951 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxDXDYDZ(theDX, theDY, theDZ);
952 endService( " GEOM_Superv_i::MakeBoxDXDYDZ" );
956 //=============================================================================
958 //=============================================================================
959 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
960 GEOM::GEOM_Object_ptr thePnt2)
962 beginService( " GEOM_Superv_i::MakeBoxTwoPnt" );
963 MESSAGE("GEOM_Superv_i::MakeBoxTwoPnt");
965 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxTwoPnt(thePnt1, thePnt2);
966 endService( " GEOM_Superv_i::MakeBoxTwoPnt" );
970 //=============================================================================
972 //=============================================================================
973 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceHW (CORBA::Double theH,
975 CORBA::Short theOrientation)
977 beginService( " GEOM_Superv_i::MakeFaceHW" );
978 MESSAGE("GEOM_Superv_i::MakeFaceHW");
980 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeFaceHW(theH, theW, theOrientation);
981 endService( " GEOM_Superv_i::MakeFaceHW" );
985 //=============================================================================
987 //=============================================================================
988 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceObjHW (GEOM::GEOM_Object_ptr theObj,
992 beginService( " GEOM_Superv_i::MakeFaceObjHW" );
993 MESSAGE("GEOM_Superv_i::MakeFaceObjHW");
995 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeFaceObjHW(theObj, theH, theW);
996 endService( " GEOM_Superv_i::MakeFaceObjHW" );
1000 //=============================================================================
1002 //=============================================================================
1003 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskPntVecR (GEOM::GEOM_Object_ptr theCenter,
1004 GEOM::GEOM_Object_ptr theVector,
1007 beginService( " GEOM_Superv_i::MakeDiskPntVecR" );
1008 MESSAGE("GEOM_Superv_i::MakeDiskPntVecR");
1010 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeDiskPntVecR(theCenter, theVector, theR);
1011 endService( " GEOM_Superv_i::MakeDiskPntVecR" );
1015 //=============================================================================
1016 // MakeDiskThreePnt:
1017 //=============================================================================
1018 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskThreePnt (GEOM::GEOM_Object_ptr thePnt1,
1019 GEOM::GEOM_Object_ptr thePnt2,
1020 GEOM::GEOM_Object_ptr thePnt3)
1022 beginService( " GEOM_Superv_i::MakeDiskThreePnt" );
1023 MESSAGE("GEOM_Superv_i::MakeDiskThreePnt");
1025 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeDiskThreePnt(thePnt1, thePnt2, thePnt3);
1026 endService( " GEOM_Superv_i::MakeDiskThreePnt" );
1030 //=============================================================================
1032 //=============================================================================
1033 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskR (CORBA::Double theR,
1034 CORBA::Short theOrientation)
1036 beginService( " GEOM_Superv_i::MakeDiskR" );
1037 MESSAGE("GEOM_Superv_i::MakeDiskR");
1039 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeDiskR(theR, theOrientation);
1040 endService( " GEOM_Superv_i::MakeDiskR" );
1044 //=============================================================================
1045 // MakeCylinderPntVecRH:
1046 //=============================================================================
1047 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
1048 GEOM::GEOM_Object_ptr theAxis,
1049 CORBA::Double theRadius,
1050 CORBA::Double theHeight)
1052 beginService( " GEOM_Superv_i::MakeCylinderPntVecRH" );
1053 MESSAGE("GEOM_Superv_i::MakeCylinderPntVecRH");
1055 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeCylinderPntVecRH(thePnt, theAxis, theRadius, theHeight);
1056 endService( " GEOM_Superv_i::MakeCylinderPntVecRH" );
1060 //=============================================================================
1062 //=============================================================================
1063 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderRH (CORBA::Double theR,
1066 beginService( " GEOM_Superv_i::MakeCylinderRH" );
1067 MESSAGE("GEOM_Superv_i::MakeCylinderRH");
1069 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeCylinderRH(theR, theH);
1070 endService( " GEOM_Superv_i::MakeCylinderRH" );
1074 //=============================================================================
1076 //=============================================================================
1077 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSphere (CORBA::Double theX,
1080 CORBA::Double theRadius)
1082 beginService( " GEOM_Superv_i::MakeSphepe" );
1083 MESSAGE("GEOM_Superv_i::MakeSphepe");
1086 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSpherePntR(myBasicOp->MakePointXYZ(theX, theY, theZ), theRadius);
1087 endService( " GEOM_Superv_i::MakeSphepe" );
1091 //=============================================================================
1093 //=============================================================================
1094 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSphereR (CORBA::Double theR)
1096 beginService( " GEOM_Superv_i::MakeSphereR" );
1097 MESSAGE("GEOM_Superv_i::MakeSphereR");
1099 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSphereR(theR);
1100 endService( " GEOM_Superv_i::MakeSphereR" );
1104 //=============================================================================
1106 //=============================================================================
1107 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
1110 beginService( " GEOM_Superv_i::MakeSpherePntR" );
1111 MESSAGE("GEOM_Superv_i::MakeSpherePntR");
1113 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSpherePntR(thePnt, theR);
1114 endService( " GEOM_Superv_i::MakeSpherePntR" );
1118 //=============================================================================
1119 // MakeTorusPntVecRR:
1120 //=============================================================================
1121 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTorusPntVecRR (GEOM::GEOM_Object_ptr thePnt,
1122 GEOM::GEOM_Object_ptr theVec,
1123 CORBA::Double theRMajor,
1124 CORBA::Double theRMinor)
1126 beginService( " GEOM_Superv_i::MakeTorusPntVecRR" );
1127 MESSAGE("GEOM_Superv_i::MakeTorusPntVecRR");
1129 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeTorusPntVecRR(thePnt, theVec, theRMajor, theRMinor);
1130 endService( " GEOM_Superv_i::MakeTorusPntVecRR" );
1134 //=============================================================================
1136 //=============================================================================
1137 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTorusRR (CORBA::Double theRMajor,
1138 CORBA::Double theRMinor)
1140 beginService( " GEOM_Superv_i::MakeTorusRR" );
1141 MESSAGE("GEOM_Superv_i::MakeTorusRR");
1143 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeTorusRR(theRMajor, theRMinor);
1144 endService( " GEOM_Superv_i::MakeTorusRR" );
1148 //=============================================================================
1149 // MakeConePntVecR1R2H:
1150 //=============================================================================
1151 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
1152 GEOM::GEOM_Object_ptr theAxis,
1153 CORBA::Double theR1,
1154 CORBA::Double theR2,
1155 CORBA::Double theHeight)
1157 beginService( " GEOM_Superv_i::MakeConePntVecR1R2H" );
1158 MESSAGE("GEOM_Superv_i::MakeConePntVecR1R2H");
1160 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeConePntVecR1R2H(thePnt, theAxis, theR1, theR2, theHeight);
1161 endService( " GEOM_Superv_i::MakeConePntVecR1R2H" );
1165 //=============================================================================
1167 //=============================================================================
1168 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeConeR1R2H (CORBA::Double theR1,
1169 CORBA::Double theR2,
1170 CORBA::Double theHeight)
1172 beginService( " GEOM_Superv_i::MakeConeR1R2H" );
1173 MESSAGE("GEOM_Superv_i::MakeConeR1R2H");
1175 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeConeR1R2H(theR1, theR2, theHeight);
1176 endService( " GEOM_Superv_i::MakeConeR1R2H" );
1180 //=============================================================================
1182 //=============================================================================
1183 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
1184 GEOM::GEOM_Object_ptr theVec,
1187 beginService( " GEOM_Superv_i::MakePrismVecH" );
1188 MESSAGE("GEOM_Superv_i::MakePrismVecH");
1190 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismVecH(theBase, theVec, theH);
1191 endService( " GEOM_Superv_i::MakePrismVecH" );
1195 //=============================================================================
1196 // MakePrismVecH2Ways:
1197 //=============================================================================
1198 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
1199 GEOM::GEOM_Object_ptr theVec,
1202 beginService( " GEOM_Superv_i::MakePrismVecH2Ways" );
1203 MESSAGE("GEOM_Superv_i::MakePrismVecH2Ways");
1205 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismVecH2Ways(theBase, theVec, theH);
1206 endService( " GEOM_Superv_i::MakePrismVecH2Ways" );
1210 //=============================================================================
1212 //=============================================================================
1213 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
1214 GEOM::GEOM_Object_ptr thePoint1,
1215 GEOM::GEOM_Object_ptr thePoint2)
1217 beginService( " GEOM_Superv_i::MakePrismTwoPnt" );
1218 MESSAGE("GEOM_Superv_i::MakePrismTwoPnt");
1220 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismTwoPnt(theBase, thePoint1, thePoint2);
1221 endService( " GEOM_Superv_i::MakePrismTwoPnt" );
1225 //=============================================================================
1226 // MakePrismTwoPnt2Ways:
1227 //=============================================================================
1228 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr theBase,
1229 GEOM::GEOM_Object_ptr thePoint1,
1230 GEOM::GEOM_Object_ptr thePoint2)
1232 beginService( " GEOM_Superv_i::MakePrismTwoPnt2Ways" );
1233 MESSAGE("GEOM_Superv_i::MakePrismTwoPnt2Ways");
1235 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismTwoPnt2Ways(theBase, thePoint1, thePoint2);
1236 endService( " GEOM_Superv_i::MakePrismTwoPnt2Ways" );
1240 //=============================================================================
1242 //=============================================================================
1243 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismDXDYDZ (GEOM::GEOM_Object_ptr theBase,
1244 CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
1246 beginService( " GEOM_Superv_i::MakePrismDXDYDZ" );
1247 MESSAGE("GEOM_Superv_i::MakePrismDXDYDZ");
1249 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismDXDYDZ(theBase, theDX, theDY, theDZ);
1250 endService( " GEOM_Superv_i::MakePrismDXDYDZ" );
1254 //=============================================================================
1256 //=============================================================================
1257 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismDXDYDZ2Ways (GEOM::GEOM_Object_ptr theBase,
1258 CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
1260 beginService( " GEOM_Superv_i::MakePrismDXDYDZ2Ways" );
1261 MESSAGE("GEOM_Superv_i::MakePrismDXDYDZ2Ways");
1263 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismDXDYDZ2Ways(theBase, theDX, theDY, theDZ);
1264 endService( " GEOM_Superv_i::MakePrismDXDYDZ2Ways" );
1268 //=============================================================================
1270 //=============================================================================
1271 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipe (GEOM::GEOM_Object_ptr theBase,
1272 GEOM::GEOM_Object_ptr thePath)
1274 beginService( " GEOM_Superv_i::MakePipe" );
1275 MESSAGE("GEOM_Superv_i::MakePipe");
1277 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePipe(theBase, thePath);
1278 endService( " GEOM_Superv_i::MakePipe" );
1282 //=============================================================================
1283 // MakeRevolutionAxisAngle:
1284 //=============================================================================
1285 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
1286 GEOM::GEOM_Object_ptr theAxis,
1287 CORBA::Double theAngle)
1289 beginService( " GEOM_Superv_i::MakeRevolutionAxisAngle" );
1290 MESSAGE("GEOM_Superv_i::MakeRevolutionAxisAngle");
1292 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeRevolutionAxisAngle(theBase, theAxis, theAngle);
1293 endService( " GEOM_Superv_i::MakeRevolutionAxisAngle" );
1297 //=============================================================================
1298 // MakeRevolutionAxisAngle:
1299 //=============================================================================
1300 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
1301 GEOM::GEOM_Object_ptr theAxis,
1302 CORBA::Double theAngle)
1304 beginService( " GEOM_Superv_i::MakeRevolutionAxisAngle2Ways" );
1305 MESSAGE("GEOM_Superv_i::MakeRevolutionAxisAngle2Ways");
1307 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeRevolutionAxisAngle2Ways(theBase, theAxis, theAngle);
1308 endService( " GEOM_Superv_i::MakeRevolutionAxisAngle2Ways" );
1312 //=============================================================================
1314 //=============================================================================
1315 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilling (GEOM::GEOM_Object_ptr theShape,
1316 CORBA::Long theMinDeg,
1317 CORBA::Long theMaxDeg,
1318 CORBA::Double theTol2D,
1319 CORBA::Double theTol3D,
1320 CORBA::Long theNbIter,
1321 GEOM::filling_oper_method theMethod,
1322 CORBA::Boolean theApprox)
1324 beginService( " GEOM_Superv_i::MakeFilling" );
1325 MESSAGE("GEOM_Superv_i::MakeFilling");
1327 GEOM::GEOM_Object_ptr anObj =
1328 my3DPrimOp->MakeFilling(theShape, theMinDeg, theMaxDeg, theTol2D, theTol3D,
1329 theNbIter, theMethod, theApprox);
1330 endService( " GEOM_Superv_i::MakeFilling" );
1334 //============================= BooleanOperations =============================
1335 //=============================================================================
1337 //=============================================================================
1338 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoolean (GEOM::GEOM_Object_ptr theShape1,
1339 GEOM::GEOM_Object_ptr theShape2,
1340 CORBA::Long theOperation)
1342 beginService( " GEOM_Superv_i::MakeBoolean" );
1343 // theOperation indicates the operation to be done:
1344 // 1 - Common, 2 - Cut, 3 - Fuse, 4 - Section
1345 MESSAGE("GEOM_Superv_i::MakeBoolean");
1347 GEOM::GEOM_Object_ptr anObj = myBoolOp->MakeBoolean(theShape1, theShape2, theOperation);
1348 endService( " GEOM_Superv_i::MakeBoolean" );
1352 //=============================================================================
1353 // MakeThruSections:
1354 //=============================================================================
1355 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeThruSections(const GEOM::ListOfGO& theSeqSections,
1356 CORBA::Boolean theModeSolid,
1357 CORBA::Double thePreci,
1358 CORBA::Boolean theRuled)
1360 beginService( " GEOM_Superv_i::MakeThruSections" );
1361 MESSAGE("GEOM_Superv_i::MakeThruSections");
1363 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeThruSections(theSeqSections, theModeSolid,thePreci,theRuled);
1364 endService( " GEOM_Superv_i::MakeThruSections" );
1368 //=============================================================================
1370 //=============================================================================
1371 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeWithDifferentSections
1372 (const GEOM::ListOfGO& theBases,
1373 const GEOM::ListOfGO& theLocations,
1374 GEOM::GEOM_Object_ptr thePath,
1375 CORBA::Boolean theWithContact,
1376 CORBA::Boolean theWithCorrections)
1378 beginService( " GEOM_Superv_i::MakePipeWithDifferentSections" );
1379 MESSAGE("GEOM_Superv_i::MakePipeWithDifferentSections");
1381 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePipeWithDifferentSections(theBases,theLocations, thePath,theWithContact,theWithCorrections);
1382 endService( " GEOM_Superv_i::MakePipeWithDifferentSections" );
1387 //=============================================================================
1389 //=============================================================================
1390 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeWithShellSections
1391 (const GEOM::ListOfGO& theBases,
1392 const GEOM::ListOfGO& theSubBases,
1393 const GEOM::ListOfGO& theLocations,
1394 GEOM::GEOM_Object_ptr thePath,
1395 CORBA::Boolean theWithContact,
1396 CORBA::Boolean theWithCorrections)
1398 beginService( " GEOM_Superv_i::MakePipeWithShellSections" );
1399 MESSAGE("GEOM_Superv_i::MakePipeWithShellSections");
1401 GEOM::GEOM_Object_ptr anObj =
1402 my3DPrimOp->MakePipeWithShellSections(theBases, theSubBases,
1403 theLocations, thePath,
1404 theWithContact, theWithCorrections);
1405 endService( " GEOM_Superv_i::MakePipeWithShellSections" );
1410 //=============================================================================
1412 //=============================================================================
1413 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeShellsWithoutPath
1414 (const GEOM::ListOfGO& theBases,
1415 const GEOM::ListOfGO& theLocations)
1417 beginService( " GEOM_Superv_i::MakePipeShellsWithoutPath" );
1418 MESSAGE("GEOM_Superv_i::MakePipeShellsWithoutPath");
1420 GEOM::GEOM_Object_ptr anObj =
1421 my3DPrimOp->MakePipeShellsWithoutPath(theBases,theLocations);
1422 endService( " GEOM_Superv_i::MakePipeShellsWithoutPath" );
1427 //=============================================================================
1429 //=============================================================================
1430 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeBiNormalAlongVector
1431 (GEOM::GEOM_Object_ptr theBase,
1432 GEOM::GEOM_Object_ptr thePath,
1433 GEOM::GEOM_Object_ptr theVec)
1435 beginService( " GEOM_Superv_i::MakePipeBiNormalAlongVector" );
1436 MESSAGE("GEOM_Superv_i::MakePipeBiNormalAlongVector");
1438 GEOM::GEOM_Object_ptr anObj =
1439 my3DPrimOp->MakePipeBiNormalAlongVector(theBase, thePath, theVec);
1440 endService( " GEOM_Superv_i::MakePipeBiNormalAlongVector" );
1445 //=============================================================================
1447 //=============================================================================
1448 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFuse (GEOM::GEOM_Object_ptr theShape1,
1449 GEOM::GEOM_Object_ptr theShape2)
1451 beginService( " GEOM_Superv_i::MakeFuse" );
1452 MESSAGE("GEOM_Superv_i::MakeFuse");
1454 GEOM::GEOM_Object_ptr anObj = myBoolOp->MakeBoolean(theShape1, theShape2, 3);
1455 endService( " GEOM_Superv_i::MakeFuse" );
1459 //=============================================================================
1461 //=============================================================================
1462 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePartition (GEOM::GEOM_List_ptr theShapes,
1463 GEOM::GEOM_List_ptr theTools,
1464 GEOM::GEOM_List_ptr theKeepInside,
1465 GEOM::GEOM_List_ptr theRemoveInside,
1466 CORBA::Short theLimit,
1467 CORBA::Boolean theRemoveWebs,
1468 GEOM::GEOM_List_ptr theMaterials,
1469 CORBA::Short theKeepNonlimitShapes)
1471 beginService( " GEOM_Superv_i::MakePartition" );
1472 MESSAGE("GEOM_Superv_i::MakePartition");
1473 GEOM_List_i<GEOM::ListOfGO>* aListImplS =
1474 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShapes, myPOA).in());
1475 GEOM_List_i<GEOM::ListOfGO>* aListImplT =
1476 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theTools, myPOA).in());
1477 GEOM_List_i<GEOM::ListOfGO>* aListImplKI =
1478 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theKeepInside, myPOA).in());
1479 GEOM_List_i<GEOM::ListOfGO>* aListImplRI =
1480 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theRemoveInside, myPOA).in());
1481 GEOM_List_i<GEOM::ListOfLong>* aListImplM =
1482 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theMaterials, myPOA).in());
1483 if (aListImplS && aListImplT && aListImplKI && aListImplRI && aListImplM) {
1485 GEOM::GEOM_Object_ptr anObj =
1486 myBoolOp->MakePartition(aListImplS->GetList(), aListImplT->GetList(),
1487 aListImplKI->GetList(), aListImplRI->GetList(),
1488 theLimit, theRemoveWebs, aListImplM->GetList(),
1489 theKeepNonlimitShapes);
1490 endService( " GEOM_Superv_i::MakePartition" );
1493 endService( " GEOM_Superv_i::MakePartition" );
1497 //=============================================================================
1498 // MakeHalfPartition:
1499 //=============================================================================
1500 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHalfPartition (GEOM::GEOM_Object_ptr theShape,
1501 GEOM::GEOM_Object_ptr thePlane)
1503 beginService( " GEOM_Superv_i::MakeHalfPartition" );
1504 MESSAGE("GEOM_Superv_i::MakeHalfPartition");
1506 GEOM::GEOM_Object_ptr anObj = myBoolOp->MakeHalfPartition(theShape, thePlane);
1507 endService( " GEOM_Superv_i::MakeHalfPartition" );
1511 //============================== InsertOperations =============================
1512 //=============================================================================
1514 //=============================================================================
1515 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCopy (GEOM::GEOM_Object_ptr theOriginal)
1517 beginService( " GEOM_Superv_i::MakeCopy" );
1518 MESSAGE("GEOM_Superv_i::MakeCopy");
1520 GEOM::GEOM_Object_ptr anObj = myInsOp->MakeCopy(theOriginal);
1521 endService( " GEOM_Superv_i::MakeCopy" );
1525 //=============================================================================
1527 //=============================================================================
1528 void GEOM_Superv_i::Export (GEOM::GEOM_Object_ptr theObject,
1529 const char* theFileName,
1530 const char* theFormatName)
1532 beginService( " GEOM_Superv_i::Export" );
1533 MESSAGE("GEOM_Superv_i::Export");
1535 myInsOp->Export(theObject, theFileName, theFormatName);
1536 endService( " GEOM_Superv_i::Export" );
1539 //=============================================================================
1541 //=============================================================================
1542 GEOM::GEOM_Object_ptr GEOM_Superv_i::ImportFile (const char* theFileName,
1543 const char* theFormatName)
1545 beginService( " GEOM_Superv_i::ImportFile" );
1546 MESSAGE("GEOM_Superv_i::ImportFile");
1548 GEOM::GEOM_Object_ptr anObj = myInsOp->ImportFile(theFileName, theFormatName);
1549 endService( " GEOM_Superv_i::ImportFile" );
1553 //=============================================================================
1554 // ImportTranslators:
1555 //=============================================================================
1556 void GEOM_Superv_i::ImportTranslators (GEOM::string_array_out theFormats,
1557 GEOM::string_array_out thePatterns)
1559 beginService( " GEOM_Superv_i::ImportTranslators" );
1560 MESSAGE("GEOM_Superv_i::ImportTranslators");
1562 myInsOp->ImportTranslators(theFormats, thePatterns);
1563 endService( " GEOM_Superv_i::ImportTranslators" );
1566 //=============================================================================
1567 // ExportTranslators:
1568 //=============================================================================
1569 void GEOM_Superv_i::ExportTranslators (GEOM::string_array_out theFormats,
1570 GEOM::string_array_out thePatterns)
1572 beginService( " GEOM_Superv_i::ExportTranslators" );
1573 MESSAGE("GEOM_Superv_i::ExportTranslators");
1575 myInsOp->ExportTranslators(theFormats, thePatterns);
1576 endService( " GEOM_Superv_i::ExportTranslators" );
1579 //============================= TransformOperations ===========================
1580 //=============================================================================
1581 // TranslateTwoPoints:
1582 //=============================================================================
1583 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
1584 GEOM::GEOM_Object_ptr thePoint1,
1585 GEOM::GEOM_Object_ptr thePoint2)
1587 beginService( " GEOM_Superv_i::TranslateTwoPoints" );
1588 MESSAGE("GEOM_Superv_i::TranslateTwoPoints");
1590 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateTwoPoints(theObject, thePoint1, thePoint2);
1591 endService( " GEOM_Superv_i::TranslateTwoPoints" );
1595 //=============================================================================
1596 // TranslateTwoPointsCopy:
1597 //=============================================================================
1598 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
1599 GEOM::GEOM_Object_ptr thePoint1,
1600 GEOM::GEOM_Object_ptr thePoint2)
1602 beginService( " GEOM_Superv_i::TranslateTwoPointsCopy" );
1603 MESSAGE("GEOM_Superv_i::TranslateTwoPointsCopy");
1605 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateTwoPointsCopy(theObject, thePoint1, thePoint2);
1606 endService( " GEOM_Superv_i::TranslateTwoPointsCopy" );
1610 //=============================================================================
1612 //=============================================================================
1613 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject,
1614 CORBA::Double theDX,
1615 CORBA::Double theDY,
1616 CORBA::Double theDZ)
1618 beginService( " GEOM_Superv_i::TranslateDXDYDZ" );
1619 MESSAGE("GEOM_Superv_i::TranslateDXDYDZ");
1621 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateDXDYDZ(theObject, theDX, theDY, theDZ);
1622 endService( " GEOM_Superv_i::TranslateDXDYDZ" );
1626 //=============================================================================
1627 // TranslateDXDYDZCopy:
1628 //=============================================================================
1629 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject,
1630 CORBA::Double theDX,
1631 CORBA::Double theDY,
1632 CORBA::Double theDZ)
1634 beginService( " GEOM_Superv_i::TranslateDXDYDZCopy" );
1635 MESSAGE("GEOM_Superv_i::TranslateDXDYDZCopy");
1637 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateDXDYDZCopy(theObject, theDX, theDY, theDZ);
1638 endService( " GEOM_Superv_i::TranslateDXDYDZCopy" );
1642 //=============================================================================
1644 //=============================================================================
1645 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVector (GEOM::GEOM_Object_ptr theObject,
1646 GEOM::GEOM_Object_ptr theVector)
1648 beginService( " GEOM_Superv_i::TranslateVector" );
1649 MESSAGE("GEOM_Superv_i::TranslateVector");
1651 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVector(theObject, theVector);
1652 endService( " GEOM_Superv_i::TranslateVector" );
1656 //=============================================================================
1657 // TranslateVectorCopy:
1658 //=============================================================================
1659 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
1660 GEOM::GEOM_Object_ptr theVector)
1662 beginService( " GEOM_Superv_i::TranslateVectorCopy" );
1663 MESSAGE("GEOM_Superv_i::TranslateVectorCopy");
1665 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVectorCopy(theObject, theVector);
1666 endService( " GEOM_Superv_i::TranslateVectorCopy" );
1670 //=============================================================================
1671 // TranslateVectorDistance:
1672 //=============================================================================
1673 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVectorDistance (GEOM::GEOM_Object_ptr theObject,
1674 GEOM::GEOM_Object_ptr theVector,
1675 CORBA::Double theDistance,
1676 CORBA::Boolean theCopy)
1678 beginService( " GEOM_Superv_i::TranslateVectorDistance" );
1679 MESSAGE("GEOM_Superv_i::TranslateVectorDistance");
1681 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVectorDistance(theObject,
1682 theVector, theDistance, theCopy);
1683 endService( " GEOM_Superv_i::TranslateVectorDistance" );
1687 //=============================================================================
1688 // MultiTranslate1D:
1689 //=============================================================================
1690 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiTranslate1D (GEOM::GEOM_Object_ptr theObject,
1691 GEOM::GEOM_Object_ptr theVector,
1692 CORBA::Double theStep,
1693 CORBA::Long theNbTimes)
1695 beginService( " GEOM_Superv_i::MultiTranslate1D" );
1696 MESSAGE("GEOM_Superv_i::MultiTranslate1D");
1698 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiTranslate1D(theObject, theVector, theStep, theNbTimes);
1699 endService( " GEOM_Superv_i::MultiTranslate1D" );
1703 //=============================================================================
1704 // MultiTranslate2D:
1705 //=============================================================================
1706 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiTranslate2D (GEOM::GEOM_Object_ptr theObject,
1707 GEOM::GEOM_Object_ptr theVector1,
1708 CORBA::Double theStep1,
1709 CORBA::Long theNbTimes1,
1710 GEOM::GEOM_Object_ptr theVector2,
1711 CORBA::Double theStep2,
1712 CORBA::Long theNbTimes2)
1714 beginService( " GEOM_Superv_i::MultiTranslate2D" );
1715 MESSAGE("GEOM_Superv_i::MultiTranslate2D");
1717 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiTranslate2D(theObject, theVector1, theStep1, theNbTimes1,
1718 theVector2, theStep2, theNbTimes2);
1719 endService( " GEOM_Superv_i::MultiTranslate2D" );
1723 //=============================================================================
1725 //=============================================================================
1726 GEOM::GEOM_Object_ptr GEOM_Superv_i::Rotate (GEOM::GEOM_Object_ptr theObject,
1727 GEOM::GEOM_Object_ptr theAxis,
1728 CORBA::Double theAngle)
1730 beginService( " GEOM_Superv_i::Rotate" );
1731 MESSAGE("GEOM_Superv_i::Rotate");
1733 GEOM::GEOM_Object_ptr anObj = myTransfOp->Rotate(theObject, theAxis, theAngle);
1734 endService( " GEOM_Superv_i::Rotate" );
1738 //=============================================================================
1740 //=============================================================================
1741 GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateCopy (GEOM::GEOM_Object_ptr theObject,
1742 GEOM::GEOM_Object_ptr theAxis,
1743 CORBA::Double theAngle)
1745 beginService( " GEOM_Superv_i::RotateCopy" );
1746 MESSAGE("GEOM_Superv_i::RotateCopy");
1748 GEOM::GEOM_Object_ptr anObj = myTransfOp->RotateCopy(theObject, theAxis, theAngle);
1749 endService( " GEOM_Superv_i::RotateCopy" );
1752 //=============================================================================
1753 // RotateThreePoints:
1754 //=============================================================================
1755 GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateThreePoints (GEOM::GEOM_Object_ptr theObject,
1756 GEOM::GEOM_Object_ptr theCentPoint,
1757 GEOM::GEOM_Object_ptr thePoint1,
1758 GEOM::GEOM_Object_ptr thePoint2)
1760 beginService( " GEOM_Superv_i::RotateThreePoints" );
1761 MESSAGE("GEOM_Superv_i::RotateThreePoints");
1763 GEOM::GEOM_Object_ptr anObj = myTransfOp->RotateThreePoints(theObject, theCentPoint, thePoint1, thePoint2);
1764 endService( " GEOM_Superv_i::RotateThreePoints" );
1768 //=============================================================================
1769 // RotateThreePointsCopy:
1770 //=============================================================================
1771 GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateThreePointsCopy (GEOM::GEOM_Object_ptr theObject,
1772 GEOM::GEOM_Object_ptr theCentPoint,
1773 GEOM::GEOM_Object_ptr thePoint1,
1774 GEOM::GEOM_Object_ptr thePoint2)
1776 beginService( " GEOM_Superv_i::RotateThreePointsCopy" );
1777 MESSAGE("GEOM_Superv_i::RotateThreePointsCopy");
1779 GEOM::GEOM_Object_ptr anObj = myTransfOp->RotateThreePointsCopy(theObject, theCentPoint, thePoint1, thePoint2);
1780 endService( " GEOM_Superv_i::RotateThreePointsCopy" );
1784 //=============================================================================
1786 //=============================================================================
1787 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
1788 GEOM::GEOM_Object_ptr theAxis,
1789 CORBA::Long theNbTimes)
1791 beginService( " GEOM_Superv_i::MultiRotate1D" );
1792 MESSAGE("GEOM_Superv_i::MultiRotate1D");
1794 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiRotate1D(theObject, theAxis, theNbTimes);
1795 endService( " GEOM_Superv_i::MultiRotate1D" );
1799 //=============================================================================
1801 //=============================================================================
1802 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
1803 GEOM::GEOM_Object_ptr theAxis,
1804 CORBA::Double theAngle,
1805 CORBA::Long theNbTimes1,
1806 CORBA::Double theStep,
1807 CORBA::Long theNbTimes2)
1809 beginService( " GEOM_Superv_i::MultiRotate2D" );
1810 MESSAGE("GEOM_Superv_i::MultiRotate2D");
1812 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiRotate2D(theObject, theAxis, theAngle, theNbTimes1, theStep, theNbTimes2);
1813 endService( " GEOM_Superv_i::MultiRotate2D" );
1817 //=============================================================================
1819 //=============================================================================
1820 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlane (GEOM::GEOM_Object_ptr theObject,
1821 GEOM::GEOM_Object_ptr thePlane)
1823 beginService( " GEOM_Superv_i::MirrorPlane" );
1824 MESSAGE("GEOM_Superv_i::MirrorPlane");
1826 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPlane(theObject, thePlane);
1827 endService( " GEOM_Superv_i::MirrorPlane" );
1831 //=============================================================================
1833 //=============================================================================
1834 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject,
1835 GEOM::GEOM_Object_ptr thePlane)
1837 beginService( " GEOM_Superv_i::MirrorPlaneCopy" );
1838 MESSAGE("GEOM_Superv_i::MirrorPlaneCopy");
1840 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPlaneCopy(theObject, thePlane);
1841 endService( " GEOM_Superv_i::MirrorPlaneCopy" );
1845 //=============================================================================
1847 //=============================================================================
1848 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxis (GEOM::GEOM_Object_ptr theObject,
1849 GEOM::GEOM_Object_ptr theAxis)
1851 beginService( " GEOM_Superv_i::MirrorAxis" );
1852 MESSAGE("GEOM_Superv_i::MirrorAxis");
1854 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorAxis(theObject, theAxis);
1855 endService( " GEOM_Superv_i::MirrorAxis" );
1859 //=============================================================================
1861 //=============================================================================
1862 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject,
1863 GEOM::GEOM_Object_ptr theAxis)
1865 beginService( " GEOM_Superv_i::MirrorAxisCopy" );
1866 MESSAGE("GEOM_Superv_i::MirrorAxisCopy");
1868 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorAxisCopy(theObject, theAxis);
1869 endService( " GEOM_Superv_i::MirrorAxisCopy" );
1873 //=============================================================================
1875 //=============================================================================
1876 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPoint (GEOM::GEOM_Object_ptr theObject,
1877 GEOM::GEOM_Object_ptr thePoint)
1879 beginService( " GEOM_Superv_i::MirrorPoint" );
1880 MESSAGE("GEOM_Superv_i::MirrorPoint");
1882 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPoint(theObject, thePoint);
1883 endService( " GEOM_Superv_i::MirrorPoint" );
1887 //=============================================================================
1889 //=============================================================================
1890 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPointCopy (GEOM::GEOM_Object_ptr theObject,
1891 GEOM::GEOM_Object_ptr thePoint)
1893 beginService( " GEOM_Superv_i::MirrorPoint" );
1894 MESSAGE("GEOM_Superv_i::MirrorPointCopy");
1896 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPointCopy(theObject, thePoint);
1897 endService( " GEOM_Superv_i::MirrorPoint" );
1901 //=============================================================================
1903 //=============================================================================
1904 GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShape (GEOM::GEOM_Object_ptr theObject,
1905 CORBA::Double theOffset)
1907 beginService( " GEOM_Superv_i::OffsetShape" );
1908 MESSAGE("GEOM_Superv_i::OffsetShape");
1910 GEOM::GEOM_Object_ptr anObj = myTransfOp->OffsetShape(theObject, theOffset);
1911 endService( " GEOM_Superv_i::OffsetShape" );
1915 //=============================================================================
1917 //=============================================================================
1918 GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject,
1919 CORBA::Double theOffset)
1921 beginService( " GEOM_Superv_i::OffsetShapeCopy" );
1922 MESSAGE("GEOM_Superv_i::OffsetShapeCopy");
1924 GEOM::GEOM_Object_ptr anObj = myTransfOp->OffsetShapeCopy(theObject, theOffset);
1925 endService( " GEOM_Superv_i::OffsetShapeCopy" );
1929 //=============================================================================
1931 //=============================================================================
1932 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShape (GEOM::GEOM_Object_ptr theObject,
1933 GEOM::GEOM_Object_ptr thePoint,
1934 CORBA::Double theFactor)
1936 beginService( " GEOM_Superv_i::ScaleShape" );
1937 MESSAGE("GEOM_Superv_i::ScaleShape");
1939 GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShape(theObject, thePoint, theFactor);
1940 endService( " GEOM_Superv_i::ScaleShape" );
1944 //=============================================================================
1946 //=============================================================================
1947 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject,
1948 GEOM::GEOM_Object_ptr thePoint,
1949 CORBA::Double theFactor)
1951 beginService( " GEOM_Superv_i::ScaleShapeCopy" );
1952 MESSAGE("GEOM_Superv_i::ScaleShapeCopy");
1954 GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShapeCopy(theObject, thePoint, theFactor);
1955 endService( " GEOM_Superv_i::ScaleShapeCopy" );
1959 //=============================================================================
1960 // ScaleShapeAlongAxes:
1961 //=============================================================================
1962 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeAlongAxes (GEOM::GEOM_Object_ptr theObject,
1963 GEOM::GEOM_Object_ptr thePoint,
1964 CORBA::Double theFactorX,
1965 CORBA::Double theFactorY,
1966 CORBA::Double theFactorZ)
1968 beginService( " GEOM_Superv_i::ScaleShapeAlongAxes" );
1969 MESSAGE("GEOM_Superv_i::ScaleShapeAlongAxes");
1971 GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShapeAlongAxes
1972 (theObject, thePoint, theFactorX, theFactorY, theFactorZ);
1973 endService( " GEOM_Superv_i::ScaleShapeAlongAxes" );
1977 //=============================================================================
1978 // ScaleShapeAlongAxesCopy:
1979 //=============================================================================
1980 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeAlongAxesCopy (GEOM::GEOM_Object_ptr theObject,
1981 GEOM::GEOM_Object_ptr thePoint,
1982 CORBA::Double theFactorX,
1983 CORBA::Double theFactorY,
1984 CORBA::Double theFactorZ)
1986 beginService( " GEOM_Superv_i::ScaleShapeAlongAxesCopy" );
1987 MESSAGE("GEOM_Superv_i::ScaleShapeAlongAxesCopy");
1989 GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShapeAlongAxesCopy
1990 (theObject, thePoint, theFactorX, theFactorY, theFactorZ);
1991 endService( " GEOM_Superv_i::ScaleShapeAlongAxesCopy" );
1995 //=============================================================================
1997 //=============================================================================
1998 GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionShape (GEOM::GEOM_Object_ptr theObject,
1999 GEOM::GEOM_Object_ptr theStartLCS,
2000 GEOM::GEOM_Object_ptr theEndLCS)
2002 beginService( " GEOM_Superv_i::PositionShape" );
2003 MESSAGE("GEOM_Superv_i::PositionShape");
2005 GEOM::GEOM_Object_ptr anObj = myTransfOp->PositionShape(theObject, theStartLCS, theEndLCS);
2006 endService( " GEOM_Superv_i::PositionShape" );
2010 //=============================================================================
2011 // PositionShapeCopy:
2012 //=============================================================================
2013 GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
2014 GEOM::GEOM_Object_ptr theStartLCS,
2015 GEOM::GEOM_Object_ptr theEndLCS)
2017 beginService( " GEOM_Superv_i::PositionShapeCopy" );
2018 MESSAGE("GEOM_Superv_i::PositionShapeCopy");
2020 GEOM::GEOM_Object_ptr anObj = myTransfOp->PositionShapeCopy(theObject, theStartLCS, theEndLCS);
2021 endService( " GEOM_Superv_i::PositionShapeCopy" );
2025 //=============================================================================
2026 // PositionAlongPath:
2027 //=============================================================================
2028 GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionAlongPath (GEOM::GEOM_Object_ptr theObject,
2029 GEOM::GEOM_Object_ptr thePath,
2030 CORBA::Double theDistance,
2031 CORBA::Boolean theCopy,
2032 CORBA::Boolean theReverse)
2034 beginService( " GEOM_Superv_i::PositionAlongPath" );
2035 MESSAGE("GEOM_Superv_i::PositionAlongPath");
2037 GEOM::GEOM_Object_ptr anObj = myTransfOp->PositionAlongPath(theObject, thePath, theDistance, theCopy, theReverse);
2038 endService( " GEOM_Superv_i::PositionAlongPath" );
2042 //=============================== ShapesOperations ============================
2043 //=============================================================================
2045 //=============================================================================
2046 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
2047 GEOM::GEOM_Object_ptr thePnt2)
2049 beginService( " GEOM_Superv_i::MakeEdge" );
2050 MESSAGE("GEOM_Superv_i::MakeEdge");
2052 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeEdge(thePnt1, thePnt2);
2053 endService( " GEOM_Superv_i::MakeEdge" );
2057 //=============================================================================
2058 // MakeEdgeOnCurveByLength:
2059 //=============================================================================
2060 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEdgeOnCurveByLength (GEOM::GEOM_Object_ptr theRefCurve,
2061 CORBA::Double theLength,
2062 GEOM::GEOM_Object_ptr theStartPoint)
2064 beginService( " GEOM_Superv_i::MakeEdgeOnCurveByLength" );
2065 MESSAGE("GEOM_Superv_i::MakeEdgeOnCurveByLength");
2067 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeEdgeOnCurveByLength(theRefCurve, theLength, theStartPoint);
2068 endService( " GEOM_Superv_i::MakeEdgeOnCurveByLength" );
2072 //=============================================================================
2074 //=============================================================================
2075 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeWire (GEOM::GEOM_List_ptr theEdgesAndWires,
2076 CORBA::Double theTolerance)
2078 beginService( " GEOM_Superv_i::MakeWire" );
2079 MESSAGE("GEOM_Superv_i::MakeWire");
2080 if (GEOM_List_i<GEOM::ListOfGO>* aListImplEW =
2081 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theEdgesAndWires, myPOA).in())) {
2083 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeWire(aListImplEW->GetList(), theTolerance);
2084 endService( " GEOM_Superv_i::MakeWire" );
2087 endService( " GEOM_Superv_i::MakeWire" );
2091 //=============================================================================
2093 //=============================================================================
2094 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFace (GEOM::GEOM_Object_ptr theWire,
2095 CORBA::Boolean isPlanarWanted)
2097 beginService( " GEOM_Superv_i::MakeFace" );
2098 MESSAGE("GEOM_Superv_i::MakeFace");
2100 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeFace(theWire, isPlanarWanted);
2101 endService( " GEOM_Superv_i::MakeFace" );
2105 //=============================================================================
2107 //=============================================================================
2108 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceWires (GEOM::GEOM_List_ptr theWires,
2109 CORBA::Boolean isPlanarWanted)
2111 beginService( " GEOM_Superv_i::MakeFaceWires" );
2112 MESSAGE("GEOM_Superv_i::MakeFaceWires");
2113 if (GEOM_List_i<GEOM::ListOfGO>* aListImplW =
2114 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theWires, myPOA).in())) {
2116 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeFaceWires(aListImplW->GetList(), isPlanarWanted);
2117 endService( " GEOM_Superv_i::MakeFaceWires" );
2120 endService( " GEOM_Superv_i::MakeFaceWires" );
2124 //=============================================================================
2126 //=============================================================================
2127 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeShell (GEOM::GEOM_List_ptr theFacesAndShells)
2129 beginService( " GEOM_Superv_i::MakeShell" );
2130 MESSAGE("GEOM_Superv_i::MakeShell");
2131 if (GEOM_List_i<GEOM::ListOfGO>* aListImplFS =
2132 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theFacesAndShells, myPOA).in())) {
2134 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeShell(aListImplFS->GetList());
2135 endService( " GEOM_Superv_i::MakeShell" );
2138 endService( " GEOM_Superv_i::MakeShell" );
2142 //=============================================================================
2144 //=============================================================================
2145 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSolidShell (GEOM::GEOM_Object_ptr theShell)
2147 beginService( " GEOM_Superv_i::MakeSolidShell" );
2148 MESSAGE("GEOM_Superv_i::MakeSolidShell");
2150 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeSolidShell(theShell);
2151 endService( " GEOM_Superv_i::MakeSolidShell" );
2155 //=============================================================================
2157 //=============================================================================
2158 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSolidShells (GEOM::GEOM_List_ptr theShells)
2160 beginService( " GEOM_Superv_i::MakeSolidShells" );
2161 MESSAGE("GEOM_Superv_i::MakeSolidShells");
2162 if (GEOM_List_i<GEOM::ListOfGO>* aListImplS =
2163 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShells, myPOA).in())) {
2165 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeSolidShells(aListImplS->GetList());
2166 endService( " GEOM_Superv_i::MakeSolidShells" );
2169 endService( " GEOM_Superv_i::MakeSolidShells" );
2173 //=============================================================================
2175 //=============================================================================
2176 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCompound (GEOM::GEOM_List_ptr theShapes)
2178 beginService( " GEOM_Superv_i::MakeCompound" );
2179 MESSAGE("GEOM_Superv_i::MakeCompound");
2180 if (GEOM_List_i<GEOM::ListOfGO>* aListImpl =
2181 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShapes, myPOA).in())) {
2183 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeCompound(aListImpl->GetList());
2184 endService( " GEOM_Superv_i::MakeCompound" );
2187 endService( " GEOM_Superv_i::MakeCompound" );
2191 //=============================================================================
2193 //=============================================================================
2194 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
2195 CORBA::Double theTolerance,
2196 CORBA::Boolean doKeepNonSolids)
2198 beginService( " GEOM_Superv_i::MakeGlueFaces" );
2199 MESSAGE("GEOM_Superv_i::MakeGlueFaces");
2201 GEOM::GEOM_Object_ptr anObj =
2202 myShapesOp->MakeGlueFaces(theShape, theTolerance, doKeepNonSolids);
2203 endService( " GEOM_Superv_i::MakeGlueFaces" );
2207 //=============================================================================
2209 //=============================================================================
2210 GEOM::GEOM_List_ptr GEOM_Superv_i::GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
2211 CORBA::Double theTolerance)
2213 beginService( " GEOM_Superv_i::GetGlueFaces" );
2214 MESSAGE("GEOM_Superv_i::GetGlueFaces");
2216 GEOM::ListOfGO* aList = myShapesOp->GetGlueFaces(theShape, theTolerance);
2217 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aList));
2218 MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
2219 endService( " GEOM_Superv_i::GetGlueFaces" );
2220 return aListPtr->_this();
2223 //=============================================================================
2224 // MakeGlueFacesByList:
2225 //=============================================================================
2226 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
2227 CORBA::Double theTolerance,
2228 const GEOM::ListOfGO& theFaces,
2229 CORBA::Boolean doKeepNonSolids,
2230 CORBA::Boolean doGlueAllEdges)
2232 beginService( " GEOM_Superv_i::MakeGlueFacesByList" );
2233 MESSAGE("GEOM_Superv_i::MakeGlueFacesByList");
2235 GEOM::GEOM_Object_ptr anObj =
2236 myShapesOp->MakeGlueFacesByList(theShape, theTolerance, theFaces,
2237 doKeepNonSolids, doGlueAllEdges);
2238 endService( " GEOM_Superv_i::MakeGlueFacesByList" );
2242 //=============================================================================
2244 //=============================================================================
2245 GEOM::GEOM_List_ptr GEOM_Superv_i::MakeExplode (GEOM::GEOM_Object_ptr theShape,
2246 CORBA::Long theShapeType,
2247 CORBA::Boolean isSorted)
2249 beginService( " GEOM_Superv_i::MakeExplode" );
2250 MESSAGE("GEOM_Superv_i::MakeExplode");
2253 GEOM::ListOfGO* aList = myShapesOp->MakeExplode(theShape, theShapeType, isSorted);
2254 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aList));
2255 MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
2256 endService( " GEOM_Superv_i::MakeExplode" );
2257 return aListPtr->_this();
2260 //=============================================================================
2262 //=============================================================================
2263 CORBA::Long GEOM_Superv_i::NumberOfFaces (GEOM::GEOM_Object_ptr theShape)
2265 beginService( " GEOM_Superv_i::NumberOfFaces" );
2266 MESSAGE("GEOM_Superv_i::NumberOfFaces");
2268 CORBA::Long aRes = myShapesOp->NumberOfFaces(theShape);
2269 endService( " GEOM_Superv_i::NumberOfFaces" );
2273 //=============================================================================
2275 //=============================================================================
2276 CORBA::Long GEOM_Superv_i::NumberOfEdges (GEOM::GEOM_Object_ptr theShape)
2278 beginService( " GEOM_Superv_i::NumberOfEdges" );
2279 MESSAGE("GEOM_Superv_i::NumberOfEdges");
2281 CORBA::Long aRes = myShapesOp->NumberOfEdges(theShape);
2282 endService( " GEOM_Superv_i::NumberOfEdges" );
2287 //=============================================================================
2288 // ChangeOrientation:
2289 //=============================================================================
2290 GEOM::GEOM_Object_ptr GEOM_Superv_i::ChangeOrientation (GEOM::GEOM_Object_ptr theShape)
2292 beginService( " GEOM_Superv_i::ChangeOrientation" );
2293 MESSAGE("GEOM_Superv_i::ChangeOrientation");
2295 GEOM::GEOM_Object_ptr anObj = myShapesOp->ChangeOrientation(theShape);
2296 endService( " GEOM_Superv_i::ChangeOrientation" );
2301 //=============================================================================
2302 // GetShapesOnShape:
2303 //=============================================================================
2304 GEOM::GEOM_List_ptr GEOM_Superv_i::GetShapesOnShape
2305 (GEOM::GEOM_Object_ptr theCheckShape,
2306 GEOM::GEOM_Object_ptr theShape,
2307 CORBA::Short theShapeType,
2308 GEOM::shape_state theState)
2310 beginService( " GEOM_Superv_i::GetShapesOnShape" );
2311 MESSAGE("GEOM_Superv_i::GetShapesOnShape");
2313 GEOM::ListOfGO* aList =
2314 myShapesOp->GetShapesOnShape(theCheckShape, theShape, theShapeType, theState);
2315 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aList));
2316 MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
2317 endService( " GEOM_Superv_i::GetShapesOnShape" );
2318 return aListPtr->_this();
2322 //=============================================================================
2323 // GetShapesOnShapeAsCompound:
2324 //=============================================================================
2325 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetShapesOnShapeAsCompound
2326 (GEOM::GEOM_Object_ptr theCheckShape,
2327 GEOM::GEOM_Object_ptr theShape,
2328 CORBA::Short theShapeType,
2329 GEOM::shape_state theState)
2331 beginService( " GEOM_Superv_i::GetShapesOnShapeAsCompound" );
2332 MESSAGE("GEOM_Superv_i::GetShapesOnShapeAsCompound");
2334 GEOM::GEOM_Object_ptr anObj =
2335 myShapesOp->GetShapesOnShapeAsCompound(theCheckShape, theShape, theShapeType, theState);
2336 endService( " GEOM_Superv_i::GetShapesOnShapeAsCompound" );
2341 //=============================== BlocksOperations ============================
2342 //=============================================================================
2343 // MakeQuad4Vertices:
2344 //=============================================================================
2345 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad4Vertices (GEOM::GEOM_Object_ptr thePnt1,
2346 GEOM::GEOM_Object_ptr thePnt2,
2347 GEOM::GEOM_Object_ptr thePnt3,
2348 GEOM::GEOM_Object_ptr thePnt4)
2350 beginService( " GEOM_Superv_i::MakeQuad4Vertices" );
2351 MESSAGE("GEOM_Superv_i::MakeQuad4Vertices");
2353 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeQuad4Vertices(thePnt1, thePnt2, thePnt3, thePnt4);
2354 endService( " GEOM_Superv_i::MakeQuad4Vertices" );
2358 //=============================================================================
2360 //=============================================================================
2361 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad (GEOM::GEOM_Object_ptr theEdge1,
2362 GEOM::GEOM_Object_ptr theEdge2,
2363 GEOM::GEOM_Object_ptr theEdge3,
2364 GEOM::GEOM_Object_ptr theEdge4)
2366 beginService( " GEOM_Superv_i::MakeQuad" );
2367 MESSAGE("GEOM_Superv_i::MakeQuad");
2369 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeQuad(theEdge1, theEdge2, theEdge3, theEdge4);
2370 endService( " GEOM_Superv_i::MakeQuad" );
2374 //=============================================================================
2376 //=============================================================================
2377 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad2Edges (GEOM::GEOM_Object_ptr theEdge1,
2378 GEOM::GEOM_Object_ptr theEdge2)
2380 beginService( " GEOM_Superv_i::MakeQuad2Edges" );
2381 MESSAGE("GEOM_Superv_i::MakeQuad2Edges");
2383 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeQuad2Edges(theEdge1, theEdge2);
2384 endService( " GEOM_Superv_i::MakeQuad2Edges" );
2388 //=============================================================================
2390 //=============================================================================
2391 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHexa (GEOM::GEOM_Object_ptr theFace1,
2392 GEOM::GEOM_Object_ptr theFace2,
2393 GEOM::GEOM_Object_ptr theFace3,
2394 GEOM::GEOM_Object_ptr theFace4,
2395 GEOM::GEOM_Object_ptr theFace5,
2396 GEOM::GEOM_Object_ptr theFace6)
2398 beginService( " GEOM_Superv_i::MakeHexa" );
2399 MESSAGE("GEOM_Superv_i::MakeHexa");
2401 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeHexa(theFace1, theFace2, theFace3, theFace4, theFace5, theFace6);
2402 endService( " GEOM_Superv_i::MakeHexa" );
2406 //=============================================================================
2408 //=============================================================================
2409 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHexa2Faces (GEOM::GEOM_Object_ptr theFace1,
2410 GEOM::GEOM_Object_ptr theFace2)
2412 beginService( " GEOM_Superv_i::MakeHexa2Faces" );
2413 MESSAGE("GEOM_Superv_i::MakeHexa2Faces");
2415 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeHexa2Faces(theFace1, theFace2);
2416 endService( " GEOM_Superv_i::MakeHexa2Faces" );
2420 //=============================================================================
2422 //=============================================================================
2423 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetPoint (GEOM::GEOM_Object_ptr theShape,
2427 CORBA::Double theEpsilon)
2429 beginService( " GEOM_Superv_i::GetPoint" );
2430 MESSAGE("GEOM_Superv_i::GetPoint");
2432 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetPoint(theShape, theX, theY, theZ, theEpsilon);
2433 endService( " GEOM_Superv_i::GetPoint" );
2437 //=============================================================================
2439 //=============================================================================
2440 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetEdge (GEOM::GEOM_Object_ptr theShape,
2441 GEOM::GEOM_Object_ptr thePoint1,
2442 GEOM::GEOM_Object_ptr thePoint2)
2444 beginService( " GEOM_Superv_i::GetEdge" );
2445 MESSAGE("GEOM_Superv_i::GetEdge");
2447 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetEdge(theShape, thePoint1, thePoint2);
2448 endService( " GEOM_Superv_i::GetEdge" );
2452 //=============================================================================
2453 // GetEdgeNearPoint:
2454 //=============================================================================
2455 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetEdgeNearPoint (GEOM::GEOM_Object_ptr theShape,
2456 GEOM::GEOM_Object_ptr thePoint)
2458 beginService( " GEOM_Superv_i::GetEdgeNearPoint" );
2459 MESSAGE("GEOM_Superv_i::GetEdgeNearPoint");
2461 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetEdgeNearPoint(theShape, thePoint);
2462 endService( " GEOM_Superv_i::GetEdgeNearPoint" );
2466 //=============================================================================
2468 //=============================================================================
2469 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByPoints (GEOM::GEOM_Object_ptr theShape,
2470 GEOM::GEOM_Object_ptr thePoint1,
2471 GEOM::GEOM_Object_ptr thePoint2,
2472 GEOM::GEOM_Object_ptr thePoint3,
2473 GEOM::GEOM_Object_ptr thePoint4)
2475 beginService( " GEOM_Superv_i::GetFaceByPoints" );
2476 MESSAGE("GEOM_Superv_i::GetFaceByPoints");
2478 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceByPoints(theShape, thePoint1, thePoint2, thePoint3, thePoint4);
2479 endService( " GEOM_Superv_i::GetFaceByPoints" );
2483 //=============================================================================
2485 //=============================================================================
2486 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByEdges (GEOM::GEOM_Object_ptr theShape,
2487 GEOM::GEOM_Object_ptr theEdge1,
2488 GEOM::GEOM_Object_ptr theEdge2)
2490 beginService( " GEOM_Superv_i::GetFaceByEdges" );
2491 MESSAGE("GEOM_Superv_i::GetFaceByEdges");
2493 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceByEdges(theShape, theEdge1, theEdge2);
2494 endService( " GEOM_Superv_i::GetFaceByEdges" );
2498 //=============================================================================
2500 //=============================================================================
2501 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetOppositeFace (GEOM::GEOM_Object_ptr theBlock,
2502 GEOM::GEOM_Object_ptr theFace)
2504 beginService( " GEOM_Superv_i::GetOppositeFace" );
2505 MESSAGE("GEOM_Superv_i::GetOppositeFace");
2507 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetOppositeFace(theBlock, theFace);
2508 endService( " GEOM_Superv_i::GetOppositeFace" );
2512 //=============================================================================
2513 // GetFaceNearPoint:
2514 //=============================================================================
2515 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceNearPoint (GEOM::GEOM_Object_ptr theShape,
2516 GEOM::GEOM_Object_ptr thePoint)
2518 beginService( " GEOM_Superv_i::GetFaceNearPoint" );
2519 MESSAGE("GEOM_Superv_i::GetFaceNearPoint");
2521 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceNearPoint(theShape, thePoint);
2522 endService( " GEOM_Superv_i::GetFaceNearPoint" );
2526 //=============================================================================
2527 // GetFaceByNormale:
2528 //=============================================================================
2529 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByNormale (GEOM::GEOM_Object_ptr theBlock,
2530 GEOM::GEOM_Object_ptr theVector)
2532 beginService( " GEOM_Superv_i::GetFaceByNormale" );
2533 MESSAGE("GEOM_Superv_i::GetFaceByNormale");
2535 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceByNormale(theBlock, theVector);
2536 endService( " GEOM_Superv_i::GetFaceByNormale" );
2540 //=============================================================================
2541 // IsCompoundOfBlocks:
2542 //=============================================================================
2543 CORBA::Boolean GEOM_Superv_i::IsCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
2544 CORBA::Long theMinNbFaces,
2545 CORBA::Long theMaxNbFaces,
2546 CORBA::Long& theNbBlocks)
2548 beginService( " GEOM_Superv_i::IsCompoundOfBlocks" );
2549 MESSAGE("GEOM_Superv_i::IsCompoundOfBlocks");
2551 CORBA::Boolean aRes = myBlocksOp->IsCompoundOfBlocks(theCompound, theMinNbFaces, theMaxNbFaces, theNbBlocks);
2552 endService( " GEOM_Superv_i::IsCompoundOfBlocks" );
2556 //=============================================================================
2557 // CheckCompoundOfBlocks:
2558 //=============================================================================
2559 CORBA::Boolean GEOM_Superv_i::CheckCompoundOfBlocks
2560 (GEOM::GEOM_Object_ptr theCompound,
2561 GEOM::GEOM_IBlocksOperations::BCErrors_out theErrors)
2563 beginService( " GEOM_Superv_i::CheckCompoundOfBlocks" );
2564 MESSAGE("GEOM_Superv_i::CheckCompoundOfBlocks");
2566 CORBA::Boolean aRes = myBlocksOp->CheckCompoundOfBlocks(theCompound, theErrors);
2567 endService( " GEOM_Superv_i::CheckCompoundOfBlocks" );
2571 //=============================================================================
2573 //=============================================================================
2574 char* GEOM_Superv_i::PrintBCErrors (GEOM::GEOM_Object_ptr theCompound,
2575 const GEOM::GEOM_IBlocksOperations::BCErrors& theErrors)
2577 beginService( " GEOM_Superv_i::PrintBCErrors" );
2578 MESSAGE("GEOM_Superv_i::PrintBCErrors");
2580 char* anErrors = myBlocksOp->PrintBCErrors(theCompound, theErrors);
2581 endService( " GEOM_Superv_i::PrintBCErrors" );
2585 //=============================================================================
2586 // ExplodeCompoundOfBlocks:
2587 //=============================================================================
2588 GEOM::GEOM_List_ptr GEOM_Superv_i::ExplodeCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
2589 CORBA::Long theMinNbFaces,
2590 CORBA::Long theMaxNbFaces)
2592 beginService( " GEOM_Superv_i::ExplodeCompoundOfBlocks" );
2593 MESSAGE("GEOM_Superv_i::ExplodeCompoundOfBlocks");
2595 GEOM::ListOfGO* aBlocks = myBlocksOp->ExplodeCompoundOfBlocks(theCompound, theMinNbFaces, theMaxNbFaces);
2596 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aBlocks));
2597 endService( " GEOM_Superv_i::ExplodeCompoundOfBlocks" );
2598 return aListPtr->_this();
2601 //=============================================================================
2602 // GetBlockNearPoint:
2603 //=============================================================================
2604 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetBlockNearPoint (GEOM::GEOM_Object_ptr theCompound,
2605 GEOM::GEOM_Object_ptr thePoint)
2607 beginService( " GEOM_Superv_i::GetBlockNearPoint" );
2608 MESSAGE("GEOM_Superv_i::GetBlockNearPoint");
2610 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetBlockNearPoint(theCompound, thePoint);
2611 endService( " GEOM_Superv_i::GetBlockNearPoint" );
2615 //=============================================================================
2617 //=============================================================================
2618 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetBlockByParts (GEOM::GEOM_Object_ptr theCompound,
2619 GEOM::GEOM_List_ptr theParts)
2621 beginService( " GEOM_Superv_i::GetBlockByParts" );
2622 MESSAGE("GEOM_Superv_i::GetBlockByParts");
2623 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2624 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theParts, myPOA).in())) {
2626 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetBlockByParts(theCompound, aListImplP->GetList());
2627 endService( " GEOM_Superv_i::GetBlockByParts" );
2630 endService( " GEOM_Superv_i::GetBlockByParts" );
2634 //=============================================================================
2635 // GetBlocksByParts:
2636 //=============================================================================
2637 GEOM::GEOM_List_ptr GEOM_Superv_i::GetBlocksByParts (GEOM::GEOM_Object_ptr theCompound,
2638 GEOM::GEOM_List_ptr theParts)
2640 beginService( " GEOM_Superv_i::GetBlocksByParts" );
2641 MESSAGE("GEOM_Superv_i::GetBlocksByParts");
2642 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2643 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theParts, myPOA).in())) {
2646 GEOM::ListOfGO* aBlocks = myBlocksOp->GetBlocksByParts(theCompound, aListImplP->GetList());
2647 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aBlocks));
2648 endService( " GEOM_Superv_i::GetBlocksByParts" );
2649 return aListPtr->_this();
2651 endService( " GEOM_Superv_i::GetBlocksByParts" );
2655 //=============================================================================
2656 // MakeMultiTransformation1D:
2657 //=============================================================================
2658 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation1D (GEOM::GEOM_Object_ptr theBlock,
2659 CORBA::Long theDirFace1,
2660 CORBA::Long theDirFace2,
2661 CORBA::Long theNbTimes)
2663 beginService( " GEOM_Superv_i::MakeMultiTransformation1D" );
2664 MESSAGE("GEOM_Superv_i::MakeMultiTransformation1D");
2666 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeMultiTransformation1D(theBlock, theDirFace1, theDirFace2, theNbTimes);
2667 endService( " GEOM_Superv_i::MakeMultiTransformation1D" );
2671 //=============================================================================
2672 // MakeMultiTransformation2D:
2673 //=============================================================================
2674 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation2D
2675 (GEOM::GEOM_Object_ptr theBlock,
2676 CORBA::Long theDirFace1U,
2677 CORBA::Long theDirFace2U,
2678 CORBA::Long theNbTimesU,
2679 CORBA::Long theDirFace1V,
2680 CORBA::Long theDirFace2V,
2681 CORBA::Long theNbTimesV)
2683 beginService( " GEOM_Superv_i::MakeMultiTransformation2D" );
2684 MESSAGE("GEOM_Superv_i::MakeMultiTransformation2D");
2686 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeMultiTransformation2D(theBlock,
2687 theDirFace1U, theDirFace2U, theNbTimesU,
2688 theDirFace1V, theDirFace2V, theNbTimesV);
2689 endService( " GEOM_Superv_i::MakeMultiTransformation2D" );
2693 //=============================== CurvesOperations ============================
2694 //=============================================================================
2695 // MakeCirclePntVecR:
2696 //=============================================================================
2697 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCirclePntVecR (GEOM::GEOM_Object_ptr theCenter,
2698 GEOM::GEOM_Object_ptr theVector,
2701 beginService( " GEOM_Superv_i::MakeCirclePntVecR" );
2702 MESSAGE("GEOM_Superv_i::MakeCirclePntVecR");
2704 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeCirclePntVecR(theCenter, theVector, theR);
2705 endService( " GEOM_Superv_i::MakeCirclePntVecR" );
2709 //=============================================================================
2710 // MakeCircleThreePnt:
2711 //=============================================================================
2712 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCircleThreePnt (GEOM::GEOM_Object_ptr thePnt1,
2713 GEOM::GEOM_Object_ptr thePnt2,
2714 GEOM::GEOM_Object_ptr thePnt3)
2716 beginService( " GEOM_Superv_i::MakeCircleThreePnt" );
2717 MESSAGE("GEOM_Superv_i::MakeCircleThreePnt");
2719 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeCircleThreePnt(thePnt1, thePnt2, thePnt3);
2720 endService( " GEOM_Superv_i::MakeCircleThreePnt" );
2723 //=============================================================================
2724 // MakeCircleCenter2Pnt:
2725 //=============================================================================
2726 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCircleCenter2Pnt (GEOM::GEOM_Object_ptr thePnt1,
2727 GEOM::GEOM_Object_ptr thePnt2,
2728 GEOM::GEOM_Object_ptr thePnt3)
2730 beginService( " GEOM_Superv_i::MakeCircleCenter2Pnt" );
2731 MESSAGE("GEOM_Superv_i::MakeCircleCenter2Pnt");
2733 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeCircleCenter2Pnt(thePnt1, thePnt2, thePnt3);
2734 endService( " GEOM_Superv_i::MakeCircleCenter2Pnt" );
2738 //=============================================================================
2740 //=============================================================================
2741 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEllipse (GEOM::GEOM_Object_ptr theCenter,
2742 GEOM::GEOM_Object_ptr theVector,
2743 CORBA::Double theRMajor,
2744 CORBA::Double theRMinor)
2746 beginService( " GEOM_Superv_i::MakeEllipse" );
2747 MESSAGE("GEOM_Superv_i::MakeEllipse");
2749 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeEllipse(theCenter, theVector, theRMajor, theRMinor);
2750 endService( " GEOM_Superv_i::MakeEllipse" );
2754 //=============================================================================
2756 //=============================================================================
2757 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEllipseVec (GEOM::GEOM_Object_ptr theCenter,
2758 GEOM::GEOM_Object_ptr theVector,
2759 CORBA::Double theRMajor,
2760 CORBA::Double theRMinor,
2761 GEOM::GEOM_Object_ptr theVectorMajor)
2763 beginService( " GEOM_Superv_i::MakeEllipseVec" );
2764 MESSAGE("GEOM_Superv_i::MakeEllipseVec");
2766 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeEllipseVec(theCenter, theVector, theRMajor, theRMinor, theVectorMajor);
2767 endService( " GEOM_Superv_i::MakeEllipseVec" );
2771 //=============================================================================
2773 //=============================================================================
2774 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArc (GEOM::GEOM_Object_ptr thePnt1,
2775 GEOM::GEOM_Object_ptr thePnt2,
2776 GEOM::GEOM_Object_ptr thePnt3)
2778 beginService( " GEOM_Superv_i::MakeArc" );
2779 MESSAGE("GEOM_Superv_i::MakeArc");
2781 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeArc(thePnt1, thePnt2, thePnt3);
2782 endService( " GEOM_Superv_i::MakeArc" );
2786 //=============================================================================
2788 //=============================================================================
2789 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArcCenter (GEOM::GEOM_Object_ptr theCenter,
2790 GEOM::GEOM_Object_ptr thePnt1,
2791 GEOM::GEOM_Object_ptr thePnt2,
2792 CORBA::Boolean theSense)
2794 beginService( " GEOM_Superv_i::MakeArcCenter" );
2795 MESSAGE("GEOM_Superv_i::MakeArcCenter");
2797 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeArcCenter(theCenter, thePnt1, thePnt2,theSense);
2798 endService( " GEOM_Superv_i::MakeArcCenter" );
2802 //=============================================================================
2803 // MakeArcOfEllipse:
2804 //=============================================================================
2805 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArcOfEllipse (GEOM::GEOM_Object_ptr thePnt1,
2806 GEOM::GEOM_Object_ptr thePnt2,
2807 GEOM::GEOM_Object_ptr thePnt3)
2809 beginService( " GEOM_Superv_i::MakeArcOfEllipse" );
2810 MESSAGE("GEOM_Superv_i::MakeArcOfEllipse");
2812 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeArcOfEllipse(thePnt1, thePnt2, thePnt3);
2813 endService( " GEOM_Superv_i::MakeArcOfEllipse" );
2817 //=============================================================================
2819 //=============================================================================
2820 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePolyline (GEOM::GEOM_List_ptr thePoints,
2821 CORBA::Boolean theIsClosed)
2823 beginService( " GEOM_Superv_i::MakePolyline" );
2824 MESSAGE("GEOM_Superv_i::MakePolyline");
2825 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2826 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
2828 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakePolyline(aListImplP->GetList(), theIsClosed);
2829 endService( " GEOM_Superv_i::MakePolyline" );
2832 endService( " GEOM_Superv_i::MakePolyline" );
2836 //=============================================================================
2837 // MakeSplineBezier:
2838 //=============================================================================
2839 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineBezier (GEOM::GEOM_List_ptr thePoints,
2840 CORBA::Boolean theIsClosed)
2842 beginService( " GEOM_Superv_i::MakeSplineBezier" );
2843 MESSAGE("GEOM_Superv_i::MakeSplineBezier");
2844 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2845 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
2847 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSplineBezier(aListImplP->GetList(), theIsClosed);
2848 endService( " GEOM_Superv_i::MakeSplineBezier" );
2851 endService( " GEOM_Superv_i::MakeSplineBezier" );
2855 //=============================================================================
2856 // MakeSplineInterpolation:
2857 //=============================================================================
2858 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineInterpolation (GEOM::GEOM_List_ptr thePoints,
2859 CORBA::Boolean theIsClosed,
2860 CORBA::Boolean theDoReordering)
2862 beginService( " GEOM_Superv_i::MakeSplineInterpolation" );
2863 MESSAGE("GEOM_Superv_i::MakeSplineInterpolation");
2864 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2865 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
2867 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSplineInterpolation(aListImplP->GetList(), theIsClosed, theDoReordering);
2868 endService( " GEOM_Superv_i::MakeSplineInterpolation" );
2871 endService( " GEOM_Superv_i::MakeSplineInterpolation" );
2875 //=============================================================================
2877 //=============================================================================
2878 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSketcher (const char* theCommand,
2879 GEOM::GEOM_List_ptr theWorkingPlane)
2881 beginService( " GEOM_Superv_i::MakeSketcher" );
2882 MESSAGE("GEOM_Superv_i::MakeSketcher");
2883 if (GEOM_List_i<GEOM::ListOfDouble>* aListImplWP =
2884 dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theWorkingPlane, myPOA).in())) {
2886 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSketcher(theCommand, aListImplWP->GetList());
2887 endService( " GEOM_Superv_i::MakeSketcher" );
2890 endService( " GEOM_Superv_i::MakeSketcher" );
2894 //=============================================================================
2896 //=============================================================================
2897 GEOM::GEOM_Object_ptr GEOM_Superv_i::Make3DSketcher ( GEOM::GEOM_List_ptr theCoordinates)
2899 beginService( " GEOM_Superv_i::Make3DSketcher" );
2900 MESSAGE("GEOM_Superv_i::Make3DSketcher");
2901 if (GEOM_List_i<GEOM::ListOfDouble>* aListImpl =
2902 dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theCoordinates, myPOA).in())) {
2904 GEOM::GEOM_Object_ptr anObj = myCurvesOp->Make3DSketcher(aListImpl->GetList());
2905 endService( " GEOM_Superv_i::Make3DSketcher" );
2908 endService( " GEOM_Superv_i::Make3DSketcher" );
2912 //=============================== LocalOperations =============================
2913 //=============================================================================
2915 //=============================================================================
2916 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletAll (GEOM::GEOM_Object_ptr theShape,
2919 beginService( " GEOM_Superv_i::MakeFilletAll" );
2920 MESSAGE("GEOM_Superv_i::MakeFilletAllMakeSketcher");
2922 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletAll(theShape, theR);
2923 endService( " GEOM_Superv_i::MakeFilletAll" );
2927 //=============================================================================
2929 //=============================================================================
2930 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletEdges (GEOM::GEOM_Object_ptr theShape,
2932 GEOM::GEOM_List_ptr theEdges)
2934 beginService( " GEOM_Superv_i::MakeFilletEdges" );
2935 MESSAGE("GEOM_Superv_i::MakeFilletEdges");
2936 if (GEOM_List_i<GEOM::ListOfLong>* aListImplE =
2937 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
2939 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletEdges(theShape, theR, aListImplE->GetList());
2940 endService( " GEOM_Superv_i::MakeFilletEdges" );
2943 endService( " GEOM_Superv_i::MakeFilletEdges" );
2947 //=============================================================================
2948 // MakeFilletEdges R1 R2:
2949 //=============================================================================
2950 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletEdgesR1R2 (GEOM::GEOM_Object_ptr theShape,
2951 CORBA::Double theR1,
2952 CORBA::Double theR2,
2953 GEOM::GEOM_List_ptr theEdges)
2955 beginService( " GEOM_Superv_i::MakeFilletEdgesR1R2" );
2956 MESSAGE("GEOM_Superv_i::MakeFilletEdgesR1R2");
2957 if (GEOM_List_i<GEOM::ListOfLong>* aListImplE =
2958 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
2960 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletEdgesR1R2(theShape, theR1,
2961 theR2, aListImplE->GetList());
2962 endService( " GEOM_Superv_i::MakeFilletEdgesR1R2" );
2965 endService( " GEOM_Superv_i::MakeFilletEdgesR1R2" );
2969 //=============================================================================
2971 //=============================================================================
2972 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletFaces (GEOM::GEOM_Object_ptr theShape,
2974 GEOM::GEOM_List_ptr theFaces)
2976 beginService( " GEOM_Superv_i::MakeFilletFaces" );
2977 MESSAGE("GEOM_Superv_i::MakeFilletFaces");
2978 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
2979 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
2981 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletFaces(theShape, theR, aListImplF->GetList());
2982 endService( " GEOM_Superv_i::MakeFilletFaces" );
2985 endService( " GEOM_Superv_i::MakeFilletFaces" );
2989 //=============================================================================
2990 // MakeFilletFaces R1 R2:
2991 //=============================================================================
2992 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletFacesR1R2 (GEOM::GEOM_Object_ptr theShape,
2993 CORBA::Double theR1,
2994 CORBA::Double theR2,
2995 GEOM::GEOM_List_ptr theFaces)
2997 beginService( " GEOM_Superv_i::MakeFilletFacesR1R2" );
2998 MESSAGE("GEOM_Superv_i::MakeFilletFacesR1R2");
2999 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3000 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
3002 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletFacesR1R2(theShape, theR1, theR2,
3003 aListImplF->GetList());
3004 endService( " GEOM_Superv_i::MakeFilletFacesR1R2" );
3007 endService( " GEOM_Superv_i::MakeFilletFacesR1R2" );
3011 //=============================================================================
3013 //=============================================================================
3014 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFillet2D (GEOM::GEOM_Object_ptr theShape,
3016 GEOM::GEOM_List_ptr theVertexes)
3018 beginService( " GEOM_Superv_i::MakeFillet2D" );
3019 MESSAGE("GEOM_Superv_i::MakeFillet2D");
3020 if (GEOM_List_i<GEOM::ListOfLong>* aListImplV =
3021 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theVertexes, myPOA).in())) {
3023 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFillet2D(theShape, theR, aListImplV->GetList());
3024 endService( " GEOM_Superv_i::MakeFillet2D" );
3027 endService( " GEOM_Superv_i::MakeFillet2D" );
3031 //=============================================================================
3033 //=============================================================================
3034 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFillet1D (GEOM::GEOM_Object_ptr theShape,
3036 GEOM::GEOM_List_ptr theVertexes,
3037 CORBA::Boolean doIgnoreSecantVertices)
3039 beginService( " GEOM_Superv_i::MakeFillet1D" );
3040 MESSAGE("GEOM_Superv_i::MakeFillet1D");
3041 if (GEOM_List_i<GEOM::ListOfLong>* aListImplV =
3042 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theVertexes, myPOA).in())) {
3044 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFillet1D
3045 (theShape, theR, aListImplV->GetList(), doIgnoreSecantVertices);
3046 endService( " GEOM_Superv_i::MakeFillet1D" );
3049 endService( " GEOM_Superv_i::MakeFillet1D" );
3053 //=============================================================================
3055 //=============================================================================
3056 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferAll (GEOM::GEOM_Object_ptr theShape, CORBA::Double theD)
3058 beginService( " GEOM_Superv_i::MakeChamferAll" );
3059 MESSAGE("GEOM_Superv_i::MakeChamferAll");
3061 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferAll(theShape, theD);
3062 endService( " GEOM_Superv_i::MakeChamferAll" );
3066 //=============================================================================
3068 //=============================================================================
3069 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdge (GEOM::GEOM_Object_ptr theShape,
3070 CORBA::Double theD1, CORBA::Double theD2,
3071 CORBA::Long theFace1, CORBA::Long theFace2)
3073 beginService( " GEOM_Superv_i::MakeChamferEdge" );
3074 MESSAGE("GEOM_Superv_i::MakeChamferEdge");
3076 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdge(theShape, theD1, theD2, theFace1, theFace2);
3077 endService( " GEOM_Superv_i::MakeChamferEdge" );
3081 //=============================================================================
3082 // MakeChamferEdgeAD:
3083 //=============================================================================
3084 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdgeAD (GEOM::GEOM_Object_ptr theShape,
3085 CORBA::Double theD, CORBA::Double theAngle,
3086 CORBA::Long theFace1, CORBA::Long theFace2)
3088 beginService( " GEOM_Superv_i::MakeChamferEdgeAD" );
3089 MESSAGE("GEOM_Superv_i::MakeChamferEdgeAD");
3091 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdgeAD(theShape, theD, theAngle, theFace1, theFace2);
3092 endService( " GEOM_Superv_i::MakeChamferEdgeAD" );
3096 //=============================================================================
3097 // MakeChamferFaces:
3098 //=============================================================================
3099 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferFaces (GEOM::GEOM_Object_ptr theShape,
3100 CORBA::Double theD1, CORBA::Double theD2,
3101 GEOM::GEOM_List_ptr theFaces)
3103 beginService( " GEOM_Superv_i::MakeChamferFaces" );
3104 MESSAGE("GEOM_Superv_i::MakeChamferFaces");
3105 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3106 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
3108 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferFaces(theShape, theD1, theD2, aListImplF->GetList());
3109 endService( " GEOM_Superv_i::MakeChamferFaces" );
3112 endService( " GEOM_Superv_i::MakeChamferFaces" );
3116 //=============================================================================
3117 // MakeChamferFacesAD:
3118 //=============================================================================
3119 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferFacesAD (GEOM::GEOM_Object_ptr theShape,
3120 CORBA::Double theD, CORBA::Double theAngle,
3121 GEOM::GEOM_List_ptr theFaces)
3123 beginService( " GEOM_Superv_i::MakeChamferFacesAD" );
3124 MESSAGE("GEOM_Superv_i::MakeChamferFacesAD");
3125 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3126 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
3128 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferFacesAD(theShape, theD, theAngle, aListImplF->GetList());
3129 endService( " GEOM_Superv_i::MakeChamferFacesAD" );
3132 endService( " GEOM_Superv_i::MakeChamferFacesAD" );
3136 //=============================================================================
3137 // MakeChamferEdges:
3138 //=============================================================================
3139 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdges (GEOM::GEOM_Object_ptr theShape,
3140 CORBA::Double theD1, CORBA::Double theD2,
3141 GEOM::GEOM_List_ptr theEdges)
3143 beginService( " GEOM_Superv_i::MakeChamferEdges" );
3144 MESSAGE("GEOM_Superv_i::MakeChamferEdges");
3145 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3146 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
3148 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdges(theShape, theD1, theD2, aListImplF->GetList());
3149 endService( " GEOM_Superv_i::MakeChamferEdges" );
3152 endService( " GEOM_Superv_i::MakeChamferEdges" );
3156 //=============================================================================
3157 // MakeChamferEdgesAD:
3158 //=============================================================================
3159 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdgesAD (GEOM::GEOM_Object_ptr theShape,
3160 CORBA::Double theD, CORBA::Double theAngle,
3161 GEOM::GEOM_List_ptr theEdges)
3163 beginService( " GEOM_Superv_i::MakeChamferEdgesAD" );
3164 MESSAGE("GEOM_Superv_i::MakeChamferEdgesAD");
3165 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3166 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
3168 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdgesAD(theShape, theD, theAngle, aListImplF->GetList());
3169 endService( " GEOM_Superv_i::MakeChamferEdgesAD" );
3172 endService( " GEOM_Superv_i::MakeChamferEdgesAD" );
3176 //=============================================================================
3178 //=============================================================================
3179 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArchimede (GEOM::GEOM_Object_ptr theShape,
3180 CORBA::Double theWeight,
3181 CORBA::Double theWaterDensity,
3182 CORBA::Double theMeshingDeflection)
3184 beginService( " GEOM_Superv_i::MakeArchimede" );
3185 MESSAGE("GEOM_Superv_i::MakeArchimede");
3187 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeArchimede(theShape, theWeight, theWaterDensity, theMeshingDeflection);
3188 endService( " GEOM_Superv_i::MakeArchimede" );
3192 //=============================================================================
3193 // GetSubShapeIndexMakeFilletAll:
3194 //=============================================================================
3195 CORBA::Long GEOM_Superv_i::GetSubShapeIndex (GEOM::GEOM_Object_ptr theShape,
3196 GEOM::GEOM_Object_ptr theSubShape)
3198 beginService( " GEOM_Superv_i::GetSubShapeIndex" );
3199 MESSAGE("GEOM_Superv_i::GetSubShapeIndexMakeArchimede");
3201 CORBA::Long aRes = myLocalOp->GetSubShapeIndex(theShape, theSubShape);
3202 endService( " GEOM_Superv_i::GetSubShapeIndex" );
3206 //=============================== GroupOperations =============================
3207 //=============================================================================
3209 //=============================================================================
3210 GEOM::GEOM_Object_ptr GEOM_Superv_i::CreateGroup (GEOM::GEOM_Object_ptr theMainShape,
3211 CORBA::Long theShapeType)
3213 beginService( " GEOM_Superv_i::CreateGroup" );
3214 MESSAGE("GEOM_Superv_i::CreateGroup");
3216 GEOM::GEOM_Object_ptr anObj = myGroupOp->CreateGroup(theMainShape, theShapeType);
3217 endService( " GEOM_Superv_i::CreateGroup" );
3221 //=============================================================================
3223 //=============================================================================
3224 void GEOM_Superv_i::AddObject (GEOM::GEOM_Object_ptr theGroup,
3225 CORBA::Long theSubShapeId)
3227 beginService( " GEOM_Superv_i::AddObject" );
3228 MESSAGE("GEOM_Superv_i::AddObject");
3230 myGroupOp->AddObject(theGroup, theSubShapeId);
3231 endService( " GEOM_Superv_i::AddObject" );
3234 //=============================================================================
3236 //=============================================================================
3237 void GEOM_Superv_i::RemoveObject (GEOM::GEOM_Object_ptr theGroup,
3238 CORBA::Long theSubShapeId)
3240 beginService( " GEOM_Superv_i::RemoveObject" );
3241 MESSAGE("GEOM_Superv_i::RemoveObject");
3243 myGroupOp->RemoveObject(theGroup, theSubShapeId);
3244 endService( " GEOM_Superv_i::RemoveObject" );
3247 //=============================================================================
3249 //=============================================================================
3250 CORBA::Long GEOM_Superv_i::GetType (GEOM::GEOM_Object_ptr theGroup)
3252 beginService( " GEOM_Superv_i::GetType" );
3253 MESSAGE("GEOM_Superv_i::GetType");
3255 CORBA::Long aResult = myGroupOp->GetType(theGroup);
3256 endService( " GEOM_Superv_i::GetType" );
3260 //=============================================================================
3262 //=============================================================================
3263 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetMainShape (GEOM::GEOM_Object_ptr theGroup)
3265 beginService( " GEOM_Superv_i::GetMainShape" );
3266 MESSAGE("GEOM_Superv_i::GetMainShape");
3268 GEOM::GEOM_Object_ptr anObj = myGroupOp->GetMainShape(theGroup);
3269 endService( " GEOM_Superv_i::GetMainShape" );
3273 //=============================================================================
3275 //=============================================================================
3276 GEOM::GEOM_List_ptr GEOM_Superv_i::GetObjects (GEOM::GEOM_Object_ptr theGroup)
3278 beginService( " GEOM_Superv_i::GetObjects" );
3279 MESSAGE("GEOM_Superv_i::GetObjects");
3282 GEOM::ListOfLong* aList = myGroupOp->GetObjects(theGroup);
3283 GEOM_List_i<GEOM::ListOfLong>* aListPtr = new GEOM_List_i<GEOM::ListOfLong>(*(aList));
3284 MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
3285 endService( " GEOM_Superv_i::GetObjects" );
3286 return aListPtr->_this();
3289 //=============================== Advanced Operations =============================
3290 //=============================================================================
3292 //=============================================================================
3293 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShape
3294 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3295 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
3296 CORBA::Boolean theHexMesh)
3298 beginService( " GEOM_Superv_i::MakePipeTShape" );
3299 MESSAGE("GEOM_Superv_i::MakePipeTShape");
3302 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShape(theR1, theW1, theL1, theR2, theW2, theL2, theHexMesh);
3303 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3304 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3305 endService( " GEOM_Superv_i::MakePipeTShape" );
3306 return aSeqPtr->_this();
3309 //=============================================================================
3310 // MakePipeTShapeWithPosition
3311 //=============================================================================
3312 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeWithPosition
3313 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3314 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2, CORBA::Boolean theHexMesh,
3315 GEOM::GEOM_Object_ptr theP1, GEOM::GEOM_Object_ptr theP2, GEOM::GEOM_Object_ptr theP3)
3317 beginService( " GEOM_Superv_i::MakePipeTShapeWithPosition" );
3318 MESSAGE("GEOM_Superv_i::MakePipeTShapeWithPosition");
3321 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeWithPosition(theR1, theW1, theL1, theR2, theW2, theL2, theHexMesh, theP1, theP2, theP3);
3322 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3323 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3324 endService( " GEOM_Superv_i::MakePipeTShapeWithPosition" );
3325 return aSeqPtr->_this();
3328 //=============================================================================
3329 // MakePipeTShapeChamfer
3330 //=============================================================================
3331 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeChamfer
3332 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3333 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
3334 CORBA::Double theH, CORBA::Double theW, CORBA::Boolean theHexMesh)
3336 beginService( " GEOM_Superv_i::MakePipeTShapeChamfer" );
3337 MESSAGE("GEOM_Superv_i::MakePipeTShapeChamfer");
3340 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeChamfer(theR1, theW1, theL1, theR2, theW2, theL2, theH, theW, theHexMesh);
3341 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3342 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3343 endService( " GEOM_Superv_i::MakePipeTShapeChamfer" );
3344 return aSeqPtr->_this();
3347 //=============================================================================
3348 // MakePipeTShapeChamferWithPosition
3349 //=============================================================================
3350 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeChamferWithPosition
3351 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3352 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
3353 CORBA::Double theH, CORBA::Double theW, CORBA::Boolean theHexMesh,
3354 GEOM::GEOM_Object_ptr theP1, GEOM::GEOM_Object_ptr theP2, GEOM::GEOM_Object_ptr theP3)
3356 beginService( " GEOM_Superv_i::MakePipeTShapeChamferWithPosition" );
3357 MESSAGE("GEOM_Superv_i::MakePipeTShapeChamferWithPosition");
3360 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeChamferWithPosition(theR1, theW1, theL1, theR2, theW2, theL2, theH, theW, theHexMesh, theP1, theP2, theP3);
3361 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3362 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3363 endService( " GEOM_Superv_i::MakePipeTShapeChamferWithPosition" );
3364 return aSeqPtr->_this();
3367 //=============================================================================
3368 // MakePipeTShapeFillet
3369 //=============================================================================
3370 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeFillet
3371 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3372 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
3373 CORBA::Double theRF, CORBA::Boolean theHexMesh)
3375 beginService( " GEOM_Superv_i::MakePipeTShapeFillet" );
3376 MESSAGE("GEOM_Superv_i::MakePipeTShapeFillet");
3379 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeFillet(theR1, theW1, theL1, theR2, theW2, theL2, theRF, theHexMesh);
3380 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3381 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3382 endService( " GEOM_Superv_i::MakePipeTShapeFillet" );
3383 return aSeqPtr->_this();
3386 //=============================================================================
3387 // MakePipeTShapeFilletWithPosition
3388 //=============================================================================
3389 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeFilletWithPosition
3390 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3391 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
3392 CORBA::Double theRF, CORBA::Boolean theHexMesh,
3393 GEOM::GEOM_Object_ptr theP1, GEOM::GEOM_Object_ptr theP2, GEOM::GEOM_Object_ptr theP3)
3395 beginService( " GEOM_Superv_i::MakePipeTShapeFilletWithPosition" );
3396 MESSAGE("GEOM_Superv_i::MakePipeTShapeFilletWithPosition");
3399 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeFilletWithPosition(theR1, theW1, theL1, theR2, theW2, theL2, theRF, theHexMesh, theP1, theP2, theP3);
3400 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3401 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3402 endService( " GEOM_Superv_i::MakePipeTShapeFilletWithPosition" );
3403 return aSeqPtr->_this();
3406 //=============================================================================
3408 //=============================================================================
3409 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDividedDisk (CORBA::Double theR, CORBA::Double theRatio,
3410 CORBA::Short theOrientation, GEOM::pattern thePattern)
3412 beginService( " GEOM_Superv_i::MakeDividedDisk" );
3413 MESSAGE("GEOM_Superv_i::MakeDividedDisk");
3415 GEOM::GEOM_Object_ptr anObj = myAdvancedOp->MakeDividedDisk(theR, theRatio, theOrientation, thePattern);
3416 endService( " GEOM_Superv_i::MakeDividedDisk" );
3420 //=============================================================================
3421 // MakeDividedCylinder
3422 //=============================================================================
3423 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDividedCylinder (CORBA::Double theR,
3425 GEOM::pattern thePattern)
3427 beginService( " GEOM_Superv_i::MakeDividedCylinder" );
3428 MESSAGE("GEOM_Superv_i::MakeDividedCylinder");
3430 GEOM::GEOM_Object_ptr anObj = myAdvancedOp->MakeDividedCylinder(theR, theH, thePattern);
3431 endService( " GEOM_Superv_i::MakeDividedCylinder" );
3435 /*@@ insert new functions before this line @@ do not remove this line @@*/
3437 //=====================================================================================
3439 //=====================================================================================
3443 __declspec( dllexport )
3445 PortableServer::ObjectId * GEOM_SupervEngine_factory(CORBA::ORB_ptr orb,
3446 PortableServer::POA_ptr poa,
3447 PortableServer::ObjectId * contId,
3448 const char *instanceName,
3449 const char * interfaceName)
3451 GEOM_Superv_i * myGEOM_Superv_i = new GEOM_Superv_i(orb, poa, contId, instanceName, interfaceName);
3452 //Don't understand the reason why this component is registered ???
3453 // myGEOM_Superv_i->register_name("/myGEOM_Superv");
3454 return myGEOM_Superv_i->getId() ;