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

Describes a turning groove. More...

Inheritance diagram for cadex::Machining_TurningGroove:
cadex::Machining_Groove cadex::MTKBase_ShapeFeature cadex::MTKBase_Feature

Public Member Functions

 Machining_TurningGroove ()
 Constructor.
 
 Machining_TurningGroove (double theRadius, double theDepth, double theWidth, Machining_TurningGrooveType theType)
 Constructor.
 
Machining_TurningGrooveType Type () const
 Returns the turning groove type.
 
void SetType (Machining_TurningGrooveType theType)
 Sets the type for turning groove.
 
double Radius () const
 Returns the turning groove radius in mm .
 
void SetRadius (double theRadius)
 Sets the turning groove radius in mm .
 
- Public Member Functions inherited from cadex::Machining_Groove
 Machining_Groove ()
 Constructor.
 
 Machining_Groove (double theDepth, double theWidth)
 Constructor.
 
double Depth () const
 Returns the groove depth in mm .
 
void SetDepth (double theDepth)
 Sets the groove depth in mm .
 
double Width () const
 Returns the groove width in mm .
 
void SetWidth (double theWidth)
 Sets the groove width in mm .
 
const ModelData::ShapeSidewalls () const
 Returns the shape containing the groove sidewalls.
 
void SetSidewalls (const ModelData::Shape &theSidewalls)
 Sets the shape for groove sidewalls.
 
const ModelData::ShapeBottom () const
 Returns groove bottom shape.
 
void SetBottom (const ModelData::Shape &theBottom)
 Sets the shape for the groove bottom.
 
- 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 turning groove.
 
- Static Public Member Functions inherited from cadex::Machining_Groove
static bool CompareType (const MTKBase_Feature &theFeature)
 Returns true if theFeature is a machining groove.
 
- 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::Machining_Groove
typedef std::shared_ptr< internal::MachiningImpl_Groove > ImplType
 
- 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::Machining_Groove
 Machining_Groove (ImplType 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.
 
- Protected Attributes inherited from cadex::MTKBase_Feature
ImplPtrType myImpl
 

Detailed Description

Describes a turning groove.

A turning groove is a narrow linear channel or cut made in a material related to turning (lathe) machining.

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

Turning Groove

Turning Groove has the following basic parameters: radius in mm, width in mm, depth in mm. The parameters can be seen below in the table with turning groove types.

Turning Groove types

MTK supports the groove types (Machining_TurningGrooveType enumeration) defined in the following table:

Outer Diameter (OD) The groove machined on the external surface of a part.
Inner Diameter (ID) The groove machined on the internal surface of a part.
End Face The groove machined on the front or back end face of a part.

The Turning Groove type is returned by Type().

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

Constructor & Destructor Documentation

◆ Machining_TurningGroove() [1/2]

cadex::Machining_TurningGroove::Machining_TurningGroove ( )

Constructor.

◆ Machining_TurningGroove() [2/2]

cadex::Machining_TurningGroove::Machining_TurningGroove ( double theRadius,
double theDepth,
double theWidth,
Machining_TurningGrooveType theType )

Constructor.

Creates the turning groove from the radius, the depth, the width and the machining groove type.

Member Function Documentation

◆ CompareType()

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

Returns true if theFeature is a machining turning groove.

Examples
machining/feature_recognizer/Program.cs.

◆ Radius()

double cadex::Machining_TurningGroove::Radius ( ) const

Returns the turning groove radius in mm .

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

◆ SetRadius()

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

Sets the turning groove radius in mm .

The value must be greater than zero.

See also
Radius()

◆ SetType()

void cadex::Machining_TurningGroove::SetType ( Machining_TurningGrooveType theType)

Sets the type for turning groove.

See also
Type()
Machining_TurningGrooveType

◆ Type()

Machining_TurningGrooveType cadex::Machining_TurningGroove::Type ( ) const

Returns the turning groove type.

See also
SetType()
Machining_TurningGrooveType