Describes a base class for hole features in concrete processes. More...
Public Types | |
| typedef cadex::internal::MTKBaseImpl_Hole | ImplType |
| typedef std::shared_ptr< ImplType > | ImplPtrType |
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 |
Public Member Functions | |
| MTKBase_Hole () | |
| Constructor. | |
| MTKBase_Hole (double theRadius, double theDepth) | |
| Constructor. | |
| MTKBase_Hole (double theRadius, double theDepth, const Geom::Axis3d &theAxis) | |
| Constructor. | |
| double | Radius () const |
| void | SetRadius (double theRadius) |
| double | Depth () const |
| void | SetDepth (double theDepth) |
| bool | HasAxis () const |
| const Geom::Axis3d & | Axis () const |
| void | SetAxis (const Geom::Axis3d &theAxis) |
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 hole. | |
Static Public Member Functions inherited from cadex::MTKBase_ShapeFeature | |
| static bool | CompareType (const MTKBase_Feature &theFeature) |
| Returnstrue if theFeature is a shape feature. | |
Protected Member Functions | |
| MTKBase_Hole (ImplPtrType theImpl) | |
| Reserved for internal use. | |
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. | |
Additional Inherited Members | |
Protected Attributes inherited from cadex::MTKBase_Feature | |
| ImplPtrType | myImpl |
Describes a base class for hole features in concrete processes.
Holes have the following basic parameters: radius in mm, depth in mm and axis.
| cadex::MTKBase_Hole::MTKBase_Hole | ( | double | theRadius, |
| double | theDepth ) |
Constructor.
Creates a hole feature from radius and depth.
| cadex::MTKBase_Hole::MTKBase_Hole | ( | double | theRadius, |
| double | theDepth, | ||
| const Geom::Axis3d & | theAxis ) |
Constructor.
Creates a hole feature from radius, depth and axis.
| const Geom::Axis3d & cadex::MTKBase_Hole::Axis | ( | ) | const |
Returns hole axis.
| double cadex::MTKBase_Hole::Depth | ( | ) | const |
Returns hole depth in mm .
| bool cadex::MTKBase_Hole::HasAxis | ( | ) | const |
| double cadex::MTKBase_Hole::Radius | ( | ) | const |
Returns hole radius in mm .
| void cadex::MTKBase_Hole::SetAxis | ( | const Geom::Axis3d & | theAxis | ) |
| void cadex::MTKBase_Hole::SetDepth | ( | double | theDepth | ) |
Sets depth for hole in mm . The value must be more than zero.
| void cadex::MTKBase_Hole::SetRadius | ( | double | theRadius | ) |
Sets radius for hole in mm . The value must be more than zero.