3DCoat Core API
The 3DCoat API documentation.
Loading...
Searching...
No Matches
coat::NutSlitsParams Class Reference
Inheritance diagram for coat::NutSlitsParams:
coat::NutHeadBaseParams

Public Member Functions

 NutSlitsParams ()
 constructor.
 
 NutSlitsParams (float d, float h)
 constructor.
 
NutSlitsParamswidth (const float &w)
 set the width.
 
NutSlitsParamslength (const float &l)
 set the length.
 
NutSlitsParamscount (const int &n)
 set the count of NutSlitsParams.
 
float width () const
 get the width.
 
float length () const
 get the length.
 
int count () const
 get the count of NutSlitsParams.
 
virtual NutHeadBaseParamscopy (NutHeadBaseParams *p=nullptr)
 copies the NutSlitsParams object.
 
- Public Member Functions inherited from coat::NutHeadBaseParams
 NutHeadBaseParams ()
 constructor.
 
 NutHeadBaseParams (NutType t, float d, float h)
 constructor.
 
NutHeadBaseParamsdiameter (const float &d)
 set the diameter.
 
float diameter () const
 get the diameter.
 
NutHeadBaseParamsheight (const float &h)
 set the height.
 
float height () const
 get the height.
 
 operator void * () const
 () operator
 
NutHeadBaseParamstype (int t)
 set the nut type.
 
int type () const
 set the nut type.
 

Constructor & Destructor Documentation

◆ NutSlitsParams()

coat::NutSlitsParams::NutSlitsParams ( float d,
float h )

constructor.

Parameters
ddiameter
hheight

Member Function Documentation

◆ copy()

virtual NutHeadBaseParams * coat::NutSlitsParams::copy ( NutHeadBaseParams * p = nullptr)
virtual

copies the NutSlitsParams object.

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

Reimplemented from coat::NutHeadBaseParams.

◆ count() [1/2]

int coat::NutSlitsParams::count ( ) const

get the count of NutSlitsParams.

Returns
count value.

◆ count() [2/2]

NutSlitsParams & coat::NutSlitsParams::count ( const int & n)

set the count of NutSlitsParams.

Parameters
ncount value.
Returns
NutSlitsParams reference

◆ length() [1/2]

float coat::NutSlitsParams::length ( ) const

get the length.

Returns
length value.

◆ length() [2/2]

NutSlitsParams & coat::NutSlitsParams::length ( const float & l)

set the length.

Parameters
llength value.
Returns
NutSlitsParams reference

◆ width() [1/2]

float coat::NutSlitsParams::width ( ) const

get the width.

Returns
width value.

◆ width() [2/2]

NutSlitsParams & coat::NutSlitsParams::width ( const float & w)

set the width.

Parameters
wwidth value.
Returns
NutSlitsParams reference

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