3DCoat Core API
The 3DCoat API documentation.
|
Public Member Functions | |
NutHeadBaseParams () | |
constructor. | |
NutHeadBaseParams (NutType t, float d, float h) | |
constructor. | |
NutHeadBaseParams & | diameter (const float &d) |
set the diameter. | |
float | diameter () const |
get the diameter. | |
NutHeadBaseParams & | height (const float &h) |
set the height. | |
float | height () const |
get the height. | |
operator void * () const | |
() operator | |
NutHeadBaseParams & | type (int t) |
set the nut type. | |
int | type () const |
set the nut type. | |
virtual NutHeadBaseParams * | copy (NutHeadBaseParams *p=nullptr) |
copies the object. | |
coat::NutHeadBaseParams::NutHeadBaseParams | ( | NutType | t, |
float | d, | ||
float | h ) |
constructor.
t | type of the nut |
d | diameter |
h | height |
|
virtual |
copies the object.
p | pointer to the object to copy. If the pointer equals to null then the object is duplicated |
Reimplemented in coat::NutAcornParams, coat::NutClampLever, coat::NutFlangeParams, coat::NutLambParams, coat::NutRadialParams, coat::NutRimParams, and coat::NutSlitsParams.
float coat::NutHeadBaseParams::diameter | ( | ) | const |
get the diameter.
NutHeadBaseParams & coat::NutHeadBaseParams::diameter | ( | const float & | d | ) |
float coat::NutHeadBaseParams::height | ( | ) | const |
get the height.
NutHeadBaseParams & coat::NutHeadBaseParams::height | ( | const float & | h | ) |
int coat::NutHeadBaseParams::type | ( | ) | const |
set the nut type.
NutHeadBaseParams & coat::NutHeadBaseParams::type | ( | int | t | ) |