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

Public Member Functions

 NutClampLever ()
 constructor.
 
 NutClampLever (float d, float h)
 constructor.
 
NutClampLeverholderDiameter (const float &_d)
 set the diameter of the holder.
 
NutClampLeverlength (const float &_l)
 set the length.
 
float holderDiameter () const
 get the diameter of the holder.
 
float length () const
 get the length.
 
virtual NutHeadBaseParamscopy (NutHeadBaseParams *p=nullptr)
 copies the NutClampLever 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

◆ NutClampLever()

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

constructor.

Parameters
ddiameter
hheight

Member Function Documentation

◆ copy()

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

copies the NutClampLever object.

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

Reimplemented from coat::NutHeadBaseParams.

◆ holderDiameter() [1/2]

float coat::NutClampLever::holderDiameter ( ) const

get the diameter of the holder.

Returns
holder diameter

◆ holderDiameter() [2/2]

NutClampLever & coat::NutClampLever::holderDiameter ( const float & _d)

set the diameter of the holder.

Parameters
_ddiameter
Returns
NutClampLever reference

◆ length() [1/2]

float coat::NutClampLever::length ( ) const

get the length.

Returns
length value

◆ length() [2/2]

NutClampLever & coat::NutClampLever::length ( const float & _l)

set the length.

Parameters
_llength
Returns
NutClampLever reference

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