Describes a sheet metal notch. More...
Public Types | |
typedef cadex::internal::SheetMetalImpl_Notch | ImplType |
typedef std::shared_ptr< ImplType > | ImplPtrType |
![]() | |
typedef cadex::internal::MTKBaseImpl_ShapeFeature | ImplType |
typedef std::shared_ptr< ImplType > | ImplPtrType |
![]() | |
typedef cadex::internal::MTKBaseImpl_Feature | ImplType |
typedef std::shared_ptr< ImplType > | ImplPtrType |
Public Member Functions | |
SheetMetal_Notch () | |
Constructor. | |
SheetMetal_Notch (double theWidth, double theLength) | |
Constructor. | |
double | Width () const |
void | SetWidth (double theWidth) |
double | Length () const |
void | SetLength (double theLength) |
bool | IsAtCorner () const |
void | SetIsAtCorner (bool theIsAtCorner) const |
![]() | |
MTKBase_ShapeFeature () | |
Constructor. | |
MTKBase_ShapeFeature (const ModelData::Shape &theShape) | |
Constructor. | |
const ModelData::Shape & | Shape () const |
void | SetShape (const ModelData::Shape &theShape) |
![]() | |
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 notch. | |
![]() | |
static bool | CompareType (const MTKBase_Feature &theFeature) |
Returnstrue if theFeature is a shape feature. | |
Protected Member Functions | |
SheetMetal_Notch (ImplPtrType theImpl) | |
![]() | |
MTKBase_ShapeFeature (ImplPtrType theImpl) | |
Reserved for internal use. | |
![]() | |
MTKBase_Feature (ImplPtrType theImpl) | |
Reserved for internal use. | |
Additional Inherited Members | |
![]() | |
ImplPtrType | myImpl |
Describes a sheet metal notch.
Notch is the intrusion or cutting the section of the sheet metal at the edges. Notching is a shearing-related metalworking process that involves the use of a punch press to selectively cut unwanted material.
Shape() method returns ModelData::Wire for this class.
Notches have the following basic parameters: width in mm and length in mm.
cadex::SheetMetal_Notch::SheetMetal_Notch | ( | double | theWidth, |
double | theLength ) |
Constructor.
Creates notch with specified width and length.
bool cadex::SheetMetal_Notch::IsAtCorner | ( | ) | const |
Returns true if notch is placed at the corner of sheet and false otherwise.
double cadex::SheetMetal_Notch::Length | ( | ) | const |
Returns the notch length in mm .
void cadex::SheetMetal_Notch::SetIsAtCorner | ( | bool | theIsAtCorner | ) | const |
Sets flag determining whether notch is at the corner of sheet.
void cadex::SheetMetal_Notch::SetLength | ( | double | theLength | ) |
Sets notch length in mm . The value must be more than zero, otherwise nothing happens.
void cadex::SheetMetal_Notch::SetWidth | ( | double | theWidth | ) |
Sets notch width in mm . The value must be more than zero, otherwise nothing happens.
double cadex::SheetMetal_Notch::Width | ( | ) | const |
Returns the notch width in mm .