Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated copyright message
[modules/shaper.git]
/
src
/
FeaturesPlugin
/
FeaturesPlugin_Translation.h
diff --git
a/src/FeaturesPlugin/FeaturesPlugin_Translation.h
b/src/FeaturesPlugin/FeaturesPlugin_Translation.h
index 624d8de393c49c8c40984baae44ef4df4de5eb73..bff3542b3a7b4251015e6be8a84f02541bfd3f09 100644
(file)
--- a/
src/FeaturesPlugin/FeaturesPlugin_Translation.h
+++ b/
src/FeaturesPlugin/FeaturesPlugin_Translation.h
@@
-1,4
+1,4
@@
-// Copyright (C) 2014-20
17
CEA/DEN, EDF R&D
+// Copyright (C) 2014-20
23
CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-12,10
+12,9
@@
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
//
// 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
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA
//
//
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#ifndef FeaturesPlugin_Translation_H_
//
#ifndef FeaturesPlugin_Translation_H_
@@
-25,7
+24,7
@@
#include <ModelAPI_Feature.h>
#include <ModelAPI_Feature.h>
-#include <GeomAlgoAPI_Translation.h>
+class GeomAPI_Trsf;
/// \class FeaturesPlugin_Translation
/// \ingroup Plugins
/// \class FeaturesPlugin_Translation
/// \ingroup Plugins
@@
-131,7
+130,7
@@
class FeaturesPlugin_Translation : public ModelAPI_Feature
return MY_KIND;
}
return MY_KIND;
}
- ///
Creates a new part document if needed
.
+ ///
Performs the algorithm and stores results it in the data structure
.
FEATURESPLUGIN_EXPORT virtual void execute();
/// Request for initialization of data model of the feature: adding all attributes.
FEATURESPLUGIN_EXPORT virtual void execute();
/// Request for initialization of data model of the feature: adding all attributes.
@@
-141,14
+140,17
@@
class FeaturesPlugin_Translation : public ModelAPI_Feature
FeaturesPlugin_Translation();
private:
FeaturesPlugin_Translation();
private:
- ///
Perform
the translation using an axis and a distance.
-
void performT
ranslationByAxisAndDistance();
+ ///
Calculate
the translation using an axis and a distance.
+
std::shared_ptr<GeomAPI_Trsf> t
ranslationByAxisAndDistance();
- ///
Perform
the translation using three dimensions X, Y and Z
-
void performT
ranslationByDimensions();
+ ///
Calculate
the translation using three dimensions X, Y and Z
+
std::shared_ptr<GeomAPI_Trsf> t
ranslationByDimensions();
- ///Perform the translation usind two points
- void performTranslationByTwoPoints();
+ /// Calculate the translation usind two points
+ std::shared_ptr<GeomAPI_Trsf> translationByTwoPoints();
+
+ /// Perform the translation
+ void performTranslation(const std::shared_ptr<GeomAPI_Trsf>& theTrsf);
};
#endif
};
#endif