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.
|
Class for working with primitive mesh which represents like bolt. More...
#include <SBoltPrim.h>
Public Types | |
enum | Mode |
Operations with meshes. More... | |
Public Member Functions | |
bltpm_t * | blttpm_t_ptr () const |
Converts the pointer to base class to a pointer to this class. More... | |
virtual void | update () |
Update parameters. More... | |
float | Diameter () const |
Gets the diameter. More... | |
BoltPrim & | Diameter (const float &d) |
Sets the diameter. More... | |
float | Height () const |
Gets the height. More... | |
BoltPrim & | Height (const float &h) |
Sets the height. More... | |
float | Width () const |
Gets the width. More... | |
BoltPrim & | Width (const float &w) |
Sets the width. More... | |
float | Length () const |
Gets the length. More... | |
BoltPrim & | Length (const float &h) |
Sets the length. More... | |
float | HeadHeight () const |
Gets the head height. More... | |
BoltPrim & | HeadHeight (const float &h) |
Sets the head height. More... | |
float | HeadDiameterDown () const |
Gets the head diameter at bottom. More... | |
BoltPrim & | HeadDiameterDown (const float &h) |
Sets the head diameter at bottom. More... | |
float | HeadDiameterUpper () const |
Gets the head diameter at top. More... | |
BoltPrim & | HeadDiameterUpper (const float &h) |
Sets the head diameter at top. More... | |
float | Thickness () const |
Gets the thickness. More... | |
BoltPrim & | Thickness (const float &t) |
Sets the thickness. More... | |
float | InnerRadius () const |
Gets the inner radius. More... | |
BoltPrim & | InnerRadius (const float &in) |
Sets the inner radius. More... | |
float | ThreadLength () const |
Gets the thread length. More... | |
BoltPrim & | ThreadLength (const float &l) |
Sets the thread length. More... | |
float | Pitch () const |
Gets the bolt pitch. More... | |
BoltPrim & | Pitch (const float &pitch) |
Sets the bolt pitch. More... | |
SHeadType | HeadType () const |
Gets the head type. More... | |
BoltPrim & | HeadType (const SHeadType &htype) |
Sets the head type. More... | |
SUnderHeadType | UnderHeadType () const |
Gets the under head type. More... | |
BoltPrim & | UnderHeadType (const SUnderHeadType &prof) |
Gets the under head type. More... | |
bool | UseSlit () const |
Gets the using of slit flag. More... | |
BoltPrim & | UseSlit (const bool &b) |
Gets the using of slit flag. More... | |
bool | UseUnderHead () const |
Gets the using of under head flag. More... | |
BoltPrim & | UseUnderHead (const bool &b) |
Sets the using of under head flag. More... | |
float | UnderHeadWidth () const |
Gets the under head width. More... | |
BoltPrim & | UnderHeadWidth (const float &w) |
Sets the under head width. More... | |
float | UnderHeadHeight () const |
Gets the under head height. More... | |
BoltPrim & | UnderHeadHeight (const float &h) |
Sets the under head height. More... | |
ProfileType | Profile () const |
Gets the profile value. More... | |
BoltPrim & | Profile (const ProfileType &prof) |
Sets the profile value. More... | |
SSlitType | SlitType () const |
Gets the type of head slit. More... | |
BoltPrim & | SlitType (const SSlitType &t) |
Sets the type of head slit. More... | |
float | SlitWidth () const |
Gets the slit width. More... | |
BoltPrim & | SlitWidth (const float &w) |
Sets the slit width. More... | |
float | SlitHeight () const |
Gets the slit height. More... | |
BoltPrim & | SlitHeight (const float &h) |
Sets the slit height. More... | |
float | SlitLength () const |
Gets the slit length. More... | |
BoltPrim & | SlitLength (const float &l) |
Sets the slit length. More... | |
float | BodyLength () const |
Gets the body length. More... | |
BoltPrim & | BodyLength (const float &l) |
Sets the body length. More... | |
float | BodyDiameter () const |
Gets the body diameter. More... | |
BoltPrim & | BodyDiameter (const float &d) |
Sets the body diameter. More... | |
bool | UseThread () const |
Gets the using of thread flag. More... | |
BoltPrim & | UseThread (const bool &l) |
Sets the using of thread flag. More... | |
bool | UseNut () const |
Gets the using of nut. More... | |
BoltPrim & | UseNut (const bool &l) |
Sets the using of nut. More... | |
bool | UseNutSeparate () const |
Gets the using of separate nut. More... | |
BoltPrim & | UseNutSeparate (const bool &l) |
Sets the using of separate nut. More... | |
bool | UseGroove () const |
Gets the groove flag. More... | |
BoltPrim & | UseGroove (const bool &l) |
Sets the groove flag. More... | |
float | NutLocation (bool ref) const |
Gets the nut location on the bolt. More... | |
BoltPrim & | NutLocation (const float &l, bool ref) |
Sets the nut location on the bolt. More... | |
BoltPrim & | Marks (const std::string &n) |
Sets the mark name of the standart bolt. More... | |
std::string | Marks () const |
Gets the mark name of the standart bolt. More... | |
BoltPrim & | ModelType (const int &t) |
Sets the model type of bolt. More... | |
int | ModelType () const |
Gets the model type. More... | |
BoltPrim & | ProductID (const int &n) |
Sets the product identifier. More... | |
int | ProductID () const |
Gets the product identifier. More... | |
void | ResetScales () |
Reset scales. More... | |
void | StoreProdPresets () |
Store the presets of product. More... | |
void | LoadProdPresets () |
Load the presets of product. More... | |
void | Standard () |
Switch to standard mode. More... | |
void | Custom () |
Switch to custom mode. More... | |
fstn_prm_t * | fstn_prm_ptr () const |
Converts the pointer to base class. 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 BoltPrim & | Position (const Vec3 &c) |
Setter for object position. More... | |
virtual Vec3 | Position () const |
Getter for object position. More... | |
virtual BoltPrim & | Position2 (const Vec3 &c) |
Sets the position2 for object. More... | |
virtual Vec3 | Position2 () const |
Gets the position2 for object. More... | |
virtual BoltPrim & | ScaleRadius (const float &r) |
Sets the scale radius. More... | |
virtual float | ScaleRadius () const |
Gets the scale radius. More... | |
virtual BoltPrim & | ClickToPlace (const float &brushRadius) |
Click to place. More... | |
virtual BoltPrim & | ResetSize () |
Reset the size object. More... | |
virtual BoltPrim & | ResetPosition () |
Reset the position object. More... | |
virtual BoltPrim & | ResetAxis () |
Reset the axies. More... | |
BoltPrim & | AxisX (const Vec3 &ax) |
Setter for Axis X. More... | |
Vec3 | AxisX () const |
Getter for Axis X. More... | |
BoltPrim & | AxisY (const Vec3 &ay) |
Setter for Axis Y. More... | |
Vec3 | AxisY () const |
Getter for Axis Y. More... | |
BoltPrim & | AxisZ (const Vec3 &az) |
Setter for Axis Z. More... | |
Vec3 | AxisZ () const |
Getter for Axis Z. More... | |
Class for working with primitive mesh which represents like bolt.
|
stronginherited |
Operations with meshes.
|
inlineinherited |
Setter for Axis X.
ax | The axis vector |
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr().
|
inlineinherited |
Getter for Axis X.
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr(), coat::scripto::Vec3::x(), coat::scripto::Vec3::y(), and coat::scripto::Vec3::z().
|
inlineinherited |
Setter for Axis Y.
ay | The axis vector |
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr().
|
inlineinherited |
Getter for Axis Y.
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr(), coat::scripto::Vec3::x(), coat::scripto::Vec3::y(), and coat::scripto::Vec3::z().
|
inlineinherited |
Setter for Axis Z.
az | The axis vector |
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr().
|
inlineinherited |
Getter for Axis Z.
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr(), coat::scripto::Vec3::x(), coat::scripto::Vec3::y(), and coat::scripto::Vec3::z().
|
inline |
Converts the pointer to base class to a pointer to this class.
Referenced by BodyDiameter(), BodyLength(), Custom(), Diameter(), HeadDiameterDown(), HeadHeight(), HeadType(), Height(), LoadProdPresets(), Marks(), ModelType(), NutLocation(), Pitch(), ProductID(), Profile(), ResetScales(), SlitHeight(), SlitLength(), SlitType(), SlitWidth(), Standard(), StoreProdPresets(), ThreadLength(), UnderHeadHeight(), UnderHeadType(), UnderHeadWidth(), update(), UseGroove(), UseNut(), UseNutSeparate(), UseSlit(), UseThread(), and UseUnderHead().
|
inline |
|
inline |
Sets the body diameter.
References blttpm_t_ptr(), and update().
|
inline |
|
inline |
Sets the body length.
References blttpm_t_ptr(), and update().
|
inlinevirtualinherited |
Click to place.
brushRadius | The brush radius for placement |
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr().
|
inline |
Switch to custom mode.
References blttpm_t_ptr(), and update().
|
inline |
|
inline |
Sets the diameter.
References blttpm_t_ptr(), and update().
|
inlineinherited |
Converts the pointer to base class.
|
inline |
Gets the head diameter at bottom.
References blttpm_t_ptr().
|
inline |
Sets the head diameter at bottom.
References blttpm_t_ptr(), and update().
|
inline |
Gets the head diameter at top.
|
inline |
Sets the head diameter at top.
|
inline |
|
inline |
Sets the head height.
References blttpm_t_ptr(), and update().
|
inline |
|
inline |
Sets the head type.
htype | The head type parameter |
References blttpm_t_ptr(), and update().
|
inline |
|
inline |
Sets the height.
References blttpm_t_ptr(), and update().
|
inline |
Gets the inner radius.
|
inline |
Sets the inner radius.
|
inline |
Gets the length.
|
inline |
Sets the length.
|
inline |
Load the presets of product.
References blttpm_t_ptr(), and update().
|
inline |
Sets the mark name of the standart bolt.
n | Mark name |
References blttpm_t_ptr(), and coat::scripto::IFastenerBasePrim< BoltPrim >::UpdateModel().
|
inline |
Gets the mark name of the standart bolt.
References blttpm_t_ptr().
|
inline |
Sets the model type of bolt.
t | Model type |
References blttpm_t_ptr(), and coat::scripto::IFastenerBasePrim< BoltPrim >::UpdateModel().
|
inline |
|
inline |
Gets the nut location on the bolt.
ref | If parameter is equal true then used the relative value |
References blttpm_t_ptr().
|
inline |
Sets the nut location on the bolt.
l, ref | If parameter "ref" is equal true then used the relative value |
References blttpm_t_ptr(), and update().
|
inline |
|
inline |
Sets the bolt pitch.
pitch | The step of thread parameter |
References blttpm_t_ptr(), and update().
|
inlinevirtualinherited |
Setter for object position.
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr(), and coat::scripto::IFastenerBasePrim< T >::update().
|
inlinevirtualinherited |
Getter for object position.
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr().
|
inlinevirtualinherited |
Sets the position2 for object.
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr(), and coat::scripto::IFastenerBasePrim< T >::update().
|
inlinevirtualinherited |
Gets the position2 for object.
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr().
|
inline |
Sets the product identifier.
n | Values 0 - bolts, 1 - screws |
References blttpm_t_ptr(), and update().
|
inline |
|
inline |
|
inline |
Sets the profile value.
prof | Set the ProfileType value |
References blttpm_t_ptr(), and update().
|
inlinevirtualinherited |
Reset the axies.
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr().
|
inlinevirtualinherited |
Reset the position object.
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr().
|
inline |
Reset scales.
References blttpm_t_ptr().
|
inlinevirtualinherited |
Reset the size object.
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr().
|
inlineinherited |
Restore of the scale radius, clickToPlace and positions
fp | The reference to the record of the fastern product |
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr(), and coat::scripto::IFastenerBasePrim< T >::ScaleRadius().
|
inlinevirtualinherited |
Sets the scale radius.
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr(), and coat::scripto::IFastenerBasePrim< T >::update().
|
inlinevirtualinherited |
Gets the scale radius.
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr().
|
inline |
|
inline |
Sets the slit height.
References blttpm_t_ptr(), and update().
|
inline |
|
inline |
Sets the slit length.
References blttpm_t_ptr(), and update().
|
inline |
|
inline |
Sets the type of head slit.
References blttpm_t_ptr(), and update().
|
inline |
|
inline |
Sets the slit width.
References blttpm_t_ptr(), and update().
|
inline |
Switch to standard mode.
References blttpm_t_ptr(), and update().
|
inlineinherited |
Store of the scale radius, clickToPlace and positions
fp | The reference to the record of the fastern product |
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr(), and coat::scripto::IFastenerBasePrim< T >::ScaleRadius().
|
inline |
Store the presets of product.
References blttpm_t_ptr(), and update().
|
inline |
Gets the thickness.
|
inline |
Sets the thickness.
|
inline |
|
inline |
|
inline |
|
inline |
Sets the under head height.
References blttpm_t_ptr(), and update().
|
inline |
|
inline |
Gets the under head type.
prof | Parameter must be DISK or SQUARE |
References blttpm_t_ptr(), and update().
|
inline |
|
inline |
Sets the under head width.
References blttpm_t_ptr(), and update().
|
inlinevirtual |
Update parameters.
Reimplemented from coat::scripto::IFastenerBasePrim< BoltPrim >.
References blttpm_t_ptr().
Referenced by BodyDiameter(), BodyLength(), Custom(), Diameter(), HeadDiameterDown(), HeadHeight(), HeadType(), Height(), LoadProdPresets(), NutLocation(), Pitch(), ProductID(), Profile(), SlitHeight(), SlitLength(), SlitType(), SlitWidth(), Standard(), StoreProdPresets(), ThreadLength(), UnderHeadHeight(), UnderHeadType(), UnderHeadWidth(), UseGroove(), UseNut(), UseNutSeparate(), UseSlit(), UseThread(), and UseUnderHead().
|
inlineinherited |
Update model on click to place action.
References coat::scripto::IFastenerBasePrim< T >::fstn_prm_ptr(), coat::scripto::IFastenerBasePrim< T >::RestoreFP(), coat::scripto::IFastenerBasePrim< T >::StoreFP(), and coat::scripto::IFastenerBasePrim< T >::update().
Referenced by Marks(), and ModelType().
|
inline |
Gets the groove flag.
References blttpm_t_ptr().
|
inline |
Sets the groove flag.
References blttpm_t_ptr(), and update().
|
inline |
Gets the using of nut.
References blttpm_t_ptr().
|
inline |
Sets the using of nut.
References blttpm_t_ptr(), and update().
|
inline |
Gets the using of separate nut.
References blttpm_t_ptr().
|
inline |
Sets the using of separate nut.
References blttpm_t_ptr(), and update().
|
inline |
|
inline |
Gets the using of slit flag.
References blttpm_t_ptr(), and update().
|
inline |
Gets the using of thread flag.
References blttpm_t_ptr().
|
inline |
Sets the using of thread flag.
References blttpm_t_ptr(), and update().
|
inline |
Gets the using of under head flag.
References blttpm_t_ptr().
|
inline |
Sets the using of under head flag.
b | True if flag is used |
References blttpm_t_ptr(), and update().
|
inline |
Gets the width.
|
inline |
Sets the width.