Hide menu
Loading...
Searching...
No Matches

Describes a base class for hole features in concrete processes. More...

Inheritance diagram for cadex::MTKBase_Hole:
cadex::MTKBase_ShapeFeature cadex::MTKBase_Feature cadex::Machining_Hole cadex::SheetMetal_Hole cadex::SheetMetal_ComplexHole

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 ModelData_Axis3Placement &theAxis)
 Constructor.
 
double Radius () const
 
void SetRadius (double theRadius)
 
double Depth () const
 
void SetDepth (double theDepth)
 
bool HasAxis () const
 
const ModelData_Axis3PlacementAxis () const
 
void SetAxis (const ModelData_Axis3Placement &theAxis)
 
- Public Member Functions inherited from cadex::MTKBase_ShapeFeature
 MTKBase_ShapeFeature ()
 Constructor.
 
 MTKBase_ShapeFeature (const ModelData_Shape &theShape)
 Constructor.
 
const ModelData_ShapeShape () 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
 

Detailed Description

Describes a base class for hole features in concrete processes.

Holes (through and blind)

Holes have the following basic parameters: radius in mm, depth in mm and axis.

Hole parameters

Constructor & Destructor Documentation

◆ MTKBase_Hole() [1/2]

cadex::MTKBase_Hole::MTKBase_Hole ( double  theRadius,
double  theDepth 
)

Constructor.

Creates a hole feature from radius and depth.

◆ MTKBase_Hole() [2/2]

cadex::MTKBase_Hole::MTKBase_Hole ( double  theRadius,
double  theDepth,
const ModelData_Axis3Placement theAxis 
)

Constructor.

Creates a hole feature from radius, depth and axis.

Member Function Documentation

◆ Axis()

◆ Depth()

double cadex::MTKBase_Hole::Depth ( ) const

◆ HasAxis()

bool cadex::MTKBase_Hole::HasAxis ( ) const

Returns true if axis is determined for hole.

See also
Axis(), SetAxis()

◆ Radius()

double cadex::MTKBase_Hole::Radius ( ) const

◆ SetAxis()

void cadex::MTKBase_Hole::SetAxis ( const ModelData_Axis3Placement theAxis)

Sets axis for hole.

See also
HasAxis(), Axis()

◆ SetDepth()

void cadex::MTKBase_Hole::SetDepth ( double  theDepth)

Sets depth for hole in mm . The value must be more than zero.

See also
Depth()

◆ SetRadius()

void cadex::MTKBase_Hole::SetRadius ( double  theRadius)

Sets radius for hole in mm . The value must be more than zero.

See also
Radius()