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

Public Member Functions

 slits ()
 constructor.
 
 slits (float d, float h)
 constructor. More...
 
slitswidth (const float &w)
 set the width. More...
 
slitslength (const float &l)
 set the length. More...
 
slitscount (const int &n)
 set the count of slits. More...
 
float width () const
 get the width. More...
 
float length () const
 get the length. More...
 
int count () const
 get the count of slits. More...
 
virtual basecopy (base *p=nullptr)
 copies the slits 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

◆ slits()

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

constructor.

Parameters
ddiameter
hheight

Member Function Documentation

◆ copy()

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

copies the slits object.

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

Reimplemented from coat::nut::base.

◆ count() [1/2]

int coat::nut::slits::count ( ) const

get the count of slits.

Returns
count value.

◆ count() [2/2]

slits & coat::nut::slits::count ( const int &  n)

set the count of slits.

Parameters
ncount value.
Returns
slits reference

◆ length() [1/2]

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

get the length.

Returns
length value.

◆ length() [2/2]

slits & coat::nut::slits::length ( const float &  l)

set the length.

Parameters
llength value.
Returns
slits reference

◆ width() [1/2]

float coat::nut::slits::width ( ) const

get the width.

Returns
width value.

◆ width() [2/2]

slits & coat::nut::slits::width ( const float &  w)

set the width.

Parameters
wwidth value.
Returns
slits reference

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