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);
403 myAdvancedOp = GEOM::GEOM_IAdvancedOperations::_narrow(myGeomEngine->GetPluginOperations(myStudyID, "AdvancedEngine"));
407 //=============================================================================
409 //=============================================================================
410 PortableServer::ServantBase_var GEOM_Superv_i::GetServant(CORBA::Object_ptr theObject,
411 PortableServer::POA_ptr thePOA)
413 if(CORBA::is_nil(theObject)) return NULL;
414 PortableServer::Servant aServant = thePOA->reference_to_servant(theObject);
418 //============================================================================
420 // purpose : save OCAF/Geom document
421 //============================================================================
422 SALOMEDS::TMPFile* GEOM_Superv_i::Save(SALOMEDS::SComponent_ptr theComponent,
424 CORBA::Boolean isMultiFile)
426 SALOMEDS::TMPFile_var aStreamFile;
427 return aStreamFile._retn();
430 //============================================================================
431 // function : SaveASCII()
433 //============================================================================
434 SALOMEDS::TMPFile* GEOM_Superv_i::SaveASCII(SALOMEDS::SComponent_ptr theComponent,
436 CORBA::Boolean isMultiFile)
438 SALOMEDS::TMPFile_var aStreamFile;
439 return aStreamFile._retn();
442 //============================================================================
445 //============================================================================
446 CORBA::Boolean GEOM_Superv_i::Load(SALOMEDS::SComponent_ptr theComponent,
447 const SALOMEDS::TMPFile& theStream,
449 CORBA::Boolean isMultiFile)
454 //============================================================================
455 // function : LoadASCII()
457 //============================================================================
458 CORBA::Boolean GEOM_Superv_i::LoadASCII(SALOMEDS::SComponent_ptr theComponent,
459 const SALOMEDS::TMPFile& theStream,
461 CORBA::Boolean isMultiFile)
466 //============================================================================
467 // function : Close()
469 //============================================================================
470 void GEOM_Superv_i::Close(SALOMEDS::SComponent_ptr theComponent)
474 //============================================================================
475 // function : ComponentDataType()
477 //============================================================================
478 char* GEOM_Superv_i::ComponentDataType()
483 //============================================================================
484 // function : IORToLocalPersistentID()
486 //============================================================================
487 char* GEOM_Superv_i::IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
488 const char* IORString,
489 CORBA::Boolean isMultiFile,
490 CORBA::Boolean isASCII)
495 //============================================================================
496 // function : LocalPersistentIDToIOR()
497 // purpose : Create/Load CORBA object from a persistent ref (an entry)
498 // : Used when a study is loaded
499 // : The IOR (IORName) of object created is returned
500 //============================================================================
501 char* GEOM_Superv_i::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject,
502 const char* aLocalPersistentID,
503 CORBA::Boolean isMultiFile,
504 CORBA::Boolean isASCII)
509 //============================================================================
510 // function : CanPublishInStudy
512 //============================================================================
513 CORBA::Boolean GEOM_Superv_i::CanPublishInStudy(CORBA::Object_ptr theIOR)
515 if (CORBA::is_nil(myGeomEngine))
517 return myGeomEngine->CanPublishInStudy(theIOR);
520 //============================================================================
521 // function : PublishInStudy
523 //============================================================================
524 SALOMEDS::SObject_ptr GEOM_Superv_i::PublishInStudy(SALOMEDS::Study_ptr theStudy,
525 SALOMEDS::SObject_ptr theSObject,
526 CORBA::Object_ptr theObject,
527 const char* theName) throw (SALOME::SALOME_Exception)
529 if (CORBA::is_nil(myGeomEngine))
531 return myGeomEngine->PublishInStudy(theStudy, theSObject, theObject, theName);
534 //============================================================================
535 // function : PublishNamedShapesInStudy
537 //============================================================================
539 GEOM_Superv_i::PublishNamedShapesInStudy(SALOMEDS::Study_ptr theStudy,
540 //SALOMEDS::SObject_ptr theSObject,
541 CORBA::Object_ptr theObject)
543 if (CORBA::is_nil(myGeomEngine))
545 return myGeomEngine->PublishNamedShapesInStudy(theStudy, theObject);
548 //============================================================================
549 // function : CanCopy()
551 //============================================================================
552 CORBA::Boolean GEOM_Superv_i::CanCopy(SALOMEDS::SObject_ptr theObject)
557 //============================================================================
558 // function : CopyFrom()
560 //============================================================================
561 SALOMEDS::TMPFile* GEOM_Superv_i::CopyFrom(SALOMEDS::SObject_ptr theObject, CORBA::Long& theObjectID)
563 SALOMEDS::TMPFile_var aStreamFile;
564 return aStreamFile._retn();
567 //============================================================================
568 // function : CanPaste()
570 //============================================================================
571 CORBA::Boolean GEOM_Superv_i::CanPaste(const char* theComponentName, CORBA::Long theObjectID)
576 //============================================================================
577 // function : PasteInto()
579 //============================================================================
580 SALOMEDS::SObject_ptr GEOM_Superv_i::PasteInto(const SALOMEDS::TMPFile& theStream,
581 CORBA::Long theObjectID,
582 SALOMEDS::SObject_ptr theObject)
584 SALOMEDS::SObject_var aNewSO;
585 return aNewSO._retn();
588 //================= Primitives Construction : BasicOperations =================
589 //=============================================================================
591 //=============================================================================
592 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointXYZ(CORBA::Double theX,
596 beginService( " GEOM_Superv_i::MakePointXYZ" );
597 MESSAGE("GEOM_Superv_i::MakePointXYZ");
599 // make vertex and return
600 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointXYZ(theX, theY, theZ);
601 endService( " GEOM_Superv_i::MakePointXYZ" );
605 //=============================================================================
606 // MakePointWithReference:
607 //=============================================================================
608 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointWithReference (GEOM::GEOM_Object_ptr theReference,
613 beginService( " GEOM_Superv_i::MakePointWithReference" );
614 MESSAGE("GEOM_Superv_i::MakePointWithReference");
616 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointWithReference(theReference, theX, theY, theZ);
617 endService( " GEOM_Superv_i::MakePointWithReference" );
621 //=============================================================================
623 //=============================================================================
624 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
625 CORBA::Double theParameter)
627 beginService( " GEOM_Superv_i::MakePointOnCurve" );
628 MESSAGE("GEOM_Superv_i::MakePointOnCurve");
630 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointOnCurve(theRefCurve, theParameter);
631 endService( " GEOM_Superv_i::MakePointOnCurve" );
635 //=============================================================================
636 // MakePointOnCurveByLength:
637 //=============================================================================
638 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnCurveByLength (GEOM::GEOM_Object_ptr theRefCurve,
639 CORBA::Double theLength,
640 GEOM::GEOM_Object_ptr theStartPoint)
642 beginService( " GEOM_Superv_i::MakePointOnCurveByLength" );
643 MESSAGE("GEOM_Superv_i::MakePointOnCurveByLength");
645 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointOnCurveByLength(theRefCurve, theLength, theStartPoint);
646 endService( " GEOM_Superv_i::MakePointOnCurveByLength" );
650 //=============================================================================
651 // MakePointOnCurveByCoord
652 //=============================================================================
653 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnCurveByCoord (GEOM::GEOM_Object_ptr theRefCurve,
654 CORBA::Double theXParameter,
655 CORBA::Double theYParameter,
656 CORBA::Double theZParameter)
658 beginService( " GEOM_Superv_i::MakePointOnCurveByCoord" );
659 MESSAGE("GEOM_Superv_i::MakePointOnCurveByCoord");
661 GEOM::GEOM_Object_ptr anObj =
662 myBasicOp->MakePointOnCurveByCoord(theRefCurve, theXParameter,
663 theYParameter, theZParameter);
664 endService( " GEOM_Superv_i::MakePointOnCurveByCoord" );
668 //=============================================================================
669 // MakePointOnSurface:
670 //=============================================================================
671 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnSurface (GEOM::GEOM_Object_ptr theRefSurface,
672 CORBA::Double theUParameter,
673 CORBA::Double theVParameter)
675 beginService( " GEOM_Superv_i::MakePointOnSurface" );
676 MESSAGE("GEOM_Superv_i::MakePointOnSurface");
678 GEOM::GEOM_Object_ptr anObj =
679 myBasicOp->MakePointOnSurface(theRefSurface, theUParameter, theVParameter);
680 endService( " GEOM_Superv_i::MakePointOnSurface" );
684 //=============================================================================
685 // MakePointOnSurfaceByCoord
686 //=============================================================================
687 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnSurfaceByCoord (GEOM::GEOM_Object_ptr theRefSurface,
688 CORBA::Double theXParameter,
689 CORBA::Double theYParameter,
690 CORBA::Double theZParameter)
692 beginService( " GEOM_Superv_i::MakePointOnSurfaceByCoord" );
693 MESSAGE("GEOM_Superv_i::MakePointOnSurfaceByCoord");
695 GEOM::GEOM_Object_ptr anObj =
696 myBasicOp->MakePointOnSurfaceByCoord(theRefSurface, theXParameter,
697 theYParameter, theZParameter);
698 endService( " GEOM_Superv_i::MakePointOnSurfaceByCoord" );
702 //=============================================================================
703 // MakePointOnLinesIntersection:
704 //=============================================================================
705 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnLinesIntersection (GEOM::GEOM_Object_ptr theRefLine1,
706 GEOM::GEOM_Object_ptr theRefLine2)
708 beginService( " GEOM_Superv_i::MakePointOnLinesIntersection" );
709 MESSAGE("GEOM_Superv_i::MakePointOnLinesIntersection");
711 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointOnLinesIntersection(theRefLine1, theRefLine2);
712 endService( " GEOM_Superv_i::MakePointOnLinesIntersection" );
716 //=============================================================================
717 // MakeTangentOnCurve:
718 //=============================================================================
719 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTangentOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
720 CORBA::Double theParameter)
722 beginService( " GEOM_Superv_i::MakeTangentOnCurve" );
723 MESSAGE("GEOM_Superv_i::MakeTangentOnCurve");
725 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeTangentOnCurve(theRefCurve, theParameter);
726 endService( " GEOM_Superv_i::MakeTangentOnCurve" );
730 //=============================================================================
732 //=============================================================================
733 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeVectorDXDYDZ (CORBA::Double theDX,
737 beginService( " GEOM_Superv_i::MakeVectorDXDYDZ" );
738 MESSAGE("GEOM_Superv_i::MakeVectorDXDYDZ");
740 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeVectorDXDYDZ(theDX, theDY, theDZ);
741 endService( " GEOM_Superv_i::MakeVectorDXDYDZ" );
745 //=============================================================================
747 //=============================================================================
748 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeVectorTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
749 GEOM::GEOM_Object_ptr thePnt2)
751 beginService( " GEOM_Superv_i::MakeVectorTwoPnt" );
752 MESSAGE("GEOM_Superv_i::MakeVector");
754 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeVectorTwoPnt(thePnt1, thePnt2);
755 endService( " GEOM_Superv_i::MakeVectorTwoPnt" );
759 //=============================================================================
761 //=============================================================================
762 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeLineTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
763 GEOM::GEOM_Object_ptr thePnt2)
765 beginService( " GEOM_Superv_i::MakeLineTwoPnt");
766 MESSAGE("GEOM_Superv_i::MakeLineTwoPnt");
768 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeLineTwoPnt(thePnt1, thePnt2);
769 endService( " GEOM_Superv_i::MakeLineTwoPnt");
773 //=============================================================================
775 //=============================================================================
776 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeLineTwoFaces (GEOM::GEOM_Object_ptr theFace1,
777 GEOM::GEOM_Object_ptr theFace2)
779 beginService( " GEOM_Superv_i::MakeLineTwoFaces");
780 MESSAGE("GEOM_Superv_i::MakeLineTwoFaces");
782 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeLineTwoFaces(theFace1, theFace2);
783 endService( " GEOM_Superv_i::MakeLineTwoFaces");
787 //=============================================================================
788 // MakePlaneThreePnt:
789 //=============================================================================
790 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneThreePnt (GEOM::GEOM_Object_ptr thePnt1,
791 GEOM::GEOM_Object_ptr thePnt2,
792 GEOM::GEOM_Object_ptr thePnt3,
793 CORBA::Double theTrimSize)
795 beginService( " GEOM_Superv_i::MakePlaneThreePnt");
796 MESSAGE("GEOM_Superv_i::MakePlaneThreePnt");
798 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlaneThreePnt(thePnt1, thePnt2, thePnt3, theTrimSize);
799 endService( " GEOM_Superv_i::MakePlaneThreePnt");
803 //=============================================================================
805 //=============================================================================
806 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlanePntVec (GEOM::GEOM_Object_ptr thePnt,
807 GEOM::GEOM_Object_ptr theVec,
808 CORBA::Double theTrimSize)
810 beginService( " GEOM_Superv_i::MakePlanePntVec" );
811 MESSAGE("GEOM_Superv_i::MakePlanePntVec");
813 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlanePntVec(thePnt, theVec, theTrimSize);
814 endService( " GEOM_Superv_i::MakePlanePntVec" );
818 //=============================================================================
820 //=============================================================================
821 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneFace (GEOM::GEOM_Object_ptr theFace,
822 CORBA::Double theTrimSize)
824 beginService( " GEOM_Superv_i::MakePlaneFace" );
825 MESSAGE("GEOM_Superv_i::MakePlaneFace");
827 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlaneFace(theFace, theTrimSize);
828 endService( " GEOM_Superv_i::MakePlaneFace" );
832 //=============================================================================
834 //=============================================================================
835 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlane2Vec (GEOM::GEOM_Object_ptr theVec1,
836 GEOM::GEOM_Object_ptr theVec2,
837 CORBA::Double theTrimSize)
839 beginService( " GEOM_Superv_i::MakePlane2Vec" );
840 MESSAGE("GEOM_Superv_i::MakePlane2Vec");
842 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlane2Vec(theVec1, theVec2, theTrimSize);
843 endService( " GEOM_Superv_i::MakePlane2Vec" );
847 //=============================================================================
849 //=============================================================================
850 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneLCS (GEOM::GEOM_Object_ptr theLCS,
851 CORBA::Double theTrimSize,
852 CORBA::Double theOrientation)
854 beginService( " GEOM_Superv_i::MakePlaneLCS" );
855 MESSAGE("GEOM_Superv_i::MakePlaneLCS");
857 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlaneLCS(theLCS, theTrimSize, theOrientation);
858 endService( " GEOM_Superv_i::MakePlaneLCS" );
862 //=============================================================================
864 //=============================================================================
865 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarker
866 (CORBA::Double theOX , CORBA::Double theOY , CORBA::Double theOZ,
867 CORBA::Double theXDX, CORBA::Double theXDY, CORBA::Double theXDZ,
868 CORBA::Double theYDX, CORBA::Double theYDY, CORBA::Double theYDZ)
870 beginService( " GEOM_Superv_i::MakeMarker" );
871 MESSAGE("GEOM_Superv_i::MakeMarker");
873 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeMarker(theOX, theOY, theOZ, theXDX, theXDY, theXDZ, theYDX, theYDY, theYDZ);
874 endService( " GEOM_Superv_i::MakeMarker" );
878 //=============================================================================
879 // MakeMarkerFromShape:
880 //=============================================================================
881 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarkerFromShape (GEOM::GEOM_Object_ptr theShape)
883 beginService( " GEOM_Superv_i::MakeMarkerFromShape" );
884 MESSAGE("GEOM_Superv_i::MakeMarkerFromShape");
886 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeMarkerFromShape(theShape);
887 endService( " GEOM_Superv_i::MakeMarkerFromShape" );
891 //=============================================================================
892 // MakeMarkerPntTwoVec:
893 //=============================================================================
894 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarkerPntTwoVec (GEOM::GEOM_Object_ptr theOrigin,
895 GEOM::GEOM_Object_ptr theXVec,
896 GEOM::GEOM_Object_ptr theYVec)
898 beginService( " GEOM_Superv_i::MakeMarkerPntTwoVec" );
899 MESSAGE("GEOM_Superv_i::MakeMarkerPntTwoVec");
901 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeMarkerPntTwoVec(theOrigin, theXVec, theYVec);
902 endService( " GEOM_Superv_i::MakeMarkerPntTwoVec" );
906 //=============================================================================
907 // MakeTangentPlaneOnFace:
908 //=============================================================================
909 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTangentPlaneOnFace (GEOM::GEOM_Object_ptr theFace,
910 CORBA::Double theParameterU,
911 CORBA::Double theParameterV,
912 CORBA::Double theTrimSize)
914 beginService( " GEOM_Superv_i::MakeTangentPlaneOnFace" );
915 MESSAGE("GEOM_Superv_i::MakeTangentPlaneOnFace");
917 GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeTangentPlaneOnFace(theFace, theParameterU,theParameterV,theTrimSize);
918 endService( " GEOM_Superv_i::MakeTangentPlaneOnFace" );
922 //================= Primitives Construction : 3DPrimOperations ================
923 //=============================================================================
925 //=============================================================================
926 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBox (CORBA::Double theX1,
933 beginService( " GEOM_Superv_i::MakeBox" );
934 MESSAGE("GEOM_Superv_i::MakeBox");
937 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxTwoPnt(myBasicOp->MakePointXYZ(theX1, theY1, theZ1),
938 myBasicOp->MakePointXYZ(theX2, theY2, theZ2));
939 endService( " GEOM_Superv_i::MakeBox" );
943 //=============================================================================
945 //=============================================================================
946 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxDXDYDZ (CORBA::Double theDX,
950 beginService( " GEOM_Superv_i::MakeBoxDXDYDZ" );
951 MESSAGE("GEOM_Superv_i::MakeBoxDXDYDZ");
953 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxDXDYDZ(theDX, theDY, theDZ);
954 endService( " GEOM_Superv_i::MakeBoxDXDYDZ" );
958 //=============================================================================
960 //=============================================================================
961 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
962 GEOM::GEOM_Object_ptr thePnt2)
964 beginService( " GEOM_Superv_i::MakeBoxTwoPnt" );
965 MESSAGE("GEOM_Superv_i::MakeBoxTwoPnt");
967 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxTwoPnt(thePnt1, thePnt2);
968 endService( " GEOM_Superv_i::MakeBoxTwoPnt" );
972 //=============================================================================
974 //=============================================================================
975 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceHW (CORBA::Double theH,
977 CORBA::Short theOrientation)
979 beginService( " GEOM_Superv_i::MakeFaceHW" );
980 MESSAGE("GEOM_Superv_i::MakeFaceHW");
982 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeFaceHW(theH, theW, theOrientation);
983 endService( " GEOM_Superv_i::MakeFaceHW" );
987 //=============================================================================
989 //=============================================================================
990 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceObjHW (GEOM::GEOM_Object_ptr theObj,
994 beginService( " GEOM_Superv_i::MakeFaceObjHW" );
995 MESSAGE("GEOM_Superv_i::MakeFaceObjHW");
997 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeFaceObjHW(theObj, theH, theW);
998 endService( " GEOM_Superv_i::MakeFaceObjHW" );
1002 //=============================================================================
1004 //=============================================================================
1005 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskPntVecR (GEOM::GEOM_Object_ptr theCenter,
1006 GEOM::GEOM_Object_ptr theVector,
1009 beginService( " GEOM_Superv_i::MakeDiskPntVecR" );
1010 MESSAGE("GEOM_Superv_i::MakeDiskPntVecR");
1012 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeDiskPntVecR(theCenter, theVector, theR);
1013 endService( " GEOM_Superv_i::MakeDiskPntVecR" );
1017 //=============================================================================
1018 // MakeDiskThreePnt:
1019 //=============================================================================
1020 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskThreePnt (GEOM::GEOM_Object_ptr thePnt1,
1021 GEOM::GEOM_Object_ptr thePnt2,
1022 GEOM::GEOM_Object_ptr thePnt3)
1024 beginService( " GEOM_Superv_i::MakeDiskThreePnt" );
1025 MESSAGE("GEOM_Superv_i::MakeDiskThreePnt");
1027 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeDiskThreePnt(thePnt1, thePnt2, thePnt3);
1028 endService( " GEOM_Superv_i::MakeDiskThreePnt" );
1032 //=============================================================================
1034 //=============================================================================
1035 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskR (CORBA::Double theR,
1036 CORBA::Short theOrientation)
1038 beginService( " GEOM_Superv_i::MakeDiskR" );
1039 MESSAGE("GEOM_Superv_i::MakeDiskR");
1041 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeDiskR(theR, theOrientation);
1042 endService( " GEOM_Superv_i::MakeDiskR" );
1046 //=============================================================================
1047 // MakeCylinderPntVecRH:
1048 //=============================================================================
1049 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
1050 GEOM::GEOM_Object_ptr theAxis,
1051 CORBA::Double theRadius,
1052 CORBA::Double theHeight)
1054 beginService( " GEOM_Superv_i::MakeCylinderPntVecRH" );
1055 MESSAGE("GEOM_Superv_i::MakeCylinderPntVecRH");
1057 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeCylinderPntVecRH(thePnt, theAxis, theRadius, theHeight);
1058 endService( " GEOM_Superv_i::MakeCylinderPntVecRH" );
1062 //=============================================================================
1064 //=============================================================================
1065 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderRH (CORBA::Double theR,
1068 beginService( " GEOM_Superv_i::MakeCylinderRH" );
1069 MESSAGE("GEOM_Superv_i::MakeCylinderRH");
1071 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeCylinderRH(theR, theH);
1072 endService( " GEOM_Superv_i::MakeCylinderRH" );
1076 //=============================================================================
1078 //=============================================================================
1079 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSphere (CORBA::Double theX,
1082 CORBA::Double theRadius)
1084 beginService( " GEOM_Superv_i::MakeSphepe" );
1085 MESSAGE("GEOM_Superv_i::MakeSphepe");
1088 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSpherePntR(myBasicOp->MakePointXYZ(theX, theY, theZ), theRadius);
1089 endService( " GEOM_Superv_i::MakeSphepe" );
1093 //=============================================================================
1095 //=============================================================================
1096 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSphereR (CORBA::Double theR)
1098 beginService( " GEOM_Superv_i::MakeSphereR" );
1099 MESSAGE("GEOM_Superv_i::MakeSphereR");
1101 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSphereR(theR);
1102 endService( " GEOM_Superv_i::MakeSphereR" );
1106 //=============================================================================
1108 //=============================================================================
1109 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
1112 beginService( " GEOM_Superv_i::MakeSpherePntR" );
1113 MESSAGE("GEOM_Superv_i::MakeSpherePntR");
1115 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSpherePntR(thePnt, theR);
1116 endService( " GEOM_Superv_i::MakeSpherePntR" );
1120 //=============================================================================
1121 // MakeTorusPntVecRR:
1122 //=============================================================================
1123 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTorusPntVecRR (GEOM::GEOM_Object_ptr thePnt,
1124 GEOM::GEOM_Object_ptr theVec,
1125 CORBA::Double theRMajor,
1126 CORBA::Double theRMinor)
1128 beginService( " GEOM_Superv_i::MakeTorusPntVecRR" );
1129 MESSAGE("GEOM_Superv_i::MakeTorusPntVecRR");
1131 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeTorusPntVecRR(thePnt, theVec, theRMajor, theRMinor);
1132 endService( " GEOM_Superv_i::MakeTorusPntVecRR" );
1136 //=============================================================================
1138 //=============================================================================
1139 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTorusRR (CORBA::Double theRMajor,
1140 CORBA::Double theRMinor)
1142 beginService( " GEOM_Superv_i::MakeTorusRR" );
1143 MESSAGE("GEOM_Superv_i::MakeTorusRR");
1145 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeTorusRR(theRMajor, theRMinor);
1146 endService( " GEOM_Superv_i::MakeTorusRR" );
1150 //=============================================================================
1151 // MakeConePntVecR1R2H:
1152 //=============================================================================
1153 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
1154 GEOM::GEOM_Object_ptr theAxis,
1155 CORBA::Double theR1,
1156 CORBA::Double theR2,
1157 CORBA::Double theHeight)
1159 beginService( " GEOM_Superv_i::MakeConePntVecR1R2H" );
1160 MESSAGE("GEOM_Superv_i::MakeConePntVecR1R2H");
1162 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeConePntVecR1R2H(thePnt, theAxis, theR1, theR2, theHeight);
1163 endService( " GEOM_Superv_i::MakeConePntVecR1R2H" );
1167 //=============================================================================
1169 //=============================================================================
1170 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeConeR1R2H (CORBA::Double theR1,
1171 CORBA::Double theR2,
1172 CORBA::Double theHeight)
1174 beginService( " GEOM_Superv_i::MakeConeR1R2H" );
1175 MESSAGE("GEOM_Superv_i::MakeConeR1R2H");
1177 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeConeR1R2H(theR1, theR2, theHeight);
1178 endService( " GEOM_Superv_i::MakeConeR1R2H" );
1182 //=============================================================================
1184 //=============================================================================
1185 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
1186 GEOM::GEOM_Object_ptr theVec,
1189 beginService( " GEOM_Superv_i::MakePrismVecH" );
1190 MESSAGE("GEOM_Superv_i::MakePrismVecH");
1192 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismVecH(theBase, theVec, theH);
1193 endService( " GEOM_Superv_i::MakePrismVecH" );
1197 //=============================================================================
1198 // MakePrismVecH2Ways:
1199 //=============================================================================
1200 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
1201 GEOM::GEOM_Object_ptr theVec,
1204 beginService( " GEOM_Superv_i::MakePrismVecH2Ways" );
1205 MESSAGE("GEOM_Superv_i::MakePrismVecH2Ways");
1207 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismVecH2Ways(theBase, theVec, theH);
1208 endService( " GEOM_Superv_i::MakePrismVecH2Ways" );
1212 //=============================================================================
1214 //=============================================================================
1215 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
1216 GEOM::GEOM_Object_ptr thePoint1,
1217 GEOM::GEOM_Object_ptr thePoint2)
1219 beginService( " GEOM_Superv_i::MakePrismTwoPnt" );
1220 MESSAGE("GEOM_Superv_i::MakePrismTwoPnt");
1222 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismTwoPnt(theBase, thePoint1, thePoint2);
1223 endService( " GEOM_Superv_i::MakePrismTwoPnt" );
1227 //=============================================================================
1228 // MakePrismTwoPnt2Ways:
1229 //=============================================================================
1230 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr theBase,
1231 GEOM::GEOM_Object_ptr thePoint1,
1232 GEOM::GEOM_Object_ptr thePoint2)
1234 beginService( " GEOM_Superv_i::MakePrismTwoPnt2Ways" );
1235 MESSAGE("GEOM_Superv_i::MakePrismTwoPnt2Ways");
1237 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismTwoPnt2Ways(theBase, thePoint1, thePoint2);
1238 endService( " GEOM_Superv_i::MakePrismTwoPnt2Ways" );
1242 //=============================================================================
1244 //=============================================================================
1245 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismDXDYDZ (GEOM::GEOM_Object_ptr theBase,
1246 CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
1248 beginService( " GEOM_Superv_i::MakePrismDXDYDZ" );
1249 MESSAGE("GEOM_Superv_i::MakePrismDXDYDZ");
1251 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismDXDYDZ(theBase, theDX, theDY, theDZ);
1252 endService( " GEOM_Superv_i::MakePrismDXDYDZ" );
1256 //=============================================================================
1258 //=============================================================================
1259 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismDXDYDZ2Ways (GEOM::GEOM_Object_ptr theBase,
1260 CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
1262 beginService( " GEOM_Superv_i::MakePrismDXDYDZ2Ways" );
1263 MESSAGE("GEOM_Superv_i::MakePrismDXDYDZ2Ways");
1265 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismDXDYDZ2Ways(theBase, theDX, theDY, theDZ);
1266 endService( " GEOM_Superv_i::MakePrismDXDYDZ2Ways" );
1270 //=============================================================================
1272 //=============================================================================
1273 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipe (GEOM::GEOM_Object_ptr theBase,
1274 GEOM::GEOM_Object_ptr thePath)
1276 beginService( " GEOM_Superv_i::MakePipe" );
1277 MESSAGE("GEOM_Superv_i::MakePipe");
1279 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePipe(theBase, thePath);
1280 endService( " GEOM_Superv_i::MakePipe" );
1284 //=============================================================================
1285 // MakeRevolutionAxisAngle:
1286 //=============================================================================
1287 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
1288 GEOM::GEOM_Object_ptr theAxis,
1289 CORBA::Double theAngle)
1291 beginService( " GEOM_Superv_i::MakeRevolutionAxisAngle" );
1292 MESSAGE("GEOM_Superv_i::MakeRevolutionAxisAngle");
1294 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeRevolutionAxisAngle(theBase, theAxis, theAngle);
1295 endService( " GEOM_Superv_i::MakeRevolutionAxisAngle" );
1299 //=============================================================================
1300 // MakeRevolutionAxisAngle:
1301 //=============================================================================
1302 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
1303 GEOM::GEOM_Object_ptr theAxis,
1304 CORBA::Double theAngle)
1306 beginService( " GEOM_Superv_i::MakeRevolutionAxisAngle2Ways" );
1307 MESSAGE("GEOM_Superv_i::MakeRevolutionAxisAngle2Ways");
1309 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeRevolutionAxisAngle2Ways(theBase, theAxis, theAngle);
1310 endService( " GEOM_Superv_i::MakeRevolutionAxisAngle2Ways" );
1314 //=============================================================================
1316 //=============================================================================
1317 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilling (GEOM::GEOM_Object_ptr theShape,
1318 CORBA::Long theMinDeg,
1319 CORBA::Long theMaxDeg,
1320 CORBA::Double theTol2D,
1321 CORBA::Double theTol3D,
1322 CORBA::Long theNbIter,
1323 GEOM::filling_oper_method theMethod,
1324 CORBA::Boolean theApprox)
1326 beginService( " GEOM_Superv_i::MakeFilling" );
1327 MESSAGE("GEOM_Superv_i::MakeFilling");
1329 GEOM::GEOM_Object_ptr anObj =
1330 my3DPrimOp->MakeFilling(theShape, theMinDeg, theMaxDeg, theTol2D, theTol3D,
1331 theNbIter, theMethod, theApprox);
1332 endService( " GEOM_Superv_i::MakeFilling" );
1336 //============================= BooleanOperations =============================
1337 //=============================================================================
1339 //=============================================================================
1340 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoolean
1341 (GEOM::GEOM_Object_ptr theShape1,
1342 GEOM::GEOM_Object_ptr theShape2,
1343 CORBA::Long theOperation)
1345 beginService( " GEOM_Superv_i::MakeBoolean" );
1346 // theOperation indicates the operation to be done:
1347 // 1 - Common, 2 - Cut, 3 - Fuse, 4 - Section
1348 MESSAGE("GEOM_Superv_i::MakeBoolean");
1350 GEOM::GEOM_Object_ptr anObj =
1351 myBoolOp->MakeBoolean(theShape1, theShape2, theOperation, false);
1352 endService( " GEOM_Superv_i::MakeBoolean" );
1356 //=============================================================================
1357 // MakeThruSections:
1358 //=============================================================================
1359 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeThruSections(const GEOM::ListOfGO& theSeqSections,
1360 CORBA::Boolean theModeSolid,
1361 CORBA::Double thePreci,
1362 CORBA::Boolean theRuled)
1364 beginService( " GEOM_Superv_i::MakeThruSections" );
1365 MESSAGE("GEOM_Superv_i::MakeThruSections");
1367 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeThruSections(theSeqSections, theModeSolid,thePreci,theRuled);
1368 endService( " GEOM_Superv_i::MakeThruSections" );
1372 //=============================================================================
1374 //=============================================================================
1375 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeWithDifferentSections
1376 (const GEOM::ListOfGO& theBases,
1377 const GEOM::ListOfGO& theLocations,
1378 GEOM::GEOM_Object_ptr thePath,
1379 CORBA::Boolean theWithContact,
1380 CORBA::Boolean theWithCorrections)
1382 beginService( " GEOM_Superv_i::MakePipeWithDifferentSections" );
1383 MESSAGE("GEOM_Superv_i::MakePipeWithDifferentSections");
1385 GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePipeWithDifferentSections(theBases,theLocations, thePath,theWithContact,theWithCorrections);
1386 endService( " GEOM_Superv_i::MakePipeWithDifferentSections" );
1391 //=============================================================================
1393 //=============================================================================
1394 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeWithShellSections
1395 (const GEOM::ListOfGO& theBases,
1396 const GEOM::ListOfGO& theSubBases,
1397 const GEOM::ListOfGO& theLocations,
1398 GEOM::GEOM_Object_ptr thePath,
1399 CORBA::Boolean theWithContact,
1400 CORBA::Boolean theWithCorrections)
1402 beginService( " GEOM_Superv_i::MakePipeWithShellSections" );
1403 MESSAGE("GEOM_Superv_i::MakePipeWithShellSections");
1405 GEOM::GEOM_Object_ptr anObj =
1406 my3DPrimOp->MakePipeWithShellSections(theBases, theSubBases,
1407 theLocations, thePath,
1408 theWithContact, theWithCorrections);
1409 endService( " GEOM_Superv_i::MakePipeWithShellSections" );
1414 //=============================================================================
1416 //=============================================================================
1417 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeShellsWithoutPath
1418 (const GEOM::ListOfGO& theBases,
1419 const GEOM::ListOfGO& theLocations)
1421 beginService( " GEOM_Superv_i::MakePipeShellsWithoutPath" );
1422 MESSAGE("GEOM_Superv_i::MakePipeShellsWithoutPath");
1424 GEOM::GEOM_Object_ptr anObj =
1425 my3DPrimOp->MakePipeShellsWithoutPath(theBases,theLocations);
1426 endService( " GEOM_Superv_i::MakePipeShellsWithoutPath" );
1431 //=============================================================================
1433 //=============================================================================
1434 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeBiNormalAlongVector
1435 (GEOM::GEOM_Object_ptr theBase,
1436 GEOM::GEOM_Object_ptr thePath,
1437 GEOM::GEOM_Object_ptr theVec)
1439 beginService( " GEOM_Superv_i::MakePipeBiNormalAlongVector" );
1440 MESSAGE("GEOM_Superv_i::MakePipeBiNormalAlongVector");
1442 GEOM::GEOM_Object_ptr anObj =
1443 my3DPrimOp->MakePipeBiNormalAlongVector(theBase, thePath, theVec);
1444 endService( " GEOM_Superv_i::MakePipeBiNormalAlongVector" );
1449 //=============================================================================
1451 //=============================================================================
1452 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFuse
1453 (GEOM::GEOM_Object_ptr theShape1,
1454 GEOM::GEOM_Object_ptr theShape2)
1456 beginService( " GEOM_Superv_i::MakeFuse" );
1457 MESSAGE("GEOM_Superv_i::MakeFuse");
1459 GEOM::GEOM_Object_ptr anObj =
1460 myBoolOp->MakeBoolean(theShape1, theShape2, 3, false);
1461 endService( " GEOM_Superv_i::MakeFuse" );
1465 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCommon (GEOM::GEOM_Object_ptr theShape1,
1466 GEOM::GEOM_Object_ptr theShape2)
1468 beginService( " GEOM_Superv_i::MakeCommon" );
1469 MESSAGE("GEOM_Superv_i::MakeCommon");
1471 GEOM::GEOM_Object_ptr anObj =
1472 myBoolOp->MakeBoolean(theShape1, theShape2, 1, false);
1473 endService( " GEOM_Superv_i::MakeCommon" );
1477 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCut (GEOM::GEOM_Object_ptr theShape1,
1478 GEOM::GEOM_Object_ptr theShape2)
1480 beginService( " GEOM_Superv_i::MakeCut" );
1481 MESSAGE("GEOM_Superv_i::MakeCut");
1483 GEOM::GEOM_Object_ptr anObj =
1484 myBoolOp->MakeBoolean(theShape1, theShape2, 2, false);
1485 endService( " GEOM_Superv_i::MakeCut" );
1489 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSection (GEOM::GEOM_Object_ptr theShape1,
1490 GEOM::GEOM_Object_ptr theShape2)
1492 beginService( " GEOM_Superv_i::MakeCut" );
1493 MESSAGE("GEOM_Superv_i::MakeCut");
1495 GEOM::GEOM_Object_ptr anObj =
1496 myBoolOp->MakeBoolean(theShape1, theShape2, 4, false);
1497 endService( " GEOM_Superv_i::MakeCut" );
1501 //=============================================================================
1503 //=============================================================================
1504 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePartition (GEOM::GEOM_List_ptr theShapes,
1505 GEOM::GEOM_List_ptr theTools,
1506 GEOM::GEOM_List_ptr theKeepInside,
1507 GEOM::GEOM_List_ptr theRemoveInside,
1508 CORBA::Short theLimit,
1509 CORBA::Boolean theRemoveWebs,
1510 GEOM::GEOM_List_ptr theMaterials,
1511 CORBA::Short theKeepNonlimitShapes)
1513 beginService( " GEOM_Superv_i::MakePartition" );
1514 MESSAGE("GEOM_Superv_i::MakePartition");
1515 GEOM_List_i<GEOM::ListOfGO>* aListImplS =
1516 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShapes, myPOA).in());
1517 GEOM_List_i<GEOM::ListOfGO>* aListImplT =
1518 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theTools, myPOA).in());
1519 GEOM_List_i<GEOM::ListOfGO>* aListImplKI =
1520 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theKeepInside, myPOA).in());
1521 GEOM_List_i<GEOM::ListOfGO>* aListImplRI =
1522 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theRemoveInside, myPOA).in());
1523 GEOM_List_i<GEOM::ListOfLong>* aListImplM =
1524 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theMaterials, myPOA).in());
1525 if (aListImplS && aListImplT && aListImplKI && aListImplRI && aListImplM) {
1527 GEOM::GEOM_Object_ptr anObj =
1528 myBoolOp->MakePartition(aListImplS->GetList(), aListImplT->GetList(),
1529 aListImplKI->GetList(), aListImplRI->GetList(),
1530 theLimit, theRemoveWebs, aListImplM->GetList(),
1531 theKeepNonlimitShapes, false);
1532 endService( " GEOM_Superv_i::MakePartition" );
1535 endService( " GEOM_Superv_i::MakePartition" );
1539 //=============================================================================
1540 // MakeHalfPartition:
1541 //=============================================================================
1542 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHalfPartition (GEOM::GEOM_Object_ptr theShape,
1543 GEOM::GEOM_Object_ptr thePlane)
1545 beginService( " GEOM_Superv_i::MakeHalfPartition" );
1546 MESSAGE("GEOM_Superv_i::MakeHalfPartition");
1548 GEOM::GEOM_Object_ptr anObj =
1549 myBoolOp->MakeHalfPartition(theShape, thePlane, false);
1550 endService( " GEOM_Superv_i::MakeHalfPartition" );
1554 //============================== InsertOperations =============================
1555 //=============================================================================
1557 //=============================================================================
1558 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCopy (GEOM::GEOM_Object_ptr theOriginal)
1560 beginService( " GEOM_Superv_i::MakeCopy" );
1561 MESSAGE("GEOM_Superv_i::MakeCopy");
1563 GEOM::GEOM_Object_ptr anObj = myInsOp->MakeCopy(theOriginal);
1564 endService( " GEOM_Superv_i::MakeCopy" );
1568 //=============================================================================
1570 //=============================================================================
1571 void GEOM_Superv_i::Export (GEOM::GEOM_Object_ptr theObject,
1572 const char* theFileName,
1573 const char* theFormatName)
1575 beginService( " GEOM_Superv_i::Export" );
1576 MESSAGE("GEOM_Superv_i::Export");
1578 myInsOp->Export(theObject, theFileName, theFormatName);
1579 endService( " GEOM_Superv_i::Export" );
1582 //=============================================================================
1584 //=============================================================================
1585 GEOM::GEOM_Object_ptr GEOM_Superv_i::ImportFile (const char* theFileName,
1586 const char* theFormatName)
1588 beginService( " GEOM_Superv_i::ImportFile" );
1589 MESSAGE("GEOM_Superv_i::ImportFile");
1591 GEOM::GEOM_Object_ptr anObj = myInsOp->ImportFile(theFileName, theFormatName);
1592 endService( " GEOM_Superv_i::ImportFile" );
1596 //=============================================================================
1597 // ImportTranslators:
1598 //=============================================================================
1599 void GEOM_Superv_i::ImportTranslators (GEOM::string_array_out theFormats,
1600 GEOM::string_array_out thePatterns)
1602 beginService( " GEOM_Superv_i::ImportTranslators" );
1603 MESSAGE("GEOM_Superv_i::ImportTranslators");
1605 myInsOp->ImportTranslators(theFormats, thePatterns);
1606 endService( " GEOM_Superv_i::ImportTranslators" );
1609 //=============================================================================
1610 // ExportTranslators:
1611 //=============================================================================
1612 void GEOM_Superv_i::ExportTranslators (GEOM::string_array_out theFormats,
1613 GEOM::string_array_out thePatterns)
1615 beginService( " GEOM_Superv_i::ExportTranslators" );
1616 MESSAGE("GEOM_Superv_i::ExportTranslators");
1618 myInsOp->ExportTranslators(theFormats, thePatterns);
1619 endService( " GEOM_Superv_i::ExportTranslators" );
1622 //============================= TransformOperations ===========================
1623 //=============================================================================
1624 // TranslateTwoPoints:
1625 //=============================================================================
1626 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
1627 GEOM::GEOM_Object_ptr thePoint1,
1628 GEOM::GEOM_Object_ptr thePoint2)
1630 beginService( " GEOM_Superv_i::TranslateTwoPoints" );
1631 MESSAGE("GEOM_Superv_i::TranslateTwoPoints");
1633 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateTwoPoints(theObject, thePoint1, thePoint2);
1634 endService( " GEOM_Superv_i::TranslateTwoPoints" );
1638 //=============================================================================
1639 // TranslateTwoPointsCopy:
1640 //=============================================================================
1641 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
1642 GEOM::GEOM_Object_ptr thePoint1,
1643 GEOM::GEOM_Object_ptr thePoint2)
1645 beginService( " GEOM_Superv_i::TranslateTwoPointsCopy" );
1646 MESSAGE("GEOM_Superv_i::TranslateTwoPointsCopy");
1648 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateTwoPointsCopy(theObject, thePoint1, thePoint2);
1649 endService( " GEOM_Superv_i::TranslateTwoPointsCopy" );
1653 //=============================================================================
1655 //=============================================================================
1656 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject,
1657 CORBA::Double theDX,
1658 CORBA::Double theDY,
1659 CORBA::Double theDZ)
1661 beginService( " GEOM_Superv_i::TranslateDXDYDZ" );
1662 MESSAGE("GEOM_Superv_i::TranslateDXDYDZ");
1664 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateDXDYDZ(theObject, theDX, theDY, theDZ);
1665 endService( " GEOM_Superv_i::TranslateDXDYDZ" );
1669 //=============================================================================
1670 // TranslateDXDYDZCopy:
1671 //=============================================================================
1672 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject,
1673 CORBA::Double theDX,
1674 CORBA::Double theDY,
1675 CORBA::Double theDZ)
1677 beginService( " GEOM_Superv_i::TranslateDXDYDZCopy" );
1678 MESSAGE("GEOM_Superv_i::TranslateDXDYDZCopy");
1680 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateDXDYDZCopy(theObject, theDX, theDY, theDZ);
1681 endService( " GEOM_Superv_i::TranslateDXDYDZCopy" );
1685 //=============================================================================
1687 //=============================================================================
1688 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVector (GEOM::GEOM_Object_ptr theObject,
1689 GEOM::GEOM_Object_ptr theVector)
1691 beginService( " GEOM_Superv_i::TranslateVector" );
1692 MESSAGE("GEOM_Superv_i::TranslateVector");
1694 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVector(theObject, theVector);
1695 endService( " GEOM_Superv_i::TranslateVector" );
1699 //=============================================================================
1700 // TranslateVectorCopy:
1701 //=============================================================================
1702 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
1703 GEOM::GEOM_Object_ptr theVector)
1705 beginService( " GEOM_Superv_i::TranslateVectorCopy" );
1706 MESSAGE("GEOM_Superv_i::TranslateVectorCopy");
1708 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVectorCopy(theObject, theVector);
1709 endService( " GEOM_Superv_i::TranslateVectorCopy" );
1713 //=============================================================================
1714 // TranslateVectorDistance:
1715 //=============================================================================
1716 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVectorDistance (GEOM::GEOM_Object_ptr theObject,
1717 GEOM::GEOM_Object_ptr theVector,
1718 CORBA::Double theDistance,
1719 CORBA::Boolean theCopy)
1721 beginService( " GEOM_Superv_i::TranslateVectorDistance" );
1722 MESSAGE("GEOM_Superv_i::TranslateVectorDistance");
1724 GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVectorDistance(theObject,
1725 theVector, theDistance, theCopy);
1726 endService( " GEOM_Superv_i::TranslateVectorDistance" );
1730 //=============================================================================
1731 // MultiTranslate1D:
1732 //=============================================================================
1733 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiTranslate1D (GEOM::GEOM_Object_ptr theObject,
1734 GEOM::GEOM_Object_ptr theVector,
1735 CORBA::Double theStep,
1736 CORBA::Long theNbTimes)
1738 beginService( " GEOM_Superv_i::MultiTranslate1D" );
1739 MESSAGE("GEOM_Superv_i::MultiTranslate1D");
1741 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiTranslate1D(theObject, theVector, theStep, theNbTimes);
1742 endService( " GEOM_Superv_i::MultiTranslate1D" );
1746 //=============================================================================
1747 // MultiTranslate2D:
1748 //=============================================================================
1749 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiTranslate2D (GEOM::GEOM_Object_ptr theObject,
1750 GEOM::GEOM_Object_ptr theVector1,
1751 CORBA::Double theStep1,
1752 CORBA::Long theNbTimes1,
1753 GEOM::GEOM_Object_ptr theVector2,
1754 CORBA::Double theStep2,
1755 CORBA::Long theNbTimes2)
1757 beginService( " GEOM_Superv_i::MultiTranslate2D" );
1758 MESSAGE("GEOM_Superv_i::MultiTranslate2D");
1760 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiTranslate2D(theObject, theVector1, theStep1, theNbTimes1,
1761 theVector2, theStep2, theNbTimes2);
1762 endService( " GEOM_Superv_i::MultiTranslate2D" );
1766 //=============================================================================
1768 //=============================================================================
1769 GEOM::GEOM_Object_ptr GEOM_Superv_i::Rotate (GEOM::GEOM_Object_ptr theObject,
1770 GEOM::GEOM_Object_ptr theAxis,
1771 CORBA::Double theAngle)
1773 beginService( " GEOM_Superv_i::Rotate" );
1774 MESSAGE("GEOM_Superv_i::Rotate");
1776 GEOM::GEOM_Object_ptr anObj = myTransfOp->Rotate(theObject, theAxis, theAngle);
1777 endService( " GEOM_Superv_i::Rotate" );
1781 //=============================================================================
1783 //=============================================================================
1784 GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateCopy (GEOM::GEOM_Object_ptr theObject,
1785 GEOM::GEOM_Object_ptr theAxis,
1786 CORBA::Double theAngle)
1788 beginService( " GEOM_Superv_i::RotateCopy" );
1789 MESSAGE("GEOM_Superv_i::RotateCopy");
1791 GEOM::GEOM_Object_ptr anObj = myTransfOp->RotateCopy(theObject, theAxis, theAngle);
1792 endService( " GEOM_Superv_i::RotateCopy" );
1795 //=============================================================================
1796 // RotateThreePoints:
1797 //=============================================================================
1798 GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateThreePoints (GEOM::GEOM_Object_ptr theObject,
1799 GEOM::GEOM_Object_ptr theCentPoint,
1800 GEOM::GEOM_Object_ptr thePoint1,
1801 GEOM::GEOM_Object_ptr thePoint2)
1803 beginService( " GEOM_Superv_i::RotateThreePoints" );
1804 MESSAGE("GEOM_Superv_i::RotateThreePoints");
1806 GEOM::GEOM_Object_ptr anObj = myTransfOp->RotateThreePoints(theObject, theCentPoint, thePoint1, thePoint2);
1807 endService( " GEOM_Superv_i::RotateThreePoints" );
1811 //=============================================================================
1812 // RotateThreePointsCopy:
1813 //=============================================================================
1814 GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateThreePointsCopy (GEOM::GEOM_Object_ptr theObject,
1815 GEOM::GEOM_Object_ptr theCentPoint,
1816 GEOM::GEOM_Object_ptr thePoint1,
1817 GEOM::GEOM_Object_ptr thePoint2)
1819 beginService( " GEOM_Superv_i::RotateThreePointsCopy" );
1820 MESSAGE("GEOM_Superv_i::RotateThreePointsCopy");
1822 GEOM::GEOM_Object_ptr anObj = myTransfOp->RotateThreePointsCopy(theObject, theCentPoint, thePoint1, thePoint2);
1823 endService( " GEOM_Superv_i::RotateThreePointsCopy" );
1827 //=============================================================================
1829 //=============================================================================
1830 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
1831 GEOM::GEOM_Object_ptr theAxis,
1832 CORBA::Long theNbTimes)
1834 beginService( " GEOM_Superv_i::MultiRotate1D" );
1835 MESSAGE("GEOM_Superv_i::MultiRotate1D");
1837 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiRotate1D(theObject, theAxis, theNbTimes);
1838 endService( " GEOM_Superv_i::MultiRotate1D" );
1842 //=============================================================================
1844 //=============================================================================
1845 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
1846 GEOM::GEOM_Object_ptr theAxis,
1847 CORBA::Double theAngle,
1848 CORBA::Long theNbTimes1,
1849 CORBA::Double theStep,
1850 CORBA::Long theNbTimes2)
1852 beginService( " GEOM_Superv_i::MultiRotate2D" );
1853 MESSAGE("GEOM_Superv_i::MultiRotate2D");
1855 GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiRotate2D(theObject, theAxis, theAngle, theNbTimes1, theStep, theNbTimes2);
1856 endService( " GEOM_Superv_i::MultiRotate2D" );
1860 //=============================================================================
1862 //=============================================================================
1863 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlane (GEOM::GEOM_Object_ptr theObject,
1864 GEOM::GEOM_Object_ptr thePlane)
1866 beginService( " GEOM_Superv_i::MirrorPlane" );
1867 MESSAGE("GEOM_Superv_i::MirrorPlane");
1869 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPlane(theObject, thePlane);
1870 endService( " GEOM_Superv_i::MirrorPlane" );
1874 //=============================================================================
1876 //=============================================================================
1877 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject,
1878 GEOM::GEOM_Object_ptr thePlane)
1880 beginService( " GEOM_Superv_i::MirrorPlaneCopy" );
1881 MESSAGE("GEOM_Superv_i::MirrorPlaneCopy");
1883 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPlaneCopy(theObject, thePlane);
1884 endService( " GEOM_Superv_i::MirrorPlaneCopy" );
1888 //=============================================================================
1890 //=============================================================================
1891 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxis (GEOM::GEOM_Object_ptr theObject,
1892 GEOM::GEOM_Object_ptr theAxis)
1894 beginService( " GEOM_Superv_i::MirrorAxis" );
1895 MESSAGE("GEOM_Superv_i::MirrorAxis");
1897 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorAxis(theObject, theAxis);
1898 endService( " GEOM_Superv_i::MirrorAxis" );
1902 //=============================================================================
1904 //=============================================================================
1905 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject,
1906 GEOM::GEOM_Object_ptr theAxis)
1908 beginService( " GEOM_Superv_i::MirrorAxisCopy" );
1909 MESSAGE("GEOM_Superv_i::MirrorAxisCopy");
1911 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorAxisCopy(theObject, theAxis);
1912 endService( " GEOM_Superv_i::MirrorAxisCopy" );
1916 //=============================================================================
1918 //=============================================================================
1919 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPoint (GEOM::GEOM_Object_ptr theObject,
1920 GEOM::GEOM_Object_ptr thePoint)
1922 beginService( " GEOM_Superv_i::MirrorPoint" );
1923 MESSAGE("GEOM_Superv_i::MirrorPoint");
1925 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPoint(theObject, thePoint);
1926 endService( " GEOM_Superv_i::MirrorPoint" );
1930 //=============================================================================
1932 //=============================================================================
1933 GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPointCopy (GEOM::GEOM_Object_ptr theObject,
1934 GEOM::GEOM_Object_ptr thePoint)
1936 beginService( " GEOM_Superv_i::MirrorPoint" );
1937 MESSAGE("GEOM_Superv_i::MirrorPointCopy");
1939 GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPointCopy(theObject, thePoint);
1940 endService( " GEOM_Superv_i::MirrorPoint" );
1944 //=============================================================================
1946 //=============================================================================
1947 GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShape (GEOM::GEOM_Object_ptr theObject,
1948 CORBA::Double theOffset)
1950 beginService( " GEOM_Superv_i::OffsetShape" );
1951 MESSAGE("GEOM_Superv_i::OffsetShape");
1953 GEOM::GEOM_Object_ptr anObj = myTransfOp->OffsetShape(theObject, theOffset);
1954 endService( " GEOM_Superv_i::OffsetShape" );
1958 //=============================================================================
1960 //=============================================================================
1961 GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject,
1962 CORBA::Double theOffset)
1964 beginService( " GEOM_Superv_i::OffsetShapeCopy" );
1965 MESSAGE("GEOM_Superv_i::OffsetShapeCopy");
1967 GEOM::GEOM_Object_ptr anObj = myTransfOp->OffsetShapeCopy(theObject, theOffset);
1968 endService( " GEOM_Superv_i::OffsetShapeCopy" );
1972 //=============================================================================
1974 //=============================================================================
1975 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShape (GEOM::GEOM_Object_ptr theObject,
1976 GEOM::GEOM_Object_ptr thePoint,
1977 CORBA::Double theFactor)
1979 beginService( " GEOM_Superv_i::ScaleShape" );
1980 MESSAGE("GEOM_Superv_i::ScaleShape");
1982 GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShape(theObject, thePoint, theFactor);
1983 endService( " GEOM_Superv_i::ScaleShape" );
1987 //=============================================================================
1989 //=============================================================================
1990 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject,
1991 GEOM::GEOM_Object_ptr thePoint,
1992 CORBA::Double theFactor)
1994 beginService( " GEOM_Superv_i::ScaleShapeCopy" );
1995 MESSAGE("GEOM_Superv_i::ScaleShapeCopy");
1997 GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShapeCopy(theObject, thePoint, theFactor);
1998 endService( " GEOM_Superv_i::ScaleShapeCopy" );
2002 //=============================================================================
2003 // ScaleShapeAlongAxes:
2004 //=============================================================================
2005 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeAlongAxes (GEOM::GEOM_Object_ptr theObject,
2006 GEOM::GEOM_Object_ptr thePoint,
2007 CORBA::Double theFactorX,
2008 CORBA::Double theFactorY,
2009 CORBA::Double theFactorZ)
2011 beginService( " GEOM_Superv_i::ScaleShapeAlongAxes" );
2012 MESSAGE("GEOM_Superv_i::ScaleShapeAlongAxes");
2014 GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShapeAlongAxes
2015 (theObject, thePoint, theFactorX, theFactorY, theFactorZ);
2016 endService( " GEOM_Superv_i::ScaleShapeAlongAxes" );
2020 //=============================================================================
2021 // ScaleShapeAlongAxesCopy:
2022 //=============================================================================
2023 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeAlongAxesCopy (GEOM::GEOM_Object_ptr theObject,
2024 GEOM::GEOM_Object_ptr thePoint,
2025 CORBA::Double theFactorX,
2026 CORBA::Double theFactorY,
2027 CORBA::Double theFactorZ)
2029 beginService( " GEOM_Superv_i::ScaleShapeAlongAxesCopy" );
2030 MESSAGE("GEOM_Superv_i::ScaleShapeAlongAxesCopy");
2032 GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShapeAlongAxesCopy
2033 (theObject, thePoint, theFactorX, theFactorY, theFactorZ);
2034 endService( " GEOM_Superv_i::ScaleShapeAlongAxesCopy" );
2038 //=============================================================================
2040 //=============================================================================
2041 GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionShape (GEOM::GEOM_Object_ptr theObject,
2042 GEOM::GEOM_Object_ptr theStartLCS,
2043 GEOM::GEOM_Object_ptr theEndLCS)
2045 beginService( " GEOM_Superv_i::PositionShape" );
2046 MESSAGE("GEOM_Superv_i::PositionShape");
2048 GEOM::GEOM_Object_ptr anObj = myTransfOp->PositionShape(theObject, theStartLCS, theEndLCS);
2049 endService( " GEOM_Superv_i::PositionShape" );
2053 //=============================================================================
2054 // PositionShapeCopy:
2055 //=============================================================================
2056 GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
2057 GEOM::GEOM_Object_ptr theStartLCS,
2058 GEOM::GEOM_Object_ptr theEndLCS)
2060 beginService( " GEOM_Superv_i::PositionShapeCopy" );
2061 MESSAGE("GEOM_Superv_i::PositionShapeCopy");
2063 GEOM::GEOM_Object_ptr anObj = myTransfOp->PositionShapeCopy(theObject, theStartLCS, theEndLCS);
2064 endService( " GEOM_Superv_i::PositionShapeCopy" );
2068 //=============================================================================
2069 // PositionAlongPath:
2070 //=============================================================================
2071 GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionAlongPath (GEOM::GEOM_Object_ptr theObject,
2072 GEOM::GEOM_Object_ptr thePath,
2073 CORBA::Double theDistance,
2074 CORBA::Boolean theCopy,
2075 CORBA::Boolean theReverse)
2077 beginService( " GEOM_Superv_i::PositionAlongPath" );
2078 MESSAGE("GEOM_Superv_i::PositionAlongPath");
2080 GEOM::GEOM_Object_ptr anObj = myTransfOp->PositionAlongPath(theObject, thePath, theDistance, theCopy, theReverse);
2081 endService( " GEOM_Superv_i::PositionAlongPath" );
2085 //=============================== ShapesOperations ============================
2086 //=============================================================================
2088 //=============================================================================
2089 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
2090 GEOM::GEOM_Object_ptr thePnt2)
2092 beginService( " GEOM_Superv_i::MakeEdge" );
2093 MESSAGE("GEOM_Superv_i::MakeEdge");
2095 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeEdge(thePnt1, thePnt2);
2096 endService( " GEOM_Superv_i::MakeEdge" );
2100 //=============================================================================
2101 // MakeEdgeOnCurveByLength:
2102 //=============================================================================
2103 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEdgeOnCurveByLength (GEOM::GEOM_Object_ptr theRefCurve,
2104 CORBA::Double theLength,
2105 GEOM::GEOM_Object_ptr theStartPoint)
2107 beginService( " GEOM_Superv_i::MakeEdgeOnCurveByLength" );
2108 MESSAGE("GEOM_Superv_i::MakeEdgeOnCurveByLength");
2110 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeEdgeOnCurveByLength(theRefCurve, theLength, theStartPoint);
2111 endService( " GEOM_Superv_i::MakeEdgeOnCurveByLength" );
2115 //=============================================================================
2117 //=============================================================================
2118 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeWire (GEOM::GEOM_List_ptr theEdgesAndWires,
2119 CORBA::Double theTolerance)
2121 beginService( " GEOM_Superv_i::MakeWire" );
2122 MESSAGE("GEOM_Superv_i::MakeWire");
2123 if (GEOM_List_i<GEOM::ListOfGO>* aListImplEW =
2124 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theEdgesAndWires, myPOA).in())) {
2126 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeWire(aListImplEW->GetList(), theTolerance);
2127 endService( " GEOM_Superv_i::MakeWire" );
2130 endService( " GEOM_Superv_i::MakeWire" );
2134 //=============================================================================
2136 //=============================================================================
2137 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFace (GEOM::GEOM_Object_ptr theWire,
2138 CORBA::Boolean isPlanarWanted)
2140 beginService( " GEOM_Superv_i::MakeFace" );
2141 MESSAGE("GEOM_Superv_i::MakeFace");
2143 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeFace(theWire, isPlanarWanted);
2144 endService( " GEOM_Superv_i::MakeFace" );
2148 //=============================================================================
2150 //=============================================================================
2151 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceWires (GEOM::GEOM_List_ptr theWires,
2152 CORBA::Boolean isPlanarWanted)
2154 beginService( " GEOM_Superv_i::MakeFaceWires" );
2155 MESSAGE("GEOM_Superv_i::MakeFaceWires");
2156 if (GEOM_List_i<GEOM::ListOfGO>* aListImplW =
2157 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theWires, myPOA).in())) {
2159 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeFaceWires(aListImplW->GetList(), isPlanarWanted);
2160 endService( " GEOM_Superv_i::MakeFaceWires" );
2163 endService( " GEOM_Superv_i::MakeFaceWires" );
2167 //=============================================================================
2169 //=============================================================================
2170 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeShell (GEOM::GEOM_List_ptr theFacesAndShells)
2172 beginService( " GEOM_Superv_i::MakeShell" );
2173 MESSAGE("GEOM_Superv_i::MakeShell");
2174 if (GEOM_List_i<GEOM::ListOfGO>* aListImplFS =
2175 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theFacesAndShells, myPOA).in())) {
2177 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeShell(aListImplFS->GetList());
2178 endService( " GEOM_Superv_i::MakeShell" );
2181 endService( " GEOM_Superv_i::MakeShell" );
2185 //=============================================================================
2187 //=============================================================================
2188 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSolidShell (GEOM::GEOM_Object_ptr theShell)
2190 beginService( " GEOM_Superv_i::MakeSolidShell" );
2191 MESSAGE("GEOM_Superv_i::MakeSolidShell");
2193 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeSolidShell(theShell);
2194 endService( " GEOM_Superv_i::MakeSolidShell" );
2198 //=============================================================================
2200 //=============================================================================
2201 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSolidShells (GEOM::GEOM_List_ptr theShells)
2203 beginService( " GEOM_Superv_i::MakeSolidShells" );
2204 MESSAGE("GEOM_Superv_i::MakeSolidShells");
2205 if (GEOM_List_i<GEOM::ListOfGO>* aListImplS =
2206 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShells, myPOA).in())) {
2208 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeSolidShells(aListImplS->GetList());
2209 endService( " GEOM_Superv_i::MakeSolidShells" );
2212 endService( " GEOM_Superv_i::MakeSolidShells" );
2216 //=============================================================================
2218 //=============================================================================
2219 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCompound (GEOM::GEOM_List_ptr theShapes)
2221 beginService( " GEOM_Superv_i::MakeCompound" );
2222 MESSAGE("GEOM_Superv_i::MakeCompound");
2223 if (GEOM_List_i<GEOM::ListOfGO>* aListImpl =
2224 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShapes, myPOA).in())) {
2226 GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeCompound(aListImpl->GetList());
2227 endService( " GEOM_Superv_i::MakeCompound" );
2230 endService( " GEOM_Superv_i::MakeCompound" );
2234 //=============================================================================
2236 //=============================================================================
2237 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
2238 CORBA::Double theTolerance,
2239 CORBA::Boolean doKeepNonSolids)
2241 beginService( " GEOM_Superv_i::MakeGlueFaces" );
2242 MESSAGE("GEOM_Superv_i::MakeGlueFaces");
2244 GEOM::GEOM_Object_ptr anObj =
2245 myShapesOp->MakeGlueFaces(theShape, theTolerance, doKeepNonSolids);
2246 endService( " GEOM_Superv_i::MakeGlueFaces" );
2250 //=============================================================================
2252 //=============================================================================
2253 GEOM::GEOM_List_ptr GEOM_Superv_i::GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
2254 CORBA::Double theTolerance)
2256 beginService( " GEOM_Superv_i::GetGlueFaces" );
2257 MESSAGE("GEOM_Superv_i::GetGlueFaces");
2259 GEOM::ListOfGO* aList = myShapesOp->GetGlueFaces(theShape, theTolerance);
2260 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aList));
2261 MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
2262 endService( " GEOM_Superv_i::GetGlueFaces" );
2263 return aListPtr->_this();
2266 //=============================================================================
2267 // MakeGlueFacesByList:
2268 //=============================================================================
2269 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
2270 CORBA::Double theTolerance,
2271 const GEOM::ListOfGO& theFaces,
2272 CORBA::Boolean doKeepNonSolids,
2273 CORBA::Boolean doGlueAllEdges)
2275 beginService( " GEOM_Superv_i::MakeGlueFacesByList" );
2276 MESSAGE("GEOM_Superv_i::MakeGlueFacesByList");
2278 GEOM::GEOM_Object_ptr anObj =
2279 myShapesOp->MakeGlueFacesByList(theShape, theTolerance, theFaces,
2280 doKeepNonSolids, doGlueAllEdges);
2281 endService( " GEOM_Superv_i::MakeGlueFacesByList" );
2285 //=============================================================================
2287 //=============================================================================
2288 GEOM::GEOM_List_ptr GEOM_Superv_i::MakeExplode (GEOM::GEOM_Object_ptr theShape,
2289 CORBA::Long theShapeType,
2290 CORBA::Boolean isSorted)
2292 beginService( " GEOM_Superv_i::MakeExplode" );
2293 MESSAGE("GEOM_Superv_i::MakeExplode");
2296 GEOM::ListOfGO* aList = myShapesOp->MakeExplode(theShape, theShapeType, isSorted);
2297 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aList));
2298 MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
2299 endService( " GEOM_Superv_i::MakeExplode" );
2300 return aListPtr->_this();
2303 //=============================================================================
2305 //=============================================================================
2306 CORBA::Long GEOM_Superv_i::NumberOfFaces (GEOM::GEOM_Object_ptr theShape)
2308 beginService( " GEOM_Superv_i::NumberOfFaces" );
2309 MESSAGE("GEOM_Superv_i::NumberOfFaces");
2311 CORBA::Long aRes = myShapesOp->NumberOfFaces(theShape);
2312 endService( " GEOM_Superv_i::NumberOfFaces" );
2316 //=============================================================================
2318 //=============================================================================
2319 CORBA::Long GEOM_Superv_i::NumberOfEdges (GEOM::GEOM_Object_ptr theShape)
2321 beginService( " GEOM_Superv_i::NumberOfEdges" );
2322 MESSAGE("GEOM_Superv_i::NumberOfEdges");
2324 CORBA::Long aRes = myShapesOp->NumberOfEdges(theShape);
2325 endService( " GEOM_Superv_i::NumberOfEdges" );
2330 //=============================================================================
2331 // ChangeOrientation:
2332 //=============================================================================
2333 GEOM::GEOM_Object_ptr GEOM_Superv_i::ChangeOrientation (GEOM::GEOM_Object_ptr theShape)
2335 beginService( " GEOM_Superv_i::ChangeOrientation" );
2336 MESSAGE("GEOM_Superv_i::ChangeOrientation");
2338 GEOM::GEOM_Object_ptr anObj = myShapesOp->ChangeOrientation(theShape);
2339 endService( " GEOM_Superv_i::ChangeOrientation" );
2344 //=============================================================================
2345 // GetShapesOnShape:
2346 //=============================================================================
2347 GEOM::GEOM_List_ptr GEOM_Superv_i::GetShapesOnShape
2348 (GEOM::GEOM_Object_ptr theCheckShape,
2349 GEOM::GEOM_Object_ptr theShape,
2350 CORBA::Short theShapeType,
2351 GEOM::shape_state theState)
2353 beginService( " GEOM_Superv_i::GetShapesOnShape" );
2354 MESSAGE("GEOM_Superv_i::GetShapesOnShape");
2356 GEOM::ListOfGO* aList =
2357 myShapesOp->GetShapesOnShape(theCheckShape, theShape, theShapeType, theState);
2358 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aList));
2359 MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
2360 endService( " GEOM_Superv_i::GetShapesOnShape" );
2361 return aListPtr->_this();
2365 //=============================================================================
2366 // GetShapesOnShapeAsCompound:
2367 //=============================================================================
2368 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetShapesOnShapeAsCompound
2369 (GEOM::GEOM_Object_ptr theCheckShape,
2370 GEOM::GEOM_Object_ptr theShape,
2371 CORBA::Short theShapeType,
2372 GEOM::shape_state theState)
2374 beginService( " GEOM_Superv_i::GetShapesOnShapeAsCompound" );
2375 MESSAGE("GEOM_Superv_i::GetShapesOnShapeAsCompound");
2377 GEOM::GEOM_Object_ptr anObj =
2378 myShapesOp->GetShapesOnShapeAsCompound(theCheckShape, theShape, theShapeType, theState);
2379 endService( " GEOM_Superv_i::GetShapesOnShapeAsCompound" );
2384 //=============================== BlocksOperations ============================
2385 //=============================================================================
2386 // MakeQuad4Vertices:
2387 //=============================================================================
2388 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad4Vertices (GEOM::GEOM_Object_ptr thePnt1,
2389 GEOM::GEOM_Object_ptr thePnt2,
2390 GEOM::GEOM_Object_ptr thePnt3,
2391 GEOM::GEOM_Object_ptr thePnt4)
2393 beginService( " GEOM_Superv_i::MakeQuad4Vertices" );
2394 MESSAGE("GEOM_Superv_i::MakeQuad4Vertices");
2396 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeQuad4Vertices(thePnt1, thePnt2, thePnt3, thePnt4);
2397 endService( " GEOM_Superv_i::MakeQuad4Vertices" );
2401 //=============================================================================
2403 //=============================================================================
2404 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad (GEOM::GEOM_Object_ptr theEdge1,
2405 GEOM::GEOM_Object_ptr theEdge2,
2406 GEOM::GEOM_Object_ptr theEdge3,
2407 GEOM::GEOM_Object_ptr theEdge4)
2409 beginService( " GEOM_Superv_i::MakeQuad" );
2410 MESSAGE("GEOM_Superv_i::MakeQuad");
2412 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeQuad(theEdge1, theEdge2, theEdge3, theEdge4);
2413 endService( " GEOM_Superv_i::MakeQuad" );
2417 //=============================================================================
2419 //=============================================================================
2420 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad2Edges (GEOM::GEOM_Object_ptr theEdge1,
2421 GEOM::GEOM_Object_ptr theEdge2)
2423 beginService( " GEOM_Superv_i::MakeQuad2Edges" );
2424 MESSAGE("GEOM_Superv_i::MakeQuad2Edges");
2426 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeQuad2Edges(theEdge1, theEdge2);
2427 endService( " GEOM_Superv_i::MakeQuad2Edges" );
2431 //=============================================================================
2433 //=============================================================================
2434 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHexa (GEOM::GEOM_Object_ptr theFace1,
2435 GEOM::GEOM_Object_ptr theFace2,
2436 GEOM::GEOM_Object_ptr theFace3,
2437 GEOM::GEOM_Object_ptr theFace4,
2438 GEOM::GEOM_Object_ptr theFace5,
2439 GEOM::GEOM_Object_ptr theFace6)
2441 beginService( " GEOM_Superv_i::MakeHexa" );
2442 MESSAGE("GEOM_Superv_i::MakeHexa");
2444 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeHexa(theFace1, theFace2, theFace3, theFace4, theFace5, theFace6);
2445 endService( " GEOM_Superv_i::MakeHexa" );
2449 //=============================================================================
2451 //=============================================================================
2452 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHexa2Faces (GEOM::GEOM_Object_ptr theFace1,
2453 GEOM::GEOM_Object_ptr theFace2)
2455 beginService( " GEOM_Superv_i::MakeHexa2Faces" );
2456 MESSAGE("GEOM_Superv_i::MakeHexa2Faces");
2458 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeHexa2Faces(theFace1, theFace2);
2459 endService( " GEOM_Superv_i::MakeHexa2Faces" );
2463 //=============================================================================
2465 //=============================================================================
2466 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetPoint (GEOM::GEOM_Object_ptr theShape,
2470 CORBA::Double theEpsilon)
2472 beginService( " GEOM_Superv_i::GetPoint" );
2473 MESSAGE("GEOM_Superv_i::GetPoint");
2475 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetPoint(theShape, theX, theY, theZ, theEpsilon);
2476 endService( " GEOM_Superv_i::GetPoint" );
2480 //=============================================================================
2482 //=============================================================================
2483 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetEdge (GEOM::GEOM_Object_ptr theShape,
2484 GEOM::GEOM_Object_ptr thePoint1,
2485 GEOM::GEOM_Object_ptr thePoint2)
2487 beginService( " GEOM_Superv_i::GetEdge" );
2488 MESSAGE("GEOM_Superv_i::GetEdge");
2490 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetEdge(theShape, thePoint1, thePoint2);
2491 endService( " GEOM_Superv_i::GetEdge" );
2495 //=============================================================================
2496 // GetEdgeNearPoint:
2497 //=============================================================================
2498 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetEdgeNearPoint (GEOM::GEOM_Object_ptr theShape,
2499 GEOM::GEOM_Object_ptr thePoint)
2501 beginService( " GEOM_Superv_i::GetEdgeNearPoint" );
2502 MESSAGE("GEOM_Superv_i::GetEdgeNearPoint");
2504 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetEdgeNearPoint(theShape, thePoint);
2505 endService( " GEOM_Superv_i::GetEdgeNearPoint" );
2509 //=============================================================================
2511 //=============================================================================
2512 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByPoints (GEOM::GEOM_Object_ptr theShape,
2513 GEOM::GEOM_Object_ptr thePoint1,
2514 GEOM::GEOM_Object_ptr thePoint2,
2515 GEOM::GEOM_Object_ptr thePoint3,
2516 GEOM::GEOM_Object_ptr thePoint4)
2518 beginService( " GEOM_Superv_i::GetFaceByPoints" );
2519 MESSAGE("GEOM_Superv_i::GetFaceByPoints");
2521 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceByPoints(theShape, thePoint1, thePoint2, thePoint3, thePoint4);
2522 endService( " GEOM_Superv_i::GetFaceByPoints" );
2526 //=============================================================================
2528 //=============================================================================
2529 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByEdges (GEOM::GEOM_Object_ptr theShape,
2530 GEOM::GEOM_Object_ptr theEdge1,
2531 GEOM::GEOM_Object_ptr theEdge2)
2533 beginService( " GEOM_Superv_i::GetFaceByEdges" );
2534 MESSAGE("GEOM_Superv_i::GetFaceByEdges");
2536 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceByEdges(theShape, theEdge1, theEdge2);
2537 endService( " GEOM_Superv_i::GetFaceByEdges" );
2541 //=============================================================================
2543 //=============================================================================
2544 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetOppositeFace (GEOM::GEOM_Object_ptr theBlock,
2545 GEOM::GEOM_Object_ptr theFace)
2547 beginService( " GEOM_Superv_i::GetOppositeFace" );
2548 MESSAGE("GEOM_Superv_i::GetOppositeFace");
2550 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetOppositeFace(theBlock, theFace);
2551 endService( " GEOM_Superv_i::GetOppositeFace" );
2555 //=============================================================================
2556 // GetFaceNearPoint:
2557 //=============================================================================
2558 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceNearPoint (GEOM::GEOM_Object_ptr theShape,
2559 GEOM::GEOM_Object_ptr thePoint)
2561 beginService( " GEOM_Superv_i::GetFaceNearPoint" );
2562 MESSAGE("GEOM_Superv_i::GetFaceNearPoint");
2564 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceNearPoint(theShape, thePoint);
2565 endService( " GEOM_Superv_i::GetFaceNearPoint" );
2569 //=============================================================================
2570 // GetFaceByNormale:
2571 //=============================================================================
2572 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByNormale (GEOM::GEOM_Object_ptr theBlock,
2573 GEOM::GEOM_Object_ptr theVector)
2575 beginService( " GEOM_Superv_i::GetFaceByNormale" );
2576 MESSAGE("GEOM_Superv_i::GetFaceByNormale");
2578 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceByNormale(theBlock, theVector);
2579 endService( " GEOM_Superv_i::GetFaceByNormale" );
2583 //=============================================================================
2584 // IsCompoundOfBlocks:
2585 //=============================================================================
2586 CORBA::Boolean GEOM_Superv_i::IsCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
2587 CORBA::Long theMinNbFaces,
2588 CORBA::Long theMaxNbFaces,
2589 CORBA::Long& theNbBlocks)
2591 beginService( " GEOM_Superv_i::IsCompoundOfBlocks" );
2592 MESSAGE("GEOM_Superv_i::IsCompoundOfBlocks");
2594 CORBA::Boolean aRes = myBlocksOp->IsCompoundOfBlocks(theCompound, theMinNbFaces, theMaxNbFaces, theNbBlocks);
2595 endService( " GEOM_Superv_i::IsCompoundOfBlocks" );
2599 //=============================================================================
2600 // CheckCompoundOfBlocks:
2601 //=============================================================================
2602 CORBA::Boolean GEOM_Superv_i::CheckCompoundOfBlocks
2603 (GEOM::GEOM_Object_ptr theCompound,
2604 GEOM::GEOM_IBlocksOperations::BCErrors_out theErrors)
2606 beginService( " GEOM_Superv_i::CheckCompoundOfBlocks" );
2607 MESSAGE("GEOM_Superv_i::CheckCompoundOfBlocks");
2609 CORBA::Boolean aRes = myBlocksOp->CheckCompoundOfBlocks(theCompound, theErrors);
2610 endService( " GEOM_Superv_i::CheckCompoundOfBlocks" );
2614 //=============================================================================
2616 //=============================================================================
2617 char* GEOM_Superv_i::PrintBCErrors (GEOM::GEOM_Object_ptr theCompound,
2618 const GEOM::GEOM_IBlocksOperations::BCErrors& theErrors)
2620 beginService( " GEOM_Superv_i::PrintBCErrors" );
2621 MESSAGE("GEOM_Superv_i::PrintBCErrors");
2623 char* anErrors = myBlocksOp->PrintBCErrors(theCompound, theErrors);
2624 endService( " GEOM_Superv_i::PrintBCErrors" );
2628 //=============================================================================
2629 // ExplodeCompoundOfBlocks:
2630 //=============================================================================
2631 GEOM::GEOM_List_ptr GEOM_Superv_i::ExplodeCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
2632 CORBA::Long theMinNbFaces,
2633 CORBA::Long theMaxNbFaces)
2635 beginService( " GEOM_Superv_i::ExplodeCompoundOfBlocks" );
2636 MESSAGE("GEOM_Superv_i::ExplodeCompoundOfBlocks");
2638 GEOM::ListOfGO* aBlocks = myBlocksOp->ExplodeCompoundOfBlocks(theCompound, theMinNbFaces, theMaxNbFaces);
2639 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aBlocks));
2640 endService( " GEOM_Superv_i::ExplodeCompoundOfBlocks" );
2641 return aListPtr->_this();
2644 //=============================================================================
2645 // GetBlockNearPoint:
2646 //=============================================================================
2647 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetBlockNearPoint (GEOM::GEOM_Object_ptr theCompound,
2648 GEOM::GEOM_Object_ptr thePoint)
2650 beginService( " GEOM_Superv_i::GetBlockNearPoint" );
2651 MESSAGE("GEOM_Superv_i::GetBlockNearPoint");
2653 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetBlockNearPoint(theCompound, thePoint);
2654 endService( " GEOM_Superv_i::GetBlockNearPoint" );
2658 //=============================================================================
2660 //=============================================================================
2661 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetBlockByParts (GEOM::GEOM_Object_ptr theCompound,
2662 GEOM::GEOM_List_ptr theParts)
2664 beginService( " GEOM_Superv_i::GetBlockByParts" );
2665 MESSAGE("GEOM_Superv_i::GetBlockByParts");
2666 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2667 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theParts, myPOA).in())) {
2669 GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetBlockByParts(theCompound, aListImplP->GetList());
2670 endService( " GEOM_Superv_i::GetBlockByParts" );
2673 endService( " GEOM_Superv_i::GetBlockByParts" );
2677 //=============================================================================
2678 // GetBlocksByParts:
2679 //=============================================================================
2680 GEOM::GEOM_List_ptr GEOM_Superv_i::GetBlocksByParts (GEOM::GEOM_Object_ptr theCompound,
2681 GEOM::GEOM_List_ptr theParts)
2683 beginService( " GEOM_Superv_i::GetBlocksByParts" );
2684 MESSAGE("GEOM_Superv_i::GetBlocksByParts");
2685 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2686 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theParts, myPOA).in())) {
2689 GEOM::ListOfGO* aBlocks = myBlocksOp->GetBlocksByParts(theCompound, aListImplP->GetList());
2690 GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aBlocks));
2691 endService( " GEOM_Superv_i::GetBlocksByParts" );
2692 return aListPtr->_this();
2694 endService( " GEOM_Superv_i::GetBlocksByParts" );
2698 //=============================================================================
2699 // MakeMultiTransformation1D:
2700 //=============================================================================
2701 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation1D (GEOM::GEOM_Object_ptr theBlock,
2702 CORBA::Long theDirFace1,
2703 CORBA::Long theDirFace2,
2704 CORBA::Long theNbTimes)
2706 beginService( " GEOM_Superv_i::MakeMultiTransformation1D" );
2707 MESSAGE("GEOM_Superv_i::MakeMultiTransformation1D");
2709 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeMultiTransformation1D(theBlock, theDirFace1, theDirFace2, theNbTimes);
2710 endService( " GEOM_Superv_i::MakeMultiTransformation1D" );
2714 //=============================================================================
2715 // MakeMultiTransformation2D:
2716 //=============================================================================
2717 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation2D
2718 (GEOM::GEOM_Object_ptr theBlock,
2719 CORBA::Long theDirFace1U,
2720 CORBA::Long theDirFace2U,
2721 CORBA::Long theNbTimesU,
2722 CORBA::Long theDirFace1V,
2723 CORBA::Long theDirFace2V,
2724 CORBA::Long theNbTimesV)
2726 beginService( " GEOM_Superv_i::MakeMultiTransformation2D" );
2727 MESSAGE("GEOM_Superv_i::MakeMultiTransformation2D");
2729 GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeMultiTransformation2D(theBlock,
2730 theDirFace1U, theDirFace2U, theNbTimesU,
2731 theDirFace1V, theDirFace2V, theNbTimesV);
2732 endService( " GEOM_Superv_i::MakeMultiTransformation2D" );
2736 //=============================== CurvesOperations ============================
2737 //=============================================================================
2738 // MakeCirclePntVecR:
2739 //=============================================================================
2740 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCirclePntVecR (GEOM::GEOM_Object_ptr theCenter,
2741 GEOM::GEOM_Object_ptr theVector,
2744 beginService( " GEOM_Superv_i::MakeCirclePntVecR" );
2745 MESSAGE("GEOM_Superv_i::MakeCirclePntVecR");
2747 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeCirclePntVecR(theCenter, theVector, theR);
2748 endService( " GEOM_Superv_i::MakeCirclePntVecR" );
2752 //=============================================================================
2753 // MakeCircleThreePnt:
2754 //=============================================================================
2755 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCircleThreePnt (GEOM::GEOM_Object_ptr thePnt1,
2756 GEOM::GEOM_Object_ptr thePnt2,
2757 GEOM::GEOM_Object_ptr thePnt3)
2759 beginService( " GEOM_Superv_i::MakeCircleThreePnt" );
2760 MESSAGE("GEOM_Superv_i::MakeCircleThreePnt");
2762 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeCircleThreePnt(thePnt1, thePnt2, thePnt3);
2763 endService( " GEOM_Superv_i::MakeCircleThreePnt" );
2766 //=============================================================================
2767 // MakeCircleCenter2Pnt:
2768 //=============================================================================
2769 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCircleCenter2Pnt (GEOM::GEOM_Object_ptr thePnt1,
2770 GEOM::GEOM_Object_ptr thePnt2,
2771 GEOM::GEOM_Object_ptr thePnt3)
2773 beginService( " GEOM_Superv_i::MakeCircleCenter2Pnt" );
2774 MESSAGE("GEOM_Superv_i::MakeCircleCenter2Pnt");
2776 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeCircleCenter2Pnt(thePnt1, thePnt2, thePnt3);
2777 endService( " GEOM_Superv_i::MakeCircleCenter2Pnt" );
2781 //=============================================================================
2783 //=============================================================================
2784 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEllipse (GEOM::GEOM_Object_ptr theCenter,
2785 GEOM::GEOM_Object_ptr theVector,
2786 CORBA::Double theRMajor,
2787 CORBA::Double theRMinor)
2789 beginService( " GEOM_Superv_i::MakeEllipse" );
2790 MESSAGE("GEOM_Superv_i::MakeEllipse");
2792 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeEllipse(theCenter, theVector, theRMajor, theRMinor);
2793 endService( " GEOM_Superv_i::MakeEllipse" );
2797 //=============================================================================
2799 //=============================================================================
2800 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEllipseVec (GEOM::GEOM_Object_ptr theCenter,
2801 GEOM::GEOM_Object_ptr theVector,
2802 CORBA::Double theRMajor,
2803 CORBA::Double theRMinor,
2804 GEOM::GEOM_Object_ptr theVectorMajor)
2806 beginService( " GEOM_Superv_i::MakeEllipseVec" );
2807 MESSAGE("GEOM_Superv_i::MakeEllipseVec");
2809 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeEllipseVec(theCenter, theVector, theRMajor, theRMinor, theVectorMajor);
2810 endService( " GEOM_Superv_i::MakeEllipseVec" );
2814 //=============================================================================
2816 //=============================================================================
2817 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArc (GEOM::GEOM_Object_ptr thePnt1,
2818 GEOM::GEOM_Object_ptr thePnt2,
2819 GEOM::GEOM_Object_ptr thePnt3)
2821 beginService( " GEOM_Superv_i::MakeArc" );
2822 MESSAGE("GEOM_Superv_i::MakeArc");
2824 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeArc(thePnt1, thePnt2, thePnt3);
2825 endService( " GEOM_Superv_i::MakeArc" );
2829 //=============================================================================
2831 //=============================================================================
2832 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArcCenter (GEOM::GEOM_Object_ptr theCenter,
2833 GEOM::GEOM_Object_ptr thePnt1,
2834 GEOM::GEOM_Object_ptr thePnt2,
2835 CORBA::Boolean theSense)
2837 beginService( " GEOM_Superv_i::MakeArcCenter" );
2838 MESSAGE("GEOM_Superv_i::MakeArcCenter");
2840 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeArcCenter(theCenter, thePnt1, thePnt2,theSense);
2841 endService( " GEOM_Superv_i::MakeArcCenter" );
2845 //=============================================================================
2846 // MakeArcOfEllipse:
2847 //=============================================================================
2848 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArcOfEllipse (GEOM::GEOM_Object_ptr thePnt1,
2849 GEOM::GEOM_Object_ptr thePnt2,
2850 GEOM::GEOM_Object_ptr thePnt3)
2852 beginService( " GEOM_Superv_i::MakeArcOfEllipse" );
2853 MESSAGE("GEOM_Superv_i::MakeArcOfEllipse");
2855 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeArcOfEllipse(thePnt1, thePnt2, thePnt3);
2856 endService( " GEOM_Superv_i::MakeArcOfEllipse" );
2860 //=============================================================================
2862 //=============================================================================
2863 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePolyline (GEOM::GEOM_List_ptr thePoints,
2864 CORBA::Boolean theIsClosed)
2866 beginService( " GEOM_Superv_i::MakePolyline" );
2867 MESSAGE("GEOM_Superv_i::MakePolyline");
2868 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2869 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
2871 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakePolyline(aListImplP->GetList(), theIsClosed);
2872 endService( " GEOM_Superv_i::MakePolyline" );
2875 endService( " GEOM_Superv_i::MakePolyline" );
2879 //=============================================================================
2880 // MakeSplineBezier:
2881 //=============================================================================
2882 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineBezier (GEOM::GEOM_List_ptr thePoints,
2883 CORBA::Boolean theIsClosed)
2885 beginService( " GEOM_Superv_i::MakeSplineBezier" );
2886 MESSAGE("GEOM_Superv_i::MakeSplineBezier");
2887 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2888 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
2890 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSplineBezier(aListImplP->GetList(), theIsClosed);
2891 endService( " GEOM_Superv_i::MakeSplineBezier" );
2894 endService( " GEOM_Superv_i::MakeSplineBezier" );
2898 //=============================================================================
2899 // MakeSplineInterpolation:
2900 //=============================================================================
2901 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineInterpolation (GEOM::GEOM_List_ptr thePoints,
2902 CORBA::Boolean theIsClosed,
2903 CORBA::Boolean theDoReordering)
2905 beginService( " GEOM_Superv_i::MakeSplineInterpolation" );
2906 MESSAGE("GEOM_Superv_i::MakeSplineInterpolation");
2907 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
2908 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
2910 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSplineInterpolation(aListImplP->GetList(), theIsClosed, theDoReordering);
2911 endService( " GEOM_Superv_i::MakeSplineInterpolation" );
2914 endService( " GEOM_Superv_i::MakeSplineInterpolation" );
2918 //=============================================================================
2920 //=============================================================================
2921 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSketcher (const char* theCommand,
2922 GEOM::GEOM_List_ptr theWorkingPlane)
2924 beginService( " GEOM_Superv_i::MakeSketcher" );
2925 MESSAGE("GEOM_Superv_i::MakeSketcher");
2926 if (GEOM_List_i<GEOM::ListOfDouble>* aListImplWP =
2927 dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theWorkingPlane, myPOA).in())) {
2929 GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSketcher(theCommand, aListImplWP->GetList());
2930 endService( " GEOM_Superv_i::MakeSketcher" );
2933 endService( " GEOM_Superv_i::MakeSketcher" );
2937 //=============================================================================
2939 //=============================================================================
2940 GEOM::GEOM_Object_ptr GEOM_Superv_i::Make3DSketcher ( GEOM::GEOM_List_ptr theCoordinates)
2942 beginService( " GEOM_Superv_i::Make3DSketcher" );
2943 MESSAGE("GEOM_Superv_i::Make3DSketcher");
2944 if (GEOM_List_i<GEOM::ListOfDouble>* aListImpl =
2945 dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theCoordinates, myPOA).in())) {
2947 GEOM::GEOM_Object_ptr anObj = myCurvesOp->Make3DSketcher(aListImpl->GetList());
2948 endService( " GEOM_Superv_i::Make3DSketcher" );
2951 endService( " GEOM_Superv_i::Make3DSketcher" );
2955 //=============================== LocalOperations =============================
2956 //=============================================================================
2958 //=============================================================================
2959 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletAll (GEOM::GEOM_Object_ptr theShape,
2962 beginService( " GEOM_Superv_i::MakeFilletAll" );
2963 MESSAGE("GEOM_Superv_i::MakeFilletAllMakeSketcher");
2965 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletAll(theShape, theR);
2966 endService( " GEOM_Superv_i::MakeFilletAll" );
2970 //=============================================================================
2972 //=============================================================================
2973 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletEdges (GEOM::GEOM_Object_ptr theShape,
2975 GEOM::GEOM_List_ptr theEdges)
2977 beginService( " GEOM_Superv_i::MakeFilletEdges" );
2978 MESSAGE("GEOM_Superv_i::MakeFilletEdges");
2979 if (GEOM_List_i<GEOM::ListOfLong>* aListImplE =
2980 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
2982 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletEdges(theShape, theR, aListImplE->GetList());
2983 endService( " GEOM_Superv_i::MakeFilletEdges" );
2986 endService( " GEOM_Superv_i::MakeFilletEdges" );
2990 //=============================================================================
2991 // MakeFilletEdges R1 R2:
2992 //=============================================================================
2993 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletEdgesR1R2 (GEOM::GEOM_Object_ptr theShape,
2994 CORBA::Double theR1,
2995 CORBA::Double theR2,
2996 GEOM::GEOM_List_ptr theEdges)
2998 beginService( " GEOM_Superv_i::MakeFilletEdgesR1R2" );
2999 MESSAGE("GEOM_Superv_i::MakeFilletEdgesR1R2");
3000 if (GEOM_List_i<GEOM::ListOfLong>* aListImplE =
3001 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
3003 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletEdgesR1R2(theShape, theR1,
3004 theR2, aListImplE->GetList());
3005 endService( " GEOM_Superv_i::MakeFilletEdgesR1R2" );
3008 endService( " GEOM_Superv_i::MakeFilletEdgesR1R2" );
3012 //=============================================================================
3014 //=============================================================================
3015 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletFaces (GEOM::GEOM_Object_ptr theShape,
3017 GEOM::GEOM_List_ptr theFaces)
3019 beginService( " GEOM_Superv_i::MakeFilletFaces" );
3020 MESSAGE("GEOM_Superv_i::MakeFilletFaces");
3021 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3022 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
3024 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletFaces(theShape, theR, aListImplF->GetList());
3025 endService( " GEOM_Superv_i::MakeFilletFaces" );
3028 endService( " GEOM_Superv_i::MakeFilletFaces" );
3032 //=============================================================================
3033 // MakeFilletFaces R1 R2:
3034 //=============================================================================
3035 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletFacesR1R2 (GEOM::GEOM_Object_ptr theShape,
3036 CORBA::Double theR1,
3037 CORBA::Double theR2,
3038 GEOM::GEOM_List_ptr theFaces)
3040 beginService( " GEOM_Superv_i::MakeFilletFacesR1R2" );
3041 MESSAGE("GEOM_Superv_i::MakeFilletFacesR1R2");
3042 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3043 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
3045 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletFacesR1R2(theShape, theR1, theR2,
3046 aListImplF->GetList());
3047 endService( " GEOM_Superv_i::MakeFilletFacesR1R2" );
3050 endService( " GEOM_Superv_i::MakeFilletFacesR1R2" );
3054 //=============================================================================
3056 //=============================================================================
3057 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFillet2D (GEOM::GEOM_Object_ptr theShape,
3059 GEOM::GEOM_List_ptr theVertexes)
3061 beginService( " GEOM_Superv_i::MakeFillet2D" );
3062 MESSAGE("GEOM_Superv_i::MakeFillet2D");
3063 if (GEOM_List_i<GEOM::ListOfLong>* aListImplV =
3064 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theVertexes, myPOA).in())) {
3066 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFillet2D(theShape, theR, aListImplV->GetList());
3067 endService( " GEOM_Superv_i::MakeFillet2D" );
3070 endService( " GEOM_Superv_i::MakeFillet2D" );
3074 //=============================================================================
3076 //=============================================================================
3077 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFillet1D (GEOM::GEOM_Object_ptr theShape,
3079 GEOM::GEOM_List_ptr theVertexes,
3080 CORBA::Boolean doIgnoreSecantVertices)
3082 beginService( " GEOM_Superv_i::MakeFillet1D" );
3083 MESSAGE("GEOM_Superv_i::MakeFillet1D");
3084 if (GEOM_List_i<GEOM::ListOfLong>* aListImplV =
3085 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theVertexes, myPOA).in())) {
3087 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFillet1D
3088 (theShape, theR, aListImplV->GetList(), doIgnoreSecantVertices);
3089 endService( " GEOM_Superv_i::MakeFillet1D" );
3092 endService( " GEOM_Superv_i::MakeFillet1D" );
3096 //=============================================================================
3098 //=============================================================================
3099 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferAll (GEOM::GEOM_Object_ptr theShape, CORBA::Double theD)
3101 beginService( " GEOM_Superv_i::MakeChamferAll" );
3102 MESSAGE("GEOM_Superv_i::MakeChamferAll");
3104 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferAll(theShape, theD);
3105 endService( " GEOM_Superv_i::MakeChamferAll" );
3109 //=============================================================================
3111 //=============================================================================
3112 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdge (GEOM::GEOM_Object_ptr theShape,
3113 CORBA::Double theD1, CORBA::Double theD2,
3114 CORBA::Long theFace1, CORBA::Long theFace2)
3116 beginService( " GEOM_Superv_i::MakeChamferEdge" );
3117 MESSAGE("GEOM_Superv_i::MakeChamferEdge");
3119 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdge(theShape, theD1, theD2, theFace1, theFace2);
3120 endService( " GEOM_Superv_i::MakeChamferEdge" );
3124 //=============================================================================
3125 // MakeChamferEdgeAD:
3126 //=============================================================================
3127 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdgeAD (GEOM::GEOM_Object_ptr theShape,
3128 CORBA::Double theD, CORBA::Double theAngle,
3129 CORBA::Long theFace1, CORBA::Long theFace2)
3131 beginService( " GEOM_Superv_i::MakeChamferEdgeAD" );
3132 MESSAGE("GEOM_Superv_i::MakeChamferEdgeAD");
3134 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdgeAD(theShape, theD, theAngle, theFace1, theFace2);
3135 endService( " GEOM_Superv_i::MakeChamferEdgeAD" );
3139 //=============================================================================
3140 // MakeChamferFaces:
3141 //=============================================================================
3142 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferFaces (GEOM::GEOM_Object_ptr theShape,
3143 CORBA::Double theD1, CORBA::Double theD2,
3144 GEOM::GEOM_List_ptr theFaces)
3146 beginService( " GEOM_Superv_i::MakeChamferFaces" );
3147 MESSAGE("GEOM_Superv_i::MakeChamferFaces");
3148 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3149 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
3151 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferFaces(theShape, theD1, theD2, aListImplF->GetList());
3152 endService( " GEOM_Superv_i::MakeChamferFaces" );
3155 endService( " GEOM_Superv_i::MakeChamferFaces" );
3159 //=============================================================================
3160 // MakeChamferFacesAD:
3161 //=============================================================================
3162 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferFacesAD (GEOM::GEOM_Object_ptr theShape,
3163 CORBA::Double theD, CORBA::Double theAngle,
3164 GEOM::GEOM_List_ptr theFaces)
3166 beginService( " GEOM_Superv_i::MakeChamferFacesAD" );
3167 MESSAGE("GEOM_Superv_i::MakeChamferFacesAD");
3168 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3169 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
3171 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferFacesAD(theShape, theD, theAngle, aListImplF->GetList());
3172 endService( " GEOM_Superv_i::MakeChamferFacesAD" );
3175 endService( " GEOM_Superv_i::MakeChamferFacesAD" );
3179 //=============================================================================
3180 // MakeChamferEdges:
3181 //=============================================================================
3182 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdges (GEOM::GEOM_Object_ptr theShape,
3183 CORBA::Double theD1, CORBA::Double theD2,
3184 GEOM::GEOM_List_ptr theEdges)
3186 beginService( " GEOM_Superv_i::MakeChamferEdges" );
3187 MESSAGE("GEOM_Superv_i::MakeChamferEdges");
3188 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3189 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
3191 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdges(theShape, theD1, theD2, aListImplF->GetList());
3192 endService( " GEOM_Superv_i::MakeChamferEdges" );
3195 endService( " GEOM_Superv_i::MakeChamferEdges" );
3199 //=============================================================================
3200 // MakeChamferEdgesAD:
3201 //=============================================================================
3202 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdgesAD (GEOM::GEOM_Object_ptr theShape,
3203 CORBA::Double theD, CORBA::Double theAngle,
3204 GEOM::GEOM_List_ptr theEdges)
3206 beginService( " GEOM_Superv_i::MakeChamferEdgesAD" );
3207 MESSAGE("GEOM_Superv_i::MakeChamferEdgesAD");
3208 if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
3209 dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
3211 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdgesAD(theShape, theD, theAngle, aListImplF->GetList());
3212 endService( " GEOM_Superv_i::MakeChamferEdgesAD" );
3215 endService( " GEOM_Superv_i::MakeChamferEdgesAD" );
3219 //=============================================================================
3221 //=============================================================================
3222 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArchimede (GEOM::GEOM_Object_ptr theShape,
3223 CORBA::Double theWeight,
3224 CORBA::Double theWaterDensity,
3225 CORBA::Double theMeshingDeflection)
3227 beginService( " GEOM_Superv_i::MakeArchimede" );
3228 MESSAGE("GEOM_Superv_i::MakeArchimede");
3230 GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeArchimede(theShape, theWeight, theWaterDensity, theMeshingDeflection);
3231 endService( " GEOM_Superv_i::MakeArchimede" );
3235 //=============================================================================
3236 // GetSubShapeIndexMakeFilletAll:
3237 //=============================================================================
3238 CORBA::Long GEOM_Superv_i::GetSubShapeIndex (GEOM::GEOM_Object_ptr theShape,
3239 GEOM::GEOM_Object_ptr theSubShape)
3241 beginService( " GEOM_Superv_i::GetSubShapeIndex" );
3242 MESSAGE("GEOM_Superv_i::GetSubShapeIndexMakeArchimede");
3244 CORBA::Long aRes = myLocalOp->GetSubShapeIndex(theShape, theSubShape);
3245 endService( " GEOM_Superv_i::GetSubShapeIndex" );
3249 //=============================== GroupOperations =============================
3250 //=============================================================================
3252 //=============================================================================
3253 GEOM::GEOM_Object_ptr GEOM_Superv_i::CreateGroup (GEOM::GEOM_Object_ptr theMainShape,
3254 CORBA::Long theShapeType)
3256 beginService( " GEOM_Superv_i::CreateGroup" );
3257 MESSAGE("GEOM_Superv_i::CreateGroup");
3259 GEOM::GEOM_Object_ptr anObj = myGroupOp->CreateGroup(theMainShape, theShapeType);
3260 endService( " GEOM_Superv_i::CreateGroup" );
3264 //=============================================================================
3266 //=============================================================================
3267 void GEOM_Superv_i::AddObject (GEOM::GEOM_Object_ptr theGroup,
3268 CORBA::Long theSubShapeId)
3270 beginService( " GEOM_Superv_i::AddObject" );
3271 MESSAGE("GEOM_Superv_i::AddObject");
3273 myGroupOp->AddObject(theGroup, theSubShapeId);
3274 endService( " GEOM_Superv_i::AddObject" );
3277 //=============================================================================
3279 //=============================================================================
3280 void GEOM_Superv_i::RemoveObject (GEOM::GEOM_Object_ptr theGroup,
3281 CORBA::Long theSubShapeId)
3283 beginService( " GEOM_Superv_i::RemoveObject" );
3284 MESSAGE("GEOM_Superv_i::RemoveObject");
3286 myGroupOp->RemoveObject(theGroup, theSubShapeId);
3287 endService( " GEOM_Superv_i::RemoveObject" );
3290 //=============================================================================
3292 //=============================================================================
3293 CORBA::Long GEOM_Superv_i::GetType (GEOM::GEOM_Object_ptr theGroup)
3295 beginService( " GEOM_Superv_i::GetType" );
3296 MESSAGE("GEOM_Superv_i::GetType");
3298 CORBA::Long aResult = myGroupOp->GetType(theGroup);
3299 endService( " GEOM_Superv_i::GetType" );
3303 //=============================================================================
3305 //=============================================================================
3306 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetMainShape (GEOM::GEOM_Object_ptr theGroup)
3308 beginService( " GEOM_Superv_i::GetMainShape" );
3309 MESSAGE("GEOM_Superv_i::GetMainShape");
3311 GEOM::GEOM_Object_ptr anObj = myGroupOp->GetMainShape(theGroup);
3312 endService( " GEOM_Superv_i::GetMainShape" );
3316 //=============================================================================
3318 //=============================================================================
3319 GEOM::GEOM_List_ptr GEOM_Superv_i::GetObjects (GEOM::GEOM_Object_ptr theGroup)
3321 beginService( " GEOM_Superv_i::GetObjects" );
3322 MESSAGE("GEOM_Superv_i::GetObjects");
3325 GEOM::ListOfLong* aList = myGroupOp->GetObjects(theGroup);
3326 GEOM_List_i<GEOM::ListOfLong>* aListPtr = new GEOM_List_i<GEOM::ListOfLong>(*(aList));
3327 MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
3328 endService( " GEOM_Superv_i::GetObjects" );
3329 return aListPtr->_this();
3332 //=============================================================================
3334 //=============================================================================
3335 CORBA::Boolean GEOM_Superv_i::ExportXAO (GEOM::GEOM_Object_ptr shape,
3336 const GEOM::ListOfGO& groups, const GEOM::ListOfFields& fields,
3337 const char* author, const char* fileName)
3339 beginService( " GEOM_Superv_i::ExportXAO" );
3340 MESSAGE("GEOM_Superv_i::ExportXAO");
3342 CORBA::Boolean isGood = myInsOp->ExportXAO(shape, groups, fields, author, fileName);
3343 endService( " GEOM_Superv_i::ExportXAO" );
3347 //=============================================================================
3349 //=============================================================================
3350 CORBA::Boolean GEOM_Superv_i::ImportXAO (const char* fileName, GEOM::GEOM_Object_out shape,
3351 GEOM::ListOfGO_out subShapes, GEOM::ListOfGO_out groups, GEOM::ListOfFields_out fields)
3356 //=============================== Advanced Operations =============================
3357 //=============================================================================
3359 //=============================================================================
3360 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShape
3361 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3362 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
3363 CORBA::Boolean theHexMesh)
3365 beginService( " GEOM_Superv_i::MakePipeTShape" );
3366 MESSAGE("GEOM_Superv_i::MakePipeTShape");
3369 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShape(theR1, theW1, theL1, theR2, theW2, theL2, theHexMesh);
3370 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3371 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3372 endService( " GEOM_Superv_i::MakePipeTShape" );
3373 return aSeqPtr->_this();
3376 //=============================================================================
3377 // MakePipeTShapeWithPosition
3378 //=============================================================================
3379 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeWithPosition
3380 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3381 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2, CORBA::Boolean theHexMesh,
3382 GEOM::GEOM_Object_ptr theP1, GEOM::GEOM_Object_ptr theP2, GEOM::GEOM_Object_ptr theP3)
3384 beginService( " GEOM_Superv_i::MakePipeTShapeWithPosition" );
3385 MESSAGE("GEOM_Superv_i::MakePipeTShapeWithPosition");
3388 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeWithPosition(theR1, theW1, theL1, theR2, theW2, theL2, theHexMesh, theP1, theP2, theP3);
3389 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3390 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3391 endService( " GEOM_Superv_i::MakePipeTShapeWithPosition" );
3392 return aSeqPtr->_this();
3395 //=============================================================================
3396 // MakePipeTShapeChamfer
3397 //=============================================================================
3398 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeChamfer
3399 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3400 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
3401 CORBA::Double theH, CORBA::Double theW, CORBA::Boolean theHexMesh)
3403 beginService( " GEOM_Superv_i::MakePipeTShapeChamfer" );
3404 MESSAGE("GEOM_Superv_i::MakePipeTShapeChamfer");
3407 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeChamfer(theR1, theW1, theL1, theR2, theW2, theL2, theH, theW, theHexMesh);
3408 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3409 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3410 endService( " GEOM_Superv_i::MakePipeTShapeChamfer" );
3411 return aSeqPtr->_this();
3414 //=============================================================================
3415 // MakePipeTShapeChamferWithPosition
3416 //=============================================================================
3417 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeChamferWithPosition
3418 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3419 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
3420 CORBA::Double theH, CORBA::Double theW, CORBA::Boolean theHexMesh,
3421 GEOM::GEOM_Object_ptr theP1, GEOM::GEOM_Object_ptr theP2, GEOM::GEOM_Object_ptr theP3)
3423 beginService( " GEOM_Superv_i::MakePipeTShapeChamferWithPosition" );
3424 MESSAGE("GEOM_Superv_i::MakePipeTShapeChamferWithPosition");
3427 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeChamferWithPosition(theR1, theW1, theL1, theR2, theW2, theL2, theH, theW, theHexMesh, theP1, theP2, theP3);
3428 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3429 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3430 endService( " GEOM_Superv_i::MakePipeTShapeChamferWithPosition" );
3431 return aSeqPtr->_this();
3434 //=============================================================================
3435 // MakePipeTShapeFillet
3436 //=============================================================================
3437 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeFillet
3438 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3439 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
3440 CORBA::Double theRF, CORBA::Boolean theHexMesh)
3442 beginService( " GEOM_Superv_i::MakePipeTShapeFillet" );
3443 MESSAGE("GEOM_Superv_i::MakePipeTShapeFillet");
3446 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeFillet(theR1, theW1, theL1, theR2, theW2, theL2, theRF, theHexMesh);
3447 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3448 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3449 endService( " GEOM_Superv_i::MakePipeTShapeFillet" );
3450 return aSeqPtr->_this();
3453 //=============================================================================
3454 // MakePipeTShapeFilletWithPosition
3455 //=============================================================================
3456 GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeFilletWithPosition
3457 (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
3458 CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
3459 CORBA::Double theRF, CORBA::Boolean theHexMesh,
3460 GEOM::GEOM_Object_ptr theP1, GEOM::GEOM_Object_ptr theP2, GEOM::GEOM_Object_ptr theP3)
3462 beginService( " GEOM_Superv_i::MakePipeTShapeFilletWithPosition" );
3463 MESSAGE("GEOM_Superv_i::MakePipeTShapeFilletWithPosition");
3466 GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeFilletWithPosition(theR1, theW1, theL1, theR2, theW2, theL2, theRF, theHexMesh, theP1, theP2, theP3);
3467 GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
3468 MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
3469 endService( " GEOM_Superv_i::MakePipeTShapeFilletWithPosition" );
3470 return aSeqPtr->_this();
3473 //=============================================================================
3475 //=============================================================================
3476 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDividedDisk (CORBA::Double theR, CORBA::Double theRatio,
3477 CORBA::Short theOrientation, GEOM::pattern thePattern)
3479 beginService( " GEOM_Superv_i::MakeDividedDisk" );
3480 MESSAGE("GEOM_Superv_i::MakeDividedDisk");
3482 GEOM::GEOM_Object_ptr anObj = myAdvancedOp->MakeDividedDisk(theR, theRatio, theOrientation, thePattern);
3483 endService( " GEOM_Superv_i::MakeDividedDisk" );
3487 //=============================================================================
3488 // MakeDividedCylinder
3489 //=============================================================================
3490 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDividedCylinder (CORBA::Double theR,
3492 GEOM::pattern thePattern)
3494 beginService( " GEOM_Superv_i::MakeDividedCylinder" );
3495 MESSAGE("GEOM_Superv_i::MakeDividedCylinder");
3497 GEOM::GEOM_Object_ptr anObj = myAdvancedOp->MakeDividedCylinder(theR, theH, thePattern);
3498 endService( " GEOM_Superv_i::MakeDividedCylinder" );
3502 //=============================================================================
3503 // MakeSmoothingSurface
3504 //=============================================================================
3505 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSmoothingSurface (GEOM::GEOM_List_ptr thelPoints)
3507 beginService( " GEOM_Superv_i::MakeSmoothingSurface" );
3508 MESSAGE("GEOM_Superv_i::MakeSmoothingSurface");
3510 if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
3511 dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thelPoints, myPOA).in())) {
3513 GEOM::GEOM_Object_ptr anObj = myAdvancedOp->MakeSmoothingSurface(aListImplP->GetList());
3514 endService( " GEOM_Superv_i::MakeSmoothingSurface" );
3517 endService( " GEOM_Superv_i::MakeSmoothingSurface" );
3521 /*@@ insert new functions before this line @@ do not remove this line @@*/
3523 //=====================================================================================
3525 //=====================================================================================
3529 __declspec( dllexport )
3531 PortableServer::ObjectId * GEOM_SupervEngine_factory(CORBA::ORB_ptr orb,
3532 PortableServer::POA_ptr poa,
3533 PortableServer::ObjectId * contId,
3534 const char *instanceName,
3535 const char * interfaceName)
3537 GEOM_Superv_i * myGEOM_Superv_i = new GEOM_Superv_i(orb, poa, contId, instanceName, interfaceName);
3538 //Don't understand the reason why this component is registered ???
3539 // myGEOM_Superv_i->register_name("/myGEOM_Superv");
3540 return myGEOM_Superv_i->getId() ;