Hide menu
Loading...
Searching...
No Matches
cadex::Machining_Countersink Class Reference

Describes a machining countersink. More...

Inheritance diagram for cadex::Machining_Countersink:
cadex::MTKBase_ShapeFeature cadex::MTKBase_Feature

Public Member Functions

 Machining_Countersink ()
 Constructor.
 
 Machining_Countersink (double theRadius, double theDepth)
 Constructor.
 
 Machining_Countersink (double theRadius, double theDepth, const Geom::Axis3d &theAxis)
 Constructor.
 
double Radius () const
 Returns countersink radius in mm .
 
void SetRadius (double theRadius)
 Sets radius for countersink in mm.
 
double Depth () const
 Returns countersink depth in mm .
 
void SetDepth (double theDepth)
 Sets depth for countersink in mm.
 
bool HasAxis () const
 Returns true if axis is determined for countersink.
 
const Geom::Axis3dAxis () const
 Returns countersink axis.
 
void SetAxis (const Geom::Axis3d &theAxis)
 Sets axis for countersink.
 
- Public Member Functions inherited from cadex::MTKBase_ShapeFeature
 MTKBase_ShapeFeature ()
 Constructor.
 
 MTKBase_ShapeFeature (const ModelData::Shape &theShape)
 Constructor.
 
const ModelData::ShapeShape () const
 Returns shape of the feature.
 
void SetShape (const ModelData::Shape &theShape)
 Sets shape of the feature.
 
- Public Member Functions inherited from cadex::MTKBase_Feature
 MTKBase_Feature ()
 Constructor.
 
 ~MTKBase_Feature ()
 Destructor.
 
void Nullify ()
 Resets reference to implementation object.
 
bool IsNull () const
 Returns true if the object is nullified.
 
 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 countersink.
 
- 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
 

Detailed Description

Describes a machining countersink.

A conical hole cut into a manufactured object, or the cutter used to cut such a hole. A common use is to allow the head of a countersunk bolt, screw or rivet, when placed in the hole, to sit flush with or below the surface of the surrounding material.

Shape() method returns ModelData::Shell for this class.

Countersink

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

Countersink parameters
Examples
machining/feature_recognizer/Program.cs, and machining/feature_recognizer/main.cxx.

Constructor & Destructor Documentation

◆ Machining_Countersink() [1/3]

cadex::Machining_Countersink::Machining_Countersink ( )

Constructor.

◆ Machining_Countersink() [2/3]

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

Constructor.

Creates a machining countersink from radius and depth.

◆ Machining_Countersink() [3/3]

cadex::Machining_Countersink::Machining_Countersink ( double theRadius,
double theDepth,
const Geom::Axis3d & theAxis )

Constructor.

Creates a machining countersink from radius, depth and axis.

Member Function Documentation

◆ Axis()

const Geom::Axis3d & cadex::Machining_Countersink::Axis ( ) const

Returns countersink axis.

See also
HasAxis(), SetAxis()
Examples
machining/feature_recognizer/Program.cs.

◆ CompareType()

bool cadex::Machining_Countersink::CompareType ( const MTKBase_Feature & theFeature)
static

Returns true if theFeature is a machining countersink.

Examples
machining/feature_recognizer/Program.cs.

◆ Depth()

double cadex::Machining_Countersink::Depth ( ) const

Returns countersink depth in mm .

See also
SetDepth()
Examples
machining/feature_recognizer/Program.cs.

◆ HasAxis()

bool cadex::Machining_Countersink::HasAxis ( ) const

Returns true if axis is determined for countersink.

See also
Axis(), SetAxis()

◆ Radius()

double cadex::Machining_Countersink::Radius ( ) const

Returns countersink radius in mm .

See also
SetRadius()
Examples
machining/feature_recognizer/Program.cs.

◆ SetAxis()

void cadex::Machining_Countersink::SetAxis ( const Geom::Axis3d & theAxis)

Sets axis for countersink.

See also
HasAxis(), Axis()

◆ SetDepth()

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

Sets depth for countersink in mm.

The value must be more than zero.

See also
Depth()

◆ SetRadius()

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

Sets radius for countersink in mm.

The value must be more than zero.

See also
Radius()