20 #ifndef SRC_CONSTRUCTIONAPI_CONSTRUCTIONAPI_AXIS_H_
21 #define SRC_CONSTRUCTIONAPI_CONSTRUCTIONAPI_AXIS_H_
23 #include "ConstructionAPI.h"
25 #include <ConstructionPlugin_Axis.h>
27 #include <ModelHighAPI_Interface.h>
28 #include <ModelHighAPI_Macro.h>
40 CONSTRUCTIONAPI_EXPORT
44 CONSTRUCTIONAPI_EXPORT
50 CONSTRUCTIONAPI_EXPORT
55 CONSTRUCTIONAPI_EXPORT
63 CONSTRUCTIONAPI_EXPORT
70 CONSTRUCTIONAPI_EXPORT
74 const bool theReverseOffset1,
77 const bool theReverseOffset2);
80 CONSTRUCTIONAPI_EXPORT
85 const bool theReverseOffset2);
88 CONSTRUCTIONAPI_EXPORT
92 const bool theReverseOffset1,
96 CONSTRUCTIONAPI_EXPORT
144 CONSTRUCTIONAPI_EXPORT
149 CONSTRUCTIONAPI_EXPORT
153 CONSTRUCTIONAPI_EXPORT
160 CONSTRUCTIONAPI_EXPORT
166 CONSTRUCTIONAPI_EXPORT
170 CONSTRUCTIONAPI_EXPORT
175 CONSTRUCTIONAPI_EXPORT
180 CONSTRUCTIONAPI_EXPORT
183 const
bool theReverseOffset1,
186 const
bool theReverseOffset2);
189 CONSTRUCTIONAPI_EXPORT
193 const
bool theReverseOffset2);
196 CONSTRUCTIONAPI_EXPORT
199 const
bool theReverseOffset1,
203 CONSTRUCTIONAPI_EXPORT
212 CONSTRUCTIONAPI_EXPORT
219 CONSTRUCTIONAPI_EXPORT
225 CONSTRUCTIONAPI_EXPORT
234 CONSTRUCTIONAPI_EXPORT
242 CONSTRUCTIONAPI_EXPORT
246 const
bool theReverseOffset1,
249 const
bool theReverseOffset2);
253 CONSTRUCTIONAPI_EXPORT
258 const
bool theReverseOffset2);
262 CONSTRUCTIONAPI_EXPORT
266 const
bool theReverseOffset1,
Interface for Axis feature.
Definition: ConstructionAPI_Axis.h:37
void setByDimensions(const ModelHighAPI_Double &theDX, const ModelHighAPI_Double &theDY, const ModelHighAPI_Double &theDZ)
Set dimensions.
Definition: ConstructionAPI_Axis.cpp:175
virtual std::shared_ptr< ModelAPI_AttributeBoolean > reverseOffset2() const
Reverse offset 2.
Definition: ConstructionAPI_Axis.h:141
void setByTwoPlanes(const ModelHighAPI_Selection &thePlane1, const ModelHighAPI_Selection &thePlane2)
Set by two planes.
Definition: ConstructionAPI_Axis.cpp:208
void setByPlaneAndPoint(const ModelHighAPI_Selection &thePlane, const ModelHighAPI_Selection &thePoint)
Set by plane and point.
Definition: ConstructionAPI_Axis.cpp:197
virtual std::shared_ptr< ModelAPI_AttributeDouble > xDirection() const
X direction.
Definition: ConstructionAPI_Axis.h:141
void setByPoints(const ModelHighAPI_Selection &thePoint1, const ModelHighAPI_Selection &thePoint2)
Set points.
Definition: ConstructionAPI_Axis.cpp:139
void setByLine(const ModelHighAPI_Selection &theCylindricalFace)
Set by line.
Definition: ConstructionAPI_Axis.cpp:188
virtual std::shared_ptr< ModelAPI_AttributeDouble > zDimension() const
Z dimension.
Definition: ConstructionAPI_Axis.h:141
virtual std::shared_ptr< ModelAPI_AttributeDouble > offset1() const
Offset 1.
Definition: ConstructionAPI_Axis.h:141
virtual std::shared_ptr< ModelAPI_AttributeSelection > line() const
Line.
Definition: ConstructionAPI_Axis.h:141
virtual std::shared_ptr< ModelAPI_AttributeSelection > plane1() const
Plane 1.
Definition: ConstructionAPI_Axis.h:141
virtual ~ConstructionAPI_Axis()
Destructor.
Definition: ConstructionAPI_Axis.cpp:134
virtual std::shared_ptr< ModelAPI_AttributeSelection > cylindricalFace() const
Cylindrical face.
Definition: ConstructionAPI_Axis.h:141
virtual std::shared_ptr< ModelAPI_AttributeString > creationMethod() const
Creation method.
Definition: ConstructionAPI_Axis.h:141
virtual std::shared_ptr< ModelAPI_AttributeDouble > offset2() const
Offset 2.
Definition: ConstructionAPI_Axis.h:141
virtual std::shared_ptr< ModelAPI_AttributeString > useOffset1() const
Use offset 1.
Definition: ConstructionAPI_Axis.h:141
virtual std::shared_ptr< ModelAPI_AttributeSelection > plane() const
Plane.
Definition: ConstructionAPI_Axis.h:141
virtual std::shared_ptr< ModelAPI_AttributeDouble > zDirection() const
Z direction.
Definition: ConstructionAPI_Axis.h:141
virtual std::shared_ptr< ModelAPI_AttributeDouble > yDirection() const
Y direction.
Definition: ConstructionAPI_Axis.h:141
void setByCylindricalFace(const ModelHighAPI_Selection &theCylindricalFace)
Set cylindrical face.
Definition: ConstructionAPI_Axis.cpp:150
virtual std::shared_ptr< ModelAPI_AttributeString > useOffset2() const
Use offset 2.
Definition: ConstructionAPI_Axis.h:141
ConstructionAPI_Axis(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: ConstructionAPI_Axis.cpp:26
virtual std::shared_ptr< ModelAPI_AttributeSelection > firstPoint() const
First point.
Definition: ConstructionAPI_Axis.h:141
void setByPointAndDirection(const ModelHighAPI_Selection &thePoint, const ModelHighAPI_Double &theX, const ModelHighAPI_Double &theY, const ModelHighAPI_Double &theZ)
Set direction.
Definition: ConstructionAPI_Axis.cpp:159
virtual std::shared_ptr< ModelAPI_AttributeDouble > yDimension() const
Y dimension.
Definition: ConstructionAPI_Axis.h:141
virtual std::shared_ptr< ModelAPI_AttributeSelection > secondPoint() const
Second point.
Definition: ConstructionAPI_Axis.h:141
virtual std::shared_ptr< ModelAPI_AttributeSelection > plane2() const
Plane 2.
Definition: ConstructionAPI_Axis.h:141
virtual std::shared_ptr< ModelAPI_AttributeBoolean > reverseOffset1() const
Reverse offset 1.
Definition: ConstructionAPI_Axis.h:141
virtual std::shared_ptr< ModelAPI_AttributeDouble > xDimension() const
X dimension.
Definition: ConstructionAPI_Axis.h:141
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: ConstructionAPI_Axis.cpp:276
virtual std::shared_ptr< ModelAPI_AttributeSelection > point() const
Point.
Definition: ConstructionAPI_Axis.h:141
static const std::string & X_DIRECTION()
attribute name for X direction
Definition: ConstructionPlugin_Axis.h:143
static const std::string & ID()
Axis kind.
Definition: ConstructionPlugin_Axis.h:43
static const std::string & USE_OFFSET1()
Attribute name for use offset for plane 1.
Definition: ConstructionPlugin_Axis.h:192
static const std::string & OFFSET1()
Attribute name for offset for plane 1.
Definition: ConstructionPlugin_Axis.h:199
static const std::string & DZ()
attribute name for the Z dimension
Definition: ConstructionPlugin_Axis.h:136
static const std::string & Z_DIRECTION()
attribute name for Y direction
Definition: ConstructionPlugin_Axis.h:157
static const std::string & PLANE1()
Attribute name for plane 1.
Definition: ConstructionPlugin_Axis.h:185
static const std::string & OFFSET2()
Attribute name for offset for plane 2.
Definition: ConstructionPlugin_Axis.h:227
static const std::string & POINT_FIRST()
attribute name for first point
Definition: ConstructionPlugin_Axis.h:106
static const std::string & DY()
attribute name for the Y dimension
Definition: ConstructionPlugin_Axis.h:130
static const std::string & METHOD()
attribute name for first point
Definition: ConstructionPlugin_Axis.h:50
static const std::string & DX()
attribute name for the X dimension
Definition: ConstructionPlugin_Axis.h:124
static const std::string & USE_OFFSET2()
Attribute name for use offset for plane 2.
Definition: ConstructionPlugin_Axis.h:220
static const std::string & REVERSE_OFFSET1()
Attribute name for reverse offset for plane 1.
Definition: ConstructionPlugin_Axis.h:206
static const std::string & PLANE()
Attribute name for plane.
Definition: ConstructionPlugin_Axis.h:171
static const std::string & CYLINDRICAL_FACE()
attribute name for second point
Definition: ConstructionPlugin_Axis.h:118
static const std::string & POINT_SECOND()
attribute name for second point
Definition: ConstructionPlugin_Axis.h:112
static const std::string & PLANE2()
Attribute name for plane 2.
Definition: ConstructionPlugin_Axis.h:213
static const std::string & Y_DIRECTION()
attribute name for Y direction
Definition: ConstructionPlugin_Axis.h:150
static const std::string & REVERSE_OFFSET2()
Attribute name for reverse offset for plane 2.
Definition: ConstructionPlugin_Axis.h:234
static const std::string & POINT()
Attribute name for point.
Definition: ConstructionPlugin_Axis.h:178
static const std::string & LINE()
Attribute name for line.
Definition: ConstructionPlugin_Axis.h:164
Attribute that contains boolean value.
Definition: ModelAPI_AttributeBoolean.h:31
Attribute that contains real value with double precision.
Definition: ModelAPI_AttributeDouble.h:34
Attribute that contains reference to the sub-shape of some result, the selected shape.
Definition: ModelAPI_AttributeSelection.h:35
API for the attribute that contains std (null terminated) string.
Definition: ModelAPI_AttributeString.h:33
Document for internal data structure of any object storage.
Definition: ModelAPI_Document.h:52
Class for filling ModelAPI_AttributeDouble.
Definition: ModelHighAPI_Double.h:37
Dump engine for the model.
Definition: ModelHighAPI_Dumper.h:81
Base class for feature interfaces.
Definition: ModelHighAPI_Interface.h:42
Class for filling ModelAPI_AttributeSelection.
Definition: ModelHighAPI_Selection.h:49
AxisPtr addAxis(const std::shared_ptr< ModelAPI_Document > &thePart, const ModelHighAPI_Selection &theObject1, const ModelHighAPI_Selection &theObject2)
Create Axis feature.
Definition: ConstructionAPI_Axis.cpp:346