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
Rectangle correction to have coincidence with point/line selected for the first point...
[modules/shaper.git]
/
src
/
ConstructionPlugin
/
ConstructionPlugin_Axis.h
diff --git
a/src/ConstructionPlugin/ConstructionPlugin_Axis.h
b/src/ConstructionPlugin/ConstructionPlugin_Axis.h
index cbf40fce70b04a0b1861e7b42b373dda01bb0613..ffaa95d04ed0614e0a1de31334fdd197250b9544 100644
(file)
--- a/
src/ConstructionPlugin/ConstructionPlugin_Axis.h
+++ b/
src/ConstructionPlugin/ConstructionPlugin_Axis.h
@@
-36,28
+36,29
@@
class ConstructionPlugin_Axis : public ModelAPI_Feature, public GeomAPI_ICustomP
/// attribute name for first point
inline static const std::string& METHOD()
{
/// attribute name for first point
inline static const std::string& METHOD()
{
- static const std::string METHOD_ATTR("
c
reationMethod");
+ static const std::string METHOD_ATTR("
C
reationMethod");
return METHOD_ATTR;
}
/// attribute name for first point
inline static const std::string& POINT_FIRST()
{
return METHOD_ATTR;
}
/// attribute name for first point
inline static const std::string& POINT_FIRST()
{
- static const std::string POINT_ATTR_FIRST("
f
irstPoint");
+ static const std::string POINT_ATTR_FIRST("
F
irstPoint");
return POINT_ATTR_FIRST;
}
/// attribute name for second point
inline static const std::string& POINT_SECOND()
{
return POINT_ATTR_FIRST;
}
/// attribute name for second point
inline static const std::string& POINT_SECOND()
{
- static const std::string POINT_ATTR_SECOND("
s
econdPoint");
+ static const std::string POINT_ATTR_SECOND("
S
econdPoint");
return POINT_ATTR_SECOND;
}
/// attribute name for second point
inline static const std::string& CYLINDRICAL_FACE()
{
return POINT_ATTR_SECOND;
}
/// attribute name for second point
inline static const std::string& CYLINDRICAL_FACE()
{
- static const std::string CYLINDRICAL_FACE_ATTR("
c
ylindricalFace");
+ static const std::string CYLINDRICAL_FACE_ATTR("
C
ylindricalFace");
return CYLINDRICAL_FACE_ATTR;
}
return CYLINDRICAL_FACE_ATTR;
}
+ /// Returns a minimal length for axis
inline static const double MINIMAL_LENGTH() { return 1.e-5; }
/// Creates a new part document if needed
inline static const double MINIMAL_LENGTH() { return 1.e-5; }
/// Creates a new part document if needed
@@
-77,7
+78,10
@@
class ConstructionPlugin_Axis : public ModelAPI_Feature, public GeomAPI_ICustomP
std::shared_ptr<GeomAPI_ICustomPrs> theDefaultPrs);
protected:
std::shared_ptr<GeomAPI_ICustomPrs> theDefaultPrs);
protected:
+ /// Creates a new axis by two defined points
void createAxisByTwoPoints();
void createAxisByTwoPoints();
+ /// Creates a new axis as copy of cylindrical face axis
+ void createAxisByCylindricalFace();
};
};