3DCoat Core API
The 3DCoat API documentation.
Loading...
Searching...
No Matches
coat::Slit Class Reference

class of the slits More...

#include <CorePrimAPI.h>

Public Member Functions

 Slit ()
 constructor
 
 Slit (float w, float h, float d, SlitType t)
 slit constructor.
 
Slittype (const int &_t)
 set the slit type.
 
int type () const
 get the slit type.
 
Slitwidth (const float &_w)
 set the width.
 
float width () const
 get the width.
 
Slitheight (const float &_h)
 set the height.
 
float height () const
 get the height.
 
Slitdepth (const float &_d)
 set the depth.
 
float depth () const
 get the depth.
 

Detailed Description

class of the slits

Examples
boltheads.cpp, and screw.cpp.

Constructor & Destructor Documentation

◆ Slit()

coat::Slit::Slit ( float w,
float h,
float d,
SlitType t )

slit constructor.

Parameters
wwidth
hheight
ddepth
ttype

Member Function Documentation

◆ depth() [1/2]

float coat::Slit::depth ( ) const

get the depth.

Returns
depth value

◆ depth() [2/2]

Slit & coat::Slit::depth ( const float & _d)

set the depth.

Parameters
_ddepth value
Returns
slit reference
Examples
boltheads.cpp.

◆ height() [1/2]

float coat::Slit::height ( ) const

get the height.

Returns
height value

◆ height() [2/2]

Slit & coat::Slit::height ( const float & _h)

set the height.

Parameters
_hheight value
Returns
slit reference
Examples
boltheads.cpp.

◆ type() [1/2]

int coat::Slit::type ( ) const

get the slit type.

Returns
type value

◆ type() [2/2]

Slit & coat::Slit::type ( const int & _t)

set the slit type.

Parameters
_ttype value
Returns
slit reference
Examples
boltheads.cpp.

◆ width() [1/2]

float coat::Slit::width ( ) const

get the width.

Returns
width value

◆ width() [2/2]

Slit & coat::Slit::width ( const float & _w)

set the width.

Parameters
_wwidth value
Returns
slit reference
Examples
boltheads.cpp.

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