NPAL 12483 Translate an object vector distance

This commit is contained in:
dmv 2008-03-13 07:52:06 +00:00
parent 416b6928cf
commit 3731e3ec02
2 changed files with 21 additions and 0 deletions

View File

@ -1347,6 +1347,23 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVectorCopy (GEOM::GEOM_Object_ptr
return anObj;
}
//=============================================================================
// 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;
}
//=============================================================================
// MultiTranslate1D:
//=============================================================================

View File

@ -314,6 +314,10 @@ public:
GEOM::GEOM_Object_ptr theVector);
GEOM::GEOM_Object_ptr TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
GEOM::GEOM_Object_ptr theVector);
GEOM::GEOM_Object_ptr TranslateVectorDistance (GEOM::GEOM_Object_ptr theObject,
GEOM::GEOM_Object_ptr theVector,
CORBA::Double theDistance,
CORBA::Boolean theCopy);
GEOM::GEOM_Object_ptr MultiTranslate1D (GEOM::GEOM_Object_ptr theObject,
GEOM::GEOM_Object_ptr theVector,
CORBA::Double theStep,