Describes a machining pocket. A pocket is a feature obtained by milling the material inside an arbitrarily closed boundary on a flat surface of a workpiece removed to a fixed depth. More...
Public Member Functions | |
| Machining_Pocket () | |
| Constructor. | |
| Machining_Pocket (double theWidth, double theLength, double theDepth, Machining_PocketType theType) | |
| Constructor. | |
| double | Width () const |
| void | SetWidth (double theWidth) |
| double | Length () const |
| void | SetLength (double theLength) |
| double | Depth () const |
| void | SetDepth (double theDepth) |
| bool | HasAxis () const |
| const Geom::Axis1d & | Axis () const |
| void | SetAxis (const Geom::Axis1d &theAxis) |
| Machining_PocketType | Type () const |
| void | SetType (Machining_PocketType theType) |
Public Member Functions inherited from cadex::MTKBase_ShapeFeature | |
| MTKBase_ShapeFeature () | |
| Constructor. | |
| MTKBase_ShapeFeature (const ModelData::Shape &theShape) | |
| Constructor. | |
| const ModelData::Shape & | Shape () const |
| void | SetShape (const ModelData::Shape &theShape) |
Public Member Functions inherited from cadex::MTKBase_Feature | |
| MTKBase_Feature () | |
| Constructor. | |
| ~MTKBase_Feature () | |
| Destructor. | |
| void | Nullify () |
| bool | IsNull () const |
| operator bool () const | |
| Casts the object to the bool type. | |
| template<typename T > | |
| bool | IsOfType () const |
| ImplType * | Impl () const |
| template<typename T > | |
| T * | Impl () const |
| Reserved for internal use. | |
| bool | operator== (const MTKBase_Feature &theObject) const |
| bool | operator!= (const MTKBase_Feature &theObject) const |
Static Public Member Functions | |
| static bool | CompareType (const MTKBase_Feature &theFeature) |
| Returns true if theFeature is a machining Pocket. | |
Static Public Member Functions inherited from cadex::MTKBase_ShapeFeature | |
| static bool | CompareType (const MTKBase_Feature &theFeature) |
| Returnstrue if theFeature is a shape feature. | |
Additional Inherited Members | |
Public Types inherited from cadex::MTKBase_ShapeFeature | |
| typedef cadex::internal::MTKBaseImpl_ShapeFeature | ImplType |
| typedef std::shared_ptr< ImplType > | ImplPtrType |
Public Types inherited from cadex::MTKBase_Feature | |
| typedef cadex::internal::MTKBaseImpl_Feature | ImplType |
| typedef std::shared_ptr< ImplType > | ImplPtrType |
Protected Member Functions inherited from cadex::MTKBase_ShapeFeature | |
| MTKBase_ShapeFeature (ImplPtrType theImpl) | |
| Reserved for internal use. | |
Protected Member Functions inherited from cadex::MTKBase_Feature | |
| MTKBase_Feature (ImplPtrType theImpl) | |
| Reserved for internal use. | |
Protected Attributes inherited from cadex::MTKBase_Feature | |
| ImplPtrType | myImpl |
Describes a machining pocket. A pocket is a feature obtained by milling the material inside an arbitrarily closed boundary on a flat surface of a workpiece removed to a fixed depth.
Shape() method returns ModelData::Shell for this class.
Pocket have the following basic parameters: width in mm, length in mm, depth in mm and axis.
| cadex::Machining_Pocket::Machining_Pocket | ( | double | theWidth, |
| double | theLength, | ||
| double | theDepth, | ||
| Machining_PocketType | theType ) |
Constructor.
Creates a machining Pocket from width, length, depth and type.
| const Geom::Axis1d & cadex::Machining_Pocket::Axis | ( | ) | const |
Returns z-axis of a pocket - the axis along which the depth is determined
| double cadex::Machining_Pocket::Depth | ( | ) | const |
Returns the pocket depth in mm .
| bool cadex::Machining_Pocket::HasAxis | ( | ) | const |
| double cadex::Machining_Pocket::Length | ( | ) | const |
Returns the pocket length in mm .
| void cadex::Machining_Pocket::SetAxis | ( | const Geom::Axis1d & | theAxis | ) |
| void cadex::Machining_Pocket::SetDepth | ( | double | theDepth | ) |
Sets depth for pocket in mm. The value must be more than zero.
| void cadex::Machining_Pocket::SetLength | ( | double | theLength | ) |
Sets length for pocket in mm. The value must be more than zero.
| void cadex::Machining_Pocket::SetType | ( | Machining_PocketType | theType | ) |
Sets type for pocket.
| void cadex::Machining_Pocket::SetWidth | ( | double | theWidth | ) |
Sets width for pocket in mm. The value must be more than zero.
| Machining_PocketType cadex::Machining_Pocket::Type | ( | ) | const |
Returns the pocket type.
| double cadex::Machining_Pocket::Width | ( | ) | const |