305 void setDamping(
const double a_dampingCoefficient);
443 const GLfloat a_green,
444 const GLfloat a_blue,
445 const GLfloat a_alpha = 1.0f);
Implements an audio Buffer.
Implements color properties.
Implements a general abstract type.
Implements a structure to store rendering options.
This class implements an audio buffer.
Definition CAudioBuffer.h:79
This class implements an abstract type.
Definition CGenericType.h:76
Definition CAudioBuffer.cpp:57
std::shared_ptr< cMaterial > cMaterialPtr
Definition CMaterial.h:69
This class defines a color using a GLubyte representation for each component.
Definition CColor.h:1185
This class defines a color using a GLfloat representation for each component.
Definition CColor.h:139
void set(const GLfloat a_red, const GLfloat a_green, const GLfloat a_blue, const GLfloat a_alpha)
This method sets the color by passing its RGBA components as GLfloat parameters.
Definition CColor.h:244
void setb(const GLubyte a_red, const GLubyte a_green, const GLubyte a_blue, const GLubyte a_alpha)
This method sets the color by passing its RGBA components as GLubyte parameters.
Definition CColor.h:291
void copyTo(cColorf &a_color)
This method copies this color to another if it has been marked.
Definition CColor.h:223
This class models material properties.
Definition CMaterial.h:102
void setPurpleIndigo()
This method sets the color to Indigo.
Definition CMaterial.h:616
void setPurpleDarkOrchid()
This method sets the color to Dark Orchid.
Definition CMaterial.h:607
void setRedDarkSalmon()
This method sets the color to Dark Red Salmon.
Definition CMaterial.h:464
void setAudioFrictionPitchOffset(const double a_audioFrictionPitchOffset)
This method sets the audio pitch offset for sounds associated with friction.
Definition CMaterial.cpp:706
void setBlueLightCyan()
This method sets the color to Light Cyan.
Definition CMaterial.h:713
void setGrayLightSlate()
This method sets the color to Light Slate Gray.
Definition CMaterial.h:917
void setRed()
This method sets the color to Red.
Definition CMaterial.h:473
bool m_flag_audioFrictionPitchGain
Flag to track if related member has been modified.
Definition CMaterial.h:1158
void setHapticTriangleBackSide(const bool a_enabled)
This method enables or disables haptic rendering of back side of mesh triangles.
Definition CMaterial.cpp:583
void setBlueCadet()
This method sets the color to Cadet Blue.
Definition CMaterial.h:731
void setWhiteFloral()
This method sets the color to Floral White.
Definition CMaterial.h:876
void setWhiteSmoke()
This method sets the color to White Smoke.
Definition CMaterial.h:864
void setBlueMediumTurquoise()
This method sets the color to Medium Turquoise.
Definition CMaterial.h:725
void setBlueAquamarine()
This method sets the color to Aquamarine.
Definition CMaterial.h:719
void setPurpleDarkMagenta()
This method sets the color to Dark Magenta.
Definition CMaterial.h:610
void setOrangeRed()
This method sets the color to Orange Red.
Definition CMaterial.h:519
double getVibrationAmplitude() const
This method returns the vibration force amplitude [N].
Definition CMaterial.h:257
void setHapticTriangleFrontSide(const bool a_enabled)
This method enables or disables haptic rendering on the front side of mesh triangles.
Definition CMaterial.cpp:562
double m_audioFrictionPitchGain
General pitch gain for sounds associated with friction.
Definition CMaterial.h:1155
cMaterial()
Constructor of cMaterial.
Definition CMaterial.cpp:57
void setGreenMediumSpring()
This method sets the color to Medium Spring Green.
Definition CMaterial.h:654
void setHapticTriangleSides(const bool a_enableFrontSide, const bool a_enableBackSide)
This method enables or disables haptic rendering of front and back sides of mesh triangles.
Definition CMaterial.cpp:601
void setWhiteBeige()
This method sets the color to Beige.
Definition CMaterial.h:870
void setUseHapticTexture(const bool a_useHapticTexture)
This method enables or disables haptic texture rendering. (Applies to polygonal objects only).
Definition CMaterial.cpp:524
void setBlueLightSteel()
This method sets the color to Light Steel Blue.
Definition CMaterial.h:737
double m_staticFriction
Static friction constant [N].
Definition CMaterial.h:1017
double m_stickSlipForceMax
Force threshold for stick and slip effect [N].
Definition CMaterial.h:1079
void setBlueDodger()
This method sets the color to Doger Blue.
Definition CMaterial.h:755
void setTransparencyLevel(const float a_levelTransparency)
This method sets the transparency level (alpha value) to all color components.
Definition CMaterial.cpp:157
double getDamping() const
This method returns the damping coefficient.
Definition CMaterial.h:308
void setPurpleThistle()
This method sets the color to Thistle.
Definition CMaterial.h:574
void setPurpleMediumOrchid()
This method sets the color to Medium Orchid.
Definition CMaterial.h:592
bool m_flag_hapticBackSideOfTriangles
Flag to track if related member has been modified.
Definition CMaterial.h:1123
bool m_flag_useHapticFriction
Flag to track if related member has been modified.
Definition CMaterial.h:1099
void setYellow()
This method sets the color to Yellow.
Definition CMaterial.h:536
void setUseHapticShading(const bool a_useHapticShading)
This method enables or disables haptic shading. (Applies to polygonal objects only).
Definition CMaterial.cpp:541
double getVibrationFrequency() const
This method returns the vibration frequency [Hz].
Definition CMaterial.h:251
void setBlueRoyal()
This method sets the color to Royal Blue.
Definition CMaterial.h:764
void setWhiteSnow()
This method sets the color to White Snow.
Definition CMaterial.h:846
void setPinkLight()
This method sets the color to Light Pink.
Definition CMaterial.h:490
void setGraySlate()
This method sets the color to Slate Gray.
Definition CMaterial.h:920
void setGreenTeal()
This method sets the color to Teal.
Definition CMaterial.h:699
bool m_flag_stickSlipForceMax
Flag to track if related member has been modified.
Definition CMaterial.h:1082
void setBlueCyan()
This method sets the color to Cyan.
Definition CMaterial.h:710
double getViscosity() const
This method returns the level of viscosity.
Definition CMaterial.h:240
void setBrownRosy()
This method sets the color to Rosy Brown.
Definition CMaterial.h:808
bool m_flag_vibrationFrequency
Flag to track if related member has been modified.
Definition CMaterial.h:1048
void setGreenForest()
This method sets the color to Forest Green.
Definition CMaterial.h:666
void setGrayDarkSlate()
This method sets the color to Dark Slate Gray.
Definition CMaterial.h:923
void setAudioImpactBuffer(cAudioBuffer *a_audioImpactBuffer)
This method sets an audio buffer associated to impacts between a tool and an object.
Definition CMaterial.cpp:620
void setBrownGoldenrod()
This method sets the color to Brown Goldenrod.
Definition CMaterial.h:814
void setYellowKhaki()
This method sets the color to Khaki.
Definition CMaterial.h:560
cColorf m_emissionBackup
Emission color. (Backup)
Definition CMaterial.h:212
double getStickSlipStiffness() const
This method sets the stiffness of the stick and slip model [N/m].
Definition CMaterial.h:291
void setWhiteMintCream()
This method sets the color to Mint Cream.
Definition CMaterial.h:852
void setGrayLight()
This method sets the color to Light Gray.
Definition CMaterial.h:902
void setBrownBlanchedAlmond()
This method sets the color to Blanched Almond.
Definition CMaterial.h:790
void setPurpleViolet()
This method sets the color to Violet.
Definition CMaterial.h:580
void backupColors()
This method creates a backup of its color properties. Any previous backup is lost.
Definition CMaterial.h:163
double m_magnetMaxForce
Maximum force applied by magnetic effect [N].
Definition CMaterial.h:1062
void setStickSlipForceMax(const double a_stickSlipForceMax)
This method sets the maximum force threshold of a stick and slip model [N].
Definition CMaterial.cpp:473
void setBrownSandy()
This method sets the color to Sandy Brown.
Definition CMaterial.h:811
double m_damping
Definition CMaterial.h:995
void setWhiteAzure()
This method sets the color to Azure.
Definition CMaterial.h:855
void setAudioFrictionBuffer(cAudioBuffer *a_audioFrictionBuffer)
This method sets an audio buffer associated with friction.
Definition CMaterial.cpp:638
double m_stiffness
Stiffness [N/m].
Definition CMaterial.h:984
void setYellowLight()
This method sets the color to Light Yellow.
Definition CMaterial.h:539
void setBluePowder()
This method sets the color to Powder Blue.
Definition CMaterial.h:740
bool m_flag_textureLevel
Flag to track if related member has been modified.
Definition CMaterial.h:1037
cColorf m_specular
Specular color.
Definition CMaterial.h:197
void setViscosity(const double a_viscosity)
This method sets the level of viscosity.
Definition CMaterial.cpp:382
void setPinkPaleVioletRed()
This method sets the color to Pale Violet Red.
Definition CMaterial.h:502
void setWhiteAntique()
This method sets the color to Antique White.
Definition CMaterial.h:882
void setGreenSea()
This method sets the color to Sea Green.
Definition CMaterial.h:663
void setModificationFlags(const bool a_value)
This method set a value value to all modification flags.
Definition CMaterial.cpp:746
void setPurpleDarkSlateBlue()
This method sets the color to Dark Slate Blue.
Definition CMaterial.h:622
void setShininess(const GLuint a_shininess)
This method sets the shininess (the exponent used for specular lighting).
Definition CMaterial.cpp:178
void setDynamicFriction(const double a_friction)
This method sets the dynamic friction level.
Definition CMaterial.cpp:326
void setRedSalmon()
This method sets the color to Red Salmon.
Definition CMaterial.h:461
void setWhite()
This method sets the color to White.
Definition CMaterial.h:843
void setStiffness(const double a_stiffness)
This method set the stiffness level [N/m].
Definition CMaterial.cpp:263
void setBlack()
This method sets the color to Black.
Definition CMaterial.h:926
void setVibrationAmplitude(const double a_vibrationAmplitude)
This method sets the vibration force amplitude [N].
Definition CMaterial.cpp:418
void setYellowGold()
This method sets the color to Gold.
Definition CMaterial.h:533
GLuint m_shininess
Material shininess level.
Definition CMaterial.h:956
void setBlueSky()
This method sets the color to Sky Blue.
Definition CMaterial.h:746
void setWhiteHoneydew()
This method sets the color to Honeydew.
Definition CMaterial.h:849
void setWhiteSeashell()
This method sets the color to Seashell.
Definition CMaterial.h:867
void setBrownTan()
This method sets the color to Tan.
Definition CMaterial.h:805
void setOrange()
This method sets the color to Orange.
Definition CMaterial.h:525
bool m_flag_vibrationAmplitude
Flag to track if related member has been modified.
Definition CMaterial.h:1054
void setGray()
This method sets the color to Gray.
Definition CMaterial.h:911
void setPinkDeep()
This method sets the color to Deep Pink.
Definition CMaterial.h:496
void setGrayDark()
This method sets the color to Dark Gray.
Definition CMaterial.h:908
void setBrownBurlyWood()
This method sets the color to Burly Wood.
Definition CMaterial.h:802
void setBlueDarkTurquoise()
This method sets the color to Dark Turquoise.
Definition CMaterial.h:728
void setWhiteOldLace()
This method sets the color to Old Lace.
Definition CMaterial.h:873
bool getUseHapticFriction() const
This method returns the status of haptic friction. (Applies to polygonal objects only).
Definition CMaterial.h:319
double getDynamicFriction() const
This method returns the dynamic friction level.
Definition CMaterial.h:331
void setGrayGainsboro()
This method sets the color to Gainsboro.
Definition CMaterial.h:899
void setGreenLightSea()
This method sets the color to Light Sea Green.
Definition CMaterial.h:693
bool m_flag_audioFrictionBuffer
Flag to track if related member has been modified.
Definition CMaterial.h:1140
void setBlueTurquoise()
This method sets the color to Turquoise.
Definition CMaterial.h:722
GLuint getShininess() const
This method returns the shininess level.
Definition CMaterial.h:148
virtual std::string getClassName()
This method returns the name of the object class.
Definition CMaterial.h:126
void setPurpleAmethyst()
This method sets the color to Amethyst.
Definition CMaterial.h:598
void setRedLightCoral()
This method sets the color to Light Coral Red.
Definition CMaterial.h:458
double m_stickSlipStiffness
Stiffness of stick slip model.
Definition CMaterial.h:1085
void setColorf(const GLfloat a_red, const GLfloat a_green, const GLfloat a_blue, const GLfloat a_alpha=1.0f)
This method defines a color property for this material.
Definition CMaterial.cpp:198
bool m_useHapticFriction
If true, haptic friction rendering is enabled.
Definition CMaterial.h:1096
void setWhiteLinen()
This method sets the color to Linen.
Definition CMaterial.h:885
void setGreenChartreuse()
This method sets the color to Chartreuse.
Definition CMaterial.h:636
double getAudioFrictionGain() const
This method returns the audio gain for sounds associated with friction.
Definition CMaterial.h:414
void restoreColors()
This method restores the color properties from values stored in the backup members.
Definition CMaterial.h:172
cColorf m_ambientBackup
Ambient color. (Backup)
Definition CMaterial.h:203
double getMagnetMaxForce() const
This method returns the maximum force applied by the magnet effect[N].
Definition CMaterial.h:268
bool m_flag_shininess
Flag to track if related member has been modified.
Definition CMaterial.h:959
double getStiffness() const
This method returns the stiffness level [N/m].
Definition CMaterial.h:229
void setPurpleLavender()
This method sets the color to Lavendar.
Definition CMaterial.h:571
void setPurplePlum()
This method sets the color to Plum.
Definition CMaterial.h:577
bool m_flag_audioFrictionGain
Flag to track if related member has been modified.
Definition CMaterial.h:1152
void setGreenLime()
This method sets the color to Lime.
Definition CMaterial.h:642
void setBrownWheat()
This method sets the color to Wheat.
Definition CMaterial.h:799
bool m_flag_audioFrictionPitchOffset
Flag to track if related member has been modified.
Definition CMaterial.h:1164
void setTextureLevel(const double a_textureLevel)
This method sets the haptic texture level.
Definition CMaterial.cpp:354
void setAudioFrictionPitchGain(const double a_audioFrictionPitchGain)
This method sets the audio pitch gain for sounds associated with friction.
Definition CMaterial.cpp:689
void setBrownNavajoWhite()
This method sets the color to Navajo White.
Definition CMaterial.h:796
bool m_flag_stickSlipStiffness
Flag to track if related member has been modified.
Definition CMaterial.h:1088
cColorf m_diffuse
Diffuse color.
Definition CMaterial.h:194
void setGreenSpring()
This method sets the color to Spring Green.
Definition CMaterial.h:657
void setYellowLightGoldenrod()
This method sets the color to Light Goldenrod.
Definition CMaterial.h:545
cAudioBuffer * m_audioImpactBuffer
Sound buffer associated with impacts.
Definition CMaterial.h:1131
void setStickSlipStiffness(double const a_stickSlipStiffness)
This method sets the stiffness of the stick and slip model [N/m].
Definition CMaterial.cpp:490
void setGrayDim()
This method sets the color to Dim Gray.
Definition CMaterial.h:914
void setGreenDarkCyan()
This method sets the color to Dark Cyan.
Definition CMaterial.h:696
std::string m_filename
Material filename.
Definition CMaterial.h:976
void setPinkHot()
This method sets the color to Hot Pink.
Definition CMaterial.h:493
double getAudioFrictionPitchOffset() const
This method returns the audio pitch offset for sounds associated with friction.
Definition CMaterial.h:426
void setBlueLightSky()
This method sets the color to Light Sky Blue.
Definition CMaterial.h:749
void setStaticFriction(const double a_friction)
This method sets the static friction level [N].
Definition CMaterial.cpp:298
bool m_flag_magnetMaxForce
Flag to track if related member has been modified.
Definition CMaterial.h:1065
bool m_flag_audioImpactGain
Flag to track if related member has been modified.
Definition CMaterial.h:1146
void setRedLightSalmon()
This method sets the color to Light Red Salmon.
Definition CMaterial.h:467
void setWhiteMistyRose()
This method sets the color to Misty Rose.
Definition CMaterial.h:891
void setPurple()
This method sets the color to Purple.
Definition CMaterial.h:613
bool m_flag_useHapticTexture
Flag to track if related member has been modified.
Definition CMaterial.h:1105
cMaterialPtr copy()
This method creates a copy itself.
Definition CMaterial.cpp:103
double m_dynamicFriction
Dynamic friction constant [N].
Definition CMaterial.h:1023
void setOrangeTomato()
This method sets the color to Orange Tomato.
Definition CMaterial.h:516
void setGreen()
This method sets the color to Green.
Definition CMaterial.h:669
void setPurpleSlateBlue()
This method sets the color to Slate Blue.
Definition CMaterial.h:619
void setBlueMidnight()
This method sets the color to Midnight Blue.
Definition CMaterial.h:779
void setGreenDarkOlive()
This method sets the color to Dark Olive Green.
Definition CMaterial.h:684
void setYellowMoccasin()
This method sets the color to Moccasin.
Definition CMaterial.h:551
void setDamping(const double a_dampingCoefficient)
This method sets the damping coefficient.
Definition CMaterial.cpp:280
void setPurpleMedium()
This method sets the color to Medium Purple.
Definition CMaterial.h:595
std::string m_name
Material name.
Definition CMaterial.h:973
bool m_flag_audioImpactBuffer
Flag to track if related member has been modified.
Definition CMaterial.h:1134
cColorf m_emission
Emission color.
Definition CMaterial.h:200
void setBrownChocolate()
This method sets the color to Chocolate.
Definition CMaterial.h:823
bool getUseHapticTexture() const
This method returns the status of haptic texture rendering. (Applies to polygonal objects only).
Definition CMaterial.h:342
void setBrownSaddle()
This method sets the color to Saddle Brown.
Definition CMaterial.h:826
void setGreenDark()
This method sets the color to Dark Green.
Definition CMaterial.h:672
void setBrown()
This method sets the color to Brown.
Definition CMaterial.h:832
double m_viscosity
Level of viscosity.
Definition CMaterial.h:1006
void setPurpleMediumSlateBlue()
This method sets the color to Medium Slate Blue.
Definition CMaterial.h:625
void setGreenYellow()
This method sets the color to Green Yellow.
Definition CMaterial.h:633
void setBrownCornsilk()
This method sets the color to Cornsilk.
Definition CMaterial.h:787
void setRedFireBrick()
This method sets the color to Red Fire Brick.
Definition CMaterial.h:476
double getAudioFrictionPitchGain() const
This method returns the audio pitch gain for sounds associated with friction.
Definition CMaterial.h:420
double m_vibrationAmplitude
Amplitude of vibrations [Hz].
Definition CMaterial.h:1051
void setBluePaleTurquoise()
This method sets the color to Pale Turquoise.
Definition CMaterial.h:716
void setBrownMaroon()
This method sets the color to Maroon.
Definition CMaterial.h:835
void updateColors()
This method takes the current diffuse color and updates ambient and specular components.
Definition CMaterial.cpp:244
void setBlue()
This method sets the color to Blue.
Definition CMaterial.h:767
cAudioBuffer * m_audioFrictionBuffer
Sound buffer associated with friction.
Definition CMaterial.h:1137
void setPurpleFuchsia()
This method sets the color to Fuchsia.
Definition CMaterial.h:586
void setOrangeCoral()
This method sets the color to Orange Coral.
Definition CMaterial.h:513
double getAudioImpactGain() const
This method returns the gain value for sounds associated with impacts.
Definition CMaterial.h:397
void setGreenPale()
This method sets the color to Pale Green.
Definition CMaterial.h:648
void setGrayLevel(const GLfloat a_level)
Definition CMaterial.h:936
void setBrownSienna()
This method sets the color to Sienna.
Definition CMaterial.h:829
void setVibrationFrequency(const double a_vibrationFrequency)
This method set the vibration frequency [Hz].
Definition CMaterial.cpp:400
void setAudioImpactGain(const double a_audioImpactGain)
This method sets the audio gain for sounds associated with impacts.
Definition CMaterial.cpp:655
void setColor(cColorf &a_color)
This method defines a color property for this material.
Definition CMaterial.cpp:215
void setOrangeLightSalmon()
This method sets the color to Orange Light Salmon.
Definition CMaterial.h:510
double m_vibrationFrequency
Frequency of vibrations [Hz].
Definition CMaterial.h:1045
void setPurpleDarkViolet()
This method sets the color to Dark Violet.
Definition CMaterial.h:604
bool getHapticTriangleBackSide() const
This method returns the status about back side triangle haptic rendering. (Applies to polygonal objec...
Definition CMaterial.h:371
bool m_flag_stiffness
Flag to track if related member has been modified.
Definition CMaterial.h:987
bool m_flag_staticFriction
Flag to track if related member has been modified.
Definition CMaterial.h:1020
bool m_flag_dynamicFriction
Flag to track if related member has been modified.
Definition CMaterial.h:1026
void setYellowLemonChiffon()
This method sets the color to Lemon Chiffon.
Definition CMaterial.h:542
void setBrownBisque()
This method sets the color to Bisque.
Definition CMaterial.h:793
void setOrangeDark()
This method sets the color to Dark Orange.
Definition CMaterial.h:522
void setGreenMediumAquamarine()
This method sets the color to Medium Aquamarine.
Definition CMaterial.h:687
virtual void render(cRenderOptions &a_options)
This method render the material using OpenGL.
Definition CMaterial.cpp:723
void setBlueMedium()
This method sets the color to Medium Blue.
Definition CMaterial.h:770
void setWhiteLavenderBlush()
This method sets the color to Lavender Blush.
Definition CMaterial.h:888
void setBlueLight()
This method sets the color to Light Blue.
Definition CMaterial.h:743
void setBlueDeepSky()
This method sets the color to Deep Sky Blue.
Definition CMaterial.h:752
void setWhiteAliceBlue()
This method sets the color to Alice Blue.
Definition CMaterial.h:858
void setRedDark()
This method sets the color to Dark Red.
Definition CMaterial.h:479
void setMagnetMaxDistance(const double a_magnetMaxDistance)
This method sets the maximum distance threshold from which magnetic forces are perceived [m].
Definition CMaterial.cpp:455
void setBlueNavy()
This method sets the color to Navy.
Definition CMaterial.h:776
void setGreenLimeGreen()
This method sets the color to Lime Green.
Definition CMaterial.h:645
void setUseHapticFriction(const bool a_useHapticFriction)
This method enables or disables haptic friction. (Applies to polygonal objects only).
Definition CMaterial.cpp:507
static cMaterialPtr create()
Shared cMaterial allocator.
Definition CMaterial.h:116
void setWhiteIvory()
This method sets the color to Ivory.
Definition CMaterial.h:879
cAudioBuffer * getAudioImpactBuffer()
This method returns a pointer to the audio buffer associated with impacts.
Definition CMaterial.h:391
void setGreenOliveDrab()
This method sets the color to Olive Drab.
Definition CMaterial.h:678
cColorf m_ambient
Ambient color.
Definition CMaterial.h:191
void copyTo(cMaterialPtr a_material)
This method copies all modified members (the ones which are flagged) to another material object.
Definition CMaterial.cpp:788
virtual ~cMaterial()
Destructor of cMaterial.
Definition CMaterial.h:113
void setGreenYellowGreen()
This method sets the color to Yellow Green.
Definition CMaterial.h:675
bool isTransparent() const
This method returns true if the material includes partial or full transparency color components.
Definition CMaterial.h:154
bool m_flag_viscosity
Flag to track if related member has been modified.
Definition CMaterial.h:1009
void setPurpleOrchid()
This method sets the color to Orchid.
Definition CMaterial.h:583
void setGraySilver()
This method sets the color to Silver.
Definition CMaterial.h:905
void setGreenLawn()
This method sets the color to Lawn Green.
Definition CMaterial.h:639
void setYellowDarkKhaki()
This method sets the color to Dark Khaki.
Definition CMaterial.h:563
cAudioBuffer * getAudioFrictionBuffer()
This method returns a pointer to the audio buffer associated with friction.
Definition CMaterial.h:408
bool getHapticTriangleFrontSide() const
This method returns the status about front side triangle haptic rendering. (Applies to polygonal obje...
Definition CMaterial.h:365
void setBrownDarkGoldenrod()
This method sets the color to Dark Brown Goldenrod.
Definition CMaterial.h:817
void setYellowPeachPuff()
This method sets the color to Peach Puff.
Definition CMaterial.h:554
void setWhiteGhost()
This method sets the color to Ghost White.
Definition CMaterial.h:861
void setBlueMediumSlate()
This method sets the color to Medium Slate Blue.
Definition CMaterial.h:761
void setPurpleMagenta()
This method sets the color to Magenta.
Definition CMaterial.h:589
void setBlueSteel()
This method sets the color to Steel Blue.
Definition CMaterial.h:734
cColorf m_specularBackup
Specular color. (Backup)
Definition CMaterial.h:209
void setGreenLight()
This method sets the color to Light Green.
Definition CMaterial.h:651
void setBlueCornflower()
This method sets the color to Cornflower Blue.
Definition CMaterial.h:758
bool m_flag_useHapticShading
Flag to track if related member has been modified.
Definition CMaterial.h:1111
void setAudioFrictionGain(const double a_audioFrictionGain)
This method sets the audio gain for sounds associated with friction.
Definition CMaterial.cpp:672
double getStaticFriction() const
This method returns the static friction level [N].
Definition CMaterial.h:325
void setBlueAqua()
This method sets the color to Aqua.
Definition CMaterial.h:707
void setGreenMediumSea()
This method sets the color to Medium Sea Green.
Definition CMaterial.h:660
double m_magnetMaxDistance
Maximum distance from which magnetic forces can be perceived.
Definition CMaterial.h:1068
double getStickSlipForceMax() const
This method returns the maximum force threshold of a stick and slip model [N].
Definition CMaterial.h:285
double getTextureLevel() const
This method returns the haptic texture level.
Definition CMaterial.h:348
bool m_useHapticTexture
If true, haptic texture rendering is enabled.
Definition CMaterial.h:1102
double m_audioFrictionGain
General gain for sounds associated with friction.
Definition CMaterial.h:1149
void setPurpleBlueViolet()
This method sets the color to Blue Violet.
Definition CMaterial.h:601
bool m_hapticFrontSideOfTriangles
If true, then front side of triangles are rendered haptically (used by the proxy algorithm).
Definition CMaterial.h:1114
void setRedIndian()
This method sets the color to Red Indian.
Definition CMaterial.h:455
void setPinkMediumVioletRed()
This method sets the color to Medium Violet Red.
Definition CMaterial.h:499
double m_audioFrictionPitchOffset
General pitch offset for sounds associated with friction.
Definition CMaterial.h:1161
bool getUseHapticShading() const
This method retruns the status of haptic shading. (Applies to polygonal objects only).
Definition CMaterial.h:359
void setBlueDark()
This method sets the color to Dark Blue.
Definition CMaterial.h:773
bool m_flag_hapticFrontSideOfTriangles
Flag to track if related member has been modified.
Definition CMaterial.h:1117
void setPink()
This method sets the color to Pink.
Definition CMaterial.h:487
double m_textureLevel
Texture level constant.
Definition CMaterial.h:1034
void setGreenOlive()
This method sets the color to Olive.
Definition CMaterial.h:681
void setBrownPeru()
This method sets the color to Peru.
Definition CMaterial.h:820
void setRedCrimson()
This method sets the color to Red Crimson.
Definition CMaterial.h:470
bool m_flag_magnetMaxDistance
Flag to track if related member has been modified.
Definition CMaterial.h:1071
void setYellowPapayaWhip()
This method sets the color to Papaya Whip.
Definition CMaterial.h:548
void setMagnetMaxForce(const double a_magnetMaxForce)
This method sets the maximum force applied by the magnet effect [N].
Definition CMaterial.cpp:436
bool m_hapticBackSideOfTriangles
If true, then back side of triangles are rendered haptically (used by the proxy algorithm).
Definition CMaterial.h:1120
double m_audioImpactGain
General gain for sound associated with impacts.
Definition CMaterial.h:1143
double getMagnetMaxDistance() const
This method returns the maximum distance threshold from which magnetic forces are perceived [m].
Definition CMaterial.h:274
cColorf m_diffuseBackup
Diffuse color. (Backup)
Definition CMaterial.h:206
void setGreenDarkSea()
This method sets the color to Dark Sea Green.
Definition CMaterial.h:690
bool m_useHapticShading
If true, haptic shading is enabled.
Definition CMaterial.h:1108
void setYellowPaleGoldenrod()
This method sets the color to Pale Goldenrod.
Definition CMaterial.h:557
bool m_flag_damping
Flag to track if related member has been modified.
Definition CMaterial.h:998
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition CRenderOptions.h:83