1 // Copyright (C) 2007-2013 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
23 #include "GEOM_Superv_i.hh"
24 #include "SALOME_LifeCycleCORBA.hxx"
26 #include CORBA_SERVER_HEADER(SALOME_Session)
27 #include "SALOMEDSClient_ClientFactory.hxx"
29 #define isNewStudy(a,b) (a > 0 && a != b)
31 //=============================================================================
33 //=============================================================================
34 GEOM_Superv_i::GEOM_Superv_i(CORBA::ORB_ptr orb,
35 PortableServer::POA_ptr poa,
36 PortableServer::ObjectId * contId,
37 const char *instanceName,
38 const char *interfaceName) :
39 Engines_Component_i(orb, poa, contId, instanceName, interfaceName)
41 MESSAGE("GEOM_Superv_i::GEOM_Superv_i");
44 _id = _poa->activate_object(_thisObj);
45 name_service = new SALOME_NamingService(_orb);
46 //get RootPOA (the default)
47 //myPOA = PortableServer::RefCountServantBase::_default_POA();
48 CORBA::Object_var anObj = _orb->resolve_initial_references("RootPOA");
49 myPOA = PortableServer::POA::_narrow(anObj);
56 myBasicOp = GEOM::GEOM_IBasicOperations::_nil();
57 my3DPrimOp = GEOM::GEOM_I3DPrimOperations::_nil();
58 myBoolOp = GEOM::GEOM_IBooleanOperations::_nil();
59 myInsOp = GEOM::GEOM_IInsertOperations::_nil();
60 myTransfOp = GEOM::GEOM_ITransformOperations::_nil();
61 myShapesOp = GEOM::GEOM_IShapesOperations::_nil();
62 myBlocksOp = GEOM::GEOM_IBlocksOperations::_nil();
63 myCurvesOp = GEOM::GEOM_ICurvesOperations::_nil();
64 myLocalOp = GEOM::GEOM_ILocalOperations::_nil();
65 myGroupOp = GEOM::GEOM_IGroupOperations::_nil();
68 //=============================================================================
70 //=============================================================================
71 GEOM_Superv_i::~GEOM_Superv_i()
73 MESSAGE("GEOM_Superv_i::~GEOM_Superv_i");
74 if (!CORBA::is_nil(myBasicOp))
75 myBasicOp->UnRegister();
76 if (!CORBA::is_nil(myBoolOp))
77 myBoolOp->UnRegister();
78 if (!CORBA::is_nil(my3DPrimOp))
79 my3DPrimOp->UnRegister();
83 //============================================================================
84 // function : register()
85 // purpose : register 'name' in 'name_service'
86 //============================================================================
87 void GEOM_Superv_i::register_name(char * name)
89 GEOM::GEOM_Superv_var g = _this();
90 name_service->Register(g, name);
93 //=============================================================================
95 //=============================================================================
96 void GEOM_Superv_i::setGeomEngine()
98 if ( !CORBA::is_nil(myGeomEngine) )
101 // get GEOM_Gen engine
102 Engines::Container_var cont=GetContainerRef();
103 CORBA::String_var container_name=cont->name();
104 std::string shortName=container_name.in();
105 shortName=shortName.substr(12); // substract "/Containers/"
106 SALOME_LifeCycleCORBA* lcc = new SALOME_LifeCycleCORBA( name_service );
107 Engines::EngineComponent_var comp = lcc->FindOrLoad_Component( shortName.c_str(), "GEOM" );
110 myGeomEngine = GEOM::GEOM_Gen::_narrow(comp);
113 //=============================================================================
115 //=============================================================================
116 void GEOM_Superv_i::SetStudyID( CORBA::Long theId )
118 // mkr : PAL10770 -->
119 myLastStudyID = myStudyID;
121 CORBA::Object_ptr anObject = name_service->Resolve("/Kernel/Session");
122 if ( !CORBA::is_nil(anObject) ) {
123 SALOME::Session_var aSession = SALOME::Session::_narrow(anObject);
124 if ( !CORBA::is_nil(aSession) ) {
125 int aStudyID = aSession->GetActiveStudyId();
126 if ( theId != aStudyID && aStudyID > 0) { // mkr : IPAL12128
127 MESSAGE("Warning : given study ID theId="<<theId<<" is wrong and will be replaced by the value "<<aStudyID);
128 myStudyID = aStudyID;
131 myStudyID = theId; // mkr : IPAL12128
135 if ( isNewStudy(myLastStudyID,myStudyID) ) {
136 if (CORBA::is_nil(myGeomEngine)) setGeomEngine();
137 std::string anEngine = _orb->object_to_string( myGeomEngine );
139 CORBA::Object_var anObj = name_service->Resolve("/myStudyManager");
140 if ( !CORBA::is_nil(anObj) ) {
141 SALOMEDS::StudyManager_var aStudyManager = SALOMEDS::StudyManager::_narrow(anObj);
142 if ( !CORBA::is_nil(aStudyManager) ) {
143 _PTR(Study) aDSStudy = ClientFactory::Study(aStudyManager->GetStudyByID(myStudyID));
145 _PTR(SComponent) aSCO = aDSStudy->FindComponent(myGeomEngine->ComponentDataType());
147 _PTR(StudyBuilder) aBuilder = aDSStudy->NewBuilder();
148 if ( aBuilder ) aBuilder->LoadWith( aSCO, anEngine );
154 // mkr : PAL10770 <--
157 //=============================================================================
159 //=============================================================================
160 GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfGO()
162 MESSAGE("GEOM_Superv_i::CreateListOfGO()");
163 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>();
164 return aListPtr->_this();
167 //=============================================================================
168 // AddItemToListOfGO:
169 //=============================================================================
170 void GEOM_Superv_i::AddItemToListOfGO(GEOM::GEOM_List_ptr& theList,
171 GEOM::GEOM_Object_ptr theObject)
173 MESSAGE("GEOM_Superv_i::AddItemToListOfGO(...)");
174 GEOM::GEOM_Object_var anObj = GEOM::GEOM_Object::_duplicate(theObject);
175 if (GEOM_List_i<GEOM::ListOfGO>* aList =
176 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theList, myPOA).in())) {
177 aList->AddObject(anObj);
178 MESSAGE(" NewLength = "<<aList->GetList().length());
182 //=============================================================================
184 //=============================================================================
185 GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfLong()
187 MESSAGE("GEOM_Superv_i::CreateListOfLong()");
188 GEOM_List_i<GEOM::ListOfLong>* aListPtr = new GEOM_List_i<GEOM::ListOfLong>();
189 return aListPtr->_this();
192 //=============================================================================
193 // AddItemToListOfLong:
194 //=============================================================================
195 void GEOM_Superv_i::AddItemToListOfLong(GEOM::GEOM_List_ptr& theList,
196 CORBA::Long theObject)
198 MESSAGE("GEOM_Superv_i::AddItemToListOfLong(...)");
199 if (GEOM_List_i<GEOM::ListOfLong>* aList =
200 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theList, myPOA).in())) {
201 aList->AddObject(theObject);
202 MESSAGE(" NewLength = "<<aList->GetList().length());
206 //=============================================================================
207 // CreateListOfDouble:
208 //=============================================================================
209 GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfDouble()
211 MESSAGE("GEOM_Superv_i::CreateListOfDouble()");
212 GEOM_List_i<GEOM::ListOfDouble>* aListPtr = new GEOM_List_i<GEOM::ListOfDouble>();
213 return aListPtr->_this();
216 //=============================================================================
217 // AddItemToListOfDouble:
218 //=============================================================================
219 void GEOM_Superv_i::AddItemToListOfDouble(GEOM::GEOM_List_ptr& theList,
220 CORBA::Double theObject)
222 MESSAGE("GEOM_Superv_i::AddItemToListOfDouble(...)");
223 if (GEOM_List_i<GEOM::ListOfDouble>* aList =
224 dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theList, myPOA).in())) {
225 aList->AddObject(theObject);
226 MESSAGE(" NewLength = "<<aList->GetList().length());
230 //=============================================================================
232 //=============================================================================
233 void GEOM_Superv_i::getBasicOp()
235 if (CORBA::is_nil(myGeomEngine))
237 // get GEOM_IBasicOperations interface
238 if (CORBA::is_nil(myBasicOp) || isNewStudy(myLastStudyID,myStudyID)) {
239 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
240 // Try to get id of the study from the SALOME Session
241 if(myStudyID < 0 ) SetStudyID(-1);
242 myBasicOp = myGeomEngine->GetIBasicOperations(myStudyID);
246 //=============================================================================
248 //=============================================================================
249 void GEOM_Superv_i::get3DPrimOp()
251 if (CORBA::is_nil(myGeomEngine))
253 // get GEOM_I3DPrimOperations interface
254 if (CORBA::is_nil(my3DPrimOp) || isNewStudy(myLastStudyID,myStudyID)) {
255 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
256 // Try to get id of the study from the SALOME Session
257 if(myStudyID < 0 ) SetStudyID(-1);
258 my3DPrimOp = myGeomEngine->GetI3DPrimOperations(myStudyID);
262 //=============================================================================
264 //=============================================================================
265 void GEOM_Superv_i::getBoolOp()
267 if (CORBA::is_nil(myGeomEngine))
269 // get GEOM_IBooleanOperations interface
270 if (CORBA::is_nil(myBoolOp) || isNewStudy(myLastStudyID,myStudyID)) {
271 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
272 // Try to get id of the study from the SALOME Session
273 if(myStudyID < 0 ) SetStudyID(-1);
274 myBoolOp = myGeomEngine->GetIBooleanOperations(myStudyID);
278 //=============================================================================
280 //=============================================================================
281 void GEOM_Superv_i::getInsOp()
283 if (CORBA::is_nil(myGeomEngine))
285 // get GEOM_IInsertOperations interface
286 if (CORBA::is_nil(myInsOp) || isNewStudy(myLastStudyID,myStudyID)) {
287 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
288 // Try to get id of the study from the SALOME Session
289 if(myStudyID < 0 ) SetStudyID(-1);
290 myInsOp = myGeomEngine->GetIInsertOperations(myStudyID);
294 //=============================================================================
296 //=============================================================================
297 void GEOM_Superv_i::getTransfOp()
299 if (CORBA::is_nil(myGeomEngine))
301 // get GEOM_ITransformOperations interface
302 if (CORBA::is_nil(myTransfOp) || isNewStudy(myLastStudyID,myStudyID)) {
303 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
304 // Try to get id of the study from the SALOME Session
305 if(myStudyID < 0 ) SetStudyID(-1);
306 myTransfOp = myGeomEngine->GetITransformOperations(myStudyID);
310 //=============================================================================
312 //=============================================================================
313 void GEOM_Superv_i::getShapesOp()
315 if (CORBA::is_nil(myGeomEngine))
317 // get GEOM_IShapesOperations interface
318 if (CORBA::is_nil(myShapesOp) || isNewStudy(myLastStudyID,myStudyID)) {
319 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
320 // Try to get id of the study from the SALOME Session
321 if(myStudyID < 0 ) SetStudyID(-1);
322 myShapesOp = myGeomEngine->GetIShapesOperations(myStudyID);
326 //=============================================================================
328 //=============================================================================
329 void GEOM_Superv_i::getBlocksOp()
331 if (CORBA::is_nil(myGeomEngine))
333 // get GEOM_IBlocksOperations interface
334 if (CORBA::is_nil(myBlocksOp) || isNewStudy(myLastStudyID,myStudyID)) {
335 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
336 // Try to get id of the study from the SALOME Session
337 if(myStudyID < 0 ) SetStudyID(-1);
338 myBlocksOp = myGeomEngine->GetIBlocksOperations(myStudyID);
342 //=============================================================================
344 //=============================================================================
345 void GEOM_Superv_i::getCurvesOp()
347 if (CORBA::is_nil(myGeomEngine))
349 // get GEOM_ICurvesOperations interface
350 if (CORBA::is_nil(myCurvesOp) || isNewStudy(myLastStudyID,myStudyID)) {
351 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
352 // Try to get id of the study from the SALOME Session
353 if(myStudyID < 0 ) SetStudyID(-1);
354 myCurvesOp = myGeomEngine->GetICurvesOperations(myStudyID);
358 //=============================================================================
360 //=============================================================================
361 void GEOM_Superv_i::getLocalOp()
363 if (CORBA::is_nil(myGeomEngine))
365 // get GEOM_ILocalOperations interface
366 if (CORBA::is_nil(myLocalOp) || isNewStudy(myLastStudyID,myStudyID)) {
367 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
368 // Try to get id of the study from the SALOME Session
369 if(myStudyID < 0 ) SetStudyID(-1);
370 myLocalOp = myGeomEngine->GetILocalOperations(myStudyID);
374 //=============================================================================
376 //=============================================================================
377 void GEOM_Superv_i::getGroupOp()
379 if (CORBA::is_nil(myGeomEngine))
381 // get GEOM_IGroupOperations interface
382 if (CORBA::is_nil(myGroupOp) || isNewStudy(myLastStudyID,myStudyID)) {
383 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
384 // Try to get id of the study from the SALOME Session
385 if(myStudyID < 0 ) SetStudyID(-1);
386 myGroupOp = myGeomEngine->GetIGroupOperations(myStudyID);
390 //=============================================================================
392 //=============================================================================
393 void GEOM_Superv_i::getAdvancedOp()
395 if (CORBA::is_nil(myGeomEngine))
397 // get GEOM_IAdvancedOperations interface
398 if (CORBA::is_nil(myAdvancedOp) || isNewStudy(myLastStudyID,myStudyID)) {
399 //rnv: to fix bug "IPAL22461 6.3.0: Incorrect study storage if study contains shape modified with YACS"
400 // Try to get id of the study from the SALOME Session
401 if(myStudyID < 0 ) SetStudyID(-1);
402 myAdvancedOp = myGeomEngine->GetIAdvancedOperations(myStudyID);
406 //=============================================================================
408 //=============================================================================
409 PortableServer::ServantBase_var GEOM_Superv_i::GetServant(CORBA::Object_ptr theObject,
410 PortableServer::POA_ptr thePOA)
412 if(CORBA::is_nil(theObject)) return NULL;
413 PortableServer::Servant aServant = thePOA->reference_to_servant(theObject);
417 //============================================================================
419 // purpose : save OCAF/Geom document
420 //============================================================================
421 SALOMEDS::TMPFile* GEOM_Superv_i::Save(SALOMEDS::SComponent_ptr theComponent,
423 CORBA::Boolean isMultiFile)
425 SALOMEDS::TMPFile_var aStreamFile;
426 return aStreamFile._retn();
429 //============================================================================
430 // function : SaveASCII()
432 //============================================================================
433 SALOMEDS::TMPFile* GEOM_Superv_i::SaveASCII(SALOMEDS::SComponent_ptr theComponent,
435 CORBA::Boolean isMultiFile)
437 SALOMEDS::TMPFile_var aStreamFile;
438 return aStreamFile._retn();
441 //============================================================================
444 //============================================================================
445 CORBA::Boolean GEOM_Superv_i::Load(SALOMEDS::SComponent_ptr theComponent,
446 const SALOMEDS::TMPFile& theStream,
448 CORBA::Boolean isMultiFile)
453 //============================================================================
454 // function : LoadASCII()
456 //============================================================================
457 CORBA::Boolean GEOM_Superv_i::LoadASCII(SALOMEDS::SComponent_ptr theComponent,
458 const SALOMEDS::TMPFile& theStream,
460 CORBA::Boolean isMultiFile)
465 //============================================================================
466 // function : Close()
468 //============================================================================
469 void GEOM_Superv_i::Close(SALOMEDS::SComponent_ptr theComponent)
473 //============================================================================
474 // function : ComponentDataType()
476 //============================================================================
477 char* GEOM_Superv_i::ComponentDataType()
482 //============================================================================
483 // function : IORToLocalPersistentID()
485 //============================================================================
486 char* GEOM_Superv_i::IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
487 const char* IORString,
488 CORBA::Boolean isMultiFile,
489 CORBA::Boolean isASCII)
494 //============================================================================
495 // function : LocalPersistentIDToIOR()
496 // purpose : Create/Load CORBA object from a persistent ref (an entry)
497 // : Used when a study is loaded
498 // : The IOR (IORName) of object created is returned
499 //============================================================================
500 char* GEOM_Superv_i::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject,
501 const char* aLocalPersistentID,
502 CORBA::Boolean isMultiFile,
503 CORBA::Boolean isASCII)
508 //============================================================================
509 // function : CanPublishInStudy
511 //============================================================================
512 CORBA::Boolean GEOM_Superv_i::CanPublishInStudy(CORBA::Object_ptr theIOR)
514 if (CORBA::is_nil(myGeomEngine))
516 return myGeomEngine->CanPublishInStudy(theIOR);
519 //============================================================================
520 // function : PublishInStudy
522 //============================================================================
523 SALOMEDS::SObject_ptr GEOM_Superv_i::PublishInStudy(SALOMEDS::Study_ptr theStudy,
524 SALOMEDS::SObject_ptr theSObject,
525 CORBA::Object_ptr theObject,
526 const char* theName) throw (SALOME::SALOME_Exception)
528 if (CORBA::is_nil(myGeomEngine))
530 return myGeomEngine->PublishInStudy(theStudy, theSObject, theObject, theName);
533 //============================================================================
534 // function : PublishNamedShapesInStudy
536 //============================================================================
538 GEOM_Superv_i::PublishNamedShapesInStudy(SALOMEDS::Study_ptr theStudy,
539 //SALOMEDS::SObject_ptr theSObject,
540 CORBA::Object_ptr theObject)
542 if (CORBA::is_nil(myGeomEngine))
544 return myGeomEngine->PublishNamedShapesInStudy(theStudy, theObject);
547 //============================================================================
548 // function : CanCopy()
550 //============================================================================
551 CORBA::Boolean GEOM_Superv_i::CanCopy(SALOMEDS::SObject_ptr theObject)
556 //============================================================================
557 // function : CopyFrom()
559 //============================================================================
560 SALOMEDS::TMPFile* GEOM_Superv_i::CopyFrom(SALOMEDS::SObject_ptr theObject, CORBA::Long& theObjectID)
562 SALOMEDS::TMPFile_var aStreamFile;
563 return aStreamFile._retn();
566 //============================================================================
567 // function : CanPaste()
569 //============================================================================
570 CORBA::Boolean GEOM_Superv_i::CanPaste(const char* theComponentName, CORBA::Long theObjectID)
575 //============================================================================
576 // function : PasteInto()
578 //============================================================================
579 SALOMEDS::SObject_ptr GEOM_Superv_i::PasteInto(const SALOMEDS::TMPFile& theStream,
580 CORBA::Long theObjectID,
581 SALOMEDS::SObject_ptr theObject)
583 SALOMEDS::SObject_var aNewSO;
584 return aNewSO._retn();
587 //================= Primitives Construction : BasicOperations =================
588 //=============================================================================
590 //=============================================================================
591 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointXYZ(CORBA::Double theX,
595 beginService( " GEOM_Superv_i::MakePointXYZ" );
596 MESSAGE("GEOM_Superv_i::MakePointXYZ");
598 // make vertex and return
599 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointXYZ(theX, theY, theZ);
600 endService( " GEOM_Superv_i::MakePointXYZ" );
604 //=============================================================================
605 // MakePointWithReference:
606 //=============================================================================
607 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointWithReference (GEOM::GEOM_Object_ptr theReference,
612 beginService( " GEOM_Superv_i::MakePointWithReference" );
613 MESSAGE("GEOM_Superv_i::MakePointWithReference");
615 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointWithReference(theReference, theX, theY, theZ);
616 endService( " GEOM_Superv_i::MakePointWithReference" );
620 //=============================================================================
622 //=============================================================================
623 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
624 CORBA::Double theParameter)
626 beginService( " GEOM_Superv_i::MakePointOnCurve" );
627 MESSAGE("GEOM_Superv_i::MakePointOnCurve");
629 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointOnCurve(theRefCurve, theParameter);
630 endService( " GEOM_Superv_i::MakePointOnCurve" );
634 //=============================================================================
635 // MakePointOnCurveByLength:
636 //=============================================================================
637 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnCurveByLength (GEOM::GEOM_Object_ptr theRefCurve,
638 CORBA::Double theLength,
639 GEOM::GEOM_Object_ptr theStartPoint)
641 beginService( " GEOM_Superv_i::MakePointOnCurveByLength" );
642 MESSAGE("GEOM_Superv_i::MakePointOnCurveByLength");
644 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointOnCurveByLength(theRefCurve, theLength, theStartPoint);
645 endService( " GEOM_Superv_i::MakePointOnCurveByLength" );
649 //=============================================================================
650 // MakePointOnCurveByCoord
651 //=============================================================================
652 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnCurveByCoord (GEOM::GEOM_Object_ptr theRefCurve,
653 CORBA::Double theXParameter,
654 CORBA::Double theYParameter,
655 CORBA::Double theZParameter)
657 beginService( " GEOM_Superv_i::MakePointOnCurveByCoord" );
658 MESSAGE("GEOM_Superv_i::MakePointOnCurveByCoord");
660 GEOM::GEOM_Object_ptr anObj =
661 myBasicOp->MakePointOnCurveByCoord(theRefCurve, theXParameter,
662 theYParameter, theZParameter);
663 endService( " GEOM_Superv_i::MakePointOnCurveByCoord" );
667 //=============================================================================
668 // MakePointOnSurface:
669 //=============================================================================
670 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnSurface (GEOM::GEOM_Object_ptr theRefSurface,
671 CORBA::Double theUParameter,
672 CORBA::Double theVParameter)
674 beginService( " GEOM_Superv_i::MakePointOnSurface" );
675 MESSAGE("GEOM_Superv_i::MakePointOnSurface");
677 GEOM::GEOM_Object_ptr anObj =
678 myBasicOp->MakePointOnSurface(theRefSurface, theUParameter, theVParameter);
679 endService( " GEOM_Superv_i::MakePointOnSurface" );
683 //=============================================================================
684 // MakePointOnSurfaceByCoord
685 //=============================================================================
686 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnSurfaceByCoord (GEOM::GEOM_Object_ptr theRefSurface,
687 CORBA::Double theXParameter,
688 CORBA::Double theYParameter,
689 CORBA::Double theZParameter)
691 beginService( " GEOM_Superv_i::MakePointOnSurfaceByCoord" );
692 MESSAGE("GEOM_Superv_i::MakePointOnSurfaceByCoord");
694 GEOM::GEOM_Object_ptr anObj =
695 myBasicOp->MakePointOnSurfaceByCoord(theRefSurface, theXParameter,
696 theYParameter, theZParameter);
697 endService( " GEOM_Superv_i::MakePointOnSurfaceByCoord" );
701 //=============================================================================
702 // MakePointOnLinesIntersection:
703 //=============================================================================
704 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnLinesIntersection (GEOM::GEOM_Object_ptr theRefLine1,
705 GEOM::GEOM_Object_ptr theRefLine2)
707 beginService( " GEOM_Superv_i::MakePointOnLinesIntersection" );
708 MESSAGE("GEOM_Superv_i::MakePointOnLinesIntersection");
710 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointOnLinesIntersection(theRefLine1, theRefLine2);
711 endService( " GEOM_Superv_i::MakePointOnLinesIntersection" );
715 //=============================================================================
716 // MakeTangentOnCurve:
717 //=============================================================================
718 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTangentOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
719 CORBA::Double theParameter)
721 beginService( " GEOM_Superv_i::MakeTangentOnCurve" );
722 MESSAGE("GEOM_Superv_i::MakeTangentOnCurve");
724 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeTangentOnCurve(theRefCurve, theParameter);
725 endService( " GEOM_Superv_i::MakeTangentOnCurve" );
729 //=============================================================================
731 //=============================================================================
732 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeVectorDXDYDZ (CORBA::Double theDX,
736 beginService( " GEOM_Superv_i::MakeVectorDXDYDZ" );
737 MESSAGE("GEOM_Superv_i::MakeVectorDXDYDZ");
739 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeVectorDXDYDZ(theDX, theDY, theDZ);
740 endService( " GEOM_Superv_i::MakeVectorDXDYDZ" );
744 //=============================================================================
746 //=============================================================================
747 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeVectorTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
748 GEOM::GEOM_Object_ptr thePnt2)
750 beginService( " GEOM_Superv_i::MakeVectorTwoPnt" );
751 MESSAGE("GEOM_Superv_i::MakeVector");
753 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeVectorTwoPnt(thePnt1, thePnt2);
754 endService( " GEOM_Superv_i::MakeVectorTwoPnt" );
758 //=============================================================================
760 //=============================================================================
761 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeLineTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
762 GEOM::GEOM_Object_ptr thePnt2)
764 beginService( " GEOM_Superv_i::MakeLineTwoPnt");
765 MESSAGE("GEOM_Superv_i::MakeLineTwoPnt");
767 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeLineTwoPnt(thePnt1, thePnt2);
768 endService( " GEOM_Superv_i::MakeLineTwoPnt");
772 //=============================================================================
774 //=============================================================================
775 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeLineTwoFaces (GEOM::GEOM_Object_ptr theFace1,
776 GEOM::GEOM_Object_ptr theFace2)
778 beginService( " GEOM_Superv_i::MakeLineTwoFaces");
779 MESSAGE("GEOM_Superv_i::MakeLineTwoFaces");
781 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeLineTwoFaces(theFace1, theFace2);
782 endService( " GEOM_Superv_i::MakeLineTwoFaces");
786 //=============================================================================
787 // MakePlaneThreePnt:
788 //=============================================================================
789 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneThreePnt (GEOM::GEOM_Object_ptr thePnt1,
790 GEOM::GEOM_Object_ptr thePnt2,
791 GEOM::GEOM_Object_ptr thePnt3,
792 CORBA::Double theTrimSize)
794 beginService( " GEOM_Superv_i::MakePlaneThreePnt");
795 MESSAGE("GEOM_Superv_i::MakePlaneThreePnt");
797 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlaneThreePnt(thePnt1, thePnt2, thePnt3, theTrimSize);
798 endService( " GEOM_Superv_i::MakePlaneThreePnt");
802 //=============================================================================
804 //=============================================================================
805 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlanePntVec (GEOM::GEOM_Object_ptr thePnt,
806 GEOM::GEOM_Object_ptr theVec,
807 CORBA::Double theTrimSize)
809 beginService( " GEOM_Superv_i::MakePlanePntVec" );
810 MESSAGE("GEOM_Superv_i::MakePlanePntVec");
812 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlanePntVec(thePnt, theVec, theTrimSize);
813 endService( " GEOM_Superv_i::MakePlanePntVec" );
817 //=============================================================================
819 //=============================================================================
820 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneFace (GEOM::GEOM_Object_ptr theFace,
821 CORBA::Double theTrimSize)
823 beginService( " GEOM_Superv_i::MakePlaneFace" );
824 MESSAGE("GEOM_Superv_i::MakePlaneFace");
826 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlaneFace(theFace, theTrimSize);
827 endService( " GEOM_Superv_i::MakePlaneFace" );
831 //=============================================================================
833 //=============================================================================
834 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlane2Vec (GEOM::GEOM_Object_ptr theVec1,
835 GEOM::GEOM_Object_ptr theVec2,
836 CORBA::Double theTrimSize)
838 beginService( " GEOM_Superv_i::MakePlane2Vec" );
839 MESSAGE("GEOM_Superv_i::MakePlane2Vec");
841 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlane2Vec(theVec1, theVec2, theTrimSize);
842 endService( " GEOM_Superv_i::MakePlane2Vec" );
846 //=============================================================================
848 //=============================================================================
849 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneLCS (GEOM::GEOM_Object_ptr theLCS,
850 CORBA::Double theTrimSize,
851 CORBA::Double theOrientation)
853 beginService( " GEOM_Superv_i::MakePlaneLCS" );
854 MESSAGE("GEOM_Superv_i::MakePlaneLCS");
856 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlaneLCS(theLCS, theTrimSize, theOrientation);
857 endService( " GEOM_Superv_i::MakePlaneLCS" );
861 //=============================================================================
863 //=============================================================================
864 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarker
865 (CORBA::Double theOX , CORBA::Double theOY , CORBA::Double theOZ,
866 CORBA::Double theXDX, CORBA::Double theXDY, CORBA::Double theXDZ,
867 CORBA::Double theYDX, CORBA::Double theYDY, CORBA::Double theYDZ)
869 beginService( " GEOM_Superv_i::MakeMarker" );
870 MESSAGE("GEOM_Superv_i::MakeMarker");
872 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeMarker(theOX, theOY, theOZ, theXDX, theXDY, theXDZ, theYDX, theYDY, theYDZ);
873 endService( " GEOM_Superv_i::MakeMarker" );
877 //=============================================================================
878 // MakeMarkerFromShape:
879 //=============================================================================
880 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarkerFromShape (GEOM::GEOM_Object_ptr theShape)
882 beginService( " GEOM_Superv_i::MakeMarkerFromShape" );
883 MESSAGE("GEOM_Superv_i::MakeMarkerFromShape");
885 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeMarkerFromShape(theShape);
886 endService( " GEOM_Superv_i::MakeMarkerFromShape" );
890 //=============================================================================
891 // MakeMarkerPntTwoVec:
892 //=============================================================================
893 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarkerPntTwoVec (GEOM::GEOM_Object_ptr theOrigin,
894 GEOM::GEOM_Object_ptr theXVec,
895 GEOM::GEOM_Object_ptr theYVec)
897 beginService( " GEOM_Superv_i::MakeMarkerPntTwoVec" );
898 MESSAGE("GEOM_Superv_i::MakeMarkerPntTwoVec");
900 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeMarkerPntTwoVec(theOrigin, theXVec, theYVec);
901 endService( " GEOM_Superv_i::MakeMarkerPntTwoVec" );
905 //=============================================================================
906 // MakeTangentPlaneOnFace:
907 //=============================================================================
908 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTangentPlaneOnFace (GEOM::GEOM_Object_ptr theFace,
909 CORBA::Double theParameterU,
910 CORBA::Double theParameterV,
911 CORBA::Double theTrimSize)
913 beginService( " GEOM_Superv_i::MakeTangentPlaneOnFace" );
914 MESSAGE("GEOM_Superv_i::MakeTangentPlaneOnFace");
916 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeTangentPlaneOnFace(theFace, theParameterU,theParameterV,theTrimSize);
917 endService( " GEOM_Superv_i::MakeTangentPlaneOnFace" );
921 //================= Primitives Construction : 3DPrimOperations ================
922 //=============================================================================
924 //=============================================================================
925 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBox (CORBA::Double theX1,
932 beginService( " GEOM_Superv_i::MakeBox" );
933 MESSAGE("GEOM_Superv_i::MakeBox");
936 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxTwoPnt(myBasicOp->MakePointXYZ(theX1, theY1, theZ1),
937 myBasicOp->MakePointXYZ(theX2, theY2, theZ2));
938 endService( " GEOM_Superv_i::MakeBox" );
942 //=============================================================================
944 //=============================================================================
945 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxDXDYDZ (CORBA::Double theDX,
949 beginService( " GEOM_Superv_i::MakeBoxDXDYDZ" );
950 MESSAGE("GEOM_Superv_i::MakeBoxDXDYDZ");
952 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxDXDYDZ(theDX, theDY, theDZ);
953 endService( " GEOM_Superv_i::MakeBoxDXDYDZ" );
957 //=============================================================================
959 //=============================================================================
960 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
961 GEOM::GEOM_Object_ptr thePnt2)
963 beginService( " GEOM_Superv_i::MakeBoxTwoPnt" );
964 MESSAGE("GEOM_Superv_i::MakeBoxTwoPnt");
966 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxTwoPnt(thePnt1, thePnt2);
967 endService( " GEOM_Superv_i::MakeBoxTwoPnt" );
971 //=============================================================================
973 //=============================================================================
974 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceHW (CORBA::Double theH,
976 CORBA::Short theOrientation)
978 beginService( " GEOM_Superv_i::MakeFaceHW" );
979 MESSAGE("GEOM_Superv_i::MakeFaceHW");
981 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeFaceHW(theH, theW, theOrientation);
982 endService( " GEOM_Superv_i::MakeFaceHW" );
986 //=============================================================================
988 //=============================================================================
989 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceObjHW (GEOM::GEOM_Object_ptr theObj,
993 beginService( " GEOM_Superv_i::MakeFaceObjHW" );
994 MESSAGE("GEOM_Superv_i::MakeFaceObjHW");
996 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeFaceObjHW(theObj, theH, theW);
997 endService( " GEOM_Superv_i::MakeFaceObjHW" );
1001 //=============================================================================
1003 //=============================================================================
1004 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskPntVecR (GEOM::GEOM_Object_ptr theCenter,
1005 GEOM::GEOM_Object_ptr theVector,
1008 beginService( " GEOM_Superv_i::MakeDiskPntVecR" );
1009 MESSAGE("GEOM_Superv_i::MakeDiskPntVecR");
1011 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeDiskPntVecR(theCenter, theVector, theR);
1012 endService( " GEOM_Superv_i::MakeDiskPntVecR" );
1016 //=============================================================================
1017 // MakeDiskThreePnt:
1018 //=============================================================================
1019 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskThreePnt (GEOM::GEOM_Object_ptr thePnt1,
1020 GEOM::GEOM_Object_ptr thePnt2,
1021 GEOM::GEOM_Object_ptr thePnt3)
1023 beginService( " GEOM_Superv_i::MakeDiskThreePnt" );
1024 MESSAGE("GEOM_Superv_i::MakeDiskThreePnt");
1026 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeDiskThreePnt(thePnt1, thePnt2, thePnt3);
1027 endService( " GEOM_Superv_i::MakeDiskThreePnt" );
1031 //=============================================================================
1033 //=============================================================================
1034 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskR (CORBA::Double theR,
1035 CORBA::Short theOrientation)
1037 beginService( " GEOM_Superv_i::MakeDiskR" );
1038 MESSAGE("GEOM_Superv_i::MakeDiskR");
1040 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeDiskR(theR, theOrientation);
1041 endService( " GEOM_Superv_i::MakeDiskR" );
1045 //=============================================================================
1046 // MakeCylinderPntVecRH:
1047 //=============================================================================
1048 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
1049 GEOM::GEOM_Object_ptr theAxis,
1050 CORBA::Double theRadius,
1051 CORBA::Double theHeight)
1053 beginService( " GEOM_Superv_i::MakeCylinderPntVecRH" );
1054 MESSAGE("GEOM_Superv_i::MakeCylinderPntVecRH");
1056 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeCylinderPntVecRH(thePnt, theAxis, theRadius, theHeight);
1057 endService( " GEOM_Superv_i::MakeCylinderPntVecRH" );
1061 //=============================================================================
1063 //=============================================================================
1064 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderRH (CORBA::Double theR,
1067 beginService( " GEOM_Superv_i::MakeCylinderRH" );
1068 MESSAGE("GEOM_Superv_i::MakeCylinderRH");
1070 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeCylinderRH(theR, theH);
1071 endService( " GEOM_Superv_i::MakeCylinderRH" );
1075 //=============================================================================
1077 //=============================================================================
1078 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSphere (CORBA::Double theX,
1081 CORBA::Double theRadius)
1083 beginService( " GEOM_Superv_i::MakeSphepe" );
1084 MESSAGE("GEOM_Superv_i::MakeSphepe");
1087 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSpherePntR(myBasicOp->MakePointXYZ(theX, theY, theZ), theRadius);
1088 endService( " GEOM_Superv_i::MakeSphepe" );
1092 //=============================================================================
1094 //=============================================================================
1095 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSphereR (CORBA::Double theR)
1097 beginService( " GEOM_Superv_i::MakeSphereR" );
1098 MESSAGE("GEOM_Superv_i::MakeSphereR");
1100 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSphereR(theR);
1101 endService( " GEOM_Superv_i::MakeSphereR" );
1105 //=============================================================================
1107 //=============================================================================
1108 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
1111 beginService( " GEOM_Superv_i::MakeSpherePntR" );
1112 MESSAGE("GEOM_Superv_i::MakeSpherePntR");
1114 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSpherePntR(thePnt, theR);
1115 endService( " GEOM_Superv_i::MakeSpherePntR" );
1119 //=============================================================================
1120 // MakeTorusPntVecRR:
1121 //=============================================================================
1122 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTorusPntVecRR (GEOM::GEOM_Object_ptr thePnt,
1123 GEOM::GEOM_Object_ptr theVec,
1124 CORBA::Double theRMajor,
1125 CORBA::Double theRMinor)
1127 beginService( " GEOM_Superv_i::MakeTorusPntVecRR" );
1128 MESSAGE("GEOM_Superv_i::MakeTorusPntVecRR");
1130 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeTorusPntVecRR(thePnt, theVec, theRMajor, theRMinor);
1131 endService( " GEOM_Superv_i::MakeTorusPntVecRR" );
1135 //=============================================================================
1137 //=============================================================================
1138 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTorusRR (CORBA::Double theRMajor,
1139 CORBA::Double theRMinor)
1141 beginService( " GEOM_Superv_i::MakeTorusRR" );
1142 MESSAGE("GEOM_Superv_i::MakeTorusRR");
1144 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeTorusRR(theRMajor, theRMinor);
1145 endService( " GEOM_Superv_i::MakeTorusRR" );
1149 //=============================================================================
1150 // MakeConePntVecR1R2H:
1151 //=============================================================================
1152 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
1153 GEOM::GEOM_Object_ptr theAxis,
1154 CORBA::Double theR1,
1155 CORBA::Double theR2,
1156 CORBA::Double theHeight)
1158 beginService( " GEOM_Superv_i::MakeConePntVecR1R2H" );
1159 MESSAGE("GEOM_Superv_i::MakeConePntVecR1R2H");
1161 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeConePntVecR1R2H(thePnt, theAxis, theR1, theR2, theHeight);
1162 endService( " GEOM_Superv_i::MakeConePntVecR1R2H" );
1166 //=============================================================================
1168 //=============================================================================
1169 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeConeR1R2H (CORBA::Double theR1,
1170 CORBA::Double theR2,
1171 CORBA::Double theHeight)
1173 beginService( " GEOM_Superv_i::MakeConeR1R2H" );
1174 MESSAGE("GEOM_Superv_i::MakeConeR1R2H");
1176 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeConeR1R2H(theR1, theR2, theHeight);
1177 endService( " GEOM_Superv_i::MakeConeR1R2H" );
1181 //=============================================================================
1183 //=============================================================================
1184 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
1185 GEOM::GEOM_Object_ptr theVec,
1188 beginService( " GEOM_Superv_i::MakePrismVecH" );
1189 MESSAGE("GEOM_Superv_i::MakePrismVecH");
1191 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismVecH(theBase, theVec, theH);
1192 endService( " GEOM_Superv_i::MakePrismVecH" );
1196 //=============================================================================
1197 // MakePrismVecH2Ways:
1198 //=============================================================================
1199 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
1200 GEOM::GEOM_Object_ptr theVec,
1203 beginService( " GEOM_Superv_i::MakePrismVecH2Ways" );
1204 MESSAGE("GEOM_Superv_i::MakePrismVecH2Ways");
1206 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismVecH2Ways(theBase, theVec, theH);
1207 endService( " GEOM_Superv_i::MakePrismVecH2Ways" );
1211 //=============================================================================
1213 //=============================================================================
1214 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
1215 GEOM::GEOM_Object_ptr thePoint1,
1216 GEOM::GEOM_Object_ptr thePoint2)
1218 beginService( " GEOM_Superv_i::MakePrismTwoPnt" );
1219 MESSAGE("GEOM_Superv_i::MakePrismTwoPnt");
1221 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismTwoPnt(theBase, thePoint1, thePoint2);
1222 endService( " GEOM_Superv_i::MakePrismTwoPnt" );
1226 //=============================================================================
1227 // MakePrismTwoPnt2Ways:
1228 //=============================================================================
1229 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr theBase,
1230 GEOM::GEOM_Object_ptr thePoint1,
1231 GEOM::GEOM_Object_ptr thePoint2)
1233 beginService( " GEOM_Superv_i::MakePrismTwoPnt2Ways" );
1234 MESSAGE("GEOM_Superv_i::MakePrismTwoPnt2Ways");
1236 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismTwoPnt2Ways(theBase, thePoint1, thePoint2);
1237 endService( " GEOM_Superv_i::MakePrismTwoPnt2Ways" );
1241 //=============================================================================
1243 //=============================================================================
1244 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismDXDYDZ (GEOM::GEOM_Object_ptr theBase,
1245 CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
1247 beginService( " GEOM_Superv_i::MakePrismDXDYDZ" );
1248 MESSAGE("GEOM_Superv_i::MakePrismDXDYDZ");
1250 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismDXDYDZ(theBase, theDX, theDY, theDZ);
1251 endService( " GEOM_Superv_i::MakePrismDXDYDZ" );
1255 //=============================================================================
1257 //=============================================================================
1258 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismDXDYDZ2Ways (GEOM::GEOM_Object_ptr theBase,
1259 CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
1261 beginService( " GEOM_Superv_i::MakePrismDXDYDZ2Ways" );
1262 MESSAGE("GEOM_Superv_i::MakePrismDXDYDZ2Ways");
1264 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismDXDYDZ2Ways(theBase, theDX, theDY, theDZ);
1265 endService( " GEOM_Superv_i::MakePrismDXDYDZ2Ways" );
1269 //=============================================================================
1271 //=============================================================================
1272 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipe (GEOM::GEOM_Object_ptr theBase,
1273 GEOM::GEOM_Object_ptr thePath)
1275 beginService( " GEOM_Superv_i::MakePipe" );
1276 MESSAGE("GEOM_Superv_i::MakePipe");
1278 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePipe(theBase, thePath);
1279 endService( " GEOM_Superv_i::MakePipe" );
1283 //=============================================================================
1284 // MakeRevolutionAxisAngle:
1285 //=============================================================================
1286 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
1287 GEOM::GEOM_Object_ptr theAxis,
1288 CORBA::Double theAngle)
1290 beginService( " GEOM_Superv_i::MakeRevolutionAxisAngle" );
1291 MESSAGE("GEOM_Superv_i::MakeRevolutionAxisAngle");
1293 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeRevolutionAxisAngle(theBase, theAxis, theAngle);
1294 endService( " GEOM_Superv_i::MakeRevolutionAxisAngle" );
1298 //=============================================================================
1299 // MakeRevolutionAxisAngle:
1300 //=============================================================================
1301 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
1302 GEOM::GEOM_Object_ptr theAxis,
1303 CORBA::Double theAngle)
1305 beginService( " GEOM_Superv_i::MakeRevolutionAxisAngle2Ways" );
1306 MESSAGE("GEOM_Superv_i::MakeRevolutionAxisAngle2Ways");
1308 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeRevolutionAxisAngle2Ways(theBase, theAxis, theAngle);
1309 endService( " GEOM_Superv_i::MakeRevolutionAxisAngle2Ways" );
1313 //=============================================================================
1315 //=============================================================================
1316 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilling (GEOM::GEOM_Object_ptr theShape,
1317 CORBA::Long theMinDeg,
1318 CORBA::Long theMaxDeg,
1319 CORBA::Double theTol2D,
1320 CORBA::Double theTol3D,
1321 CORBA::Long theNbIter,
1322 GEOM::filling_oper_method theMethod,
1323 CORBA::Boolean theApprox)
1325 beginService( " GEOM_Superv_i::MakeFilling" );
1326 MESSAGE("GEOM_Superv_i::MakeFilling");
1328 GEOM::GEOM_Object_ptr anObj =
1329 my3DPrimOp->MakeFilling(theShape, theMinDeg, theMaxDeg, theTol2D, theTol3D,
1330 theNbIter, theMethod, theApprox);
1331 endService( " GEOM_Superv_i::MakeFilling" );
1335 //============================= BooleanOperations =============================
1336 //=============================================================================
1338 //=============================================================================
1339 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoolean (GEOM::GEOM_Object_ptr theShape1,
1340 GEOM::GEOM_Object_ptr theShape2,
1341 CORBA::Long theOperation)
1343 beginService( " GEOM_Superv_i::MakeBoolean" );
1344 // theOperation indicates the operation to be done:
1345 // 1 - Common, 2 - Cut, 3 - Fuse, 4 - Section
1346 MESSAGE("GEOM_Superv_i::MakeBoolean");
1348 GEOM::GEOM_Object_ptr anObj = myBoolOp->MakeBoolean(theShape1, theShape2, theOperation);
1349 endService( " GEOM_Superv_i::MakeBoolean" );
1353 //=============================================================================
1354 // MakeThruSections:
1355 //=============================================================================
1356 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeThruSections(const GEOM::ListOfGO& theSeqSections,
1357 CORBA::Boolean theModeSolid,
1358 CORBA::Double thePreci,
1359 CORBA::Boolean theRuled)
1361 beginService( " GEOM_Superv_i::MakeThruSections" );
1362 MESSAGE("GEOM_Superv_i::MakeThruSections");
1364 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeThruSections(theSeqSections, theModeSolid,thePreci,theRuled);
1365 endService( " GEOM_Superv_i::MakeThruSections" );
1369 //=============================================================================
1371 //=============================================================================
1372 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeWithDifferentSections
1373 (const GEOM::ListOfGO& theBases,
1374 const GEOM::ListOfGO& theLocations,
1375 GEOM::GEOM_Object_ptr thePath,
1376 CORBA::Boolean theWithContact,
1377 CORBA::Boolean theWithCorrections)
1379 beginService( " GEOM_Superv_i::MakePipeWithDifferentSections" );
1380 MESSAGE("GEOM_Superv_i::MakePipeWithDifferentSections");
1382 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePipeWithDifferentSections(theBases,theLocations, thePath,theWithContact,theWithCorrections);
1383 endService( " GEOM_Superv_i::MakePipeWithDifferentSections" );
1388 //=============================================================================
1390 //=============================================================================
1391 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeWithShellSections
1392 (const GEOM::ListOfGO& theBases,
1393 const GEOM::ListOfGO& theSubBases,
1394 const GEOM::ListOfGO& theLocations,
1395 GEOM::GEOM_Object_ptr thePath,
1396 CORBA::Boolean theWithContact,
1397 CORBA::Boolean theWithCorrections)
1399 beginService( " GEOM_Superv_i::MakePipeWithShellSections" );
1400 MESSAGE("GEOM_Superv_i::MakePipeWithShellSections");
1402 GEOM::GEOM_Object_ptr anObj =
1403 my3DPrimOp->MakePipeWithShellSections(theBases, theSubBases,
1404 theLocations, thePath,
1405 theWithContact, theWithCorrections);
1406 endService( " GEOM_Superv_i::MakePipeWithShellSections" );
1411 //=============================================================================
1413 //=============================================================================
1414 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeShellsWithoutPath
1415 (const GEOM::ListOfGO& theBases,
1416 const GEOM::ListOfGO& theLocations)
1418 beginService( " GEOM_Superv_i::MakePipeShellsWithoutPath" );
1419 MESSAGE("GEOM_Superv_i::MakePipeShellsWithoutPath");
1421 GEOM::GEOM_Object_ptr anObj =
1422 my3DPrimOp->MakePipeShellsWithoutPath(theBases,theLocations);
1423 endService( " GEOM_Superv_i::MakePipeShellsWithoutPath" );
1428 //=============================================================================
1430 //=============================================================================
1431 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeBiNormalAlongVector
1432 (GEOM::GEOM_Object_ptr theBase,
1433 GEOM::GEOM_Object_ptr thePath,
1434 GEOM::GEOM_Object_ptr theVec)
1436 beginService( " GEOM_Superv_i::MakePipeBiNormalAlongVector" );
1437 MESSAGE("GEOM_Superv_i::MakePipeBiNormalAlongVector");
1439 GEOM::GEOM_Object_ptr anObj =
1440 my3DPrimOp->MakePipeBiNormalAlongVector(theBase, thePath, theVec);
1441 endService( " GEOM_Superv_i::MakePipeBiNormalAlongVector" );
1446 //=============================================================================
1448 //=============================================================================
1449 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFuse (GEOM::GEOM_Object_ptr theShape1,
1450 GEOM::GEOM_Object_ptr theShape2)
1452 beginService( " GEOM_Superv_i::MakeFuse" );
1453 MESSAGE("GEOM_Superv_i::MakeFuse");
1455 GEOM::GEOM_Object_ptr anObj = myBoolOp->MakeBoolean(theShape1, theShape2, 3);
1456 endService( " GEOM_Superv_i::MakeFuse" );
1460 //=============================================================================
1462 //=============================================================================
1463 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePartition (GEOM::GEOM_List_ptr theShapes,
1464 GEOM::GEOM_List_ptr theTools,
1465 GEOM::GEOM_List_ptr theKeepInside,
1466 GEOM::GEOM_List_ptr theRemoveInside,
1467 CORBA::Short theLimit,
1468 CORBA::Boolean theRemoveWebs,
1469 GEOM::GEOM_List_ptr theMaterials,
1470 CORBA::Short theKeepNonlimitShapes)
1472 beginService( " GEOM_Superv_i::MakePartition" );
1473 MESSAGE("GEOM_Superv_i::MakePartition");
1474 GEOM_List_i<GEOM::ListOfGO>* aListImplS =
1475 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShapes, myPOA).in());
1476 GEOM_List_i<GEOM::ListOfGO>* aListImplT =
1477 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theTools, myPOA).in());
1478 GEOM_List_i<GEOM::ListOfGO>* aListImplKI =
1479 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theKeepInside, myPOA).in());
1480 GEOM_List_i<GEOM::ListOfGO>* aListImplRI =
1481 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theRemoveInside, myPOA).in());
1482 GEOM_List_i<GEOM::ListOfLong>* aListImplM =
1483 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theMaterials, myPOA).in());
1484 if (aListImplS && aListImplT && aListImplKI && aListImplRI && aListImplM) {
1486 GEOM::GEOM_Object_ptr anObj =
1487 myBoolOp->MakePartition(aListImplS->GetList(), aListImplT->GetList(),
1488 aListImplKI->GetList(), aListImplRI->GetList(),
1489 theLimit, theRemoveWebs, aListImplM->GetList(),
1490 theKeepNonlimitShapes);
1491 endService( " GEOM_Superv_i::MakePartition" );
1494 endService( " GEOM_Superv_i::MakePartition" );
1498 //=============================================================================
1499 // MakeHalfPartition:
1500 //=============================================================================
1501 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHalfPartition (GEOM::GEOM_Object_ptr theShape,
1502 GEOM::GEOM_Object_ptr thePlane)
1504 beginService( " GEOM_Superv_i::MakeHalfPartition" );
1505 MESSAGE("GEOM_Superv_i::MakeHalfPartition");
1507 GEOM::GEOM_Object_ptr anObj = myBoolOp->MakeHalfPartition(theShape, thePlane);
1508 endService( " GEOM_Superv_i::MakeHalfPartition" );
1512 //============================== InsertOperations =============================
1513 //=============================================================================
1515 //=============================================================================
1516 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCopy (GEOM::GEOM_Object_ptr theOriginal)
1518 beginService( " GEOM_Superv_i::MakeCopy" );
1519 MESSAGE("GEOM_Superv_i::MakeCopy");
1521 GEOM::GEOM_Object_ptr anObj = myInsOp->MakeCopy(theOriginal);
1522 endService( " GEOM_Superv_i::MakeCopy" );
1526 //=============================================================================
1528 //=============================================================================
1529 void GEOM_Superv_i::Export (GEOM::GEOM_Object_ptr theObject,
1530 const char* theFileName,
1531 const char* theFormatName)
1533 beginService( " GEOM_Superv_i::Export" );
1534 MESSAGE("GEOM_Superv_i::Export");
1536 myInsOp->Export(theObject, theFileName, theFormatName);
1537 endService( " GEOM_Superv_i::Export" );
1540 //=============================================================================
1542 //=============================================================================
1543 GEOM::GEOM_Object_ptr GEOM_Superv_i::ImportFile (const char* theFileName,
1544 const char* theFormatName)
1546 beginService( " GEOM_Superv_i::ImportFile" );
1547 MESSAGE("GEOM_Superv_i::ImportFile");
1549 GEOM::GEOM_Object_ptr anObj = myInsOp->ImportFile(theFileName, theFormatName);
1550 endService( " GEOM_Superv_i::ImportFile" );
1554 //=============================================================================
1555 // ImportTranslators:
1556 //=============================================================================
1557 void GEOM_Superv_i::ImportTranslators (GEOM::string_array_out theFormats,
1558 GEOM::string_array_out thePatterns)
1560 beginService( " GEOM_Superv_i::ImportTranslators" );
1561 MESSAGE("GEOM_Superv_i::ImportTranslators");
1563 myInsOp->ImportTranslators(theFormats, thePatterns);
1564 endService( " GEOM_Superv_i::ImportTranslators" );
1567 //=============================================================================
1568 // ExportTranslators:
1569 //=============================================================================
1570 void GEOM_Superv_i::ExportTranslators (GEOM::string_array_out theFormats,
1571 GEOM::string_array_out thePatterns)
1573 beginService( " GEOM_Superv_i::ExportTranslators" );
1574 MESSAGE("GEOM_Superv_i::ExportTranslators");
1576 myInsOp->ExportTranslators(theFormats, thePatterns);
1577 endService( " GEOM_Superv_i::ExportTranslators" );
1580 //============================= TransformOperations ===========================
1581 //=============================================================================
1582 // TranslateTwoPoints:
1583 //=============================================================================
1584 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
1585 GEOM::GEOM_Object_ptr thePoint1,
1586 GEOM::GEOM_Object_ptr thePoint2)
1588 beginService( " GEOM_Superv_i::TranslateTwoPoints" );
1589 MESSAGE("GEOM_Superv_i::TranslateTwoPoints");
1591 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateTwoPoints(theObject, thePoint1, thePoint2);
1592 endService( " GEOM_Superv_i::TranslateTwoPoints" );
1596 //=============================================================================
1597 // TranslateTwoPointsCopy:
1598 //=============================================================================
1599 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
1600 GEOM::GEOM_Object_ptr thePoint1,
1601 GEOM::GEOM_Object_ptr thePoint2)
1603 beginService( " GEOM_Superv_i::TranslateTwoPointsCopy" );
1604 MESSAGE("GEOM_Superv_i::TranslateTwoPointsCopy");
1606 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateTwoPointsCopy(theObject, thePoint1, thePoint2);
1607 endService( " GEOM_Superv_i::TranslateTwoPointsCopy" );
1611 //=============================================================================
1613 //=============================================================================
1614 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject,
1615 CORBA::Double theDX,
1616 CORBA::Double theDY,
1617 CORBA::Double theDZ)
1619 beginService( " GEOM_Superv_i::TranslateDXDYDZ" );
1620 MESSAGE("GEOM_Superv_i::TranslateDXDYDZ");
1622 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateDXDYDZ(theObject, theDX, theDY, theDZ);
1623 endService( " GEOM_Superv_i::TranslateDXDYDZ" );
1627 //=============================================================================
1628 // TranslateDXDYDZCopy:
1629 //=============================================================================
1630 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject,
1631 CORBA::Double theDX,
1632 CORBA::Double theDY,
1633 CORBA::Double theDZ)
1635 beginService( " GEOM_Superv_i::TranslateDXDYDZCopy" );
1636 MESSAGE("GEOM_Superv_i::TranslateDXDYDZCopy");
1638 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateDXDYDZCopy(theObject, theDX, theDY, theDZ);
1639 endService( " GEOM_Superv_i::TranslateDXDYDZCopy" );
1643 //=============================================================================
1645 //=============================================================================
1646 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVector (GEOM::GEOM_Object_ptr theObject,
1647 GEOM::GEOM_Object_ptr theVector)
1649 beginService( " GEOM_Superv_i::TranslateVector" );
1650 MESSAGE("GEOM_Superv_i::TranslateVector");
1652 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVector(theObject, theVector);
1653 endService( " GEOM_Superv_i::TranslateVector" );
1657 //=============================================================================
1658 // TranslateVectorCopy:
1659 //=============================================================================
1660 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
1661 GEOM::GEOM_Object_ptr theVector)
1663 beginService( " GEOM_Superv_i::TranslateVectorCopy" );
1664 MESSAGE("GEOM_Superv_i::TranslateVectorCopy");
1666 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVectorCopy(theObject, theVector);
1667 endService( " GEOM_Superv_i::TranslateVectorCopy" );
1671 //=============================================================================
1672 // TranslateVectorDistance:
1673 //=============================================================================
1674 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVectorDistance (GEOM::GEOM_Object_ptr theObject,
1675 GEOM::GEOM_Object_ptr theVector,
1676 CORBA::Double theDistance,
1677 CORBA::Boolean theCopy)
1679 beginService( " GEOM_Superv_i::TranslateVectorDistance" );
1680 MESSAGE("GEOM_Superv_i::TranslateVectorDistance");
1682 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVectorDistance(theObject,
1683 theVector, theDistance, theCopy);
1684 endService( " GEOM_Superv_i::TranslateVectorDistance" );
1688 //=============================================================================
1689 // MultiTranslate1D:
1690 //=============================================================================
1691 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiTranslate1D (GEOM::GEOM_Object_ptr theObject,
1692 GEOM::GEOM_Object_ptr theVector,
1693 CORBA::Double theStep,
1694 CORBA::Long theNbTimes)
1696 beginService( " GEOM_Superv_i::MultiTranslate1D" );
1697 MESSAGE("GEOM_Superv_i::MultiTranslate1D");
1699 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiTranslate1D(theObject, theVector, theStep, theNbTimes);
1700 endService( " GEOM_Superv_i::MultiTranslate1D" );
1704 //=============================================================================
1705 // MultiTranslate2D:
1706 //=============================================================================
1707 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiTranslate2D (GEOM::GEOM_Object_ptr theObject,
1708 GEOM::GEOM_Object_ptr theVector1,
1709 CORBA::Double theStep1,
1710 CORBA::Long theNbTimes1,
1711 GEOM::GEOM_Object_ptr theVector2,
1712 CORBA::Double theStep2,
1713 CORBA::Long theNbTimes2)
1715 beginService( " GEOM_Superv_i::MultiTranslate2D" );
1716 MESSAGE("GEOM_Superv_i::MultiTranslate2D");
1718 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiTranslate2D(theObject, theVector1, theStep1, theNbTimes1,
1719 theVector2, theStep2, theNbTimes2);
1720 endService( " GEOM_Superv_i::MultiTranslate2D" );
1724 //=============================================================================
1726 //=============================================================================
1727 GEOM::GEOM_Object_ptr GEOM_Superv_i::Rotate (GEOM::GEOM_Object_ptr theObject,
1728 GEOM::GEOM_Object_ptr theAxis,
1729 CORBA::Double theAngle)
1731 beginService( " GEOM_Superv_i::Rotate" );
1732 MESSAGE("GEOM_Superv_i::Rotate");
1734 GEOM::GEOM_Object_ptr anObj = myTransfOp->Rotate(theObject, theAxis, theAngle);
1735 endService( " GEOM_Superv_i::Rotate" );
1739 //=============================================================================
1741 //=============================================================================
1742 GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateCopy (GEOM::GEOM_Object_ptr theObject,
1743 GEOM::GEOM_Object_ptr theAxis,
1744 CORBA::Double theAngle)
1746 beginService( " GEOM_Superv_i::RotateCopy" );
1747 MESSAGE("GEOM_Superv_i::RotateCopy");
1749 GEOM::GEOM_Object_ptr anObj = myTransfOp->RotateCopy(theObject, theAxis, theAngle);
1750 endService( " GEOM_Superv_i::RotateCopy" );
1753 //=============================================================================
1754 // RotateThreePoints:
1755 //=============================================================================
1756 GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateThreePoints (GEOM::GEOM_Object_ptr theObject,
1757 GEOM::GEOM_Object_ptr theCentPoint,
1758 GEOM::GEOM_Object_ptr thePoint1,
1759 GEOM::GEOM_Object_ptr thePoint2)
1761 beginService( " GEOM_Superv_i::RotateThreePoints" );
1762 MESSAGE("GEOM_Superv_i::RotateThreePoints");
1764 GEOM::GEOM_Object_ptr anObj = myTransfOp->RotateThreePoints(theObject, theCentPoint, thePoint1, thePoint2);
1765 endService( " GEOM_Superv_i::RotateThreePoints" );
1769 //=============================================================================
1770 // RotateThreePointsCopy:
1771 //=============================================================================
1772 GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateThreePointsCopy (GEOM::GEOM_Object_ptr theObject,
1773 GEOM::GEOM_Object_ptr theCentPoint,
1774 GEOM::GEOM_Object_ptr thePoint1,
1775 GEOM::GEOM_Object_ptr thePoint2)
1777 beginService( " GEOM_Superv_i::RotateThreePointsCopy" );
1778 MESSAGE("GEOM_Superv_i::RotateThreePointsCopy");
1780 GEOM::GEOM_Object_ptr anObj = myTransfOp->RotateThreePointsCopy(theObject, theCentPoint, thePoint1, thePoint2);
1781 endService( " GEOM_Superv_i::RotateThreePointsCopy" );
1785 //=============================================================================
1787 //=============================================================================
1788 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
1789 GEOM::GEOM_Object_ptr theAxis,
1790 CORBA::Long theNbTimes)
1792 beginService( " GEOM_Superv_i::MultiRotate1D" );
1793 MESSAGE("GEOM_Superv_i::MultiRotate1D");
1795 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiRotate1D(theObject, theAxis, theNbTimes);
1796 endService( " GEOM_Superv_i::MultiRotate1D" );
1800 //=============================================================================
1802 //=============================================================================
1803 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
1804 GEOM::GEOM_Object_ptr theAxis,
1805 CORBA::Double theAngle,
1806 CORBA::Long theNbTimes1,
1807 CORBA::Double theStep,
1808 CORBA::Long theNbTimes2)
1810 beginService( " GEOM_Superv_i::MultiRotate2D" );
1811 MESSAGE("GEOM_Superv_i::MultiRotate2D");
1813 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiRotate2D(theObject, theAxis, theAngle, theNbTimes1, theStep, theNbTimes2);
1814 endService( " GEOM_Superv_i::MultiRotate2D" );
1818 //=============================================================================
1820 //=============================================================================
1821 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlane (GEOM::GEOM_Object_ptr theObject,
1822 GEOM::GEOM_Object_ptr thePlane)
1824 beginService( " GEOM_Superv_i::MirrorPlane" );
1825 MESSAGE("GEOM_Superv_i::MirrorPlane");
1827 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPlane(theObject, thePlane);
1828 endService( " GEOM_Superv_i::MirrorPlane" );
1832 //=============================================================================
1834 //=============================================================================
1835 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject,
1836 GEOM::GEOM_Object_ptr thePlane)
1838 beginService( " GEOM_Superv_i::MirrorPlaneCopy" );
1839 MESSAGE("GEOM_Superv_i::MirrorPlaneCopy");
1841 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPlaneCopy(theObject, thePlane);
1842 endService( " GEOM_Superv_i::MirrorPlaneCopy" );
1846 //=============================================================================
1848 //=============================================================================
1849 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxis (GEOM::GEOM_Object_ptr theObject,
1850 GEOM::GEOM_Object_ptr theAxis)
1852 beginService( " GEOM_Superv_i::MirrorAxis" );
1853 MESSAGE("GEOM_Superv_i::MirrorAxis");
1855 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorAxis(theObject, theAxis);
1856 endService( " GEOM_Superv_i::MirrorAxis" );
1860 //=============================================================================
1862 //=============================================================================
1863 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject,
1864 GEOM::GEOM_Object_ptr theAxis)
1866 beginService( " GEOM_Superv_i::MirrorAxisCopy" );
1867 MESSAGE("GEOM_Superv_i::MirrorAxisCopy");
1869 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorAxisCopy(theObject, theAxis);
1870 endService( " GEOM_Superv_i::MirrorAxisCopy" );
1874 //=============================================================================
1876 //=============================================================================
1877 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPoint (GEOM::GEOM_Object_ptr theObject,
1878 GEOM::GEOM_Object_ptr thePoint)
1880 beginService( " GEOM_Superv_i::MirrorPoint" );
1881 MESSAGE("GEOM_Superv_i::MirrorPoint");
1883 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPoint(theObject, thePoint);
1884 endService( " GEOM_Superv_i::MirrorPoint" );
1888 //=============================================================================
1890 //=============================================================================
1891 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPointCopy (GEOM::GEOM_Object_ptr theObject,
1892 GEOM::GEOM_Object_ptr thePoint)
1894 beginService( " GEOM_Superv_i::MirrorPoint" );
1895 MESSAGE("GEOM_Superv_i::MirrorPointCopy");
1897 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPointCopy(theObject, thePoint);
1898 endService( " GEOM_Superv_i::MirrorPoint" );
1902 //=============================================================================
1904 //=============================================================================
1905 GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShape (GEOM::GEOM_Object_ptr theObject,
1906 CORBA::Double theOffset)
1908 beginService( " GEOM_Superv_i::OffsetShape" );
1909 MESSAGE("GEOM_Superv_i::OffsetShape");
1911 GEOM::GEOM_Object_ptr anObj = myTransfOp->OffsetShape(theObject, theOffset);
1912 endService( " GEOM_Superv_i::OffsetShape" );
1916 //=============================================================================
1918 //=============================================================================
1919 GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject,
1920 CORBA::Double theOffset)
1922 beginService( " GEOM_Superv_i::OffsetShapeCopy" );
1923 MESSAGE("GEOM_Superv_i::OffsetShapeCopy");
1925 GEOM::GEOM_Object_ptr anObj = myTransfOp->OffsetShapeCopy(theObject, theOffset);
1926 endService( " GEOM_Superv_i::OffsetShapeCopy" );
1930 //=============================================================================
1932 //=============================================================================
1933 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShape (GEOM::GEOM_Object_ptr theObject,
1934 GEOM::GEOM_Object_ptr thePoint,
1935 CORBA::Double theFactor)
1937 beginService( " GEOM_Superv_i::ScaleShape" );
1938 MESSAGE("GEOM_Superv_i::ScaleShape");
1940 GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShape(theObject, thePoint, theFactor);
1941 endService( " GEOM_Superv_i::ScaleShape" );
1945 //=============================================================================
1947 //=============================================================================
1948 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject,
1949 GEOM::GEOM_Object_ptr thePoint,
1950 CORBA::Double theFactor)
1952 beginService( " GEOM_Superv_i::ScaleShapeCopy" );
1953 MESSAGE("GEOM_Superv_i::ScaleShapeCopy");
1955 GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShapeCopy(theObject, thePoint, theFactor);
1956 endService( " GEOM_Superv_i::ScaleShapeCopy" );
1960 //=============================================================================
1961 // ScaleShapeAlongAxes:
1962 //=============================================================================
1963 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeAlongAxes (GEOM::GEOM_Object_ptr theObject,
1964 GEOM::GEOM_Object_ptr thePoint,
1965 CORBA::Double theFactorX,
1966 CORBA::Double theFactorY,
1967 CORBA::Double theFactorZ)
1969 beginService( " GEOM_Superv_i::ScaleShapeAlongAxes" );
1970 MESSAGE("GEOM_Superv_i::ScaleShapeAlongAxes");
1972 GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShapeAlongAxes
1973 (theObject, thePoint, theFactorX, theFactorY, theFactorZ);
1974 endService( " GEOM_Superv_i::ScaleShapeAlongAxes" );
1978 //=============================================================================
1979 // ScaleShapeAlongAxesCopy:
1980 //=============================================================================
1981 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeAlongAxesCopy (GEOM::GEOM_Object_ptr theObject,
1982 GEOM::GEOM_Object_ptr thePoint,
1983 CORBA::Double theFactorX,
1984 CORBA::Double theFactorY,
1985 CORBA::Double theFactorZ)
1987 beginService( " GEOM_Superv_i::ScaleShapeAlongAxesCopy" );
1988 MESSAGE("GEOM_Superv_i::ScaleShapeAlongAxesCopy");
1990 GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShapeAlongAxesCopy
1991 (theObject, thePoint, theFactorX, theFactorY, theFactorZ);
1992 endService( " GEOM_Superv_i::ScaleShapeAlongAxesCopy" );
1996 //=============================================================================
1998 //=============================================================================
1999 GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionShape (GEOM::GEOM_Object_ptr theObject,
2000 GEOM::GEOM_Object_ptr theStartLCS,
2001 GEOM::GEOM_Object_ptr theEndLCS)
2003 beginService( " GEOM_Superv_i::PositionShape" );
2004 MESSAGE("GEOM_Superv_i::PositionShape");
2006 GEOM::GEOM_Object_ptr anObj = myTransfOp->PositionShape(theObject, theStartLCS, theEndLCS);
2007 endService( " GEOM_Superv_i::PositionShape" );
2011 //=============================================================================
2012 // PositionShapeCopy:
2013 //=============================================================================
2014 GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
2015 GEOM::GEOM_Object_ptr theStartLCS,
2016 GEOM::GEOM_Object_ptr theEndLCS)
2018 beginService( " GEOM_Superv_i::PositionShapeCopy" );
2019 MESSAGE("GEOM_Superv_i::PositionShapeCopy");
2021 GEOM::GEOM_Object_ptr anObj = myTransfOp->PositionShapeCopy(theObject, theStartLCS, theEndLCS);
2022 endService( " GEOM_Superv_i::PositionShapeCopy" );
2026 //=============================================================================
2027 // PositionAlongPath:
2028 //=============================================================================
2029 GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionAlongPath (GEOM::GEOM_Object_ptr theObject,
2030 GEOM::GEOM_Object_ptr thePath,
2031 CORBA::Double theDistance,
2032 CORBA::Boolean theCopy,
2033 CORBA::Boolean theReverse)
2035 beginService( " GEOM_Superv_i::PositionAlongPath" );
2036 MESSAGE("GEOM_Superv_i::PositionAlongPath");
2038 GEOM::GEOM_Object_ptr anObj = myTransfOp->PositionAlongPath(theObject, thePath, theDistance, theCopy, theReverse);
2039 endService( " GEOM_Superv_i::PositionAlongPath" );
2043 //=============================== ShapesOperations ============================
2044 //=============================================================================
2046 //=============================================================================
2047 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
2048 GEOM::GEOM_Object_ptr thePnt2)
2050 beginService( " GEOM_Superv_i::MakeEdge" );
2051 MESSAGE("GEOM_Superv_i::MakeEdge");
2053 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeEdge(thePnt1, thePnt2);
2054 endService( " GEOM_Superv_i::MakeEdge" );
2058 //=============================================================================
2059 // MakeEdgeOnCurveByLength:
2060 //=============================================================================
2061 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEdgeOnCurveByLength (GEOM::GEOM_Object_ptr theRefCurve,
2062 CORBA::Double theLength,
2063 GEOM::GEOM_Object_ptr theStartPoint)
2065 beginService( " GEOM_Superv_i::MakeEdgeOnCurveByLength" );
2066 MESSAGE("GEOM_Superv_i::MakeEdgeOnCurveByLength");
2068 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeEdgeOnCurveByLength(theRefCurve, theLength, theStartPoint);
2069 endService( " GEOM_Superv_i::MakeEdgeOnCurveByLength" );
2073 //=============================================================================
2075 //=============================================================================
2076 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeWire (GEOM::GEOM_List_ptr theEdgesAndWires,
2077 CORBA::Double theTolerance)
2079 beginService( " GEOM_Superv_i::MakeWire" );
2080 MESSAGE("GEOM_Superv_i::MakeWire");
2081 if (GEOM_List_i<GEOM::ListOfGO>* aListImplEW =
2082 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theEdgesAndWires, myPOA).in())) {
2084 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeWire(aListImplEW->GetList(), theTolerance);
2085 endService( " GEOM_Superv_i::MakeWire" );
2088 endService( " GEOM_Superv_i::MakeWire" );
2092 //=============================================================================
2094 //=============================================================================
2095 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFace (GEOM::GEOM_Object_ptr theWire,
2096 CORBA::Boolean isPlanarWanted)
2098 beginService( " GEOM_Superv_i::MakeFace" );
2099 MESSAGE("GEOM_Superv_i::MakeFace");
2101 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeFace(theWire, isPlanarWanted);
2102 endService( " GEOM_Superv_i::MakeFace" );
2106 //=============================================================================
2108 //=============================================================================
2109 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceWires (GEOM::GEOM_List_ptr theWires,
2110 CORBA::Boolean isPlanarWanted)
2112 beginService( " GEOM_Superv_i::MakeFaceWires" );
2113 MESSAGE("GEOM_Superv_i::MakeFaceWires");
2114 if (GEOM_List_i<GEOM::ListOfGO>* aListImplW =
2115 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theWires, myPOA).in())) {
2117 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeFaceWires(aListImplW->GetList(), isPlanarWanted);
2118 endService( " GEOM_Superv_i::MakeFaceWires" );
2121 endService( " GEOM_Superv_i::MakeFaceWires" );
2125 //=============================================================================
2127 //=============================================================================
2128 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeShell (GEOM::GEOM_List_ptr theFacesAndShells)
2130 beginService( " GEOM_Superv_i::MakeShell" );
2131 MESSAGE("GEOM_Superv_i::MakeShell");
2132 if (GEOM_List_i<GEOM::ListOfGO>* aListImplFS =
2133 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theFacesAndShells, myPOA).in())) {
2135 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeShell(aListImplFS->GetList());
2136 endService( " GEOM_Superv_i::MakeShell" );
2139 endService( " GEOM_Superv_i::MakeShell" );
2143 //=============================================================================
2145 //=============================================================================
2146 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSolidShell (GEOM::GEOM_Object_ptr theShell)
2148 beginService( " GEOM_Superv_i::MakeSolidShell" );
2149 MESSAGE("GEOM_Superv_i::MakeSolidShell");
2151 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeSolidShell(theShell);
2152 endService( " GEOM_Superv_i::MakeSolidShell" );
2156 //=============================================================================
2158 //=============================================================================
2159 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSolidShells (GEOM::GEOM_List_ptr theShells)
2161 beginService( " GEOM_Superv_i::MakeSolidShells" );
2162 MESSAGE("GEOM_Superv_i::MakeSolidShells");
2163 if (GEOM_List_i<GEOM::ListOfGO>* aListImplS =
2164 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShells, myPOA).in())) {
2166 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeSolidShells(aListImplS->GetList());
2167 endService( " GEOM_Superv_i::MakeSolidShells" );
2170 endService( " GEOM_Superv_i::MakeSolidShells" );
2174 //=============================================================================
2176 //=============================================================================
2177 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCompound (GEOM::GEOM_List_ptr theShapes)
2179 beginService( " GEOM_Superv_i::MakeCompound" );
2180 MESSAGE("GEOM_Superv_i::MakeCompound");
2181 if (GEOM_List_i<GEOM::ListOfGO>* aListImpl =
2182 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShapes, myPOA).in())) {
2184 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeCompound(aListImpl->GetList());
2185 endService( " GEOM_Superv_i::MakeCompound" );
2188 endService( " GEOM_Superv_i::MakeCompound" );
2192 //=============================================================================
2194 //=============================================================================
2195 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
2196 CORBA::Double theTolerance,
2197 CORBA::Boolean doKeepNonSolids)
2199 beginService( " GEOM_Superv_i::MakeGlueFaces" );
2200 MESSAGE("GEOM_Superv_i::MakeGlueFaces");
2202 GEOM::GEOM_Object_ptr anObj =
2203 myShapesOp->MakeGlueFaces(theShape, theTolerance, doKeepNonSolids);
2204 endService( " GEOM_Superv_i::MakeGlueFaces" );
2208 //=============================================================================
2210 //=============================================================================
2211 GEOM::GEOM_List_ptr GEOM_Superv_i::GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
2212 CORBA::Double theTolerance)
2214 beginService( " GEOM_Superv_i::GetGlueFaces" );
2215 MESSAGE("GEOM_Superv_i::GetGlueFaces");
2217 GEOM::ListOfGO* aList = myShapesOp->GetGlueFaces(theShape, theTolerance);
2218 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aList));
2219 MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
2220 endService( " GEOM_Superv_i::GetGlueFaces" );
2221 return aListPtr->_this();
2224 //=============================================================================
2225 // MakeGlueFacesByList:
2226 //=============================================================================
2227 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
2228 CORBA::Double theTolerance,
2229 const GEOM::ListOfGO& theFaces,
2230 CORBA::Boolean doKeepNonSolids,
2231 CORBA::Boolean doGlueAllEdges)
2233 beginService( " GEOM_Superv_i::MakeGlueFacesByList" );
2234 MESSAGE("GEOM_Superv_i::MakeGlueFacesByList");
2236 GEOM::GEOM_Object_ptr anObj =
2237 myShapesOp->MakeGlueFacesByList(theShape, theTolerance, theFaces,
2238 doKeepNonSolids, doGlueAllEdges);
2239 endService( " GEOM_Superv_i::MakeGlueFacesByList" );
2243 //=============================================================================
2245 //=============================================================================
2246 GEOM::GEOM_List_ptr GEOM_Superv_i::MakeExplode (GEOM::GEOM_Object_ptr theShape,
2247 CORBA::Long theShapeType,
2248 CORBA::Boolean isSorted)
2250 beginService( " GEOM_Superv_i::MakeExplode" );
2251 MESSAGE("GEOM_Superv_i::MakeExplode");
2254 GEOM::ListOfGO* aList = myShapesOp->MakeExplode(theShape, theShapeType, isSorted);
2255 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aList));
2256 MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
2257 endService( " GEOM_Superv_i::MakeExplode" );
2258 return aListPtr->_this();
2261 //=============================================================================
2263 //=============================================================================
2264 CORBA::Long GEOM_Superv_i::NumberOfFaces (GEOM::GEOM_Object_ptr theShape)
2266 beginService( " GEOM_Superv_i::NumberOfFaces" );
2267 MESSAGE("GEOM_Superv_i::NumberOfFaces");
2269 CORBA::Long aRes = myShapesOp->NumberOfFaces(theShape);
2270 endService( " GEOM_Superv_i::NumberOfFaces" );
2274 //=============================================================================
2276 //=============================================================================
2277 CORBA::Long GEOM_Superv_i::NumberOfEdges (GEOM::GEOM_Object_ptr theShape)
2279 beginService( " GEOM_Superv_i::NumberOfEdges" );
2280 MESSAGE("GEOM_Superv_i::NumberOfEdges");
2282 CORBA::Long aRes = myShapesOp->NumberOfEdges(theShape);
2283 endService( " GEOM_Superv_i::NumberOfEdges" );
2288 //=============================================================================
2289 // ChangeOrientation:
2290 //=============================================================================
2291 GEOM::GEOM_Object_ptr GEOM_Superv_i::ChangeOrientation (GEOM::GEOM_Object_ptr theShape)
2293 beginService( " GEOM_Superv_i::ChangeOrientation" );
2294 MESSAGE("GEOM_Superv_i::ChangeOrientation");
2296 GEOM::GEOM_Object_ptr anObj = myShapesOp->ChangeOrientation(theShape);
2297 endService( " GEOM_Superv_i::ChangeOrientation" );
2302 //=============================================================================
2303 // GetShapesOnShape:
2304 //=============================================================================
2305 GEOM::GEOM_List_ptr GEOM_Superv_i::GetShapesOnShape
2306 (GEOM::GEOM_Object_ptr theCheckShape,
2307 GEOM::GEOM_Object_ptr theShape,
2308 CORBA::Short theShapeType,
2309 GEOM::shape_state theState)
2311 beginService( " GEOM_Superv_i::GetShapesOnShape" );
2312 MESSAGE("GEOM_Superv_i::GetShapesOnShape");
2314 GEOM::ListOfGO* aList =
2315 myShapesOp->GetShapesOnShape(theCheckShape, theShape, theShapeType, theState);
2316 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aList));
2317 MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
2318 endService( " GEOM_Superv_i::GetShapesOnShape" );
2319 return aListPtr->_this();
2323 //=============================================================================
2324 // GetShapesOnShapeAsCompound:
2325 //=============================================================================
2326 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetShapesOnShapeAsCompound
2327 (GEOM::GEOM_Object_ptr theCheckShape,
2328 GEOM::GEOM_Object_ptr theShape,
2329 CORBA::Short theShapeType,
2330 GEOM::shape_state theState)
2332 beginService( " GEOM_Superv_i::GetShapesOnShapeAsCompound" );
2333 MESSAGE("GEOM_Superv_i::GetShapesOnShapeAsCompound");
2335 GEOM::GEOM_Object_ptr anObj =
2336 myShapesOp->GetShapesOnShapeAsCompound(theCheckShape, theShape, theShapeType, theState);
2337 endService( " GEOM_Superv_i::GetShapesOnShapeAsCompound" );
2342 //=============================== BlocksOperations ============================
2343 //=============================================================================
2344 // MakeQuad4Vertices:
2345 //=============================================================================
2346 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad4Vertices (GEOM::GEOM_Object_ptr thePnt1,
2347 GEOM::GEOM_Object_ptr thePnt2,
2348 GEOM::GEOM_Object_ptr thePnt3,
2349 GEOM::GEOM_Object_ptr thePnt4)
2351 beginService( " GEOM_Superv_i::MakeQuad4Vertices" );
2352 MESSAGE("GEOM_Superv_i::MakeQuad4Vertices");
2354 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeQuad4Vertices(thePnt1, thePnt2, thePnt3, thePnt4);
2355 endService( " GEOM_Superv_i::MakeQuad4Vertices" );
2359 //=============================================================================
2361 //=============================================================================
2362 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad (GEOM::GEOM_Object_ptr theEdge1,
2363 GEOM::GEOM_Object_ptr theEdge2,
2364 GEOM::GEOM_Object_ptr theEdge3,
2365 GEOM::GEOM_Object_ptr theEdge4)
2367 beginService( " GEOM_Superv_i::MakeQuad" );
2368 MESSAGE("GEOM_Superv_i::MakeQuad");
2370 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeQuad(theEdge1, theEdge2, theEdge3, theEdge4);
2371 endService( " GEOM_Superv_i::MakeQuad" );
2375 //=============================================================================
2377 //=============================================================================
2378 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad2Edges (GEOM::GEOM_Object_ptr theEdge1,
2379 GEOM::GEOM_Object_ptr theEdge2)
2381 beginService( " GEOM_Superv_i::MakeQuad2Edges" );
2382 MESSAGE("GEOM_Superv_i::MakeQuad2Edges");
2384 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeQuad2Edges(theEdge1, theEdge2);
2385 endService( " GEOM_Superv_i::MakeQuad2Edges" );
2389 //=============================================================================
2391 //=============================================================================
2392 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHexa (GEOM::GEOM_Object_ptr theFace1,
2393 GEOM::GEOM_Object_ptr theFace2,
2394 GEOM::GEOM_Object_ptr theFace3,
2395 GEOM::GEOM_Object_ptr theFace4,
2396 GEOM::GEOM_Object_ptr theFace5,
2397 GEOM::GEOM_Object_ptr theFace6)
2399 beginService( " GEOM_Superv_i::MakeHexa" );
2400 MESSAGE("GEOM_Superv_i::MakeHexa");
2402 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeHexa(theFace1, theFace2, theFace3, theFace4, theFace5, theFace6);
2403 endService( " GEOM_Superv_i::MakeHexa" );
2407 //=============================================================================
2409 //=============================================================================
2410 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHexa2Faces (GEOM::GEOM_Object_ptr theFace1,
2411 GEOM::GEOM_Object_ptr theFace2)
2413 beginService( " GEOM_Superv_i::MakeHexa2Faces" );
2414 MESSAGE("GEOM_Superv_i::MakeHexa2Faces");
2416 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeHexa2Faces(theFace1, theFace2);
2417 endService( " GEOM_Superv_i::MakeHexa2Faces" );
2421 //=============================================================================
2423 //=============================================================================
2424 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetPoint (GEOM::GEOM_Object_ptr theShape,
2428 CORBA::Double theEpsilon)
2430 beginService( " GEOM_Superv_i::GetPoint" );
2431 MESSAGE("GEOM_Superv_i::GetPoint");
2433 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetPoint(theShape, theX, theY, theZ, theEpsilon);
2434 endService( " GEOM_Superv_i::GetPoint" );
2438 //=============================================================================
2440 //=============================================================================
2441 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetEdge (GEOM::GEOM_Object_ptr theShape,
2442 GEOM::GEOM_Object_ptr thePoint1,
2443 GEOM::GEOM_Object_ptr thePoint2)
2445 beginService( " GEOM_Superv_i::GetEdge" );
2446 MESSAGE("GEOM_Superv_i::GetEdge");
2448 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetEdge(theShape, thePoint1, thePoint2);
2449 endService( " GEOM_Superv_i::GetEdge" );
2453 //=============================================================================
2454 // GetEdgeNearPoint:
2455 //=============================================================================
2456 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetEdgeNearPoint (GEOM::GEOM_Object_ptr theShape,
2457 GEOM::GEOM_Object_ptr thePoint)
2459 beginService( " GEOM_Superv_i::GetEdgeNearPoint" );
2460 MESSAGE("GEOM_Superv_i::GetEdgeNearPoint");
2462 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetEdgeNearPoint(theShape, thePoint);
2463 endService( " GEOM_Superv_i::GetEdgeNearPoint" );
2467 //=============================================================================
2469 //=============================================================================
2470 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByPoints (GEOM::GEOM_Object_ptr theShape,
2471 GEOM::GEOM_Object_ptr thePoint1,
2472 GEOM::GEOM_Object_ptr thePoint2,
2473 GEOM::GEOM_Object_ptr thePoint3,
2474 GEOM::GEOM_Object_ptr thePoint4)
2476 beginService( " GEOM_Superv_i::GetFaceByPoints" );
2477 MESSAGE("GEOM_Superv_i::GetFaceByPoints");
2479 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceByPoints(theShape, thePoint1, thePoint2, thePoint3, thePoint4);
2480 endService( " GEOM_Superv_i::GetFaceByPoints" );
2484 //=============================================================================
2486 //=============================================================================
2487 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByEdges (GEOM::GEOM_Object_ptr theShape,
2488 GEOM::GEOM_Object_ptr theEdge1,
2489 GEOM::GEOM_Object_ptr theEdge2)
2491 beginService( " GEOM_Superv_i::GetFaceByEdges" );
2492 MESSAGE("GEOM_Superv_i::GetFaceByEdges");
2494 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceByEdges(theShape, theEdge1, theEdge2);
2495 endService( " GEOM_Superv_i::GetFaceByEdges" );
2499 //=============================================================================
2501 //=============================================================================
2502 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetOppositeFace (GEOM::GEOM_Object_ptr theBlock,
2503 GEOM::GEOM_Object_ptr theFace)
2505 beginService( " GEOM_Superv_i::GetOppositeFace" );
2506 MESSAGE("GEOM_Superv_i::GetOppositeFace");
2508 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetOppositeFace(theBlock, theFace);
2509 endService( " GEOM_Superv_i::GetOppositeFace" );
2513 //=============================================================================
2514 // GetFaceNearPoint:
2515 //=============================================================================
2516 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceNearPoint (GEOM::GEOM_Object_ptr theShape,
2517 GEOM::GEOM_Object_ptr thePoint)
2519 beginService( " GEOM_Superv_i::GetFaceNearPoint" );
2520 MESSAGE("GEOM_Superv_i::GetFaceNearPoint");
2522 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceNearPoint(theShape, thePoint);
2523 endService( " GEOM_Superv_i::GetFaceNearPoint" );
2527 //=============================================================================
2528 // GetFaceByNormale:
2529 //=============================================================================
2530 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByNormale (GEOM::GEOM_Object_ptr theBlock,
2531 GEOM::GEOM_Object_ptr theVector)
2533 beginService( " GEOM_Superv_i::GetFaceByNormale" );
2534 MESSAGE("GEOM_Superv_i::GetFaceByNormale");
2536 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceByNormale(theBlock, theVector);
2537 endService( " GEOM_Superv_i::GetFaceByNormale" );
2541 //=============================================================================
2542 // IsCompoundOfBlocks:
2543 //=============================================================================
2544 CORBA::Boolean GEOM_Superv_i::IsCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
2545 CORBA::Long theMinNbFaces,
2546 CORBA::Long theMaxNbFaces,
2547 CORBA::Long& theNbBlocks)
2549 beginService( " GEOM_Superv_i::IsCompoundOfBlocks" );
2550 MESSAGE("GEOM_Superv_i::IsCompoundOfBlocks");
2552 CORBA::Boolean aRes = myBlocksOp->IsCompoundOfBlocks(theCompound, theMinNbFaces, theMaxNbFaces, theNbBlocks);
2553 endService( " GEOM_Superv_i::IsCompoundOfBlocks" );
2557 //=============================================================================
2558 // CheckCompoundOfBlocks:
2559 //=============================================================================
2560 CORBA::Boolean GEOM_Superv_i::CheckCompoundOfBlocks
2561 (GEOM::GEOM_Object_ptr theCompound,
2562 GEOM::GEOM_IBlocksOperations::BCErrors_out theErrors)
2564 beginService( " GEOM_Superv_i::CheckCompoundOfBlocks" );
2565 MESSAGE("GEOM_Superv_i::CheckCompoundOfBlocks");
2567 CORBA::Boolean aRes = myBlocksOp->CheckCompoundOfBlocks(theCompound, theErrors);
2568 endService( " GEOM_Superv_i::CheckCompoundOfBlocks" );
2572 //=============================================================================
2574 //=============================================================================
2575 char* GEOM_Superv_i::PrintBCErrors (GEOM::GEOM_Object_ptr theCompound,
2576 const GEOM::GEOM_IBlocksOperations::BCErrors& theErrors)
2578 beginService( " GEOM_Superv_i::PrintBCErrors" );
2579 MESSAGE("GEOM_Superv_i::PrintBCErrors");
2581 char* anErrors = myBlocksOp->PrintBCErrors(theCompound, theErrors);
2582 endService( " GEOM_Superv_i::PrintBCErrors" );
2586 //=============================================================================
2587 // ExplodeCompoundOfBlocks:
2588 //=============================================================================
2589 GEOM::GEOM_List_ptr GEOM_Superv_i::ExplodeCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
2590 CORBA::Long theMinNbFaces,
2591 CORBA::Long theMaxNbFaces)
2593 beginService( " GEOM_Superv_i::ExplodeCompoundOfBlocks" );
2594 MESSAGE("GEOM_Superv_i::ExplodeCompoundOfBlocks");
2596 GEOM::ListOfGO* aBlocks = myBlocksOp->ExplodeCompoundOfBlocks(theCompound, theMinNbFaces, theMaxNbFaces);
2597 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aBlocks));
2598 endService( " GEOM_Superv_i::ExplodeCompoundOfBlocks" );
2599 return aListPtr->_this();
2602 //=============================================================================
2603 // GetBlockNearPoint:
2604 //=============================================================================
2605 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetBlockNearPoint (GEOM::GEOM_Object_ptr theCompound,
2606 GEOM::GEOM_Object_ptr thePoint)
2608 beginService( " GEOM_Superv_i::GetBlockNearPoint" );
2609 MESSAGE("GEOM_Superv_i::GetBlockNearPoint");
2611 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetBlockNearPoint(theCompound, thePoint);
2612 endService( " GEOM_Superv_i::GetBlockNearPoint" );
2616 //=============================================================================
2618 //=============================================================================
2619 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetBlockByParts (GEOM::GEOM_Object_ptr theCompound,
2620 GEOM::GEOM_List_ptr theParts)
2622 beginService( " GEOM_Superv_i::GetBlockByParts" );
2623 MESSAGE("GEOM_Superv_i::GetBlockByParts");
2624 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2625 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theParts, myPOA).in())) {
2627 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetBlockByParts(theCompound, aListImplP->GetList());
2628 endService( " GEOM_Superv_i::GetBlockByParts" );
2631 endService( " GEOM_Superv_i::GetBlockByParts" );
2635 //=============================================================================
2636 // GetBlocksByParts:
2637 //=============================================================================
2638 GEOM::GEOM_List_ptr GEOM_Superv_i::GetBlocksByParts (GEOM::GEOM_Object_ptr theCompound,
2639 GEOM::GEOM_List_ptr theParts)
2641 beginService( " GEOM_Superv_i::GetBlocksByParts" );
2642 MESSAGE("GEOM_Superv_i::GetBlocksByParts");
2643 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2644 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theParts, myPOA).in())) {
2647 GEOM::ListOfGO* aBlocks = myBlocksOp->GetBlocksByParts(theCompound, aListImplP->GetList());
2648 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aBlocks));
2649 endService( " GEOM_Superv_i::GetBlocksByParts" );
2650 return aListPtr->_this();
2652 endService( " GEOM_Superv_i::GetBlocksByParts" );
2656 //=============================================================================
2657 // MakeMultiTransformation1D:
2658 //=============================================================================
2659 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation1D (GEOM::GEOM_Object_ptr theBlock,
2660 CORBA::Long theDirFace1,
2661 CORBA::Long theDirFace2,
2662 CORBA::Long theNbTimes)
2664 beginService( " GEOM_Superv_i::MakeMultiTransformation1D" );
2665 MESSAGE("GEOM_Superv_i::MakeMultiTransformation1D");
2667 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeMultiTransformation1D(theBlock, theDirFace1, theDirFace2, theNbTimes);
2668 endService( " GEOM_Superv_i::MakeMultiTransformation1D" );
2672 //=============================================================================
2673 // MakeMultiTransformation2D:
2674 //=============================================================================
2675 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation2D
2676 (GEOM::GEOM_Object_ptr theBlock,
2677 CORBA::Long theDirFace1U,
2678 CORBA::Long theDirFace2U,
2679 CORBA::Long theNbTimesU,
2680 CORBA::Long theDirFace1V,
2681 CORBA::Long theDirFace2V,
2682 CORBA::Long theNbTimesV)
2684 beginService( " GEOM_Superv_i::MakeMultiTransformation2D" );
2685 MESSAGE("GEOM_Superv_i::MakeMultiTransformation2D");
2687 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeMultiTransformation2D(theBlock,
2688 theDirFace1U, theDirFace2U, theNbTimesU,
2689 theDirFace1V, theDirFace2V, theNbTimesV);
2690 endService( " GEOM_Superv_i::MakeMultiTransformation2D" );
2694 //=============================== CurvesOperations ============================
2695 //=============================================================================
2696 // MakeCirclePntVecR:
2697 //=============================================================================
2698 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCirclePntVecR (GEOM::GEOM_Object_ptr theCenter,
2699 GEOM::GEOM_Object_ptr theVector,
2702 beginService( " GEOM_Superv_i::MakeCirclePntVecR" );
2703 MESSAGE("GEOM_Superv_i::MakeCirclePntVecR");
2705 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeCirclePntVecR(theCenter, theVector, theR);
2706 endService( " GEOM_Superv_i::MakeCirclePntVecR" );
2710 //=============================================================================
2711 // MakeCircleThreePnt:
2712 //=============================================================================
2713 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCircleThreePnt (GEOM::GEOM_Object_ptr thePnt1,
2714 GEOM::GEOM_Object_ptr thePnt2,
2715 GEOM::GEOM_Object_ptr thePnt3)
2717 beginService( " GEOM_Superv_i::MakeCircleThreePnt" );
2718 MESSAGE("GEOM_Superv_i::MakeCircleThreePnt");
2720 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeCircleThreePnt(thePnt1, thePnt2, thePnt3);
2721 endService( " GEOM_Superv_i::MakeCircleThreePnt" );
2724 //=============================================================================
2725 // MakeCircleCenter2Pnt:
2726 //=============================================================================
2727 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCircleCenter2Pnt (GEOM::GEOM_Object_ptr thePnt1,
2728 GEOM::GEOM_Object_ptr thePnt2,
2729 GEOM::GEOM_Object_ptr thePnt3)
2731 beginService( " GEOM_Superv_i::MakeCircleCenter2Pnt" );
2732 MESSAGE("GEOM_Superv_i::MakeCircleCenter2Pnt");
2734 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeCircleCenter2Pnt(thePnt1, thePnt2, thePnt3);
2735 endService( " GEOM_Superv_i::MakeCircleCenter2Pnt" );
2739 //=============================================================================
2741 //=============================================================================
2742 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEllipse (GEOM::GEOM_Object_ptr theCenter,
2743 GEOM::GEOM_Object_ptr theVector,
2744 CORBA::Double theRMajor,
2745 CORBA::Double theRMinor)
2747 beginService( " GEOM_Superv_i::MakeEllipse" );
2748 MESSAGE("GEOM_Superv_i::MakeEllipse");
2750 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeEllipse(theCenter, theVector, theRMajor, theRMinor);
2751 endService( " GEOM_Superv_i::MakeEllipse" );
2755 //=============================================================================
2757 //=============================================================================
2758 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEllipseVec (GEOM::GEOM_Object_ptr theCenter,
2759 GEOM::GEOM_Object_ptr theVector,
2760 CORBA::Double theRMajor,
2761 CORBA::Double theRMinor,
2762 GEOM::GEOM_Object_ptr theVectorMajor)
2764 beginService( " GEOM_Superv_i::MakeEllipseVec" );
2765 MESSAGE("GEOM_Superv_i::MakeEllipseVec");
2767 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeEllipseVec(theCenter, theVector, theRMajor, theRMinor, theVectorMajor);
2768 endService( " GEOM_Superv_i::MakeEllipseVec" );
2772 //=============================================================================
2774 //=============================================================================
2775 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArc (GEOM::GEOM_Object_ptr thePnt1,
2776 GEOM::GEOM_Object_ptr thePnt2,
2777 GEOM::GEOM_Object_ptr thePnt3)
2779 beginService( " GEOM_Superv_i::MakeArc" );
2780 MESSAGE("GEOM_Superv_i::MakeArc");
2782 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeArc(thePnt1, thePnt2, thePnt3);
2783 endService( " GEOM_Superv_i::MakeArc" );
2787 //=============================================================================
2789 //=============================================================================
2790 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArcCenter (GEOM::GEOM_Object_ptr theCenter,
2791 GEOM::GEOM_Object_ptr thePnt1,
2792 GEOM::GEOM_Object_ptr thePnt2,
2793 CORBA::Boolean theSense)
2795 beginService( " GEOM_Superv_i::MakeArcCenter" );
2796 MESSAGE("GEOM_Superv_i::MakeArcCenter");
2798 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeArcCenter(theCenter, thePnt1, thePnt2,theSense);
2799 endService( " GEOM_Superv_i::MakeArcCenter" );
2803 //=============================================================================
2804 // MakeArcOfEllipse:
2805 //=============================================================================
2806 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArcOfEllipse (GEOM::GEOM_Object_ptr thePnt1,
2807 GEOM::GEOM_Object_ptr thePnt2,
2808 GEOM::GEOM_Object_ptr thePnt3)
2810 beginService( " GEOM_Superv_i::MakeArcOfEllipse" );
2811 MESSAGE("GEOM_Superv_i::MakeArcOfEllipse");
2813 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeArcOfEllipse(thePnt1, thePnt2, thePnt3);
2814 endService( " GEOM_Superv_i::MakeArcOfEllipse" );
2818 //=============================================================================
2820 //=============================================================================
2821 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePolyline (GEOM::GEOM_List_ptr thePoints,
2822 CORBA::Boolean theIsClosed)
2824 beginService( " GEOM_Superv_i::MakePolyline" );
2825 MESSAGE("GEOM_Superv_i::MakePolyline");
2826 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2827 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
2829 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakePolyline(aListImplP->GetList(), theIsClosed);
2830 endService( " GEOM_Superv_i::MakePolyline" );
2833 endService( " GEOM_Superv_i::MakePolyline" );
2837 //=============================================================================
2838 // MakeSplineBezier:
2839 //=============================================================================
2840 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineBezier (GEOM::GEOM_List_ptr thePoints,
2841 CORBA::Boolean theIsClosed)
2843 beginService( " GEOM_Superv_i::MakeSplineBezier" );
2844 MESSAGE("GEOM_Superv_i::MakeSplineBezier");
2845 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2846 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
2848 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSplineBezier(aListImplP->GetList(), theIsClosed);
2849 endService( " GEOM_Superv_i::MakeSplineBezier" );
2852 endService( " GEOM_Superv_i::MakeSplineBezier" );
2856 //=============================================================================
2857 // MakeSplineInterpolation:
2858 //=============================================================================
2859 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineInterpolation (GEOM::GEOM_List_ptr thePoints,
2860 CORBA::Boolean theIsClosed,
2861 CORBA::Boolean theDoReordering)
2863 beginService( " GEOM_Superv_i::MakeSplineInterpolation" );
2864 MESSAGE("GEOM_Superv_i::MakeSplineInterpolation");
2865 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2866 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
2868 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSplineInterpolation(aListImplP->GetList(), theIsClosed, theDoReordering);
2869 endService( " GEOM_Superv_i::MakeSplineInterpolation" );
2872 endService( " GEOM_Superv_i::MakeSplineInterpolation" );
2876 //=============================================================================
2878 //=============================================================================
2879 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSketcher (const char* theCommand,
2880 GEOM::GEOM_List_ptr theWorkingPlane)
2882 beginService( " GEOM_Superv_i::MakeSketcher" );
2883 MESSAGE("GEOM_Superv_i::MakeSketcher");
2884 if (GEOM_List_i<GEOM::ListOfDouble>* aListImplWP =
2885 dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theWorkingPlane, myPOA).in())) {
2887 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSketcher(theCommand, aListImplWP->GetList());
2888 endService( " GEOM_Superv_i::MakeSketcher" );
2891 endService( " GEOM_Superv_i::MakeSketcher" );
2895 //=============================================================================
2897 //=============================================================================
2898 GEOM::GEOM_Object_ptr GEOM_Superv_i::Make3DSketcher ( GEOM::GEOM_List_ptr theCoordinates)
2900 beginService( " GEOM_Superv_i::Make3DSketcher" );
2901 MESSAGE("GEOM_Superv_i::Make3DSketcher");
2902 if (GEOM_List_i<GEOM::ListOfDouble>* aListImpl =
2903 dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theCoordinates, myPOA).in())) {
2905 GEOM::GEOM_Object_ptr anObj = myCurvesOp->Make3DSketcher(aListImpl->GetList());
2906 endService( " GEOM_Superv_i::Make3DSketcher" );
2909 endService( " GEOM_Superv_i::Make3DSketcher" );
2913 //=============================== LocalOperations =============================
2914 //=============================================================================
2916 //=============================================================================
2917 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletAll (GEOM::GEOM_Object_ptr theShape,
2920 beginService( " GEOM_Superv_i::MakeFilletAll" );
2921 MESSAGE("GEOM_Superv_i::MakeFilletAllMakeSketcher");
2923 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletAll(theShape, theR);
2924 endService( " GEOM_Superv_i::MakeFilletAll" );
2928 //=============================================================================
2930 //=============================================================================
2931 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletEdges (GEOM::GEOM_Object_ptr theShape,
2933 GEOM::GEOM_List_ptr theEdges)
2935 beginService( " GEOM_Superv_i::MakeFilletEdges" );
2936 MESSAGE("GEOM_Superv_i::MakeFilletEdges");
2937 if (GEOM_List_i<GEOM::ListOfLong>* aListImplE =
2938 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
2940 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletEdges(theShape, theR, aListImplE->GetList());
2941 endService( " GEOM_Superv_i::MakeFilletEdges" );
2944 endService( " GEOM_Superv_i::MakeFilletEdges" );
2948 //=============================================================================
2949 // MakeFilletEdges R1 R2:
2950 //=============================================================================
2951 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletEdgesR1R2 (GEOM::GEOM_Object_ptr theShape,
2952 CORBA::Double theR1,
2953 CORBA::Double theR2,
2954 GEOM::GEOM_List_ptr theEdges)
2956 beginService( " GEOM_Superv_i::MakeFilletEdgesR1R2" );
2957 MESSAGE("GEOM_Superv_i::MakeFilletEdgesR1R2");
2958 if (GEOM_List_i<GEOM::ListOfLong>* aListImplE =
2959 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
2961 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletEdgesR1R2(theShape, theR1,
2962 theR2, aListImplE->GetList());
2963 endService( " GEOM_Superv_i::MakeFilletEdgesR1R2" );
2966 endService( " GEOM_Superv_i::MakeFilletEdgesR1R2" );
2970 //=============================================================================
2972 //=============================================================================
2973 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletFaces (GEOM::GEOM_Object_ptr theShape,
2975 GEOM::GEOM_List_ptr theFaces)
2977 beginService( " GEOM_Superv_i::MakeFilletFaces" );
2978 MESSAGE("GEOM_Superv_i::MakeFilletFaces");
2979 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
2980 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
2982 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletFaces(theShape, theR, aListImplF->GetList());
2983 endService( " GEOM_Superv_i::MakeFilletFaces" );
2986 endService( " GEOM_Superv_i::MakeFilletFaces" );
2990 //=============================================================================
2991 // MakeFilletFaces R1 R2:
2992 //=============================================================================
2993 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletFacesR1R2 (GEOM::GEOM_Object_ptr theShape,
2994 CORBA::Double theR1,
2995 CORBA::Double theR2,
2996 GEOM::GEOM_List_ptr theFaces)
2998 beginService( " GEOM_Superv_i::MakeFilletFacesR1R2" );
2999 MESSAGE("GEOM_Superv_i::MakeFilletFacesR1R2");
3000 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3001 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
3003 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletFacesR1R2(theShape, theR1, theR2,
3004 aListImplF->GetList());
3005 endService( " GEOM_Superv_i::MakeFilletFacesR1R2" );
3008 endService( " GEOM_Superv_i::MakeFilletFacesR1R2" );
3012 //=============================================================================
3014 //=============================================================================
3015 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFillet2D (GEOM::GEOM_Object_ptr theShape,
3017 GEOM::GEOM_List_ptr theVertexes)
3019 beginService( " GEOM_Superv_i::MakeFillet2D" );
3020 MESSAGE("GEOM_Superv_i::MakeFillet2D");
3021 if (GEOM_List_i<GEOM::ListOfLong>* aListImplV =
3022 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theVertexes, myPOA).in())) {
3024 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFillet2D(theShape, theR, aListImplV->GetList());
3025 endService( " GEOM_Superv_i::MakeFillet2D" );
3028 endService( " GEOM_Superv_i::MakeFillet2D" );
3032 //=============================================================================
3034 //=============================================================================
3035 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFillet1D (GEOM::GEOM_Object_ptr theShape,
3037 GEOM::GEOM_List_ptr theVertexes,
3038 CORBA::Boolean doIgnoreSecantVertices)
3040 beginService( " GEOM_Superv_i::MakeFillet1D" );
3041 MESSAGE("GEOM_Superv_i::MakeFillet1D");
3042 if (GEOM_List_i<GEOM::ListOfLong>* aListImplV =
3043 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theVertexes, myPOA).in())) {
3045 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFillet1D
3046 (theShape, theR, aListImplV->GetList(), doIgnoreSecantVertices);
3047 endService( " GEOM_Superv_i::MakeFillet1D" );
3050 endService( " GEOM_Superv_i::MakeFillet1D" );
3054 //=============================================================================
3056 //=============================================================================
3057 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferAll (GEOM::GEOM_Object_ptr theShape, CORBA::Double theD)
3059 beginService( " GEOM_Superv_i::MakeChamferAll" );
3060 MESSAGE("GEOM_Superv_i::MakeChamferAll");
3062 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferAll(theShape, theD);
3063 endService( " GEOM_Superv_i::MakeChamferAll" );
3067 //=============================================================================
3069 //=============================================================================
3070 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdge (GEOM::GEOM_Object_ptr theShape,
3071 CORBA::Double theD1, CORBA::Double theD2,
3072 CORBA::Long theFace1, CORBA::Long theFace2)
3074 beginService( " GEOM_Superv_i::MakeChamferEdge" );
3075 MESSAGE("GEOM_Superv_i::MakeChamferEdge");
3077 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdge(theShape, theD1, theD2, theFace1, theFace2);
3078 endService( " GEOM_Superv_i::MakeChamferEdge" );
3082 //=============================================================================
3083 // MakeChamferEdgeAD:
3084 //=============================================================================
3085 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdgeAD (GEOM::GEOM_Object_ptr theShape,
3086 CORBA::Double theD, CORBA::Double theAngle,
3087 CORBA::Long theFace1, CORBA::Long theFace2)
3089 beginService( " GEOM_Superv_i::MakeChamferEdgeAD" );
3090 MESSAGE("GEOM_Superv_i::MakeChamferEdgeAD");
3092 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdgeAD(theShape, theD, theAngle, theFace1, theFace2);
3093 endService( " GEOM_Superv_i::MakeChamferEdgeAD" );
3097 //=============================================================================
3098 // MakeChamferFaces:
3099 //=============================================================================
3100 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferFaces (GEOM::GEOM_Object_ptr theShape,
3101 CORBA::Double theD1, CORBA::Double theD2,
3102 GEOM::GEOM_List_ptr theFaces)
3104 beginService( " GEOM_Superv_i::MakeChamferFaces" );
3105 MESSAGE("GEOM_Superv_i::MakeChamferFaces");
3106 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3107 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
3109 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferFaces(theShape, theD1, theD2, aListImplF->GetList());
3110 endService( " GEOM_Superv_i::MakeChamferFaces" );
3113 endService( " GEOM_Superv_i::MakeChamferFaces" );
3117 //=============================================================================
3118 // MakeChamferFacesAD:
3119 //=============================================================================
3120 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferFacesAD (GEOM::GEOM_Object_ptr theShape,
3121 CORBA::Double theD, CORBA::Double theAngle,
3122 GEOM::GEOM_List_ptr theFaces)
3124 beginService( " GEOM_Superv_i::MakeChamferFacesAD" );
3125 MESSAGE("GEOM_Superv_i::MakeChamferFacesAD");
3126 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3127 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
3129 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferFacesAD(theShape, theD, theAngle, aListImplF->GetList());
3130 endService( " GEOM_Superv_i::MakeChamferFacesAD" );
3133 endService( " GEOM_Superv_i::MakeChamferFacesAD" );
3137 //=============================================================================
3138 // MakeChamferEdges:
3139 //=============================================================================
3140 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdges (GEOM::GEOM_Object_ptr theShape,
3141 CORBA::Double theD1, CORBA::Double theD2,
3142 GEOM::GEOM_List_ptr theEdges)
3144 beginService( " GEOM_Superv_i::MakeChamferEdges" );
3145 MESSAGE("GEOM_Superv_i::MakeChamferEdges");
3146 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3147 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
3149 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdges(theShape, theD1, theD2, aListImplF->GetList());
3150 endService( " GEOM_Superv_i::MakeChamferEdges" );
3153 endService( " GEOM_Superv_i::MakeChamferEdges" );
3157 //=============================================================================
3158 // MakeChamferEdgesAD:
3159 //=============================================================================
3160 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdgesAD (GEOM::GEOM_Object_ptr theShape,
3161 CORBA::Double theD, CORBA::Double theAngle,
3162 GEOM::GEOM_List_ptr theEdges)
3164 beginService( " GEOM_Superv_i::MakeChamferEdgesAD" );
3165 MESSAGE("GEOM_Superv_i::MakeChamferEdgesAD");
3166 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3167 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
3169 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdgesAD(theShape, theD, theAngle, aListImplF->GetList());
3170 endService( " GEOM_Superv_i::MakeChamferEdgesAD" );
3173 endService( " GEOM_Superv_i::MakeChamferEdgesAD" );
3177 //=============================================================================
3179 //=============================================================================
3180 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArchimede (GEOM::GEOM_Object_ptr theShape,
3181 CORBA::Double theWeight,
3182 CORBA::Double theWaterDensity,
3183 CORBA::Double theMeshingDeflection)
3185 beginService( " GEOM_Superv_i::MakeArchimede" );
3186 MESSAGE("GEOM_Superv_i::MakeArchimede");
3188 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeArchimede(theShape, theWeight, theWaterDensity, theMeshingDeflection);
3189 endService( " GEOM_Superv_i::MakeArchimede" );
3193 //=============================================================================
3194 // GetSubShapeIndexMakeFilletAll:
3195 //=============================================================================
3196 CORBA::Long GEOM_Superv_i::GetSubShapeIndex (GEOM::GEOM_Object_ptr theShape,
3197 GEOM::GEOM_Object_ptr theSubShape)
3199 beginService( " GEOM_Superv_i::GetSubShapeIndex" );
3200 MESSAGE("GEOM_Superv_i::GetSubShapeIndexMakeArchimede");
3202 CORBA::Long aRes = myLocalOp->GetSubShapeIndex(theShape, theSubShape);
3203 endService( " GEOM_Superv_i::GetSubShapeIndex" );
3207 //=============================== GroupOperations =============================
3208 //=============================================================================
3210 //=============================================================================
3211 GEOM::GEOM_Object_ptr GEOM_Superv_i::CreateGroup (GEOM::GEOM_Object_ptr theMainShape,
3212 CORBA::Long theShapeType)
3214 beginService( " GEOM_Superv_i::CreateGroup" );
3215 MESSAGE("GEOM_Superv_i::CreateGroup");
3217 GEOM::GEOM_Object_ptr anObj = myGroupOp->CreateGroup(theMainShape, theShapeType);
3218 endService( " GEOM_Superv_i::CreateGroup" );
3222 //=============================================================================
3224 //=============================================================================
3225 void GEOM_Superv_i::AddObject (GEOM::GEOM_Object_ptr theGroup,
3226 CORBA::Long theSubShapeId)
3228 beginService( " GEOM_Superv_i::AddObject" );
3229 MESSAGE("GEOM_Superv_i::AddObject");
3231 myGroupOp->AddObject(theGroup, theSubShapeId);
3232 endService( " GEOM_Superv_i::AddObject" );
3235 //=============================================================================
3237 //=============================================================================
3238 void GEOM_Superv_i::RemoveObject (GEOM::GEOM_Object_ptr theGroup,
3239 CORBA::Long theSubShapeId)
3241 beginService( " GEOM_Superv_i::RemoveObject" );
3242 MESSAGE("GEOM_Superv_i::RemoveObject");
3244 myGroupOp->RemoveObject(theGroup, theSubShapeId);
3245 endService( " GEOM_Superv_i::RemoveObject" );
3248 //=============================================================================
3250 //=============================================================================
3251 CORBA::Long GEOM_Superv_i::GetType (GEOM::GEOM_Object_ptr theGroup)
3253 beginService( " GEOM_Superv_i::GetType" );
3254 MESSAGE("GEOM_Superv_i::GetType");
3256 CORBA::Long aResult = myGroupOp->GetType(theGroup);
3257 endService( " GEOM_Superv_i::GetType" );
3261 //=============================================================================
3263 //=============================================================================
3264 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetMainShape (GEOM::GEOM_Object_ptr theGroup)
3266 beginService( " GEOM_Superv_i::GetMainShape" );
3267 MESSAGE("GEOM_Superv_i::GetMainShape");
3269 GEOM::GEOM_Object_ptr anObj = myGroupOp->GetMainShape(theGroup);
3270 endService( " GEOM_Superv_i::GetMainShape" );
3274 //=============================================================================
3276 //=============================================================================
3277 GEOM::GEOM_List_ptr GEOM_Superv_i::GetObjects (GEOM::GEOM_Object_ptr theGroup)
3279 beginService( " GEOM_Superv_i::GetObjects" );
3280 MESSAGE("GEOM_Superv_i::GetObjects");
3283 GEOM::ListOfLong* aList = myGroupOp->GetObjects(theGroup);
3284 GEOM_List_i<GEOM::ListOfLong>* aListPtr = new GEOM_List_i<GEOM::ListOfLong>(*(aList));
3285 MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
3286 endService( " GEOM_Superv_i::GetObjects" );
3287 return aListPtr->_this();
3290 //=============================== Advanced Operations =============================
3291 //=============================================================================
3293 //=============================================================================
3294 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShape
3295 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3296 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
3297 CORBA::Boolean theHexMesh)
3299 beginService( " GEOM_Superv_i::MakePipeTShape" );
3300 MESSAGE("GEOM_Superv_i::MakePipeTShape");
3303 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShape(theR1, theW1, theL1, theR2, theW2, theL2, theHexMesh);
3304 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3305 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3306 endService( " GEOM_Superv_i::MakePipeTShape" );
3307 return aSeqPtr->_this();
3310 //=============================================================================
3311 // MakePipeTShapeWithPosition
3312 //=============================================================================
3313 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeWithPosition
3314 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3315 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2, CORBA::Boolean theHexMesh,
3316 GEOM::GEOM_Object_ptr theP1, GEOM::GEOM_Object_ptr theP2, GEOM::GEOM_Object_ptr theP3)
3318 beginService( " GEOM_Superv_i::MakePipeTShapeWithPosition" );
3319 MESSAGE("GEOM_Superv_i::MakePipeTShapeWithPosition");
3322 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeWithPosition(theR1, theW1, theL1, theR2, theW2, theL2, theHexMesh, theP1, theP2, theP3);
3323 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3324 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3325 endService( " GEOM_Superv_i::MakePipeTShapeWithPosition" );
3326 return aSeqPtr->_this();
3329 //=============================================================================
3330 // MakePipeTShapeChamfer
3331 //=============================================================================
3332 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeChamfer
3333 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3334 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
3335 CORBA::Double theH, CORBA::Double theW, CORBA::Boolean theHexMesh)
3337 beginService( " GEOM_Superv_i::MakePipeTShapeChamfer" );
3338 MESSAGE("GEOM_Superv_i::MakePipeTShapeChamfer");
3341 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeChamfer(theR1, theW1, theL1, theR2, theW2, theL2, theH, theW, theHexMesh);
3342 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3343 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3344 endService( " GEOM_Superv_i::MakePipeTShapeChamfer" );
3345 return aSeqPtr->_this();
3348 //=============================================================================
3349 // MakePipeTShapeChamferWithPosition
3350 //=============================================================================
3351 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeChamferWithPosition
3352 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3353 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
3354 CORBA::Double theH, CORBA::Double theW, CORBA::Boolean theHexMesh,
3355 GEOM::GEOM_Object_ptr theP1, GEOM::GEOM_Object_ptr theP2, GEOM::GEOM_Object_ptr theP3)
3357 beginService( " GEOM_Superv_i::MakePipeTShapeChamferWithPosition" );
3358 MESSAGE("GEOM_Superv_i::MakePipeTShapeChamferWithPosition");
3361 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeChamferWithPosition(theR1, theW1, theL1, theR2, theW2, theL2, theH, theW, theHexMesh, theP1, theP2, theP3);
3362 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3363 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3364 endService( " GEOM_Superv_i::MakePipeTShapeChamferWithPosition" );
3365 return aSeqPtr->_this();
3368 //=============================================================================
3369 // MakePipeTShapeFillet
3370 //=============================================================================
3371 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeFillet
3372 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3373 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
3374 CORBA::Double theRF, CORBA::Boolean theHexMesh)
3376 beginService( " GEOM_Superv_i::MakePipeTShapeFillet" );
3377 MESSAGE("GEOM_Superv_i::MakePipeTShapeFillet");
3380 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeFillet(theR1, theW1, theL1, theR2, theW2, theL2, theRF, theHexMesh);
3381 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3382 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3383 endService( " GEOM_Superv_i::MakePipeTShapeFillet" );
3384 return aSeqPtr->_this();
3387 //=============================================================================
3388 // MakePipeTShapeFilletWithPosition
3389 //=============================================================================
3390 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeFilletWithPosition
3391 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3392 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
3393 CORBA::Double theRF, CORBA::Boolean theHexMesh,
3394 GEOM::GEOM_Object_ptr theP1, GEOM::GEOM_Object_ptr theP2, GEOM::GEOM_Object_ptr theP3)
3396 beginService( " GEOM_Superv_i::MakePipeTShapeFilletWithPosition" );
3397 MESSAGE("GEOM_Superv_i::MakePipeTShapeFilletWithPosition");
3400 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeFilletWithPosition(theR1, theW1, theL1, theR2, theW2, theL2, theRF, theHexMesh, theP1, theP2, theP3);
3401 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3402 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3403 endService( " GEOM_Superv_i::MakePipeTShapeFilletWithPosition" );
3404 return aSeqPtr->_this();
3407 //=============================================================================
3409 //=============================================================================
3410 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDividedDisk (CORBA::Double theR, CORBA::Double theRatio,
3411 CORBA::Short theOrientation, GEOM::pattern thePattern)
3413 beginService( " GEOM_Superv_i::MakeDividedDisk" );
3414 MESSAGE("GEOM_Superv_i::MakeDividedDisk");
3416 GEOM::GEOM_Object_ptr anObj = myAdvancedOp->MakeDividedDisk(theR, theRatio, theOrientation, thePattern);
3417 endService( " GEOM_Superv_i::MakeDividedDisk" );
3421 //=============================================================================
3422 // MakeDividedCylinder
3423 //=============================================================================
3424 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDividedCylinder (CORBA::Double theR,
3426 GEOM::pattern thePattern)
3428 beginService( " GEOM_Superv_i::MakeDividedCylinder" );
3429 MESSAGE("GEOM_Superv_i::MakeDividedCylinder");
3431 GEOM::GEOM_Object_ptr anObj = myAdvancedOp->MakeDividedCylinder(theR, theH, thePattern);
3432 endService( " GEOM_Superv_i::MakeDividedCylinder" );
3436 //=============================================================================
3437 // MakeSmoothingSurface
3438 //=============================================================================
3439 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSmoothingSurface (GEOM::GEOM_List_ptr thelPoints)
3441 beginService( " GEOM_Superv_i::MakeSmoothingSurface" );
3442 MESSAGE("GEOM_Superv_i::MakeSmoothingSurface");
3444 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
3445 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thelPoints, myPOA).in())) {
3447 GEOM::GEOM_Object_ptr anObj = myAdvancedOp->MakeSmoothingSurface(aListImplP->GetList());
3448 endService( " GEOM_Superv_i::MakeSmoothingSurface" );
3451 endService( " GEOM_Superv_i::MakeSmoothingSurface" );
3455 /*@@ insert new functions before this line @@ do not remove this line @@*/
3457 //=====================================================================================
3459 //=====================================================================================
3463 __declspec( dllexport )
3465 PortableServer::ObjectId * GEOM_SupervEngine_factory(CORBA::ORB_ptr orb,
3466 PortableServer::POA_ptr poa,
3467 PortableServer::ObjectId * contId,
3468 const char *instanceName,
3469 const char * interfaceName)
3471 GEOM_Superv_i * myGEOM_Superv_i = new GEOM_Superv_i(orb, poa, contId, instanceName, interfaceName);
3472 //Don't understand the reason why this component is registered ???
3473 // myGEOM_Superv_i->register_name("/myGEOM_Superv");
3474 return myGEOM_Superv_i->getId() ;