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

Public Member Functions

 acorn ()
 constructor.
 
 acorn (float d, float h, float h1)
 constructor. More...
 
acornfacetHeight (const float &_h)
 set the facet height. More...
 
float facetHeight () const
 get the facet height. More...
 
virtual basecopy (base *p=nullptr)
 copies the acorn 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

◆ acorn()

coat::nut::acorn::acorn ( float  d,
float  h,
float  h1 
)

constructor.

Parameters
ddiameter
hheight
h1facet height

Member Function Documentation

◆ copy()

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

copies the acorn object.

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

Reimplemented from coat::nut::base.

◆ facetHeight() [1/2]

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

get the facet height.

Returns
facet height value.

◆ facetHeight() [2/2]

acorn & coat::nut::acorn::facetHeight ( const float &  _h)

set the facet height.

Parameters
_hheight value.
Returns
acorn reference

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