20 #ifndef PRIMITIVESAPI_BOX_H_
21 #define PRIMITIVESAPI_BOX_H_
23 #include "PrimitivesAPI.h"
25 #include <PrimitivesPlugin_Box.h>
27 #include <ModelHighAPI_Interface.h>
28 #include <ModelHighAPI_Macro.h>
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
Interface for primitive Box feature.
Definition: PrimitivesAPI_Box.h:37
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: PrimitivesAPI_Box.cpp:131
virtual std::shared_ptr< ModelAPI_AttributeDouble > oz() const
Z coordinate for origin.
Definition: PrimitivesAPI_Box.h:94
virtual std::shared_ptr< ModelAPI_AttributeDouble > dz() const
Dimension in Z.
Definition: PrimitivesAPI_Box.h:94
void setHalfLengths(const ModelHighAPI_Double &theHalfLengthX, const ModelHighAPI_Double &theHalfLengthY, const ModelHighAPI_Double &theHalfLengthZ)
Set half lengths.
Definition: PrimitivesAPI_Box.cpp:119
virtual std::shared_ptr< ModelAPI_AttributeDouble > halfdz() const
Half length in Z.
Definition: PrimitivesAPI_Box.h:94
virtual std::shared_ptr< ModelAPI_AttributeDouble > halfdx() const
Half length in X.
Definition: PrimitivesAPI_Box.h:94
virtual std::shared_ptr< ModelAPI_AttributeSelection > secondPoint() const
Second point.
Definition: PrimitivesAPI_Box.h:94
virtual std::shared_ptr< ModelAPI_AttributeDouble > dy() const
Dimension in Y.
Definition: PrimitivesAPI_Box.h:94
virtual std::shared_ptr< ModelAPI_AttributeDouble > halfdy() const
Half length in Y.
Definition: PrimitivesAPI_Box.h:94
virtual std::shared_ptr< ModelAPI_AttributeDouble > oy() const
Y coordinate for origin.
Definition: PrimitivesAPI_Box.h:94
virtual std::shared_ptr< ModelAPI_AttributeSelection > firstPoint() const
First point.
Definition: PrimitivesAPI_Box.h:94
void setPoints(const ModelHighAPI_Selection &theFirstPoint, const ModelHighAPI_Selection &theSecondPoint)
Set points.
Definition: PrimitivesAPI_Box.cpp:96
virtual std::shared_ptr< ModelAPI_AttributeDouble > ox() const
X coordinate for origin.
Definition: PrimitivesAPI_Box.h:94
void setDimensions(const ModelHighAPI_Double &theDx, const ModelHighAPI_Double &theDy, const ModelHighAPI_Double &theDz)
Set dimensions.
Definition: PrimitivesAPI_Box.cpp:83
PrimitivesAPI_Box(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: PrimitivesAPI_Box.cpp:26
virtual std::shared_ptr< ModelAPI_AttributeDouble > dx() const
Dimension in X.
Definition: PrimitivesAPI_Box.h:94
virtual std::shared_ptr< ModelAPI_AttributeString > creationMethod() const
Creation method.
Definition: PrimitivesAPI_Box.h:94
void setOrigin(const ModelHighAPI_Double &theOx, const ModelHighAPI_Double &theOy, const ModelHighAPI_Double &theOz)
Set origin point.
Definition: PrimitivesAPI_Box.cpp:107
virtual ~PrimitivesAPI_Box()
Destructor.
Definition: PrimitivesAPI_Box.cpp:77
static const std::string & OZ_ID()
Attribute name of the third coordinate of the center.
Definition: PrimitivesPlugin_Box.h:127
static const std::string & OX_ID()
Attribute name of the first coordinate of the center.
Definition: PrimitivesPlugin_Box.h:113
static const std::string & ID()
Box kind.
Definition: PrimitivesPlugin_Box.h:43
static const std::string & CREATION_METHOD()
Attribute name for creation method.
Definition: PrimitivesPlugin_Box.h:50
static const std::string & DY_ID()
Attribute second coordinate.
Definition: PrimitivesPlugin_Box.h:99
static const std::string & OY_ID()
Attribute name of the second coordinate of the center.
Definition: PrimitivesPlugin_Box.h:120
static const std::string & DZ_ID()
Attribute third coordinate.
Definition: PrimitivesPlugin_Box.h:106
static const std::string & HALF_DY_ID()
Attribute name of the half-length on Y axis.
Definition: PrimitivesPlugin_Box.h:141
static const std::string & DX_ID()
Attribute first coordinate.
Definition: PrimitivesPlugin_Box.h:92
static const std::string & HALF_DX_ID()
Attribute name of the half-length on X axis.
Definition: PrimitivesPlugin_Box.h:134
static const std::string & HALF_DZ_ID()
Attribute name of the half-length on Z axis.
Definition: PrimitivesPlugin_Box.h:148
static const std::string & POINT_SECOND_ID()
Attribute name of second point.
Definition: PrimitivesPlugin_Box.h:85
static const std::string & POINT_FIRST_ID()
Attribute name of first point.
Definition: PrimitivesPlugin_Box.h:78
BoxPtr addBox(const std::shared_ptr< ModelAPI_Document > &thePart, const ModelHighAPI_Double &theDx, const ModelHighAPI_Double &theDy, const ModelHighAPI_Double &theDz)
Create primitive Box feature.
Definition: PrimitivesAPI_Box.cpp:167