2009-02-13 17:16:39 +05:00
|
|
|
// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
2005-12-05 21:23:52 +05:00
|
|
|
//
|
2009-02-13 17:16:39 +05:00
|
|
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
|
|
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
2005-12-05 21:23:52 +05:00
|
|
|
//
|
2009-02-13 17:16:39 +05:00
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
// version 2.1 of the License.
|
|
|
|
//
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
//
|
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2005-12-05 21:23:52 +05:00
|
|
|
//
|
2004-12-01 15:39:14 +05:00
|
|
|
#include "GEOM_Superv_i.hh"
|
2005-06-02 13:17:09 +06:00
|
|
|
#include "SALOME_LifeCycleCORBA.hxx"
|
2006-05-06 14:44:32 +06:00
|
|
|
|
|
|
|
#include CORBA_SERVER_HEADER(SALOME_Session)
|
|
|
|
#include "SALOMEDSClient_ClientFactory.hxx"
|
|
|
|
|
|
|
|
#define isNewStudy(a,b) (a > 0 && a != b)
|
|
|
|
|
2005-08-24 19:12:16 +06:00
|
|
|
using namespace std;
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================================================================
|
|
|
|
// constructor:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM_Superv_i::GEOM_Superv_i(CORBA::ORB_ptr orb,
|
|
|
|
PortableServer::POA_ptr poa,
|
|
|
|
PortableServer::ObjectId * contId,
|
|
|
|
const char *instanceName,
|
|
|
|
const char *interfaceName) :
|
|
|
|
Engines_Component_i(orb, poa, contId, instanceName, interfaceName)
|
|
|
|
{
|
|
|
|
MESSAGE("GEOM_Superv_i::GEOM_Superv_i");
|
|
|
|
|
|
|
|
_thisObj = this ;
|
|
|
|
_id = _poa->activate_object(_thisObj);
|
|
|
|
name_service = new SALOME_NamingService(_orb);
|
2004-12-17 16:18:33 +05:00
|
|
|
//get RootPOA (the default)
|
|
|
|
//myPOA = PortableServer::RefCountServantBase::_default_POA();
|
|
|
|
CORBA::Object_var anObj = _orb->resolve_initial_references("RootPOA");
|
|
|
|
myPOA = PortableServer::POA::_narrow(anObj);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-06-27 16:38:23 +06:00
|
|
|
setGeomEngine();
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
myStudyID = -1;
|
2006-05-06 14:44:32 +06:00
|
|
|
myLastStudyID = -1;
|
2004-12-01 15:39:14 +05:00
|
|
|
|
|
|
|
myBasicOp = GEOM::GEOM_IBasicOperations::_nil();
|
|
|
|
my3DPrimOp = GEOM::GEOM_I3DPrimOperations::_nil();
|
|
|
|
myBoolOp = GEOM::GEOM_IBooleanOperations::_nil();
|
|
|
|
myInsOp = GEOM::GEOM_IInsertOperations::_nil();
|
|
|
|
myTransfOp = GEOM::GEOM_ITransformOperations::_nil();
|
|
|
|
myShapesOp = GEOM::GEOM_IShapesOperations::_nil();
|
|
|
|
myBlocksOp = GEOM::GEOM_IBlocksOperations::_nil();
|
|
|
|
myCurvesOp = GEOM::GEOM_ICurvesOperations::_nil();
|
|
|
|
myLocalOp = GEOM::GEOM_ILocalOperations::_nil();
|
|
|
|
myGroupOp = GEOM::GEOM_IGroupOperations::_nil();
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// destructor
|
|
|
|
//=============================================================================
|
|
|
|
GEOM_Superv_i::~GEOM_Superv_i()
|
|
|
|
{
|
|
|
|
MESSAGE("GEOM_Superv_i::~GEOM_Superv_i");
|
2008-03-07 12:45:34 +05:00
|
|
|
if (!CORBA::is_nil(myBasicOp))
|
|
|
|
myBasicOp->Destroy();
|
|
|
|
if (!CORBA::is_nil(myBoolOp))
|
|
|
|
myBoolOp->Destroy();
|
|
|
|
if (!CORBA::is_nil(my3DPrimOp))
|
|
|
|
my3DPrimOp->Destroy();
|
2004-12-01 15:39:14 +05:00
|
|
|
delete name_service;
|
|
|
|
}
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// function : register()
|
|
|
|
// purpose : register 'name' in 'name_service'
|
|
|
|
//============================================================================
|
|
|
|
void GEOM_Superv_i::register_name(char * name)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Superv_var g = _this();
|
|
|
|
name_service->Register(g, name);
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// setGEOMEngine:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::setGeomEngine()
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
if ( !CORBA::is_nil(myGeomEngine) )
|
|
|
|
return;
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
// get GEOM_Gen engine
|
2008-03-07 12:45:34 +05:00
|
|
|
Engines::Container_var cont=GetContainerRef();
|
|
|
|
CORBA::String_var container_name=cont->name();
|
|
|
|
std::string shortName=container_name.in();
|
|
|
|
shortName=shortName.substr(12); // substract "/Containers/"
|
2004-12-01 15:39:14 +05:00
|
|
|
SALOME_LifeCycleCORBA* lcc = new SALOME_LifeCycleCORBA( name_service );
|
2008-03-07 12:45:34 +05:00
|
|
|
Engines::Component_var comp = lcc->FindOrLoad_Component( shortName.c_str(), "GEOM" );
|
|
|
|
delete lcc;
|
2004-12-01 15:39:14 +05:00
|
|
|
|
|
|
|
myGeomEngine = GEOM::GEOM_Gen::_narrow(comp);
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// SetStudyID:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::SetStudyID( CORBA::Long theId )
|
|
|
|
{
|
2006-05-06 14:44:32 +06:00
|
|
|
// mkr : PAL10770 -->
|
|
|
|
myLastStudyID = myStudyID;
|
|
|
|
|
|
|
|
CORBA::Object_ptr anObject = name_service->Resolve("/Kernel/Session");
|
|
|
|
if ( !CORBA::is_nil(anObject) ) {
|
|
|
|
SALOME::Session_var aSession = SALOME::Session::_narrow(anObject);
|
|
|
|
if ( !CORBA::is_nil(aSession) ) {
|
|
|
|
int aStudyID = aSession->GetActiveStudyId();
|
|
|
|
if ( theId != aStudyID && aStudyID > 0) { // mkr : IPAL12128
|
|
|
|
MESSAGE("Warning : given study ID theId="<<theId<<" is wrong and will be replaced by the value "<<aStudyID);
|
|
|
|
myStudyID = aStudyID;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
myStudyID = theId; // mkr : IPAL12128
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( isNewStudy(myLastStudyID,myStudyID) ) {
|
|
|
|
if (CORBA::is_nil(myGeomEngine)) setGeomEngine();
|
|
|
|
string anEngine = _orb->object_to_string( myGeomEngine );
|
|
|
|
|
|
|
|
CORBA::Object_var anObj = name_service->Resolve("/myStudyManager");
|
|
|
|
if ( !CORBA::is_nil(anObj) ) {
|
|
|
|
SALOMEDS::StudyManager_var aStudyManager = SALOMEDS::StudyManager::_narrow(anObj);
|
|
|
|
if ( !CORBA::is_nil(aStudyManager) ) {
|
|
|
|
_PTR(Study) aDSStudy = ClientFactory::Study(aStudyManager->GetStudyByID(myStudyID));
|
|
|
|
if ( aDSStudy ) {
|
|
|
|
_PTR(SComponent) aSCO = aDSStudy->FindComponent(myGeomEngine->ComponentDataType());
|
|
|
|
if ( aSCO ) {
|
|
|
|
_PTR(StudyBuilder) aBuilder = aDSStudy->NewBuilder();
|
|
|
|
if ( aBuilder ) aBuilder->LoadWith( aSCO, anEngine );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// mkr : PAL10770 <--
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2004-12-17 16:18:33 +05:00
|
|
|
//=============================================================================
|
|
|
|
// CreateListOfGO:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfGO()
|
|
|
|
{
|
|
|
|
MESSAGE("GEOM_Superv_i::CreateListOfGO()");
|
|
|
|
GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>();
|
|
|
|
return aListPtr->_this();
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// AddItemToListOfGO:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::AddItemToListOfGO(GEOM::GEOM_List_ptr& theList,
|
|
|
|
GEOM::GEOM_Object_ptr theObject)
|
|
|
|
{
|
|
|
|
MESSAGE("GEOM_Superv_i::AddItemToListOfGO(...)");
|
|
|
|
if (GEOM_List_i<GEOM::ListOfGO>* aList =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theList, myPOA).in())) {
|
|
|
|
aList->AddObject(theObject);
|
|
|
|
MESSAGE(" NewLength = "<<aList->GetList().length());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// CreateListOfLong:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfLong()
|
|
|
|
{
|
|
|
|
MESSAGE("GEOM_Superv_i::CreateListOfLong()");
|
|
|
|
GEOM_List_i<GEOM::ListOfLong>* aListPtr = new GEOM_List_i<GEOM::ListOfLong>();
|
|
|
|
return aListPtr->_this();
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// AddItemToListOfLong:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::AddItemToListOfLong(GEOM::GEOM_List_ptr& theList,
|
2006-05-06 14:44:32 +06:00
|
|
|
CORBA::Long theObject)
|
2004-12-17 16:18:33 +05:00
|
|
|
{
|
|
|
|
MESSAGE("GEOM_Superv_i::AddItemToListOfLong(...)");
|
|
|
|
if (GEOM_List_i<GEOM::ListOfLong>* aList =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theList, myPOA).in())) {
|
|
|
|
aList->AddObject(theObject);
|
|
|
|
MESSAGE(" NewLength = "<<aList->GetList().length());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// CreateListOfDouble:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfDouble()
|
|
|
|
{
|
|
|
|
MESSAGE("GEOM_Superv_i::CreateListOfDouble()");
|
|
|
|
GEOM_List_i<GEOM::ListOfDouble>* aListPtr = new GEOM_List_i<GEOM::ListOfDouble>();
|
|
|
|
return aListPtr->_this();
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// AddItemToListOfDouble:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::AddItemToListOfDouble(GEOM::GEOM_List_ptr& theList,
|
2006-05-06 14:44:32 +06:00
|
|
|
CORBA::Double theObject)
|
2004-12-17 16:18:33 +05:00
|
|
|
{
|
|
|
|
MESSAGE("GEOM_Superv_i::AddItemToListOfDouble(...)");
|
|
|
|
if (GEOM_List_i<GEOM::ListOfDouble>* aList =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theList, myPOA).in())) {
|
|
|
|
aList->AddObject(theObject);
|
|
|
|
MESSAGE(" NewLength = "<<aList->GetList().length());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================================================================
|
|
|
|
// getBasicOp:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::getBasicOp()
|
|
|
|
{
|
|
|
|
if (CORBA::is_nil(myGeomEngine))
|
|
|
|
setGeomEngine();
|
|
|
|
// get GEOM_IBasicOperations interface
|
2006-05-06 14:44:32 +06:00
|
|
|
if (CORBA::is_nil(myBasicOp) || isNewStudy(myLastStudyID,myStudyID))
|
|
|
|
myBasicOp = myGeomEngine->GetIBasicOperations(myStudyID);
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// get3DPrimOp:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::get3DPrimOp()
|
|
|
|
{
|
|
|
|
if (CORBA::is_nil(myGeomEngine))
|
|
|
|
setGeomEngine();
|
|
|
|
// get GEOM_I3DPrimOperations interface
|
2006-05-06 14:44:32 +06:00
|
|
|
if (CORBA::is_nil(my3DPrimOp) || isNewStudy(myLastStudyID,myStudyID))
|
|
|
|
my3DPrimOp = myGeomEngine->GetI3DPrimOperations(myStudyID);
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// getBoolOp:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::getBoolOp()
|
|
|
|
{
|
|
|
|
if (CORBA::is_nil(myGeomEngine))
|
|
|
|
setGeomEngine();
|
|
|
|
// get GEOM_IBooleanOperations interface
|
2006-05-06 14:44:32 +06:00
|
|
|
if (CORBA::is_nil(myBoolOp) || isNewStudy(myLastStudyID,myStudyID))
|
|
|
|
myBoolOp = myGeomEngine->GetIBooleanOperations(myStudyID);
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// getInsOp:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::getInsOp()
|
|
|
|
{
|
|
|
|
if (CORBA::is_nil(myGeomEngine))
|
|
|
|
setGeomEngine();
|
|
|
|
// get GEOM_IInsertOperations interface
|
2006-05-06 14:44:32 +06:00
|
|
|
if (CORBA::is_nil(myInsOp) || isNewStudy(myLastStudyID,myStudyID))
|
|
|
|
myInsOp = myGeomEngine->GetIInsertOperations(myStudyID);
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// getTransfOp:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::getTransfOp()
|
|
|
|
{
|
|
|
|
if (CORBA::is_nil(myGeomEngine))
|
|
|
|
setGeomEngine();
|
|
|
|
// get GEOM_ITransformOperations interface
|
2006-05-06 14:44:32 +06:00
|
|
|
if (CORBA::is_nil(myTransfOp) || isNewStudy(myLastStudyID,myStudyID))
|
|
|
|
myTransfOp = myGeomEngine->GetITransformOperations(myStudyID);
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// getShapesOp:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::getShapesOp()
|
|
|
|
{
|
|
|
|
if (CORBA::is_nil(myGeomEngine))
|
|
|
|
setGeomEngine();
|
|
|
|
// get GEOM_IShapesOperations interface
|
2006-05-06 14:44:32 +06:00
|
|
|
if (CORBA::is_nil(myShapesOp) || isNewStudy(myLastStudyID,myStudyID))
|
|
|
|
myShapesOp = myGeomEngine->GetIShapesOperations(myStudyID);
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// getBlocksOp:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::getBlocksOp()
|
|
|
|
{
|
|
|
|
if (CORBA::is_nil(myGeomEngine))
|
|
|
|
setGeomEngine();
|
|
|
|
// get GEOM_IBlocksOperations interface
|
2006-05-06 14:44:32 +06:00
|
|
|
if (CORBA::is_nil(myBlocksOp) || isNewStudy(myLastStudyID,myStudyID))
|
|
|
|
myBlocksOp = myGeomEngine->GetIBlocksOperations(myStudyID);
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// getCurvesOp:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::getCurvesOp()
|
|
|
|
{
|
|
|
|
if (CORBA::is_nil(myGeomEngine))
|
|
|
|
setGeomEngine();
|
|
|
|
// get GEOM_ICurvesOperations interface
|
2006-05-06 14:44:32 +06:00
|
|
|
if (CORBA::is_nil(myCurvesOp) || isNewStudy(myLastStudyID,myStudyID))
|
|
|
|
myCurvesOp = myGeomEngine->GetICurvesOperations(myStudyID);
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// getLocalOp:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::getLocalOp()
|
|
|
|
{
|
|
|
|
if (CORBA::is_nil(myGeomEngine))
|
|
|
|
setGeomEngine();
|
|
|
|
// get GEOM_ILocalOperations interface
|
2006-05-06 14:44:32 +06:00
|
|
|
if (CORBA::is_nil(myLocalOp) || isNewStudy(myLastStudyID,myStudyID))
|
|
|
|
myLocalOp = myGeomEngine->GetILocalOperations(myStudyID);
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// getGroupOp:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::getGroupOp()
|
|
|
|
{
|
|
|
|
if (CORBA::is_nil(myGeomEngine))
|
|
|
|
setGeomEngine();
|
|
|
|
// get GEOM_IGroupOperations interface
|
2006-05-06 14:44:32 +06:00
|
|
|
if (CORBA::is_nil(myGroupOp) || isNewStudy(myLastStudyID,myStudyID))
|
|
|
|
myGroupOp = myGeomEngine->GetIGroupOperations(myStudyID);
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2004-12-17 16:18:33 +05:00
|
|
|
//=============================================================================
|
|
|
|
// GetServant:
|
|
|
|
//=============================================================================
|
|
|
|
PortableServer::ServantBase_var GEOM_Superv_i::GetServant(CORBA::Object_ptr theObject,
|
|
|
|
PortableServer::POA_ptr thePOA)
|
|
|
|
{
|
|
|
|
if(CORBA::is_nil(theObject)) return NULL;
|
|
|
|
PortableServer::Servant aServant = thePOA->reference_to_servant(theObject);
|
|
|
|
return aServant;
|
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//============================================================================
|
|
|
|
// function : Save()
|
|
|
|
// purpose : save OCAF/Geom document
|
|
|
|
//============================================================================
|
|
|
|
SALOMEDS::TMPFile* GEOM_Superv_i::Save(SALOMEDS::SComponent_ptr theComponent,
|
|
|
|
const char* theURL,
|
2006-05-06 14:44:32 +06:00
|
|
|
CORBA::Boolean isMultiFile)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
|
|
|
SALOMEDS::TMPFile_var aStreamFile;
|
|
|
|
return aStreamFile._retn();
|
|
|
|
}
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// function : SaveASCII()
|
|
|
|
// purpose :
|
|
|
|
//============================================================================
|
|
|
|
SALOMEDS::TMPFile* GEOM_Superv_i::SaveASCII(SALOMEDS::SComponent_ptr theComponent,
|
|
|
|
const char* theURL,
|
2006-05-06 14:44:32 +06:00
|
|
|
CORBA::Boolean isMultiFile)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
|
|
|
SALOMEDS::TMPFile_var aStreamFile;
|
|
|
|
return aStreamFile._retn();
|
|
|
|
}
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// function : Load()
|
|
|
|
// purpose :
|
|
|
|
//============================================================================
|
|
|
|
CORBA::Boolean GEOM_Superv_i::Load(SALOMEDS::SComponent_ptr theComponent,
|
|
|
|
const SALOMEDS::TMPFile& theStream,
|
|
|
|
const char* theURL,
|
2006-05-06 14:44:32 +06:00
|
|
|
CORBA::Boolean isMultiFile)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// function : LoadASCII()
|
|
|
|
// purpose :
|
|
|
|
//============================================================================
|
|
|
|
CORBA::Boolean GEOM_Superv_i::LoadASCII(SALOMEDS::SComponent_ptr theComponent,
|
|
|
|
const SALOMEDS::TMPFile& theStream,
|
|
|
|
const char* theURL,
|
2006-05-06 14:44:32 +06:00
|
|
|
CORBA::Boolean isMultiFile)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// function : Close()
|
|
|
|
// purpose :
|
|
|
|
//============================================================================
|
|
|
|
void GEOM_Superv_i::Close(SALOMEDS::SComponent_ptr theComponent)
|
2006-05-06 14:44:32 +06:00
|
|
|
{
|
|
|
|
}
|
2004-12-01 15:39:14 +05:00
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// function : ComponentDataType()
|
|
|
|
// purpose :
|
|
|
|
//============================================================================
|
|
|
|
char* GEOM_Superv_i::ComponentDataType()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// function : IORToLocalPersistentID()
|
|
|
|
// purpose :
|
|
|
|
//============================================================================
|
|
|
|
char* GEOM_Superv_i::IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
|
|
|
|
const char* IORString,
|
|
|
|
CORBA::Boolean isMultiFile,
|
|
|
|
CORBA::Boolean isASCII)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// function : LocalPersistentIDToIOR()
|
|
|
|
// purpose : Create/Load CORBA object from a persistent ref (an entry)
|
|
|
|
// : Used when a study is loaded
|
|
|
|
// : The IOR (IORName) of object created is returned
|
|
|
|
//============================================================================
|
|
|
|
char* GEOM_Superv_i::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject,
|
|
|
|
const char* aLocalPersistentID,
|
|
|
|
CORBA::Boolean isMultiFile,
|
|
|
|
CORBA::Boolean isASCII)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// function : CanPublishInStudy
|
|
|
|
// purpose :
|
|
|
|
//============================================================================
|
2006-05-06 14:44:32 +06:00
|
|
|
CORBA::Boolean GEOM_Superv_i::CanPublishInStudy(CORBA::Object_ptr theIOR)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
|
|
|
if (CORBA::is_nil(myGeomEngine))
|
|
|
|
setGeomEngine();
|
|
|
|
return myGeomEngine->CanPublishInStudy(theIOR);
|
|
|
|
}
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// function : PublishInStudy
|
|
|
|
// purpose :
|
|
|
|
//============================================================================
|
|
|
|
SALOMEDS::SObject_ptr GEOM_Superv_i::PublishInStudy(SALOMEDS::Study_ptr theStudy,
|
|
|
|
SALOMEDS::SObject_ptr theSObject,
|
|
|
|
CORBA::Object_ptr theObject,
|
|
|
|
const char* theName) throw (SALOME::SALOME_Exception)
|
|
|
|
{
|
|
|
|
if (CORBA::is_nil(myGeomEngine))
|
|
|
|
setGeomEngine();
|
|
|
|
return myGeomEngine->PublishInStudy(theStudy, theSObject, theObject, theName);
|
|
|
|
}
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// function : CanCopy()
|
|
|
|
// purpose :
|
|
|
|
//============================================================================
|
|
|
|
CORBA::Boolean GEOM_Superv_i::CanCopy(SALOMEDS::SObject_ptr theObject)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// function : CopyFrom()
|
|
|
|
// purpose :
|
|
|
|
//============================================================================
|
|
|
|
SALOMEDS::TMPFile* GEOM_Superv_i::CopyFrom(SALOMEDS::SObject_ptr theObject, CORBA::Long& theObjectID)
|
|
|
|
{
|
|
|
|
SALOMEDS::TMPFile_var aStreamFile;
|
|
|
|
return aStreamFile._retn();
|
|
|
|
}
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// function : CanPaste()
|
|
|
|
// purpose :
|
|
|
|
//============================================================================
|
|
|
|
CORBA::Boolean GEOM_Superv_i::CanPaste(const char* theComponentName, CORBA::Long theObjectID)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// function : PasteInto()
|
|
|
|
// purpose :
|
|
|
|
//============================================================================
|
|
|
|
SALOMEDS::SObject_ptr GEOM_Superv_i::PasteInto(const SALOMEDS::TMPFile& theStream,
|
|
|
|
CORBA::Long theObjectID,
|
|
|
|
SALOMEDS::SObject_ptr theObject)
|
|
|
|
{
|
|
|
|
SALOMEDS::SObject_var aNewSO;
|
|
|
|
return aNewSO._retn();
|
|
|
|
}
|
|
|
|
|
|
|
|
//================= Primitives Construction : BasicOperations =================
|
|
|
|
//=============================================================================
|
|
|
|
// MakePointXYZ:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointXYZ(CORBA::Double theX,
|
|
|
|
CORBA::Double theY,
|
|
|
|
CORBA::Double theZ)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakePointXYZ" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakePointXYZ");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBasicOp();
|
2004-12-01 15:39:14 +05:00
|
|
|
// make vertex and return
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointXYZ(theX, theY, theZ);
|
|
|
|
endService( " GEOM_Superv_i::MakePointXYZ" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakePointWithReference:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointWithReference (GEOM::GEOM_Object_ptr theReference,
|
|
|
|
CORBA::Double theX,
|
|
|
|
CORBA::Double theY,
|
|
|
|
CORBA::Double theZ)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakePointWithReference" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakePointWithReference");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBasicOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointWithReference(theReference, theX, theY, theZ);
|
|
|
|
endService( " GEOM_Superv_i::MakePointWithReference" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakePointOnCurve:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
|
|
|
|
CORBA::Double theParameter)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakePointOnCurve" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakePointOnCurve");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBasicOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointOnCurve(theRefCurve, theParameter);
|
|
|
|
endService( " GEOM_Superv_i::MakePointOnCurve" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakePointOnLinesIntersection:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnLinesIntersection (GEOM::GEOM_Object_ptr theRefLine1,
|
|
|
|
GEOM::GEOM_Object_ptr theRefLine2)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakePointOnLinesIntersection" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakePointOnLinesIntersection");
|
|
|
|
getBasicOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointOnLinesIntersection(theRefLine1, theRefLine2);
|
|
|
|
endService( " GEOM_Superv_i::MakePointOnLinesIntersection" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2006-06-01 17:32:40 +06:00
|
|
|
//=============================================================================
|
|
|
|
// MakeTangentOnCurve:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTangentOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
|
|
|
|
CORBA::Double theParameter)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeTangentOnCurve" );
|
2006-06-01 17:32:40 +06:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeTangentOnCurve");
|
|
|
|
getBasicOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeTangentOnCurve(theRefCurve, theParameter);
|
|
|
|
endService( " GEOM_Superv_i::MakeTangentOnCurve" );
|
|
|
|
return anObj;
|
2006-06-01 17:32:40 +06:00
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MakeVectorDXDYDZ:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeVectorDXDYDZ (CORBA::Double theDX,
|
|
|
|
CORBA::Double theDY,
|
|
|
|
CORBA::Double theDZ)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeVectorDXDYDZ" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeVectorDXDYDZ");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBasicOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeVectorDXDYDZ(theDX, theDY, theDZ);
|
|
|
|
endService( " GEOM_Superv_i::MakeVectorDXDYDZ" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeVectorTwoPnt:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeVectorTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeVectorTwoPnt" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeVector");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBasicOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeVectorTwoPnt(thePnt1, thePnt2);
|
|
|
|
endService( " GEOM_Superv_i::MakeVectorTwoPnt" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeLineTwoPnt:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeLineTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeLineTwoPnt");
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeLineTwoPnt");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBasicOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeLineTwoPnt(thePnt1, thePnt2);
|
|
|
|
endService( " GEOM_Superv_i::MakeLineTwoPnt");
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeLineTwoFaces:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeLineTwoFaces (GEOM::GEOM_Object_ptr theFace1,
|
|
|
|
GEOM::GEOM_Object_ptr theFace2)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeLineTwoFaces");
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeLineTwoFaces");
|
|
|
|
getBasicOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeLineTwoFaces(theFace1, theFace2);
|
|
|
|
endService( " GEOM_Superv_i::MakeLineTwoFaces");
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakePlaneThreePnt:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneThreePnt (GEOM::GEOM_Object_ptr thePnt1,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt2,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt3,
|
|
|
|
CORBA::Double theTrimSize)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakePlaneThreePnt");
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakePlaneThreePnt");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBasicOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlaneThreePnt(thePnt1, thePnt2, thePnt3, theTrimSize);
|
|
|
|
endService( " GEOM_Superv_i::MakePlaneThreePnt");
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakePlanePntVec:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlanePntVec (GEOM::GEOM_Object_ptr thePnt,
|
|
|
|
GEOM::GEOM_Object_ptr theVec,
|
|
|
|
CORBA::Double theTrimSize)
|
2008-03-07 12:45:34 +05:00
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakePlanePntVec" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakePlanePntVec");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBasicOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlanePntVec(thePnt, theVec, theTrimSize);
|
|
|
|
endService( " GEOM_Superv_i::MakePlanePntVec" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakePlaneFace:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneFace (GEOM::GEOM_Object_ptr theFace,
|
|
|
|
CORBA::Double theTrimSize)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakePlaneFace" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakePlaneFace");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBasicOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlaneFace(theFace, theTrimSize);
|
|
|
|
endService( " GEOM_Superv_i::MakePlaneFace" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2009-05-22 14:17:16 +06:00
|
|
|
//=============================================================================
|
|
|
|
// MakePlane2Vec:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlane2Vec (GEOM::GEOM_Object_ptr theVec1,
|
|
|
|
GEOM::GEOM_Object_ptr theVec2,
|
|
|
|
CORBA::Double theTrimSize)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakePlane2Vec" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakePlane2Vec");
|
|
|
|
getBasicOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlane2Vec(theVec1, theVec2, theTrimSize);
|
|
|
|
endService( " GEOM_Superv_i::MakePlane2Vec" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakePlaneLCS:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneLCS (GEOM::GEOM_Object_ptr theLCS,
|
|
|
|
CORBA::Double theTrimSize,
|
|
|
|
CORBA::Double theOrientation)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakePlaneLCS" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakePlaneLCS");
|
|
|
|
getBasicOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlaneLCS(theLCS, theTrimSize, theOrientation);
|
|
|
|
endService( " GEOM_Superv_i::MakePlaneLCS" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MakeMarker:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarker
|
|
|
|
(CORBA::Double theOX , CORBA::Double theOY , CORBA::Double theOZ,
|
|
|
|
CORBA::Double theXDX, CORBA::Double theXDY, CORBA::Double theXDZ,
|
|
|
|
CORBA::Double theYDX, CORBA::Double theYDY, CORBA::Double theYDZ)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeMarker" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeMarker");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBasicOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeMarker(theOX, theOY, theOZ, theXDX, theXDY, theXDZ, theYDX, theYDY, theYDZ);
|
|
|
|
endService( " GEOM_Superv_i::MakeMarker" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2006-06-01 17:32:40 +06:00
|
|
|
//=============================================================================
|
|
|
|
// MakeTangentPlaneOnFace:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTangentPlaneOnFace (GEOM::GEOM_Object_ptr theFace,
|
|
|
|
CORBA::Double theParameterU,
|
|
|
|
CORBA::Double theParameterV,
|
|
|
|
CORBA::Double theTrimSize)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeTangentPlaneOnFace" );
|
2006-06-01 17:32:40 +06:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeTangentPlaneOnFace");
|
|
|
|
getBasicOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeTangentPlaneOnFace(theFace, theParameterU,theParameterV,theTrimSize);
|
|
|
|
endService( " GEOM_Superv_i::MakeTangentPlaneOnFace" );
|
|
|
|
return anObj;
|
2006-06-01 17:32:40 +06:00
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//================= Primitives Construction : 3DPrimOperations ================
|
|
|
|
//=============================================================================
|
|
|
|
// MakeBox:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBox (CORBA::Double theX1,
|
|
|
|
CORBA::Double theY1,
|
|
|
|
CORBA::Double theZ1,
|
|
|
|
CORBA::Double theX2,
|
|
|
|
CORBA::Double theY2,
|
|
|
|
CORBA::Double theZ2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeBox" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeBox");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBasicOp();
|
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxTwoPnt(myBasicOp->MakePointXYZ(theX1, theY1, theZ1),
|
|
|
|
myBasicOp->MakePointXYZ(theX2, theY2, theZ2));
|
|
|
|
endService( " GEOM_Superv_i::MakeBox" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeBoxDXDYDZ:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxDXDYDZ (CORBA::Double theDX,
|
|
|
|
CORBA::Double theDY,
|
|
|
|
CORBA::Double theDZ)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeBoxDXDYDZ" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeBoxDXDYDZ");
|
2006-05-06 14:44:32 +06:00
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxDXDYDZ(theDX, theDY, theDZ);
|
|
|
|
endService( " GEOM_Superv_i::MakeBoxDXDYDZ" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeBoxTwoPnt:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeBoxTwoPnt" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeBoxTwoPnt");
|
2006-05-06 14:44:32 +06:00
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxTwoPnt(thePnt1, thePnt2);
|
|
|
|
endService( " GEOM_Superv_i::MakeBoxTwoPnt" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MakeFaceHW:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceHW (CORBA::Double theH,
|
|
|
|
CORBA::Double theW,
|
|
|
|
CORBA::Short theOrientation)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeFaceHW" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeFaceHW");
|
|
|
|
get3DPrimOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeFaceHW(theH, theW, theOrientation);
|
|
|
|
endService( " GEOM_Superv_i::MakeFaceHW" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeFaceObjHW:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceObjHW (GEOM::GEOM_Object_ptr theObj,
|
|
|
|
CORBA::Double theH,
|
|
|
|
CORBA::Double theW)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeFaceObjHW" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeFaceObjHW");
|
|
|
|
get3DPrimOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeFaceObjHW(theObj, theH, theW);
|
|
|
|
endService( " GEOM_Superv_i::MakeFaceObjHW" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeDiskPntVecR:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskPntVecR (GEOM::GEOM_Object_ptr theCenter,
|
|
|
|
GEOM::GEOM_Object_ptr theVector,
|
|
|
|
CORBA::Double theR)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeDiskPntVecR" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeDiskPntVecR");
|
|
|
|
get3DPrimOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeDiskPntVecR(theCenter, theVector, theR);
|
|
|
|
endService( " GEOM_Superv_i::MakeDiskPntVecR" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeDiskThreePnt:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskThreePnt (GEOM::GEOM_Object_ptr thePnt1,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt2,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt3)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeDiskThreePnt" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeDiskThreePnt");
|
|
|
|
get3DPrimOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeDiskThreePnt(thePnt1, thePnt2, thePnt3);
|
|
|
|
endService( " GEOM_Superv_i::MakeDiskThreePnt" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeDiskR:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskR (CORBA::Double theR,
|
|
|
|
CORBA::Short theOrientation)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeDiskR" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeDiskR");
|
|
|
|
get3DPrimOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeDiskR(theR, theOrientation);
|
|
|
|
endService( " GEOM_Superv_i::MakeDiskR" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MakeCylinderPntVecRH:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
|
|
|
|
GEOM::GEOM_Object_ptr theAxis,
|
|
|
|
CORBA::Double theRadius,
|
|
|
|
CORBA::Double theHeight)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeCylinderPntVecRH" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeCylinderPntVecRH");
|
2006-05-06 14:44:32 +06:00
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeCylinderPntVecRH(thePnt, theAxis, theRadius, theHeight);
|
|
|
|
endService( " GEOM_Superv_i::MakeCylinderPntVecRH" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeCylinderRH:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderRH (CORBA::Double theR,
|
|
|
|
CORBA::Double theH)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeCylinderRH" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeCylinderRH");
|
2006-05-06 14:44:32 +06:00
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeCylinderRH(theR, theH);
|
|
|
|
endService( " GEOM_Superv_i::MakeCylinderRH" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeSphere:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSphere (CORBA::Double theX,
|
|
|
|
CORBA::Double theY,
|
|
|
|
CORBA::Double theZ,
|
|
|
|
CORBA::Double theRadius)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeSphepe" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeSphepe");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBasicOp();
|
|
|
|
get3DPrimOp();
|
2009-02-13 17:16:39 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSpherePntR(myBasicOp->MakePointXYZ(theX, theY, theZ), theRadius);
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakeSphepe" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeSphereR:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSphereR (CORBA::Double theR)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeSphereR" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeSphereR");
|
2006-05-06 14:44:32 +06:00
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSphereR(theR);
|
|
|
|
endService( " GEOM_Superv_i::MakeSphereR" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeSpherePntR:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
|
|
|
|
CORBA::Double theR)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeSpherePntR" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeSpherePntR");
|
2006-05-06 14:44:32 +06:00
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSpherePntR(thePnt, theR);
|
|
|
|
endService( " GEOM_Superv_i::MakeSpherePntR" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeTorusPntVecRR:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTorusPntVecRR (GEOM::GEOM_Object_ptr thePnt,
|
|
|
|
GEOM::GEOM_Object_ptr theVec,
|
|
|
|
CORBA::Double theRMajor,
|
|
|
|
CORBA::Double theRMinor)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeTorusPntVecRR" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeTorusPntVecRR");
|
2006-05-06 14:44:32 +06:00
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeTorusPntVecRR(thePnt, theVec, theRMajor, theRMinor);
|
|
|
|
endService( " GEOM_Superv_i::MakeTorusPntVecRR" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeTorusRR:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTorusRR (CORBA::Double theRMajor,
|
|
|
|
CORBA::Double theRMinor)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeTorusRR" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeTorusRR");
|
2006-05-06 14:44:32 +06:00
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeTorusRR(theRMajor, theRMinor);
|
|
|
|
endService( " GEOM_Superv_i::MakeTorusRR" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeConePntVecR1R2H:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
|
|
|
|
GEOM::GEOM_Object_ptr theAxis,
|
|
|
|
CORBA::Double theR1,
|
|
|
|
CORBA::Double theR2,
|
|
|
|
CORBA::Double theHeight)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeConePntVecR1R2H" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeConePntVecR1R2H");
|
2006-05-06 14:44:32 +06:00
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeConePntVecR1R2H(thePnt, theAxis, theR1, theR2, theHeight);
|
|
|
|
endService( " GEOM_Superv_i::MakeConePntVecR1R2H" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeConeR1R2H:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeConeR1R2H (CORBA::Double theR1,
|
|
|
|
CORBA::Double theR2,
|
|
|
|
CORBA::Double theHeight)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeConeR1R2H" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeConeR1R2H");
|
2006-05-06 14:44:32 +06:00
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeConeR1R2H(theR1, theR2, theHeight);
|
|
|
|
endService( " GEOM_Superv_i::MakeConeR1R2H" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakePrismVecH:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
|
|
|
|
GEOM::GEOM_Object_ptr theVec,
|
|
|
|
CORBA::Double theH)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakePrismVecH" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakePrismVecH");
|
2006-05-06 14:44:32 +06:00
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismVecH(theBase, theVec, theH);
|
|
|
|
endService( " GEOM_Superv_i::MakePrismVecH" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MakePrismVecH2Ways:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
|
|
|
|
GEOM::GEOM_Object_ptr theVec,
|
|
|
|
CORBA::Double theH)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakePrismVecH2Ways" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakePrismVecH2Ways");
|
|
|
|
get3DPrimOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismVecH2Ways(theBase, theVec, theH);
|
|
|
|
endService( " GEOM_Superv_i::MakePrismVecH2Ways" );
|
|
|
|
return anObj;
|
|
|
|
}
|
2004-12-01 15:39:14 +05:00
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakePrismTwoPnt:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint1,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakePrismTwoPnt" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakePrismTwoPnt");
|
2006-05-06 14:44:32 +06:00
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismTwoPnt(theBase, thePoint1, thePoint2);
|
|
|
|
endService( " GEOM_Superv_i::MakePrismTwoPnt" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakePrismTwoPnt2Ways:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr theBase,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint1,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint2)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakePrismTwoPnt2Ways" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakePrismTwoPnt2Ways");
|
|
|
|
get3DPrimOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismTwoPnt2Ways(theBase, thePoint1, thePoint2);
|
|
|
|
endService( " GEOM_Superv_i::MakePrismTwoPnt2Ways" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MakePrismDXDYDZ:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismDXDYDZ (GEOM::GEOM_Object_ptr theBase,
|
|
|
|
CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakePrismDXDYDZ" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakePrismDXDYDZ");
|
|
|
|
get3DPrimOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismDXDYDZ(theBase, theDX, theDY, theDZ);
|
|
|
|
endService( " GEOM_Superv_i::MakePrismDXDYDZ" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakePrismDXDYDZ:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismDXDYDZ2Ways (GEOM::GEOM_Object_ptr theBase,
|
|
|
|
CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakePrismDXDYDZ2Ways" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakePrismDXDYDZ2Ways");
|
|
|
|
get3DPrimOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePrismDXDYDZ2Ways(theBase, theDX, theDY, theDZ);
|
|
|
|
endService( " GEOM_Superv_i::MakePrismDXDYDZ2Ways" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MakePipe:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipe (GEOM::GEOM_Object_ptr theBase,
|
|
|
|
GEOM::GEOM_Object_ptr thePath)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakePipe" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakePipe");
|
2006-05-06 14:44:32 +06:00
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePipe(theBase, thePath);
|
|
|
|
endService( " GEOM_Superv_i::MakePipe" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeRevolutionAxisAngle:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
|
|
|
|
GEOM::GEOM_Object_ptr theAxis,
|
|
|
|
CORBA::Double theAngle)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeRevolutionAxisAngle" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeRevolutionAxisAngle");
|
2006-05-06 14:44:32 +06:00
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeRevolutionAxisAngle(theBase, theAxis, theAngle);
|
|
|
|
endService( " GEOM_Superv_i::MakeRevolutionAxisAngle" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeRevolutionAxisAngle:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
|
|
|
|
GEOM::GEOM_Object_ptr theAxis,
|
|
|
|
CORBA::Double theAngle)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeRevolutionAxisAngle2Ways" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeRevolutionAxisAngle2Ways");
|
|
|
|
get3DPrimOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeRevolutionAxisAngle2Ways(theBase, theAxis, theAngle);
|
|
|
|
endService( " GEOM_Superv_i::MakeRevolutionAxisAngle2Ways" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeFilling:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilling (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Long theMinDeg, CORBA::Long theMaxDeg,
|
|
|
|
CORBA::Double theTol2D, CORBA::Double theTol3D,
|
2008-03-07 12:45:34 +05:00
|
|
|
CORBA::Long theNbIter, CORBA::Boolean theApprox)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeFilling" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeFilling");
|
2006-05-06 14:44:32 +06:00
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeFilling(theShape, theMinDeg, theMaxDeg, theTol2D, theTol3D, theNbIter, theApprox);
|
|
|
|
endService( " GEOM_Superv_i::MakeFilling" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//============================= BooleanOperations =============================
|
|
|
|
//=============================================================================
|
|
|
|
// MakeBoolean:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoolean (GEOM::GEOM_Object_ptr theShape1,
|
|
|
|
GEOM::GEOM_Object_ptr theShape2,
|
|
|
|
CORBA::Long theOperation)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeBoolean" );
|
2004-12-01 15:39:14 +05:00
|
|
|
// theOperation indicates the operation to be done:
|
|
|
|
// 1 - Common, 2 - Cut, 3 - Fuse, 4 - Section
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeBoolean");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBoolOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBoolOp->MakeBoolean(theShape1, theShape2, theOperation);
|
|
|
|
endService( " GEOM_Superv_i::MakeBoolean" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2006-06-01 17:32:40 +06:00
|
|
|
//=============================================================================
|
|
|
|
// MakeThruSections:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeThruSections(const GEOM::ListOfGO& theSeqSections,
|
|
|
|
CORBA::Boolean theModeSolid,
|
|
|
|
CORBA::Double thePreci,
|
|
|
|
CORBA::Boolean theRuled)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeThruSections" );
|
2006-06-01 17:32:40 +06:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeThruSections");
|
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeThruSections(theSeqSections, theModeSolid,thePreci,theRuled);
|
|
|
|
endService( " GEOM_Superv_i::MakeThruSections" );
|
|
|
|
return anObj;
|
2006-06-01 17:32:40 +06:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakePipe:
|
|
|
|
//=============================================================================
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeWithDifferentSections
|
|
|
|
(const GEOM::ListOfGO& theBases,
|
|
|
|
const GEOM::ListOfGO& theLocations,
|
|
|
|
GEOM::GEOM_Object_ptr thePath,
|
|
|
|
CORBA::Boolean theWithContact,
|
|
|
|
CORBA::Boolean theWithCorrections)
|
2006-06-01 17:32:40 +06:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakePipeWithDifferentSections" );
|
2006-06-01 17:32:40 +06:00
|
|
|
MESSAGE("GEOM_Superv_i::MakePipeWithDifferentSections");
|
|
|
|
get3DPrimOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePipeWithDifferentSections(theBases,theLocations, thePath,theWithContact,theWithCorrections);
|
|
|
|
endService( " GEOM_Superv_i::MakePipeWithDifferentSections" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakePipe:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeWithShellSections
|
|
|
|
(const GEOM::ListOfGO& theBases,
|
|
|
|
const GEOM::ListOfGO& theSubBases,
|
|
|
|
const GEOM::ListOfGO& theLocations,
|
|
|
|
GEOM::GEOM_Object_ptr thePath,
|
|
|
|
CORBA::Boolean theWithContact,
|
|
|
|
CORBA::Boolean theWithCorrections)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakePipeWithShellSections" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakePipeWithShellSections");
|
|
|
|
get3DPrimOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj =
|
|
|
|
my3DPrimOp->MakePipeWithShellSections(theBases, theSubBases,
|
|
|
|
theLocations, thePath,
|
|
|
|
theWithContact, theWithCorrections);
|
|
|
|
endService( " GEOM_Superv_i::MakePipeWithShellSections" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakePipe:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeShellsWithoutPath
|
|
|
|
(const GEOM::ListOfGO& theBases,
|
|
|
|
const GEOM::ListOfGO& theLocations)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakePipeShellsWithoutPath" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakePipeShellsWithoutPath");
|
|
|
|
get3DPrimOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj =
|
|
|
|
my3DPrimOp->MakePipeShellsWithoutPath(theBases,theLocations);
|
|
|
|
endService( " GEOM_Superv_i::MakePipeShellsWithoutPath" );
|
|
|
|
return anObj;
|
2006-06-01 17:32:40 +06:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MakePipe:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeBiNormalAlongVector
|
|
|
|
(GEOM::GEOM_Object_ptr theBase,
|
|
|
|
GEOM::GEOM_Object_ptr thePath,
|
|
|
|
GEOM::GEOM_Object_ptr theVec)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakePipeBiNormalAlongVector" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakePipeBiNormalAlongVector");
|
|
|
|
get3DPrimOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj =
|
|
|
|
my3DPrimOp->MakePipeBiNormalAlongVector(theBase, thePath, theVec);
|
|
|
|
endService( " GEOM_Superv_i::MakePipeBiNormalAlongVector" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MakeFuse:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFuse (GEOM::GEOM_Object_ptr theShape1,
|
|
|
|
GEOM::GEOM_Object_ptr theShape2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeFuse" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeFuse");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBoolOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBoolOp->MakeBoolean(theShape1, theShape2, 3);
|
|
|
|
endService( " GEOM_Superv_i::MakeFuse" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakePartition:
|
|
|
|
//=============================================================================
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePartition (GEOM::GEOM_List_ptr theShapes,
|
|
|
|
GEOM::GEOM_List_ptr theTools,
|
|
|
|
GEOM::GEOM_List_ptr theKeepInside,
|
|
|
|
GEOM::GEOM_List_ptr theRemoveInside,
|
2005-08-24 19:12:16 +06:00
|
|
|
CORBA::Short theLimit,
|
|
|
|
CORBA::Boolean theRemoveWebs,
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_List_ptr theMaterials,
|
|
|
|
CORBA::Short theKeepNonlimitShapes)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakePartition" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakePartition");
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM_List_i<GEOM::ListOfGO>* aListImplS =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShapes, myPOA).in());
|
|
|
|
GEOM_List_i<GEOM::ListOfGO>* aListImplT =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theTools, myPOA).in());
|
|
|
|
GEOM_List_i<GEOM::ListOfGO>* aListImplKI =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theKeepInside, myPOA).in());
|
|
|
|
GEOM_List_i<GEOM::ListOfGO>* aListImplRI =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theRemoveInside, myPOA).in());
|
|
|
|
GEOM_List_i<GEOM::ListOfLong>* aListImplM =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theMaterials, myPOA).in());
|
|
|
|
if (aListImplS && aListImplT && aListImplKI && aListImplRI && aListImplM) {
|
2006-05-06 14:44:32 +06:00
|
|
|
getBoolOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj =
|
|
|
|
myBoolOp->MakePartition(aListImplS->GetList(), aListImplT->GetList(),
|
|
|
|
aListImplKI->GetList(), aListImplRI->GetList(),
|
|
|
|
theLimit, theRemoveWebs, aListImplM->GetList(),
|
|
|
|
theKeepNonlimitShapes);
|
|
|
|
endService( " GEOM_Superv_i::MakePartition" );
|
|
|
|
return anObj;
|
2004-12-17 16:18:33 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakePartition" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return NULL;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeHalfPartition:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHalfPartition (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
GEOM::GEOM_Object_ptr thePlane)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeHalfPartition" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeHalfPartition");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBoolOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBoolOp->MakeHalfPartition(theShape, thePlane);
|
|
|
|
endService( " GEOM_Superv_i::MakeHalfPartition" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//============================== InsertOperations =============================
|
|
|
|
//=============================================================================
|
|
|
|
// MakeCopy:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCopy (GEOM::GEOM_Object_ptr theOriginal)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeCopy" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeCopy");
|
2006-05-06 14:44:32 +06:00
|
|
|
getInsOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myInsOp->MakeCopy(theOriginal);
|
|
|
|
endService( " GEOM_Superv_i::MakeCopy" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// Export:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::Export (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
const char* theFileName,
|
|
|
|
const char* theFormatName)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::Export" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::Export");
|
2006-05-06 14:44:32 +06:00
|
|
|
getInsOp();
|
2004-12-01 15:39:14 +05:00
|
|
|
myInsOp->Export(theObject, theFileName, theFormatName);
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::Export" );
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// Import:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::Import (const char* theFileName,
|
|
|
|
const char* theFormatName)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::Import" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::Import");
|
2006-05-06 14:44:32 +06:00
|
|
|
getInsOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myInsOp->Import(theFileName, theFormatName);
|
|
|
|
endService( " GEOM_Superv_i::Import" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// ImportTranslators:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::ImportTranslators (GEOM::string_array_out theFormats,
|
|
|
|
GEOM::string_array_out thePatterns)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::ImportTranslators" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::ImportTranslators");
|
2006-05-06 14:44:32 +06:00
|
|
|
getInsOp();
|
2004-12-01 15:39:14 +05:00
|
|
|
myInsOp->ImportTranslators(theFormats, thePatterns);
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::ImportTranslators" );
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// ExportTranslators:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::ExportTranslators (GEOM::string_array_out theFormats,
|
|
|
|
GEOM::string_array_out thePatterns)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::ExportTranslators" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::ExportTranslators");
|
2006-05-06 14:44:32 +06:00
|
|
|
getInsOp();
|
2004-12-01 15:39:14 +05:00
|
|
|
myInsOp->ExportTranslators(theFormats, thePatterns);
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::ExportTranslators" );
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//============================= TransformOperations ===========================
|
|
|
|
//=============================================================================
|
|
|
|
// TranslateTwoPoints:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint1,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::TranslateTwoPoints" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::TranslateTwoPoints");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateTwoPoints(theObject, thePoint1, thePoint2);
|
|
|
|
endService( " GEOM_Superv_i::TranslateTwoPoints" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// TranslateTwoPointsCopy:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint1,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::TranslateTwoPointsCopy" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::TranslateTwoPointsCopy");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateTwoPointsCopy(theObject, thePoint1, thePoint2);
|
|
|
|
endService( " GEOM_Superv_i::TranslateTwoPointsCopy" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// TranslateDXDYDZ:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
CORBA::Double theDX,
|
|
|
|
CORBA::Double theDY,
|
|
|
|
CORBA::Double theDZ)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::TranslateDXDYDZ" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::TranslateDXDYDZ");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateDXDYDZ(theObject, theDX, theDY, theDZ);
|
|
|
|
endService( " GEOM_Superv_i::TranslateDXDYDZ" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// TranslateDXDYDZCopy:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
CORBA::Double theDX,
|
|
|
|
CORBA::Double theDY,
|
|
|
|
CORBA::Double theDZ)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::TranslateDXDYDZCopy" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::TranslateDXDYDZCopy");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateDXDYDZCopy(theObject, theDX, theDY, theDZ);
|
|
|
|
endService( " GEOM_Superv_i::TranslateDXDYDZCopy" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// TranslateVector:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVector (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr theVector)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::TranslateVector" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::TranslateVector");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVector(theObject, theVector);
|
|
|
|
endService( " GEOM_Superv_i::TranslateVector" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// TranslateVectorCopy:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr theVector)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::TranslateVectorCopy" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::TranslateVectorCopy");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVectorCopy(theObject, theVector);
|
|
|
|
endService( " GEOM_Superv_i::TranslateVectorCopy" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
//=============================================================================
|
|
|
|
// TranslateVectorDistance:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVectorDistance (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr theVector,
|
|
|
|
CORBA::Double theDistance,
|
|
|
|
CORBA::Boolean theCopy)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::TranslateVectorDistance" );
|
|
|
|
MESSAGE("GEOM_Superv_i::TranslateVectorDistance");
|
|
|
|
getTransfOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVectorDistance(theObject,
|
|
|
|
theVector, theDistance, theCopy);
|
|
|
|
endService( " GEOM_Superv_i::TranslateVectorDistance" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MultiTranslate1D:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiTranslate1D (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr theVector,
|
|
|
|
CORBA::Double theStep,
|
|
|
|
CORBA::Long theNbTimes)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MultiTranslate1D" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MultiTranslate1D");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiTranslate1D(theObject, theVector, theStep, theNbTimes);
|
|
|
|
endService( " GEOM_Superv_i::MultiTranslate1D" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MultiTranslate2D:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiTranslate2D (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr theVector1,
|
|
|
|
CORBA::Double theStep1,
|
|
|
|
CORBA::Long theNbTimes1,
|
|
|
|
GEOM::GEOM_Object_ptr theVector2,
|
|
|
|
CORBA::Double theStep2,
|
|
|
|
CORBA::Long theNbTimes2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MultiTranslate2D" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MultiTranslate2D");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiTranslate2D(theObject, theVector1, theStep1, theNbTimes1,
|
|
|
|
theVector2, theStep2, theNbTimes2);
|
|
|
|
endService( " GEOM_Superv_i::MultiTranslate2D" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// Rotate:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::Rotate (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr theAxis,
|
|
|
|
CORBA::Double theAngle)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::Rotate" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::Rotate");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->Rotate(theObject, theAxis, theAngle);
|
|
|
|
endService( " GEOM_Superv_i::Rotate" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// RotateCopy:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateCopy (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr theAxis,
|
|
|
|
CORBA::Double theAngle)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::RotateCopy" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::RotateCopy");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->RotateCopy(theObject, theAxis, theAngle);
|
|
|
|
endService( " GEOM_Superv_i::RotateCopy" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
//=============================================================================
|
|
|
|
// RotateThreePoints:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateThreePoints (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr theCentPoint,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint1,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint2)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::RotateThreePoints" );
|
|
|
|
MESSAGE("GEOM_Superv_i::RotateThreePoints");
|
|
|
|
getTransfOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->RotateThreePoints(theObject, theCentPoint, thePoint1, thePoint2);
|
|
|
|
endService( " GEOM_Superv_i::RotateThreePoints" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// RotateThreePointsCopy:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateThreePointsCopy (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr theCentPoint,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint1,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint2)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::RotateThreePointsCopy" );
|
|
|
|
MESSAGE("GEOM_Superv_i::RotateThreePointsCopy");
|
|
|
|
getTransfOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->RotateThreePointsCopy(theObject, theCentPoint, thePoint1, thePoint2);
|
|
|
|
endService( " GEOM_Superv_i::RotateThreePointsCopy" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MultiRotate1D:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr theAxis,
|
|
|
|
CORBA::Long theNbTimes)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MultiRotate1D" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MultiRotate1D");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiRotate1D(theObject, theAxis, theNbTimes);
|
|
|
|
endService( " GEOM_Superv_i::MultiRotate1D" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MultiRotate2D:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr theAxis,
|
|
|
|
CORBA::Double theAngle,
|
|
|
|
CORBA::Long theNbTimes1,
|
|
|
|
CORBA::Double theStep,
|
|
|
|
CORBA::Long theNbTimes2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MultiRotate2D" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MultiRotate2D");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiRotate2D(theObject, theAxis, theAngle, theNbTimes1, theStep, theNbTimes2);
|
|
|
|
endService( " GEOM_Superv_i::MultiRotate2D" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MirrorPlane:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlane (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr thePlane)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MirrorPlane" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MirrorPlane");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPlane(theObject, thePlane);
|
|
|
|
endService( " GEOM_Superv_i::MirrorPlane" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MirrorPlaneCopy:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr thePlane)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MirrorPlaneCopy" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MirrorPlaneCopy");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPlaneCopy(theObject, thePlane);
|
|
|
|
endService( " GEOM_Superv_i::MirrorPlaneCopy" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MirrorAxis:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxis (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr theAxis)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MirrorAxis" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MirrorAxis");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorAxis(theObject, theAxis);
|
|
|
|
endService( " GEOM_Superv_i::MirrorAxis" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MirrorAxisCopy:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr theAxis)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MirrorAxisCopy" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MirrorAxisCopy");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorAxisCopy(theObject, theAxis);
|
|
|
|
endService( " GEOM_Superv_i::MirrorAxisCopy" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MirrorPoint:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPoint (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MirrorPoint" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MirrorPoint");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPoint(theObject, thePoint);
|
|
|
|
endService( " GEOM_Superv_i::MirrorPoint" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MirrorPointCopy:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPointCopy (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MirrorPoint" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MirrorPointCopy");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->MirrorPointCopy(theObject, thePoint);
|
|
|
|
endService( " GEOM_Superv_i::MirrorPoint" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// OffsetShape:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShape (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
CORBA::Double theOffset)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::OffsetShape" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::OffsetShape");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->OffsetShape(theObject, theOffset);
|
|
|
|
endService( " GEOM_Superv_i::OffsetShape" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// OffsetShapeCopy:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
CORBA::Double theOffset)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::OffsetShapeCopy" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::OffsetShapeCopy");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->OffsetShapeCopy(theObject, theOffset);
|
|
|
|
endService( " GEOM_Superv_i::OffsetShapeCopy" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// ScaleShape:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShape (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint,
|
|
|
|
CORBA::Double theFactor)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::ScaleShape" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::ScaleShape");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShape(theObject, thePoint, theFactor);
|
|
|
|
endService( " GEOM_Superv_i::ScaleShape" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// ScaleShapeCopy:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint,
|
|
|
|
CORBA::Double theFactor)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::ScaleShapeCopy" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::ScaleShapeCopy");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShapeCopy(theObject, thePoint, theFactor);
|
|
|
|
endService( " GEOM_Superv_i::ScaleShapeCopy" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
//=============================================================================
|
|
|
|
// ScaleShapeAlongAxes:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeAlongAxes (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint,
|
|
|
|
CORBA::Double theFactorX,
|
|
|
|
CORBA::Double theFactorY,
|
|
|
|
CORBA::Double theFactorZ)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::ScaleShapeAlongAxes" );
|
|
|
|
MESSAGE("GEOM_Superv_i::ScaleShapeAlongAxes");
|
|
|
|
getTransfOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShapeAlongAxes
|
|
|
|
(theObject, thePoint, theFactorX, theFactorY, theFactorZ);
|
|
|
|
endService( " GEOM_Superv_i::ScaleShapeAlongAxes" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// ScaleShapeAlongAxesCopy:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeAlongAxesCopy (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint,
|
|
|
|
CORBA::Double theFactorX,
|
|
|
|
CORBA::Double theFactorY,
|
|
|
|
CORBA::Double theFactorZ)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::ScaleShapeAlongAxesCopy" );
|
|
|
|
MESSAGE("GEOM_Superv_i::ScaleShapeAlongAxesCopy");
|
|
|
|
getTransfOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->ScaleShapeAlongAxesCopy
|
|
|
|
(theObject, thePoint, theFactorX, theFactorY, theFactorZ);
|
|
|
|
endService( " GEOM_Superv_i::ScaleShapeAlongAxesCopy" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================================================================
|
|
|
|
// PositionShape:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionShape (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr theStartLCS,
|
|
|
|
GEOM::GEOM_Object_ptr theEndLCS)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::PositionShape" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::PositionShape");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->PositionShape(theObject, theStartLCS, theEndLCS);
|
|
|
|
endService( " GEOM_Superv_i::PositionShape" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// PositionShapeCopy:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr theStartLCS,
|
|
|
|
GEOM::GEOM_Object_ptr theEndLCS)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::PositionShapeCopy" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::PositionShapeCopy");
|
2006-05-06 14:44:32 +06:00
|
|
|
getTransfOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->PositionShapeCopy(theObject, theStartLCS, theEndLCS);
|
|
|
|
endService( " GEOM_Superv_i::PositionShapeCopy" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
//=============================================================================
|
|
|
|
// PositionAlongPath:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionAlongPath (GEOM::GEOM_Object_ptr theObject,
|
|
|
|
GEOM::GEOM_Object_ptr thePath,
|
|
|
|
CORBA::Double theDistance,
|
|
|
|
CORBA::Boolean theCopy,
|
|
|
|
CORBA::Boolean theReverse)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::PositionAlongPath" );
|
|
|
|
MESSAGE("GEOM_Superv_i::PositionAlongPath");
|
|
|
|
getTransfOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myTransfOp->PositionAlongPath(theObject, thePath, theDistance, theCopy, theReverse);
|
|
|
|
endService( " GEOM_Superv_i::PositionAlongPath" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================== ShapesOperations ============================
|
|
|
|
//=============================================================================
|
|
|
|
// Make:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeEdge" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeEdge");
|
2006-05-06 14:44:32 +06:00
|
|
|
getShapesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeEdge(thePnt1, thePnt2);
|
|
|
|
endService( " GEOM_Superv_i::MakeEdge" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeWire:
|
|
|
|
//=============================================================================
|
2009-05-27 17:46:05 +06:00
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeWire (GEOM::GEOM_List_ptr theEdgesAndWires,
|
|
|
|
CORBA::Double theTolerance)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeWire" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeWire");
|
2004-12-17 16:18:33 +05:00
|
|
|
if (GEOM_List_i<GEOM::ListOfGO>* aListImplEW =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theEdgesAndWires, myPOA).in())) {
|
2006-05-06 14:44:32 +06:00
|
|
|
getShapesOp();
|
2009-05-27 17:46:05 +06:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeWire(aListImplEW->GetList(), theTolerance);
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakeWire" );
|
|
|
|
return anObj;
|
2004-12-17 16:18:33 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakeWire" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return NULL;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeFace:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFace (GEOM::GEOM_Object_ptr theWire,
|
|
|
|
CORBA::Boolean isPlanarWanted)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeFace" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeFace");
|
2006-05-06 14:44:32 +06:00
|
|
|
getShapesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeFace(theWire, isPlanarWanted);
|
|
|
|
endService( " GEOM_Superv_i::MakeFace" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeFaceWires:
|
|
|
|
//=============================================================================
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceWires (GEOM::GEOM_List_ptr theWires,
|
2004-12-01 15:39:14 +05:00
|
|
|
CORBA::Boolean isPlanarWanted)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeFaceWires" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeFaceWires");
|
2004-12-17 16:18:33 +05:00
|
|
|
if (GEOM_List_i<GEOM::ListOfGO>* aListImplW =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theWires, myPOA).in())) {
|
2006-05-06 14:44:32 +06:00
|
|
|
getShapesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeFaceWires(aListImplW->GetList(), isPlanarWanted);
|
|
|
|
endService( " GEOM_Superv_i::MakeFaceWires" );
|
|
|
|
return anObj;
|
2004-12-17 16:18:33 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakeFaceWires" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return NULL;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeShell:
|
|
|
|
//=============================================================================
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeShell (GEOM::GEOM_List_ptr theFacesAndShells)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeShell" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeShell");
|
2004-12-17 16:18:33 +05:00
|
|
|
if (GEOM_List_i<GEOM::ListOfGO>* aListImplFS =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theFacesAndShells, myPOA).in())) {
|
2006-05-06 14:44:32 +06:00
|
|
|
getShapesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeShell(aListImplFS->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakeShell" );
|
|
|
|
return anObj;
|
2004-12-17 16:18:33 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakeShell" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return NULL;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeSolidShell:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSolidShell (GEOM::GEOM_Object_ptr theShell)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeSolidShell" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeSolidShell");
|
2006-05-06 14:44:32 +06:00
|
|
|
getShapesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeSolidShell(theShell);
|
|
|
|
endService( " GEOM_Superv_i::MakeSolidShell" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeSolidShells:
|
|
|
|
//=============================================================================
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSolidShells (GEOM::GEOM_List_ptr theShells)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeSolidShells" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeSolidShells");
|
2004-12-17 16:18:33 +05:00
|
|
|
if (GEOM_List_i<GEOM::ListOfGO>* aListImplS =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShells, myPOA).in())) {
|
2006-05-06 14:44:32 +06:00
|
|
|
getShapesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeSolidShells(aListImplS->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakeSolidShells" );
|
|
|
|
return anObj;
|
2004-12-17 16:18:33 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakeSolidShells" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return NULL;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeCompound:
|
|
|
|
//=============================================================================
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCompound (GEOM::GEOM_List_ptr theShapes)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeCompound" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeCompound");
|
2004-12-17 16:18:33 +05:00
|
|
|
if (GEOM_List_i<GEOM::ListOfGO>* aListImpl =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShapes, myPOA).in())) {
|
2006-05-06 14:44:32 +06:00
|
|
|
getShapesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeCompound(aListImpl->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakeCompound" );
|
|
|
|
return anObj;
|
2004-12-17 16:18:33 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakeCompound" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return NULL;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeGlueFaces:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
|
2008-03-07 12:45:34 +05:00
|
|
|
CORBA::Double theTolerance,
|
|
|
|
CORBA::Boolean doKeepNonSolids)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeGlueFaces" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeGlueFaces");
|
2006-05-06 14:44:32 +06:00
|
|
|
getShapesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj =
|
|
|
|
myShapesOp->MakeGlueFaces(theShape, theTolerance, doKeepNonSolids);
|
|
|
|
endService( " GEOM_Superv_i::MakeGlueFaces" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetGlueFaces:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_List_ptr GEOM_Superv_i::GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Double theTolerance)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::GetGlueFaces" );
|
|
|
|
MESSAGE("GEOM_Superv_i::GetGlueFaces");
|
|
|
|
getShapesOp();
|
|
|
|
GEOM::ListOfGO* aList = myShapesOp->GetGlueFaces(theShape, theTolerance);
|
|
|
|
GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aList));
|
|
|
|
MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
|
|
|
|
endService( " GEOM_Superv_i::GetGlueFaces" );
|
|
|
|
return aListPtr->_this();
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeGlueFacesByList:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Double theTolerance,
|
|
|
|
const GEOM::ListOfGO& theFaces,
|
|
|
|
CORBA::Boolean doKeepNonSolids)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeGlueFacesByList" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeGlueFacesByList");
|
|
|
|
getShapesOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj =
|
|
|
|
myShapesOp->MakeGlueFacesByList(theShape, theTolerance, theFaces, doKeepNonSolids);
|
|
|
|
endService( " GEOM_Superv_i::MakeGlueFacesByList" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeExplode:
|
|
|
|
//=============================================================================
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_List_ptr GEOM_Superv_i::MakeExplode (GEOM::GEOM_Object_ptr theShape,
|
2005-08-24 19:12:16 +06:00
|
|
|
CORBA::Long theShapeType,
|
|
|
|
CORBA::Boolean isSorted)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeExplode" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeExplode");
|
2006-05-06 14:44:32 +06:00
|
|
|
getShapesOp();
|
2004-12-17 16:18:33 +05:00
|
|
|
|
|
|
|
GEOM::ListOfGO* aList = myShapesOp->MakeExplode(theShape, theShapeType, isSorted);
|
|
|
|
GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aList));
|
|
|
|
MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakeExplode" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return aListPtr->_this();
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// NumberOfFaces:
|
|
|
|
//=============================================================================
|
|
|
|
CORBA::Long GEOM_Superv_i::NumberOfFaces (GEOM::GEOM_Object_ptr theShape)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::NumberOfFaces" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::NumberOfFaces");
|
2006-05-06 14:44:32 +06:00
|
|
|
getShapesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
CORBA::Long aRes = myShapesOp->NumberOfFaces(theShape);
|
|
|
|
endService( " GEOM_Superv_i::NumberOfFaces" );
|
|
|
|
return aRes;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// NumberOfEdges:
|
|
|
|
//=============================================================================
|
|
|
|
CORBA::Long GEOM_Superv_i::NumberOfEdges (GEOM::GEOM_Object_ptr theShape)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::NumberOfEdges" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::NumberOfEdges");
|
2006-05-06 14:44:32 +06:00
|
|
|
getShapesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
CORBA::Long aRes = myShapesOp->NumberOfEdges(theShape);
|
|
|
|
endService( " GEOM_Superv_i::NumberOfEdges" );
|
|
|
|
return aRes;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================================================================
|
|
|
|
// ChangeOrientation:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::ChangeOrientation (GEOM::GEOM_Object_ptr theShape)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::ChangeOrientation" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::ChangeOrientation");
|
2006-05-06 14:44:32 +06:00
|
|
|
getShapesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myShapesOp->ChangeOrientation(theShape);
|
|
|
|
endService( " GEOM_Superv_i::ChangeOrientation" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
//=============================================================================
|
|
|
|
// GetShapesOnShape:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_List_ptr GEOM_Superv_i::GetShapesOnShape
|
|
|
|
(GEOM::GEOM_Object_ptr theCheckShape,
|
|
|
|
GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Short theShapeType,
|
|
|
|
GEOM::shape_state theState)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::GetShapesOnShape" );
|
|
|
|
MESSAGE("GEOM_Superv_i::GetShapesOnShape");
|
|
|
|
getShapesOp();
|
|
|
|
GEOM::ListOfGO* aList =
|
|
|
|
myShapesOp->GetShapesOnShape(theCheckShape, theShape, theShapeType, theState);
|
|
|
|
GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aList));
|
|
|
|
MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
|
|
|
|
endService( " GEOM_Superv_i::GetShapesOnShape" );
|
|
|
|
return aListPtr->_this();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetShapesOnShapeAsCompound:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::GetShapesOnShapeAsCompound
|
|
|
|
(GEOM::GEOM_Object_ptr theCheckShape,
|
|
|
|
GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Short theShapeType,
|
|
|
|
GEOM::shape_state theState)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::GetShapesOnShapeAsCompound" );
|
|
|
|
MESSAGE("GEOM_Superv_i::GetShapesOnShapeAsCompound");
|
|
|
|
getShapesOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj =
|
|
|
|
myShapesOp->GetShapesOnShapeAsCompound(theCheckShape, theShape, theShapeType, theState);
|
|
|
|
endService( " GEOM_Superv_i::GetShapesOnShapeAsCompound" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================== BlocksOperations ============================
|
|
|
|
//=============================================================================
|
|
|
|
// MakeQuad4Vertices:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad4Vertices (GEOM::GEOM_Object_ptr thePnt1,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt2,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt3,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt4)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeQuad4Vertices" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeQuad4Vertices");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeQuad4Vertices(thePnt1, thePnt2, thePnt3, thePnt4);
|
|
|
|
endService( " GEOM_Superv_i::MakeQuad4Vertices" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeQuad:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad (GEOM::GEOM_Object_ptr theEdge1,
|
|
|
|
GEOM::GEOM_Object_ptr theEdge2,
|
|
|
|
GEOM::GEOM_Object_ptr theEdge3,
|
|
|
|
GEOM::GEOM_Object_ptr theEdge4)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeQuad" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeQuad");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeQuad(theEdge1, theEdge2, theEdge3, theEdge4);
|
|
|
|
endService( " GEOM_Superv_i::MakeQuad" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeQuad2Edges:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad2Edges (GEOM::GEOM_Object_ptr theEdge1,
|
|
|
|
GEOM::GEOM_Object_ptr theEdge2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeQuad2Edges" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeQuad2Edges");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeQuad2Edges(theEdge1, theEdge2);
|
|
|
|
endService( " GEOM_Superv_i::MakeQuad2Edges" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeHexa:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHexa (GEOM::GEOM_Object_ptr theFace1,
|
|
|
|
GEOM::GEOM_Object_ptr theFace2,
|
|
|
|
GEOM::GEOM_Object_ptr theFace3,
|
|
|
|
GEOM::GEOM_Object_ptr theFace4,
|
|
|
|
GEOM::GEOM_Object_ptr theFace5,
|
|
|
|
GEOM::GEOM_Object_ptr theFace6)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeHexa" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeHexa");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeHexa(theFace1, theFace2, theFace3, theFace4, theFace5, theFace6);
|
|
|
|
endService( " GEOM_Superv_i::MakeHexa" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeHexa2Faces:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHexa2Faces (GEOM::GEOM_Object_ptr theFace1,
|
|
|
|
GEOM::GEOM_Object_ptr theFace2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeHexa2Faces" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeHexa2Faces");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeHexa2Faces(theFace1, theFace2);
|
|
|
|
endService( " GEOM_Superv_i::MakeHexa2Faces" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetPoint:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::GetPoint (GEOM::GEOM_Object_ptr theShape,
|
2005-08-24 19:12:16 +06:00
|
|
|
CORBA::Double theX,
|
|
|
|
CORBA::Double theY,
|
|
|
|
CORBA::Double theZ,
|
|
|
|
CORBA::Double theEpsilon)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::GetPoint" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::GetPoint");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetPoint(theShape, theX, theY, theZ, theEpsilon);
|
|
|
|
endService( " GEOM_Superv_i::GetPoint" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetEdge:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::GetEdge (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint1,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::GetEdge" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::GetEdge");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetEdge(theShape, thePoint1, thePoint2);
|
|
|
|
endService( " GEOM_Superv_i::GetEdge" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetEdgeNearPoint:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::GetEdgeNearPoint (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::GetEdgeNearPoint" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::GetEdgeNearPoint");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetEdgeNearPoint(theShape, thePoint);
|
|
|
|
endService( " GEOM_Superv_i::GetEdgeNearPoint" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetFaceByPoints:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByPoints (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint1,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint2,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint3,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint4)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::GetFaceByPoints" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::GetFaceByPoints");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceByPoints(theShape, thePoint1, thePoint2, thePoint3, thePoint4);
|
|
|
|
endService( " GEOM_Superv_i::GetFaceByPoints" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetFaceByEdges:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByEdges (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
GEOM::GEOM_Object_ptr theEdge1,
|
|
|
|
GEOM::GEOM_Object_ptr theEdge2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::GetFaceByEdges" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::GetFaceByEdges");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceByEdges(theShape, theEdge1, theEdge2);
|
|
|
|
endService( " GEOM_Superv_i::GetFaceByEdges" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetOppositeFace:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::GetOppositeFace (GEOM::GEOM_Object_ptr theBlock,
|
|
|
|
GEOM::GEOM_Object_ptr theFace)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::GetOppositeFace" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::GetOppositeFace");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetOppositeFace(theBlock, theFace);
|
|
|
|
endService( " GEOM_Superv_i::GetOppositeFace" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetFaceNearPoint:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceNearPoint (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::GetFaceNearPoint" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::GetFaceNearPoint");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceNearPoint(theShape, thePoint);
|
|
|
|
endService( " GEOM_Superv_i::GetFaceNearPoint" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetFaceByNormale:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByNormale (GEOM::GEOM_Object_ptr theBlock,
|
|
|
|
GEOM::GEOM_Object_ptr theVector)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::GetFaceByNormale" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::GetFaceByNormale");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetFaceByNormale(theBlock, theVector);
|
|
|
|
endService( " GEOM_Superv_i::GetFaceByNormale" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// IsCompoundOfBlocks:
|
|
|
|
//=============================================================================
|
|
|
|
CORBA::Boolean GEOM_Superv_i::IsCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
|
2005-08-24 19:12:16 +06:00
|
|
|
CORBA::Long theMinNbFaces,
|
|
|
|
CORBA::Long theMaxNbFaces,
|
2004-12-01 15:39:14 +05:00
|
|
|
CORBA::Long& theNbBlocks)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::IsCompoundOfBlocks" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::IsCompoundOfBlocks");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
CORBA::Boolean aRes = myBlocksOp->IsCompoundOfBlocks(theCompound, theMinNbFaces, theMaxNbFaces, theNbBlocks);
|
|
|
|
endService( " GEOM_Superv_i::IsCompoundOfBlocks" );
|
|
|
|
return aRes;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// CheckCompoundOfBlocks:
|
|
|
|
//=============================================================================
|
|
|
|
CORBA::Boolean GEOM_Superv_i::CheckCompoundOfBlocks
|
|
|
|
(GEOM::GEOM_Object_ptr theCompound,
|
|
|
|
GEOM::GEOM_IBlocksOperations::BCErrors_out theErrors)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::CheckCompoundOfBlocks" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::CheckCompoundOfBlocks");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
CORBA::Boolean aRes = myBlocksOp->CheckCompoundOfBlocks(theCompound, theErrors);
|
|
|
|
endService( " GEOM_Superv_i::CheckCompoundOfBlocks" );
|
|
|
|
return aRes;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// PrintBCErrors:
|
|
|
|
//=============================================================================
|
|
|
|
char* GEOM_Superv_i::PrintBCErrors (GEOM::GEOM_Object_ptr theCompound,
|
|
|
|
const GEOM::GEOM_IBlocksOperations::BCErrors& theErrors)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::PrintBCErrors" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::PrintBCErrors");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
char* anErrors = myBlocksOp->PrintBCErrors(theCompound, theErrors);
|
|
|
|
endService( " GEOM_Superv_i::PrintBCErrors" );
|
|
|
|
return anErrors;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// ExplodeCompoundOfBlocks:
|
|
|
|
//=============================================================================
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_List_ptr GEOM_Superv_i::ExplodeCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
|
2005-08-24 19:12:16 +06:00
|
|
|
CORBA::Long theMinNbFaces,
|
|
|
|
CORBA::Long theMaxNbFaces)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::ExplodeCompoundOfBlocks" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::ExplodeCompoundOfBlocks");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::ListOfGO* aBlocks = myBlocksOp->ExplodeCompoundOfBlocks(theCompound, theMinNbFaces, theMaxNbFaces);
|
|
|
|
GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aBlocks));
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::ExplodeCompoundOfBlocks" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return aListPtr->_this();
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetBlockNearPoint:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::GetBlockNearPoint (GEOM::GEOM_Object_ptr theCompound,
|
|
|
|
GEOM::GEOM_Object_ptr thePoint)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::GetBlockNearPoint" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::GetBlockNearPoint");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetBlockNearPoint(theCompound, thePoint);
|
|
|
|
endService( " GEOM_Superv_i::GetBlockNearPoint" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetBlockByParts:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::GetBlockByParts (GEOM::GEOM_Object_ptr theCompound,
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_List_ptr theParts)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::GetBlockByParts" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::GetBlockByParts");
|
2004-12-17 16:18:33 +05:00
|
|
|
if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theParts, myPOA).in())) {
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetBlockByParts(theCompound, aListImplP->GetList());
|
|
|
|
endService( " GEOM_Superv_i::GetBlockByParts" );
|
|
|
|
return anObj;
|
2004-12-17 16:18:33 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::GetBlockByParts" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return NULL;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetBlocksByParts:
|
|
|
|
//=============================================================================
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_List_ptr GEOM_Superv_i::GetBlocksByParts (GEOM::GEOM_Object_ptr theCompound,
|
|
|
|
GEOM::GEOM_List_ptr theParts)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::GetBlocksByParts" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::GetBlocksByParts");
|
2004-12-17 16:18:33 +05:00
|
|
|
if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theParts, myPOA).in())) {
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2004-12-17 16:18:33 +05:00
|
|
|
|
|
|
|
GEOM::ListOfGO* aBlocks = myBlocksOp->GetBlocksByParts(theCompound, aListImplP->GetList());
|
|
|
|
GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aBlocks));
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::GetBlocksByParts" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return aListPtr->_this();
|
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::GetBlocksByParts" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return NULL;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeMultiTransformation1D:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation1D (GEOM::GEOM_Object_ptr theBlock,
|
2005-08-24 19:12:16 +06:00
|
|
|
CORBA::Long theDirFace1,
|
|
|
|
CORBA::Long theDirFace2,
|
|
|
|
CORBA::Long theNbTimes)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeMultiTransformation1D" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeMultiTransformation1D");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeMultiTransformation1D(theBlock, theDirFace1, theDirFace2, theNbTimes);
|
|
|
|
endService( " GEOM_Superv_i::MakeMultiTransformation1D" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeMultiTransformation2D:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation2D
|
|
|
|
(GEOM::GEOM_Object_ptr theBlock,
|
2005-08-24 19:12:16 +06:00
|
|
|
CORBA::Long theDirFace1U,
|
|
|
|
CORBA::Long theDirFace2U,
|
|
|
|
CORBA::Long theNbTimesU,
|
|
|
|
CORBA::Long theDirFace1V,
|
|
|
|
CORBA::Long theDirFace2V,
|
|
|
|
CORBA::Long theNbTimesV)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeMultiTransformation2D" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeMultiTransformation2D");
|
2006-05-06 14:44:32 +06:00
|
|
|
getBlocksOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeMultiTransformation2D(theBlock,
|
|
|
|
theDirFace1U, theDirFace2U, theNbTimesU,
|
|
|
|
theDirFace1V, theDirFace2V, theNbTimesV);
|
|
|
|
endService( " GEOM_Superv_i::MakeMultiTransformation2D" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================== CurvesOperations ============================
|
|
|
|
//=============================================================================
|
|
|
|
// MakeCirclePntVecR:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCirclePntVecR (GEOM::GEOM_Object_ptr theCenter,
|
|
|
|
GEOM::GEOM_Object_ptr theVector,
|
|
|
|
CORBA::Double theR)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeCirclePntVecR" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeCirclePntVecR");
|
2006-05-06 14:44:32 +06:00
|
|
|
getCurvesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeCirclePntVecR(theCenter, theVector, theR);
|
|
|
|
endService( " GEOM_Superv_i::MakeCirclePntVecR" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeCircleThreePnt:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCircleThreePnt (GEOM::GEOM_Object_ptr thePnt1,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt2,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt3)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeCircleThreePnt" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeCircleThreePnt");
|
2006-05-06 14:44:32 +06:00
|
|
|
getCurvesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeCircleThreePnt(thePnt1, thePnt2, thePnt3);
|
|
|
|
endService( " GEOM_Superv_i::MakeCircleThreePnt" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
//=============================================================================
|
|
|
|
// MakeCircleCenter2Pnt:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCircleCenter2Pnt (GEOM::GEOM_Object_ptr thePnt1,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt2,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt3)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeCircleCenter2Pnt" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeCircleCenter2Pnt");
|
|
|
|
getCurvesOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeCircleCenter2Pnt(thePnt1, thePnt2, thePnt3);
|
|
|
|
endService( " GEOM_Superv_i::MakeCircleCenter2Pnt" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeEllipse:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEllipse (GEOM::GEOM_Object_ptr theCenter,
|
|
|
|
GEOM::GEOM_Object_ptr theVector,
|
|
|
|
CORBA::Double theRMajor,
|
|
|
|
CORBA::Double theRMinor)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeEllipse" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeEllipse");
|
2006-05-06 14:44:32 +06:00
|
|
|
getCurvesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeEllipse(theCenter, theVector, theRMajor, theRMinor);
|
|
|
|
endService( " GEOM_Superv_i::MakeEllipse" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2009-02-25 18:31:16 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MakeEllipseVec:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEllipseVec (GEOM::GEOM_Object_ptr theCenter,
|
|
|
|
GEOM::GEOM_Object_ptr theVector,
|
|
|
|
CORBA::Double theRMajor,
|
|
|
|
CORBA::Double theRMinor,
|
|
|
|
GEOM::GEOM_Object_ptr theVectorMajor)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeEllipseVec" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeEllipseVec");
|
|
|
|
getCurvesOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeEllipseVec(theCenter, theVector, theRMajor, theRMinor, theVectorMajor);
|
|
|
|
endService( " GEOM_Superv_i::MakeEllipseVec" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MakeArc:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArc (GEOM::GEOM_Object_ptr thePnt1,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt2,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt3)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeArc" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeArc");
|
2006-05-06 14:44:32 +06:00
|
|
|
getCurvesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeArc(thePnt1, thePnt2, thePnt3);
|
|
|
|
endService( " GEOM_Superv_i::MakeArc" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeArcCenter:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArcCenter (GEOM::GEOM_Object_ptr theCenter,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt1,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt2,
|
|
|
|
CORBA::Boolean theSense)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeArcCenter" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeArcCenter");
|
|
|
|
getCurvesOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeArcCenter(theCenter, thePnt1, thePnt2,theSense);
|
|
|
|
endService( " GEOM_Superv_i::MakeArcCenter" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MakeArcOfEllipse:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArcOfEllipse (GEOM::GEOM_Object_ptr thePnt1,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt2,
|
|
|
|
GEOM::GEOM_Object_ptr thePnt3)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeArcOfEllipse" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeArcOfEllipse");
|
|
|
|
getCurvesOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeArcOfEllipse(thePnt1, thePnt2, thePnt3);
|
|
|
|
endService( " GEOM_Superv_i::MakeArcOfEllipse" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MakePolyline:
|
|
|
|
//=============================================================================
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePolyline (GEOM::GEOM_List_ptr thePoints)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakePolyline" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakePolyline");
|
2004-12-17 16:18:33 +05:00
|
|
|
if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
|
2006-05-06 14:44:32 +06:00
|
|
|
getCurvesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakePolyline(aListImplP->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakePolyline" );
|
|
|
|
return anObj;
|
2004-12-17 16:18:33 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakePolyline" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return NULL;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeSplineBezier:
|
|
|
|
//=============================================================================
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineBezier (GEOM::GEOM_List_ptr thePoints)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeSplineBezier" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeSplineBezier");
|
2004-12-17 16:18:33 +05:00
|
|
|
if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
|
2006-05-06 14:44:32 +06:00
|
|
|
getCurvesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSplineBezier(aListImplP->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakeSplineBezier" );
|
|
|
|
return anObj;
|
2004-12-17 16:18:33 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakeSplineBezier" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return NULL;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeSplineInterpolation:
|
|
|
|
//=============================================================================
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineInterpolation (GEOM::GEOM_List_ptr thePoints)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeSplineInterpolation" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeSplineInterpolation");
|
2004-12-17 16:18:33 +05:00
|
|
|
if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
|
2006-05-06 14:44:32 +06:00
|
|
|
getCurvesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSplineInterpolation(aListImplP->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakeSplineInterpolation" );
|
|
|
|
return anObj;
|
2004-12-17 16:18:33 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakeSplineInterpolation" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return NULL;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeSketcher:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSketcher (const char* theCommand,
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_List_ptr theWorkingPlane)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeSketcher" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeSketcher");
|
2004-12-17 16:18:33 +05:00
|
|
|
if (GEOM_List_i<GEOM::ListOfDouble>* aListImplWP =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theWorkingPlane, myPOA).in())) {
|
2006-05-06 14:44:32 +06:00
|
|
|
getCurvesOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSketcher(theCommand, aListImplWP->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakeSketcher" );
|
|
|
|
return anObj;
|
2004-12-17 16:18:33 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakeSketcher" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return NULL;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
//=============================================================================
|
|
|
|
// Make3DSketcher:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::Make3DSketcher ( GEOM::GEOM_List_ptr theCoordinates)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::Make3DSketcher" );
|
|
|
|
MESSAGE("GEOM_Superv_i::Make3DSketcher");
|
|
|
|
if (GEOM_List_i<GEOM::ListOfDouble>* aListImpl =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theCoordinates, myPOA).in())) {
|
|
|
|
getCurvesOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myCurvesOp->Make3DSketcher(aListImpl->GetList());
|
|
|
|
endService( " GEOM_Superv_i::Make3DSketcher" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
endService( " GEOM_Superv_i::Make3DSketcher" );
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================== LocalOperations =============================
|
|
|
|
//=============================================================================
|
|
|
|
// MakeFilletAll:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletAll (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Double theR)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeFilletAll" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeFilletAllMakeSketcher");
|
2006-05-06 14:44:32 +06:00
|
|
|
getLocalOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletAll(theShape, theR);
|
|
|
|
endService( " GEOM_Superv_i::MakeFilletAll" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeFilletEdges:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletEdges (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Double theR,
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_List_ptr theEdges)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeFilletEdges" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeFilletEdges");
|
2004-12-17 16:18:33 +05:00
|
|
|
if (GEOM_List_i<GEOM::ListOfLong>* aListImplE =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
|
2006-05-06 14:44:32 +06:00
|
|
|
getLocalOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletEdges(theShape, theR, aListImplE->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakeFilletEdges" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
endService( " GEOM_Superv_i::MakeFilletEdges" );
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeFilletEdges R1 R2:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletEdgesR1R2 (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Double theR1,
|
|
|
|
CORBA::Double theR2,
|
|
|
|
GEOM::GEOM_List_ptr theEdges)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeFilletEdgesR1R2" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeFilletEdgesR1R2");
|
|
|
|
if (GEOM_List_i<GEOM::ListOfLong>* aListImplE =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
|
|
|
|
getLocalOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletEdgesR1R2(theShape, theR1,
|
|
|
|
theR2, aListImplE->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakeFilletEdgesR1R2" );
|
|
|
|
return anObj;
|
2004-12-17 16:18:33 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakeFilletEdgesR1R2" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return NULL;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeFilletFaces:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletFaces (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Double theR,
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_List_ptr theFaces)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeFilletFaces" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeFilletFaces");
|
2004-12-17 16:18:33 +05:00
|
|
|
if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
|
2006-05-06 14:44:32 +06:00
|
|
|
getLocalOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletFaces(theShape, theR, aListImplF->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakeFilletFaces" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
endService( " GEOM_Superv_i::MakeFilletFaces" );
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeFilletFaces R1 R2:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletFacesR1R2 (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Double theR1,
|
|
|
|
CORBA::Double theR2,
|
|
|
|
GEOM::GEOM_List_ptr theFaces)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeFilletFacesR1R2" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeFilletFacesR1R2");
|
|
|
|
if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
|
|
|
|
getLocalOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletFacesR1R2(theShape, theR1, theR2,
|
|
|
|
aListImplF->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakeFilletFacesR1R2" );
|
|
|
|
return anObj;
|
2004-12-17 16:18:33 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakeFilletFacesR1R2" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return NULL;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MakeFillet2D:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFillet2D (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Double theR,
|
|
|
|
GEOM::GEOM_List_ptr theVertexes)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeFillet2D" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeFillet2D");
|
|
|
|
if (GEOM_List_i<GEOM::ListOfLong>* aListImplV =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theVertexes, myPOA).in())) {
|
|
|
|
getLocalOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFillet2D(theShape, theR, aListImplV->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakeFillet2D" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
endService( " GEOM_Superv_i::MakeFillet2D" );
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=============================================================================
|
|
|
|
// MakeChamferAll:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferAll (GEOM::GEOM_Object_ptr theShape, CORBA::Double theD)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeChamferAll" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeChamferAll");
|
2006-05-06 14:44:32 +06:00
|
|
|
getLocalOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferAll(theShape, theD);
|
|
|
|
endService( " GEOM_Superv_i::MakeChamferAll" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeChamferEdge:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdge (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Double theD1, CORBA::Double theD2,
|
|
|
|
CORBA::Long theFace1, CORBA::Long theFace2)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeChamferEdge" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeChamferEdge");
|
2006-05-06 14:44:32 +06:00
|
|
|
getLocalOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdge(theShape, theD1, theD2, theFace1, theFace2);
|
|
|
|
endService( " GEOM_Superv_i::MakeChamferEdge" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeChamferEdgeAD:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdgeAD (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Double theD, CORBA::Double theAngle,
|
|
|
|
CORBA::Long theFace1, CORBA::Long theFace2)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeChamferEdgeAD" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeChamferEdgeAD");
|
|
|
|
getLocalOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdgeAD(theShape, theD, theAngle, theFace1, theFace2);
|
|
|
|
endService( " GEOM_Superv_i::MakeChamferEdgeAD" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeChamferFaces:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferFaces (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Double theD1, CORBA::Double theD2,
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_List_ptr theFaces)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeChamferFaces" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeChamferFaces");
|
2004-12-17 16:18:33 +05:00
|
|
|
if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
|
2006-05-06 14:44:32 +06:00
|
|
|
getLocalOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferFaces(theShape, theD1, theD2, aListImplF->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakeChamferFaces" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
endService( " GEOM_Superv_i::MakeChamferFaces" );
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeChamferFacesAD:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferFacesAD (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Double theD, CORBA::Double theAngle,
|
|
|
|
GEOM::GEOM_List_ptr theFaces)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeChamferFacesAD" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeChamferFacesAD");
|
|
|
|
if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
|
|
|
|
getLocalOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferFacesAD(theShape, theD, theAngle, aListImplF->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakeChamferFacesAD" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
endService( " GEOM_Superv_i::MakeChamferFacesAD" );
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeChamferEdges:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdges (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Double theD1, CORBA::Double theD2,
|
|
|
|
GEOM::GEOM_List_ptr theEdges)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeChamferEdges" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeChamferEdges");
|
|
|
|
if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
|
|
|
|
getLocalOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdges(theShape, theD1, theD2, aListImplF->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakeChamferEdges" );
|
|
|
|
return anObj;
|
|
|
|
}
|
|
|
|
endService( " GEOM_Superv_i::MakeChamferEdges" );
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeChamferEdgesAD:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdgesAD (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Double theD, CORBA::Double theAngle,
|
|
|
|
GEOM::GEOM_List_ptr theEdges)
|
|
|
|
{
|
|
|
|
beginService( " GEOM_Superv_i::MakeChamferEdgesAD" );
|
|
|
|
MESSAGE("GEOM_Superv_i::MakeChamferEdgesAD");
|
|
|
|
if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
|
|
|
|
dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
|
|
|
|
getLocalOp();
|
|
|
|
GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdgesAD(theShape, theD, theAngle, aListImplF->GetList());
|
|
|
|
endService( " GEOM_Superv_i::MakeChamferEdgesAD" );
|
|
|
|
return anObj;
|
2004-12-17 16:18:33 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::MakeChamferEdgesAD" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return NULL;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// MakeArchimede:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArchimede (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
CORBA::Double theWeight,
|
|
|
|
CORBA::Double theWaterDensity,
|
|
|
|
CORBA::Double theMeshingDeflection)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::MakeArchimede" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::MakeArchimede");
|
2006-05-06 14:44:32 +06:00
|
|
|
getLocalOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeArchimede(theShape, theWeight, theWaterDensity, theMeshingDeflection);
|
|
|
|
endService( " GEOM_Superv_i::MakeArchimede" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetSubShapeIndexMakeFilletAll:
|
|
|
|
//=============================================================================
|
|
|
|
CORBA::Long GEOM_Superv_i::GetSubShapeIndex (GEOM::GEOM_Object_ptr theShape,
|
|
|
|
GEOM::GEOM_Object_ptr theSubShape)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::GetSubShapeIndex" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::GetSubShapeIndexMakeArchimede");
|
2006-05-06 14:44:32 +06:00
|
|
|
getLocalOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
CORBA::Long aRes = myLocalOp->GetSubShapeIndex(theShape, theSubShape);
|
|
|
|
endService( " GEOM_Superv_i::GetSubShapeIndex" );
|
|
|
|
return aRes;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================== GroupOperations =============================
|
|
|
|
//=============================================================================
|
|
|
|
// CreateGroup:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::CreateGroup (GEOM::GEOM_Object_ptr theMainShape,
|
|
|
|
CORBA::Long theShapeType)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::CreateGroup" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::CreateGroup");
|
2006-05-06 14:44:32 +06:00
|
|
|
getGroupOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myGroupOp->CreateGroup(theMainShape, theShapeType);
|
|
|
|
endService( " GEOM_Superv_i::CreateGroup" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// AddObject:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::AddObject (GEOM::GEOM_Object_ptr theGroup,
|
|
|
|
CORBA::Long theSubShapeId)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::AddObject" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::AddObject");
|
2006-05-06 14:44:32 +06:00
|
|
|
getGroupOp();
|
2004-12-01 15:39:14 +05:00
|
|
|
myGroupOp->AddObject(theGroup, theSubShapeId);
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::AddObject" );
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// RemoveObject:
|
|
|
|
//=============================================================================
|
|
|
|
void GEOM_Superv_i::RemoveObject (GEOM::GEOM_Object_ptr theGroup,
|
|
|
|
CORBA::Long theSubShapeId)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::RemoveObject" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::RemoveObject");
|
2006-05-06 14:44:32 +06:00
|
|
|
getGroupOp();
|
2004-12-01 15:39:14 +05:00
|
|
|
myGroupOp->RemoveObject(theGroup, theSubShapeId);
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::RemoveObject" );
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetType:
|
|
|
|
//=============================================================================
|
|
|
|
CORBA::Long GEOM_Superv_i::GetType (GEOM::GEOM_Object_ptr theGroup)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::GetType" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::GetType");
|
2006-05-06 14:44:32 +06:00
|
|
|
getGroupOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
CORBA::Long aResult = myGroupOp->GetType(theGroup);
|
|
|
|
endService( " GEOM_Superv_i::GetType" );
|
|
|
|
return aResult;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetMainShape:
|
|
|
|
//=============================================================================
|
|
|
|
GEOM::GEOM_Object_ptr GEOM_Superv_i::GetMainShape (GEOM::GEOM_Object_ptr theGroup)
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::GetMainShape" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::GetMainShape");
|
2006-05-06 14:44:32 +06:00
|
|
|
getGroupOp();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_ptr anObj = myGroupOp->GetMainShape(theGroup);
|
|
|
|
endService( " GEOM_Superv_i::GetMainShape" );
|
|
|
|
return anObj;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=============================================================================
|
|
|
|
// GetObjects:
|
|
|
|
//=============================================================================
|
2004-12-17 16:18:33 +05:00
|
|
|
GEOM::GEOM_List_ptr GEOM_Superv_i::GetObjects (GEOM::GEOM_Object_ptr theGroup)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
beginService( " GEOM_Superv_i::GetObjects" );
|
2004-12-01 15:39:14 +05:00
|
|
|
MESSAGE("GEOM_Superv_i::GetObjects");
|
2006-05-06 14:44:32 +06:00
|
|
|
getGroupOp();
|
2004-12-17 16:18:33 +05:00
|
|
|
|
|
|
|
GEOM::ListOfLong* aList = myGroupOp->GetObjects(theGroup);
|
|
|
|
GEOM_List_i<GEOM::ListOfLong>* aListPtr = new GEOM_List_i<GEOM::ListOfLong>(*(aList));
|
|
|
|
MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
|
2008-03-07 12:45:34 +05:00
|
|
|
endService( " GEOM_Superv_i::GetObjects" );
|
2004-12-17 16:18:33 +05:00
|
|
|
return aListPtr->_this();
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=====================================================================================
|
|
|
|
// EXPORTED METHODS
|
|
|
|
//=====================================================================================
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
PortableServer::ObjectId * GEOM_SupervEngine_factory(CORBA::ORB_ptr orb,
|
|
|
|
PortableServer::POA_ptr poa,
|
|
|
|
PortableServer::ObjectId * contId,
|
|
|
|
const char *instanceName,
|
|
|
|
const char * interfaceName)
|
|
|
|
{
|
|
|
|
GEOM_Superv_i * myGEOM_Superv_i = new GEOM_Superv_i(orb, poa, contId, instanceName, interfaceName);
|
2008-03-07 12:45:34 +05:00
|
|
|
//Don't understand the reason why this component is registered ???
|
|
|
|
// myGEOM_Superv_i->register_name("/myGEOM_Superv");
|
2004-12-01 15:39:14 +05:00
|
|
|
return myGEOM_Superv_i->getId() ;
|
|
|
|
}
|
|
|
|
}
|