3DCoat Core API
The 3DCoat API documentation.
Public Member Functions | List of all members
coat::nut::flange Class Reference
Inheritance diagram for coat::nut::flange:
coat::nut::base

Public Member Functions

 flange ()
 constructor.
 
 flange (float d, float h)
 constructor. More...
 
 flange (float d, float h, float fw, float fh)
 constructor. More...
 
flangefacetWidth (const float &w)
 set the width. More...
 
flangefacetHeight (const float &h)
 set the facet height. More...
 
float facetWidth () const
 get the width. More...
 
float facetHeight () const
 get the height. More...
 
virtual basecopy (base *p=nullptr)
 copies the flange object. More...
 
- Public Member Functions inherited from coat::nut::base
 base ()
 constructor.
 
 base (Type t, float d, float h)
 constructor. More...
 
basediameter (const float &d)
 set the diameter. More...
 
float diameter () const
 get the diameter. More...
 
baseheight (const float &h)
 set the height. More...
 
float height () const
 get the height. More...
 
 operator void * () const
 () operator
 
basetype (int t)
 set the nut type. More...
 
int type () const
 set the nut type. More...
 
virtual basecopy (base *p=nullptr)
 copies the object. More...
 

Constructor & Destructor Documentation

◆ flange() [1/2]

coat::nut::flange::flange ( float  d,
float  h 
)

constructor.

Parameters
ddiameter
hheight

◆ flange() [2/2]

coat::nut::flange::flange ( float  d,
float  h,
float  fw,
float  fh 
)

constructor.

Parameters
ddiameter
hheight
fwfacet width
fhfacet height

Member Function Documentation

◆ copy()

virtual base * coat::nut::flange::copy ( base p = nullptr)
virtual

copies the flange object.

Parameters
ppointer to the flange object to copy. If the pointer equals to null then the object is duplicated
Returns
the pointer to a copy of an flange object.

Reimplemented from coat::nut::base.

◆ facetHeight() [1/2]

float coat::nut::flange::facetHeight ( ) const

get the height.

Returns
height value.

◆ facetHeight() [2/2]

flange & coat::nut::flange::facetHeight ( const float &  h)

set the facet height.

Parameters
hheight value.
Returns
flange reference

◆ facetWidth() [1/2]

float coat::nut::flange::facetWidth ( ) const

get the width.

Returns
width value.

◆ facetWidth() [2/2]

flange & coat::nut::flange::facetWidth ( const float &  w)

set the width.

Parameters
wwidth value.
Returns
flange reference

The documentation for this class was generated from the following file: