3DCoat  3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
coat::scripto::CoreThreadPrim Class Reference

Class for working with primitive mesh which represents like corethread prim. More...

#include <SCoreThreadPrim.h>

Public Types

enum  Mode
 Operations with meshes. More...
 

Public Member Functions

 CoreThreadPrim ()
 Constructor for creating of core thread primitive. More...
 
cthpm_t * cthpm_t_ptr () const
 Converts the pointer to base class to a pointer to this class. More...
 
float Length () const
 Gets the length of core thread primitive. More...
 
CoreThreadPrimLength (const float &L)
 Sets the length of core thread primitive. More...
 
virtual float Diameter () const
 Gets the diameter of core thread. More...
 
virtual CoreThreadPrimDiameter (const float &D)
 Sets the diameter of core thread. More...
 
float BottomDiameter () const
 Gets the bottom diameter of core thread. More...
 
CoreThreadPrimBottomDiameter (const float &D)
 Sets the bottom diameter of core thread. More...
 
float ThreadLength () const
 Gets the length of core thread. More...
 
CoreThreadPrimThreadLength (const float &L)
 Sets the length of core thread. More...
 
bool UseThread () const
 Gets the use thread flag. More...
 
CoreThreadPrimUseThread (const bool &b)
 Sets the use thread flag. More...
 
virtual ProfileType Profile () const
 Gets the type of profile for thread. More...
 
virtual CoreThreadPrimProfile (const ProfileType &prof)
 Sets the type of profile for thread. More...
 
virtual float Pitch () const
 Gets the pitch value for thread. More...
 
virtual CoreThreadPrimPitch (const float &pitch)
 Sets the pitch value for thread. More...
 
virtual float Height () const
 Gets the height of core thread. More...
 
virtual CoreThreadPrimHeight (const float &h)
 Sets the height of core thread. More...
 
bool UseCone () const
 Gets the use cone flag. More...
 
CoreThreadPrimUseCone (const bool &b)
 Sets the use cone flag. More...
 
fstn_prm_t * fstn_prm_ptr () const
 Converts the pointer to base class. More...
 
virtual void update ()
 Update parameters. More...
 
void UpdateModel ()
 Update model on click to place action. More...
 
void StoreFP (FPRec &fp)
 Store of the scale radius, clickToPlace and positions More...
 
void RestoreFP (const FPRec &fp)
 Restore of the scale radius, clickToPlace and positions More...
 
virtual CoreThreadPrimPosition (const Vec3 &c)
 Setter for object position. More...
 
virtual Vec3 Position () const
 Getter for object position. More...
 
virtual CoreThreadPrimPosition2 (const Vec3 &c)
 Sets the position2 for object. More...
 
virtual Vec3 Position2 () const
 Gets the position2 for object. More...
 
virtual CoreThreadPrimScaleRadius (const float &r)
 Sets the scale radius. More...
 
virtual float ScaleRadius () const
 Gets the scale radius. More...
 
virtual CoreThreadPrimClickToPlace (const float &brushRadius)
 Click to place. More...
 
virtual CoreThreadPrimResetSize ()
 Reset the size object. More...
 
virtual CoreThreadPrimResetPosition ()
 Reset the position object. More...
 
virtual CoreThreadPrimResetAxis ()
 Reset the axies. More...
 
CoreThreadPrimAxisX (const Vec3 &ax)
 Setter for Axis X. More...
 
Vec3 AxisX () const
 Getter for Axis X. More...
 
CoreThreadPrimAxisY (const Vec3 &ay)
 Setter for Axis Y. More...
 
Vec3 AxisY () const
 Getter for Axis Y. More...
 
CoreThreadPrimAxisZ (const Vec3 &az)
 Setter for Axis Z. More...
 
Vec3 AxisZ () const
 Getter for Axis Z. More...
 

Detailed Description

Class for working with primitive mesh which represents like corethread prim.

corethread.jpg
See Also
CoreThreadPrim for notes.
Since
5.0.0
+ Inheritance diagram for coat::scripto::CoreThreadPrim:

Member Enumeration Documentation

enum coat::scripto::BasePrim::Mode
stronginherited

Operations with meshes.

Constructor & Destructor Documentation

coat::scripto::CoreThreadPrim::CoreThreadPrim ( )
inline

Constructor for creating of core thread primitive.

Member Function Documentation

CoreThreadPrim & coat::scripto::IFastenerBasePrim< CoreThreadPrim >::AxisX ( const Vec3 ax)
inlineinherited

Setter for Axis X.

Parameters
axThe axis vector
Vec3 coat::scripto::IFastenerBasePrim< CoreThreadPrim >::AxisX ( ) const
inlineinherited

Getter for Axis X.

CoreThreadPrim & coat::scripto::IFastenerBasePrim< CoreThreadPrim >::AxisY ( const Vec3 ay)
inlineinherited

Setter for Axis Y.

Parameters
ayThe axis vector
Vec3 coat::scripto::IFastenerBasePrim< CoreThreadPrim >::AxisY ( ) const
inlineinherited

Getter for Axis Y.

CoreThreadPrim & coat::scripto::IFastenerBasePrim< CoreThreadPrim >::AxisZ ( const Vec3 az)
inlineinherited

Setter for Axis Z.

Parameters
azThe axis vector
Vec3 coat::scripto::IFastenerBasePrim< CoreThreadPrim >::AxisZ ( ) const
inlineinherited

Getter for Axis Z.

float coat::scripto::CoreThreadPrim::BottomDiameter ( ) const
inline

Gets the bottom diameter of core thread.

References cthpm_t_ptr().

CoreThreadPrim& coat::scripto::CoreThreadPrim::BottomDiameter ( const float &  D)
inline

Sets the bottom diameter of core thread.

References cthpm_t_ptr().

virtual CoreThreadPrim & coat::scripto::IFastenerBasePrim< CoreThreadPrim >::ClickToPlace ( const float &  brushRadius)
inlinevirtualinherited

Click to place.

Parameters
brushRadiusThe brush radius for placement
cthpm_t* coat::scripto::CoreThreadPrim::cthpm_t_ptr ( ) const
inline

Converts the pointer to base class to a pointer to this class.

Referenced by BottomDiameter(), Diameter(), Height(), Length(), Pitch(), Profile(), ThreadLength(), UseCone(), and UseThread().

virtual float coat::scripto::CoreThreadPrim::Diameter ( ) const
inlinevirtual

Gets the diameter of core thread.

References cthpm_t_ptr().

virtual CoreThreadPrim& coat::scripto::CoreThreadPrim::Diameter ( const float &  D)
inlinevirtual

Sets the diameter of core thread.

References cthpm_t_ptr().

fstn_prm_t* coat::scripto::IFastenerBasePrim< CoreThreadPrim >::fstn_prm_ptr ( ) const
inlineinherited

Converts the pointer to base class.

virtual float coat::scripto::CoreThreadPrim::Height ( ) const
inlinevirtual

Gets the height of core thread.

References cthpm_t_ptr().

virtual CoreThreadPrim& coat::scripto::CoreThreadPrim::Height ( const float &  h)
inlinevirtual

Sets the height of core thread.

References cthpm_t_ptr().

float coat::scripto::CoreThreadPrim::Length ( ) const
inline

Gets the length of core thread primitive.

Returns
Returns the length

References cthpm_t_ptr().

CoreThreadPrim& coat::scripto::CoreThreadPrim::Length ( const float &  L)
inline

Sets the length of core thread primitive.

References cthpm_t_ptr().

virtual float coat::scripto::CoreThreadPrim::Pitch ( ) const
inlinevirtual

Gets the pitch value for thread.

References cthpm_t_ptr().

virtual CoreThreadPrim& coat::scripto::CoreThreadPrim::Pitch ( const float &  pitch)
inlinevirtual

Sets the pitch value for thread.

References cthpm_t_ptr().

virtual CoreThreadPrim & coat::scripto::IFastenerBasePrim< CoreThreadPrim >::Position ( const Vec3 c)
inlinevirtualinherited

Setter for object position.

virtual Vec3 coat::scripto::IFastenerBasePrim< CoreThreadPrim >::Position ( ) const
inlinevirtualinherited

Getter for object position.

virtual CoreThreadPrim & coat::scripto::IFastenerBasePrim< CoreThreadPrim >::Position2 ( const Vec3 c)
inlinevirtualinherited

Sets the position2 for object.

virtual Vec3 coat::scripto::IFastenerBasePrim< CoreThreadPrim >::Position2 ( ) const
inlinevirtualinherited

Gets the position2 for object.

virtual ProfileType coat::scripto::CoreThreadPrim::Profile ( ) const
inlinevirtual

Gets the type of profile for thread.

References cthpm_t_ptr().

virtual CoreThreadPrim& coat::scripto::CoreThreadPrim::Profile ( const ProfileType &  prof)
inlinevirtual

Sets the type of profile for thread.

References cthpm_t_ptr().

virtual CoreThreadPrim & coat::scripto::IFastenerBasePrim< CoreThreadPrim >::ResetAxis ( )
inlinevirtualinherited

Reset the axies.

virtual CoreThreadPrim & coat::scripto::IFastenerBasePrim< CoreThreadPrim >::ResetPosition ( )
inlinevirtualinherited

Reset the position object.

virtual CoreThreadPrim & coat::scripto::IFastenerBasePrim< CoreThreadPrim >::ResetSize ( )
inlinevirtualinherited

Reset the size object.

void coat::scripto::IFastenerBasePrim< CoreThreadPrim >::RestoreFP ( const FPRec &  fp)
inlineinherited

Restore of the scale radius, clickToPlace and positions

Parameters
fpThe reference to the record of the fastern product
virtual CoreThreadPrim & coat::scripto::IFastenerBasePrim< CoreThreadPrim >::ScaleRadius ( const float &  r)
inlinevirtualinherited

Sets the scale radius.

virtual float coat::scripto::IFastenerBasePrim< CoreThreadPrim >::ScaleRadius ( ) const
inlinevirtualinherited

Gets the scale radius.

void coat::scripto::IFastenerBasePrim< CoreThreadPrim >::StoreFP ( FPRec &  fp)
inlineinherited

Store of the scale radius, clickToPlace and positions

Parameters
fpThe reference to the record of the fastern product
float coat::scripto::CoreThreadPrim::ThreadLength ( ) const
inline

Gets the length of core thread.

References cthpm_t_ptr().

CoreThreadPrim& coat::scripto::CoreThreadPrim::ThreadLength ( const float &  L)
inline

Sets the length of core thread.

References cthpm_t_ptr().

virtual void coat::scripto::IFastenerBasePrim< CoreThreadPrim >::update ( )
inlinevirtualinherited

Update parameters.

Reimplemented from coat::scripto::BaseObj< CoreThreadPrim >.

void coat::scripto::IFastenerBasePrim< CoreThreadPrim >::UpdateModel ( )
inlineinherited

Update model on click to place action.

bool coat::scripto::CoreThreadPrim::UseCone ( ) const
inline

Gets the use cone flag.

References cthpm_t_ptr().

CoreThreadPrim& coat::scripto::CoreThreadPrim::UseCone ( const bool &  b)
inline

Sets the use cone flag.

References cthpm_t_ptr().

bool coat::scripto::CoreThreadPrim::UseThread ( ) const
inline

Gets the use thread flag.

References cthpm_t_ptr().

CoreThreadPrim& coat::scripto::CoreThreadPrim::UseThread ( const bool &  b)
inline

Sets the use thread flag.

References cthpm_t_ptr().


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