//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
#include <Standard_Stream.hxx>
#include "GEOM_ITransformOperations_i.hh"
aGEOMObject = GEOM::GEOM_Object::_duplicate(theObject);
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) anObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (anObject.IsNull()) return aGEOMObject._retn();
//Get the first point of translation
+ CORBA::String_var aP1Entry = thePoint1->GetEntry();
Handle(GEOM_Object) aPoint1 =
- GetOperations()->GetEngine()->GetObject(thePoint1->GetStudyID(), thePoint1->GetEntry());
+ GetOperations()->GetEngine()->GetObject(thePoint1->GetStudyID(), aP1Entry);
if (aPoint1.IsNull()) return aGEOMObject._retn();
//Get the second point of translation
+ CORBA::String_var aP2Entry = thePoint2->GetEntry();
Handle(GEOM_Object) aPoint2 =
- GetOperations()->GetEngine()->GetObject(thePoint2->GetStudyID(), thePoint2->GetEntry());
+ GetOperations()->GetEngine()->GetObject(thePoint2->GetStudyID(), aP2Entry);
if (aPoint2.IsNull()) return aGEOMObject._retn();
//Perform the translation
if (thePoint1 == NULL || thePoint2 == NULL || theObject == NULL) return aGEOMObject._retn();
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) aBasicObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
//Get the first point of translation
+ CORBA::String_var aP1Entry = thePoint1->GetEntry();
Handle(GEOM_Object) aPoint1 =
- GetOperations()->GetEngine()->GetObject(thePoint1->GetStudyID(), thePoint1->GetEntry());
+ GetOperations()->GetEngine()->GetObject(thePoint1->GetStudyID(), aP1Entry);
if (aPoint1.IsNull()) return aGEOMObject._retn();
//Get the second point of translation
+ CORBA::String_var aP2Entry = thePoint2->GetEntry();
Handle(GEOM_Object) aPoint2 =
- GetOperations()->GetEngine()->GetObject(thePoint2->GetStudyID(), thePoint2->GetEntry());
+ GetOperations()->GetEngine()->GetObject(thePoint2->GetStudyID(), aP2Entry);
if (aPoint2.IsNull()) return aGEOMObject._retn();
//Create the translated shape
* TranslateDXDYDZ
*/
//=============================================================================
-GEOM::GEOM_Object_ptr GEOM_ITransformOperations_i::TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject,
- CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
+GEOM::GEOM_Object_ptr GEOM_ITransformOperations_i::TranslateDXDYDZ
+ (GEOM::GEOM_Object_ptr theObject,
+ CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
{
//Set a not done flag
GetOperations()->SetNotDone();
aGEOMObject = GEOM::GEOM_Object::_duplicate(theObject);
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) anObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (anObject.IsNull()) return aGEOMObject._retn();
//Perform the translation
*/
//=============================================================================
GEOM::GEOM_Object_ptr GEOM_ITransformOperations_i::TranslateDXDYDZCopy
- (GEOM::GEOM_Object_ptr theObject, CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
+ (GEOM::GEOM_Object_ptr theObject,
+ CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
{
GEOM::GEOM_Object_var aGEOMObject;
if (theObject == NULL) return aGEOMObject._retn();
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) aBasicObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
-
-
//Create the translated shape
Handle(GEOM_Object) anObject =
GetOperations()->TranslateDXDYDZCopy(aBasicObject, theDX, theDY, theDZ);
return aGEOMObject._retn();
}
- aGEOMObject = GEOM::GEOM_Object::_duplicate(theObject);
+ aGEOMObject = GEOM::GEOM_Object::_duplicate(theObject);
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) anObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (anObject.IsNull()) return aGEOMObject._retn();
//Get the vector of translation
+ CORBA::String_var aVEntry = theVector->GetEntry();
Handle(GEOM_Object) aVector =
- GetOperations()->GetEngine()->GetObject(theVector->GetStudyID(), theVector->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theVector->GetStudyID(), aVEntry);
if (aVector.IsNull()) return aGEOMObject._retn();
//Perform the translation
if (theObject == NULL || theVector == NULL) return aGEOMObject._retn();
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) aBasicObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
//Get the vector of translation
+ CORBA::String_var aVEntry = theVector->GetEntry();
Handle(GEOM_Object) aVector =
- GetOperations()->GetEngine()->GetObject(theVector->GetStudyID(), theVector->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theVector->GetStudyID(), aVEntry);
if (aVector.IsNull()) return aGEOMObject._retn();
//Perform the translation
{
GEOM::GEOM_Object_var aGEOMObject;
GetOperations()->SetNotDone(); //Set a not done flag
-
+
if (theObject == NULL || theVector == NULL || theDistance == 0) return aGEOMObject._retn();
-
+
//check if the object is a subshape
- if(!theObject->IsMainShape()) {
+ if (!theCopy && !theObject->IsMainShape()) {
GetOperations()->SetErrorCode(SUBSHAPE_ERROR);
return aGEOMObject._retn();
}
-
+
if (!theCopy)
aGEOMObject = GEOM::GEOM_Object::_duplicate(theObject);
-
+
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) aBasicObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
-
+
//Get the vector of translation
+ CORBA::String_var aVecEntry = theVector->GetEntry();
Handle(GEOM_Object) aVector =
- GetOperations()->GetEngine()->GetObject(theVector->GetStudyID(), theVector->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theVector->GetStudyID(), aVecEntry);
if (aVector.IsNull()) return aGEOMObject._retn();
-
+
//Perform the translation
if (theCopy) {
- Handle(GEOM_Object) anObject = GetOperations()->TranslateVectorDistance(aBasicObject, aVector, theDistance, theCopy);
+ Handle(GEOM_Object) anObject = GetOperations()->
+ TranslateVectorDistance(aBasicObject, aVector, theDistance, theCopy);
if (!GetOperations()->IsDone() || anObject.IsNull())
return aGEOMObject._retn();
aGEOMObject = GEOM::GEOM_Object::_duplicate(theObject);
//Get the object itself
- Handle(GEOM_Object) anObject = GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ CORBA::String_var anEntry = theObject->GetEntry();
+ Handle(GEOM_Object) anObject =
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (anObject.IsNull()) return aGEOMObject._retn();
//Get the axis of revolution
+ CORBA::String_var anAEntry = theAxis->GetEntry();
Handle(GEOM_Object) anAxis =
- GetOperations()->GetEngine()->GetObject(theAxis->GetStudyID(), theAxis->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theAxis->GetStudyID(), anAEntry);
if (anAxis.IsNull()) return aGEOMObject._retn();
//Perform the rotation
if (theObject == NULL || theAxis == NULL) return aGEOMObject._retn();
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) aBasicObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
//Get the axis of rotation
+ CORBA::String_var anAEntry = theAxis->GetEntry();
Handle(GEOM_Object) anAxis =
- GetOperations()->GetEngine()->GetObject(theAxis->GetStudyID(), theAxis->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theAxis->GetStudyID(), anAEntry);
if (anAxis.IsNull()) return aGEOMObject._retn();
//Perform the rotation
if (theObject == NULL || thePlane == NULL) return aGEOMObject._retn();
//check if the object is a subshape
- if(!theObject->IsMainShape()) {
+ if (!theObject->IsMainShape()) {
GetOperations()->SetErrorCode(SUBSHAPE_ERROR);
return aGEOMObject._retn();
}
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) anObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (anObject.IsNull()) return aGEOMObject._retn();
//Get the plane
+ CORBA::String_var aPlnEntry = thePlane->GetEntry();
Handle(GEOM_Object) aPlane =
- GetOperations()->GetEngine()->GetObject(thePlane->GetStudyID(), thePlane->GetEntry());
+ GetOperations()->GetEngine()->GetObject(thePlane->GetStudyID(), aPlnEntry);
if (aPlane.IsNull()) return aGEOMObject._retn();
//Perform the mirror
if (theObject == NULL || thePlane == NULL) return aGEOMObject._retn();
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) aBasicObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
//Get the vector of translation
+ CORBA::String_var aPlnEntry = thePlane->GetEntry();
Handle(GEOM_Object) aPlane =
- GetOperations()->GetEngine()->GetObject(thePlane->GetStudyID(), thePlane->GetEntry());
+ GetOperations()->GetEngine()->GetObject(thePlane->GetStudyID(), aPlnEntry);
if (aPlane.IsNull()) return aGEOMObject._retn();
//Perform the mirror
}
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) anObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (anObject.IsNull()) return aGEOMObject._retn();
//Get the axis
+ CORBA::String_var anAEntry = theAxis->GetEntry();
Handle(GEOM_Object) aAxis =
- GetOperations()->GetEngine()->GetObject(theAxis->GetStudyID(), theAxis->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theAxis->GetStudyID(), anAEntry);
if (aAxis.IsNull()) return aGEOMObject._retn();
//Perform the mirror
if (theObject == NULL || theAxis == NULL) return aGEOMObject._retn();
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) aBasicObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
//Get the vector of translation
+ CORBA::String_var anAEntry = theAxis->GetEntry();
Handle(GEOM_Object) aAxis =
- GetOperations()->GetEngine()->GetObject(theAxis->GetStudyID(), theAxis->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theAxis->GetStudyID(), anAEntry);
if (aAxis.IsNull()) return aGEOMObject._retn();
//Perform the mirror
if (theObject == NULL || thePoint == NULL) return aGEOMObject._retn();
//check if the object is a subshape
- if(!theObject->IsMainShape()) {
+ if (!theObject->IsMainShape()) {
GetOperations()->SetErrorCode(SUBSHAPE_ERROR);
return aGEOMObject._retn();
}
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) anObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (anObject.IsNull()) return aGEOMObject._retn();
//Get the point
+ CORBA::String_var aPntEntry = thePoint->GetEntry();
Handle(GEOM_Object) aPoint =
- GetOperations()->GetEngine()->GetObject(thePoint->GetStudyID(), thePoint->GetEntry());
+ GetOperations()->GetEngine()->GetObject(thePoint->GetStudyID(), aPntEntry);
if (aPoint.IsNull()) return aGEOMObject._retn();
//Perform the mirror
if (theObject == NULL || thePoint == NULL) return aGEOMObject._retn();
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) aBasicObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
//Get the vector of translation
+ CORBA::String_var aPntEntry = thePoint->GetEntry();
Handle(GEOM_Object) aPoint =
- GetOperations()->GetEngine()->GetObject(thePoint->GetStudyID(), thePoint->GetEntry());
+ GetOperations()->GetEngine()->GetObject(thePoint->GetStudyID(), aPntEntry);
if (aPoint.IsNull()) return aGEOMObject._retn();
//Perform the mirror
if (theObject == NULL) return aGEOMObject._retn();
//check if the object is a subshape
- if(!theObject->IsMainShape()) {
+ if (!theObject->IsMainShape()) {
GetOperations()->SetErrorCode(SUBSHAPE_ERROR);
return aGEOMObject._retn();
}
-
//Get the basic object
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) aBasicObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
//Create the offset shape
if (theObject == NULL) return aGEOMObject._retn();
//Get the basic object
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) aBasicObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
//Create the offset shape
if (thePoint == NULL || theObject == NULL) return aGEOMObject._retn();
//check if the object is a subshape
- if(!theObject->IsMainShape()) {
+ if (!theObject->IsMainShape()) {
GetOperations()->SetErrorCode(SUBSHAPE_ERROR);
return aGEOMObject._retn();
}
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) anObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (anObject.IsNull()) return aGEOMObject._retn();
//Get the point
+ CORBA::String_var aPntEntry = thePoint->GetEntry();
Handle(GEOM_Object) aPoint =
- GetOperations()->GetEngine()->GetObject(thePoint->GetStudyID(), thePoint->GetEntry());
+ GetOperations()->GetEngine()->GetObject(thePoint->GetStudyID(), aPntEntry);
if (aPoint.IsNull()) return aGEOMObject._retn();
//Perform the scale
if (thePoint == NULL || theObject == NULL) return aGEOMObject._retn();
//Get the basic object
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) aBasicObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
//Get the point
+ CORBA::String_var aPntEntry = thePoint->GetEntry();
Handle(GEOM_Object) aPoint =
- GetOperations()->GetEngine()->GetObject(thePoint->GetStudyID(), thePoint->GetEntry());
+ GetOperations()->GetEngine()->GetObject(thePoint->GetStudyID(), aPntEntry);
if (aPoint.IsNull()) return aGEOMObject._retn();
//Perform the scale
return aGEOMObject._retn();
//check if the object is a subshape
- if(!theObject->IsMainShape()) {
+ if (!theObject->IsMainShape()) {
GetOperations()->SetErrorCode(SUBSHAPE_ERROR);
return aGEOMObject._retn();
}
//Get the basic object
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) anObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (anObject.IsNull()) return aGEOMObject._retn();
//Get the Start LCS (may be NULL for positioning from global LCS)
Handle(GEOM_Object) aStartLCS = NULL;
if (theStartLCS != NULL && !CORBA::is_nil(theStartLCS)) {
- aStartLCS = GetOperations()->GetEngine()->GetObject(theStartLCS->GetStudyID(), theStartLCS->GetEntry());
+ CORBA::String_var aStartLCSEntry = theStartLCS->GetEntry();
+ aStartLCS = GetOperations()->GetEngine()->GetObject(theStartLCS->GetStudyID(), aStartLCSEntry);
if (aStartLCS.IsNull()) return aGEOMObject._retn();
}
//Get the End LCS
+ CORBA::String_var anEndLCSEntry = theEndLCS->GetEntry();
Handle(GEOM_Object) aEndLCS =
- GetOperations()->GetEngine()->GetObject(theEndLCS->GetStudyID(), theEndLCS->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theEndLCS->GetStudyID(), anEndLCSEntry);
if (aEndLCS.IsNull()) return aGEOMObject._retn();
//Perform the Position
return aGEOMObject._retn();
//Get the basic object
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) aBasicObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
//Get the Start LCS (may be NULL for positioning from global LCS)
Handle(GEOM_Object) aStartLCS = NULL;
if (theStartLCS != NULL && !CORBA::is_nil(theStartLCS)) {
- aStartLCS = GetOperations()->GetEngine()->GetObject(theStartLCS->GetStudyID(), theStartLCS->GetEntry());
+ CORBA::String_var aStartLCSEntry = theStartLCS->GetEntry();
+ aStartLCS = GetOperations()->GetEngine()->GetObject(theStartLCS->GetStudyID(), aStartLCSEntry);
if (aStartLCS.IsNull()) return aGEOMObject._retn();
}
//Get the End LCS
+ CORBA::String_var anEndLCSEntry = theEndLCS->GetEntry();
Handle(GEOM_Object) aEndLCS =
- GetOperations()->GetEngine()->GetObject(theEndLCS->GetStudyID(), theEndLCS->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theEndLCS->GetStudyID(), anEndLCSEntry);
if (aEndLCS.IsNull()) return aGEOMObject._retn();
//Perform the position
if (theObject == NULL || theVector == NULL) return aGEOMObject._retn();
//Get the object itself
- Handle(GEOM_Object) aBasicObject = GetOperations()->GetEngine()->GetObject
- (theObject->GetStudyID(), theObject->GetEntry());
+ CORBA::String_var anEntry = theObject->GetEntry();
+ Handle(GEOM_Object) aBasicObject =
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
//Get the vector of translation
- Handle(GEOM_Object) aVector = GetOperations()->GetEngine()->GetObject
- (theVector->GetStudyID(), theVector->GetEntry());
+ CORBA::String_var aVecEntry = theVector->GetEntry();
+ Handle(GEOM_Object) aVector =
+ GetOperations()->GetEngine()->GetObject(theVector->GetStudyID(), aVecEntry);
if (aVector.IsNull()) return aGEOMObject._retn();
//Perform the translation
if (theObject == NULL || theVector1 == NULL || theVector2 == NULL) return aGEOMObject._retn();
//Get the object itself
- Handle(GEOM_Object) aBasicObject = GetOperations()->GetEngine()->GetObject
- (theObject->GetStudyID(), theObject->GetEntry());
+ CORBA::String_var anEntry = theObject->GetEntry();
+ Handle(GEOM_Object) aBasicObject =
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
//Get the vector1 of translation
- Handle(GEOM_Object) aVector1 = GetOperations()->GetEngine()->GetObject
- (theVector1->GetStudyID(), theVector1->GetEntry());
+ CORBA::String_var aVec1Entry = theVector1->GetEntry();
+ Handle(GEOM_Object) aVector1 =
+ GetOperations()->GetEngine()->GetObject(theVector1->GetStudyID(), aVec1Entry);
if (aVector1.IsNull()) return aGEOMObject._retn();
//Get the vector2 of translation
- Handle(GEOM_Object) aVector2 = GetOperations()->GetEngine()->GetObject
- (theVector2->GetStudyID(), theVector2->GetEntry());
+ CORBA::String_var aVec2Entry = theVector2->GetEntry();
+ Handle(GEOM_Object) aVector2 =
+ GetOperations()->GetEngine()->GetObject(theVector2->GetStudyID(), aVec2Entry);
if (aVector2.IsNull()) return aGEOMObject._retn();
//Perform the translation
if (theObject == NULL || theVector == NULL) return aGEOMObject._retn();
//Get the object itself
- Handle(GEOM_Object) aBasicObject = GetOperations()->GetEngine()->GetObject
- (theObject->GetStudyID(), theObject->GetEntry());
+ CORBA::String_var anEntry = theObject->GetEntry();
+ Handle(GEOM_Object) aBasicObject =
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
//Get the a directon of rotation
- Handle(GEOM_Object) aVector = GetOperations()->GetEngine()->GetObject
- (theVector->GetStudyID(), theVector->GetEntry());
+ CORBA::String_var aVecEntry = theVector->GetEntry();
+ Handle(GEOM_Object) aVector =
+ GetOperations()->GetEngine()->GetObject(theVector->GetStudyID(), aVecEntry);
if (aVector.IsNull()) return aGEOMObject._retn();
//Perform the rotation
if (theObject == NULL || theVector == NULL) return aGEOMObject._retn();
//Get the object itself
- Handle(GEOM_Object) aBasicObject = GetOperations()->GetEngine()->GetObject
- (theObject->GetStudyID(), theObject->GetEntry());
+ CORBA::String_var anEntry = theObject->GetEntry();
+ Handle(GEOM_Object) aBasicObject =
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
//Get the a directon of rotation
- Handle(GEOM_Object) aVector = GetOperations()->GetEngine()->GetObject
- (theVector->GetStudyID(), theVector->GetEntry());
+ CORBA::String_var aVecEntry = theVector->GetEntry();
+ Handle(GEOM_Object) aVector =
+ GetOperations()->GetEngine()->GetObject(theVector->GetStudyID(), aVecEntry);
if (aVector.IsNull()) return aGEOMObject._retn();
//Perform the rotation
GetOperations()->SetNotDone();
GEOM::GEOM_Object_var aGEOMObject;
- if (theCentPoint == NULL || thePoint1 == NULL || thePoint2 == NULL || theObject == NULL) return aGEOMObject._retn();
+ if (theCentPoint == NULL || thePoint1 == NULL || thePoint2 == NULL || theObject == NULL)
+ return aGEOMObject._retn();
//check if the object is a subshape
- if(!theObject->IsMainShape()) {
+ if (!theObject->IsMainShape()) {
GetOperations()->SetErrorCode(SUBSHAPE_ERROR);
return aGEOMObject._retn();
}
aGEOMObject = GEOM::GEOM_Object::_duplicate(theObject);
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) anObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (anObject.IsNull()) return aGEOMObject._retn();
//Get the central point of rotation
+ CORBA::String_var aCPEntry = theCentPoint->GetEntry();
Handle(GEOM_Object) aCentPoint =
- GetOperations()->GetEngine()->GetObject(theCentPoint->GetStudyID(), theCentPoint->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theCentPoint->GetStudyID(), aCPEntry);
if (aCentPoint.IsNull()) return aGEOMObject._retn();
//Get the first point
+ CORBA::String_var aP1Entry = thePoint1->GetEntry();
Handle(GEOM_Object) aPoint1 =
- GetOperations()->GetEngine()->GetObject(thePoint1->GetStudyID(), thePoint1->GetEntry());
+ GetOperations()->GetEngine()->GetObject(thePoint1->GetStudyID(), aP1Entry);
if (aPoint1.IsNull()) return aGEOMObject._retn();
//Get the second point
+ CORBA::String_var aP2Entry = thePoint2->GetEntry();
Handle(GEOM_Object) aPoint2 =
- GetOperations()->GetEngine()->GetObject(thePoint2->GetStudyID(), thePoint2->GetEntry());
+ GetOperations()->GetEngine()->GetObject(thePoint2->GetStudyID(), aP2Entry);
if (aPoint2.IsNull()) return aGEOMObject._retn();
//Perform the translation
//Set a not done flag
GetOperations()->SetNotDone();
- if (theCentPoint == NULL || thePoint1 == NULL || thePoint2 == NULL || theObject == NULL) return aGEOMObject._retn();
+ if (theCentPoint == NULL || thePoint1 == NULL || thePoint2 == NULL || theObject == NULL)
+ return aGEOMObject._retn();
//Get the object itself
+ CORBA::String_var anEntry = theObject->GetEntry();
Handle(GEOM_Object) aBasicObject =
- GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theObject->GetStudyID(), anEntry);
if (aBasicObject.IsNull()) return aGEOMObject._retn();
//Get the central point of rotation
+ CORBA::String_var aCPEntry = theCentPoint->GetEntry();
Handle(GEOM_Object) aCentPoint =
- GetOperations()->GetEngine()->GetObject(theCentPoint->GetStudyID(), theCentPoint->GetEntry());
+ GetOperations()->GetEngine()->GetObject(theCentPoint->GetStudyID(), aCPEntry);
if (aCentPoint.IsNull()) return aGEOMObject._retn();
//Get the first point
+ CORBA::String_var aP1Entry = thePoint1->GetEntry();
Handle(GEOM_Object) aPoint1 =
- GetOperations()->GetEngine()->GetObject(thePoint1->GetStudyID(), thePoint1->GetEntry());
+ GetOperations()->GetEngine()->GetObject(thePoint1->GetStudyID(), aP1Entry);
if (aPoint1.IsNull()) return aGEOMObject._retn();
//Get the second point
+ CORBA::String_var aP2Entry = thePoint2->GetEntry();
Handle(GEOM_Object) aPoint2 =
- GetOperations()->GetEngine()->GetObject(thePoint2->GetStudyID(), thePoint2->GetEntry());
+ GetOperations()->GetEngine()->GetObject(thePoint2->GetStudyID(), aP2Entry);
if (aPoint2.IsNull()) return aGEOMObject._retn();
//Perform the rotation
return GetObject(anObject);
}
-