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

Public Member Functions

 lamb ()
 constructor.
 
 lamb (float d, float h)
 constructor. More...
 
lamblength (const float &_l)
 set the length. More...
 
lambdiameterBottom (const float &_d)
 set the bottom diameter. More...
 
lambdiameterTop (const float &_d)
 set the top diameter. More...
 
lambheadHeight (const float &_h)
 set the head height. More...
 
lambthickness (const float &_t)
 set the thickness. More...
 
float length () const
 get the length. More...
 
float diameterBottom () const
 get the bottom diameter. More...
 
float diameterTop () const
 get the top diameter. More...
 
float headHeight () const
 get the head height. More...
 
float thickness () const
 get the thickness. More...
 
virtual basecopy (base *p=nullptr)
 copies the lamb 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

◆ lamb()

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

constructor.

Parameters
ddiameter
hheight

Member Function Documentation

◆ copy()

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

copies the lamb object.

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

Reimplemented from coat::nut::base.

◆ diameterBottom() [1/2]

float coat::nut::lamb::diameterBottom ( ) const

get the bottom diameter.

Returns
bottom diameter

◆ diameterBottom() [2/2]

lamb & coat::nut::lamb::diameterBottom ( const float &  _d)

set the bottom diameter.

Parameters
_dbottom diameter
Returns
lamb reference

◆ diameterTop() [1/2]

float coat::nut::lamb::diameterTop ( ) const

get the top diameter.

Returns
top diameter

◆ diameterTop() [2/2]

lamb & coat::nut::lamb::diameterTop ( const float &  _d)

set the top diameter.

Parameters
_dtop diameter
Returns
lamb reference

◆ headHeight() [1/2]

float coat::nut::lamb::headHeight ( ) const

get the head height.

Parameters
_hheight
Returns
height value

◆ headHeight() [2/2]

lamb & coat::nut::lamb::headHeight ( const float &  _h)

set the head height.

Parameters
_hheight
Returns
lamb reference

◆ length() [1/2]

float coat::nut::lamb::length ( ) const

get the length.

Returns
length value

◆ length() [2/2]

lamb & coat::nut::lamb::length ( const float &  _l)

set the length.

Parameters
_llength
Returns
lamb reference

◆ thickness() [1/2]

float coat::nut::lamb::thickness ( ) const

get the thickness.

Returns
thickness value

◆ thickness() [2/2]

lamb & coat::nut::lamb::thickness ( const float &  _t)

set the thickness.

Parameters
_tthickness
Returns
lamb reference

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