115 static cMaterialPtr
create() {
return (std::make_shared<cMaterial>()); }
131 void copyTo(cMaterialPtr a_material);
301 void setDamping(
const double a_dampingCoefficient);
439 const GLfloat a_green,
440 const GLfloat a_blue,
441 const GLfloat a_alpha = 1.0f);
void setPurpleFuchsia()
This method sets the color to Fuchsia.
Definition: CMaterial.h:582
void setWhiteAliceBlue()
This method sets the color to Alice Blue.
Definition: CMaterial.h:854
void setRedSalmon()
This method sets the color to Red Salmon.
Definition: CMaterial.h:457
void setGrayLightSlate()
This method sets the color to Light Slate Gray.
Definition: CMaterial.h:913
void setBrownBisque()
This method sets the color to Bisque.
Definition: CMaterial.h:789
void setPurplePlum()
This method sets the color to Plum.
Definition: CMaterial.h:573
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition: CRenderOptions.h:82
void setRedCrimson()
This method sets the color to Red Crimson.
Definition: CMaterial.h:466
bool m_flag_hapticFrontSideOfTriangles
Flag to track if related member has been modified.
Definition: CMaterial.h:1102
void setGreenYellowGreen()
This method sets the color to Yellow Green.
Definition: CMaterial.h:671
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 setMagnetMaxDistance(const double a_magnetMaxDistance)
This method sets the maximum distance threshold from which magnetic forces are perceived [m]...
Definition: CMaterial.cpp:455
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 setRedDark()
This method sets the color to Dark Red.
Definition: CMaterial.h:475
void setWhiteLinen()
This method sets the color to Linen.
Definition: CMaterial.h:881
void setGrayLight()
This method sets the color to Light Gray.
Definition: CMaterial.h:898
void setPurpleDarkViolet()
This method sets the color to Dark Violet.
Definition: CMaterial.h:600
void setStickSlipStiffness(double const a_stickSlipStiffness)
This method sets the stiffness of the stick and slip model [N/m].
Definition: CMaterial.cpp:490
void setPurpleMediumOrchid()
This method sets the color to Medium Orchid.
Definition: CMaterial.h:588
double getAudioFrictionGain() const
This method returns the audio gain for sounds associated with friction.
Definition: CMaterial.h:410
void setViscosity(const double a_viscosity)
This method sets the level of viscosity.
Definition: CMaterial.cpp:382
void setBlueNavy()
This method sets the color to Navy.
Definition: CMaterial.h:772
void updateColors()
This method takes the current diffuse color and updates ambient and specular components.
Definition: CMaterial.cpp:244
void setPurpleMediumSlateBlue()
This method sets the color to Medium Slate Blue.
Definition: CMaterial.h:621
void setPurpleMagenta()
This method sets the color to Magenta.
Definition: CMaterial.h:585
bool m_flag_audioFrictionPitchGain
Flag to track if related member has been modified.
Definition: CMaterial.h:1143
void setBrownWheat()
This method sets the color to Wheat.
Definition: CMaterial.h:795
void setBrownPeru()
This method sets the color to Peru.
Definition: CMaterial.h:816
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 setGreenChartreuse()
This method sets the color to Chartreuse.
Definition: CMaterial.h:632
bool m_flag_viscosity
Flag to track if related member has been modified.
Definition: CMaterial.h:994
bool m_flag_audioFrictionGain
Flag to track if related member has been modified.
Definition: CMaterial.h:1137
cAudioBuffer * m_audioFrictionBuffer
Sound buffer associated with friction.
Definition: CMaterial.h:1122
bool m_flag_magnetMaxForce
Flag to track if related member has been modified.
Definition: CMaterial.h:1050
void setBlueLightCyan()
This method sets the color to Light Cyan.
Definition: CMaterial.h:709
void setBlueMediumTurquoise()
This method sets the color to Medium Turquoise.
Definition: CMaterial.h:721
void setBlueMediumSlate()
This method sets the color to Medium Slate Blue.
Definition: CMaterial.h:757
void setUseHapticFriction(const bool a_useHapticFriction)
This method enables or disables haptic friction. (Applies to polygonal objects only).
Definition: CMaterial.cpp:507
void setAudioImpactGain(const double a_audioImpactGain)
This method sets the audio gain for sounds associated with impacts.
Definition: CMaterial.cpp:655
bool m_flag_audioImpactGain
Flag to track if related member has been modified.
Definition: CMaterial.h:1131
cColorf m_emissionBackup
Emission color. (Backup)
Definition: CMaterial.h:208
bool m_flag_audioFrictionBuffer
Flag to track if related member has been modified.
Definition: CMaterial.h:1125
bool isTransparent() const
This method returns true if the material includes partial or full transparency color components...
Definition: CMaterial.h:150
void setVibrationAmplitude(const double a_vibrationAmplitude)
This method sets the vibration force amplitude [N].
Definition: CMaterial.cpp:418
bool getUseHapticShading() const
This method retruns the status of haptic shading. (Applies to polygonal objects only).
Definition: CMaterial.h:355
bool m_flag_audioFrictionPitchOffset
Flag to track if related member has been modified.
Definition: CMaterial.h:1149
void setGreenTeal()
This method sets the color to Teal.
Definition: CMaterial.h:695
double getVibrationAmplitude() const
This method returns the vibration force amplitude [N].
Definition: CMaterial.h:253
Implements an audio Buffer.
bool m_useHapticShading
If true, haptic shading is enabled.
Definition: CMaterial.h:1093
double m_textureLevel
Texture level constant.
Definition: CMaterial.h:1019
void setOrangeRed()
This method sets the color to Orange Red.
Definition: CMaterial.h:515
void setWhiteAntique()
This method sets the color to Antique White.
Definition: CMaterial.h:878
void setYellowLemonChiffon()
This method sets the color to Lemon Chiffon.
Definition: CMaterial.h:538
double getDynamicFriction() const
This method returns the dynamic friction level.
Definition: CMaterial.h:327
void setBlueCadet()
This method sets the color to Cadet Blue.
Definition: CMaterial.h:727
bool m_flag_hapticBackSideOfTriangles
Flag to track if related member has been modified.
Definition: CMaterial.h:1108
void setWhiteSnow()
This method sets the color to White Snow.
Definition: CMaterial.h:842
void setBrownNavajoWhite()
This method sets the color to Navajo White.
Definition: CMaterial.h:792
double getDamping() const
This method returns the damping coefficient.
Definition: CMaterial.h:304
double m_vibrationFrequency
Frequency of vibrations [Hz].
Definition: CMaterial.h:1030
cAudioBuffer * m_audioImpactBuffer
Sound buffer associated with impacts.
Definition: CMaterial.h:1116
void setBrownChocolate()
This method sets the color to Chocolate.
Definition: CMaterial.h:819
void setRed()
This method sets the color to Red.
Definition: CMaterial.h:469
void setGrayGainsboro()
This method sets the color to Gainsboro.
Definition: CMaterial.h:895
void setGrayDarkSlate()
This method sets the color to Dark Slate Gray.
Definition: CMaterial.h:919
void setDamping(const double a_dampingCoefficient)
This method sets the damping coefficient.
Definition: CMaterial.cpp:280
void setPurple()
This method sets the color to Purple.
Definition: CMaterial.h:609
void setPurpleThistle()
This method sets the color to Thistle.
Definition: CMaterial.h:570
double getAudioImpactGain() const
This method returns the gain value for sounds associated with impacts.
Definition: CMaterial.h:393
cAudioBuffer * getAudioImpactBuffer()
This method returns a pointer to the audio buffer associated with impacts.
Definition: CMaterial.h:387
void setGraySlate()
This method sets the color to Slate Gray.
Definition: CMaterial.h:916
void setBlack()
This method sets the color to Black.
Definition: CMaterial.h:922
void setBrownBurlyWood()
This method sets the color to Burly Wood.
Definition: CMaterial.h:798
void setOrangeDark()
This method sets the color to Dark Orange.
Definition: CMaterial.h:518
void setAudioFrictionPitchGain(const double a_audioFrictionPitchGain)
This method sets the audio pitch gain for sounds associated with friction.
Definition: CMaterial.cpp:689
cMaterialPtr copy()
This method creates a copy itself.
Definition: CMaterial.cpp:103
void setGrayDark()
This method sets the color to Dark Gray.
Definition: CMaterial.h:904
cMaterial()
Constructor of cMaterial.
Definition: CMaterial.cpp:57
void setRedLightCoral()
This method sets the color to Light Coral Red.
Definition: CMaterial.h:454
void setYellowPeachPuff()
This method sets the color to Peach Puff.
Definition: CMaterial.h:550
void setPurpleOrchid()
This method sets the color to Orchid.
Definition: CMaterial.h:579
void setBrownSienna()
This method sets the color to Sienna.
Definition: CMaterial.h:825
void setOrangeTomato()
This method sets the color to Orange Tomato.
Definition: CMaterial.h:512
void setBlueSteel()
This method sets the color to Steel Blue.
Definition: CMaterial.h:730
void setGreenSea()
This method sets the color to Sea Green.
Definition: CMaterial.h:659
void setWhiteLavenderBlush()
This method sets the color to Lavender Blush.
Definition: CMaterial.h:884
cColorf m_diffuseBackup
Diffuse color. (Backup)
Definition: CMaterial.h:202
bool m_flag_stiffness
Flag to track if related member has been modified.
Definition: CMaterial.h:972
double m_dynamicFriction
Dynamic friction constant [N].
Definition: CMaterial.h:1008
void setYellowDarkKhaki()
This method sets the color to Dark Khaki.
Definition: CMaterial.h:559
double getStiffness() const
This method returns the stiffness level [N/m].
Definition: CMaterial.h:225
bool m_flag_vibrationFrequency
Flag to track if related member has been modified.
Definition: CMaterial.h:1033
double m_audioFrictionPitchGain
General pitch gain for sounds associated with friction.
Definition: CMaterial.h:1140
bool m_flag_magnetMaxDistance
Flag to track if related member has been modified.
Definition: CMaterial.h:1056
void setMagnetMaxForce(const double a_magnetMaxForce)
This method sets the maximum force applied by the magnet effect [N].
Definition: CMaterial.cpp:436
void setModificationFlags(const bool a_value)
This method set a value value to all modification flags.
Definition: CMaterial.cpp:746
void setWhite()
This method sets the color to White.
Definition: CMaterial.h:839
void setPurpleMedium()
This method sets the color to Medium Purple.
Definition: CMaterial.h:591
void setBlueAquamarine()
This method sets the color to Aquamarine.
Definition: CMaterial.h:715
void setBlueDeepSky()
This method sets the color to Deep Sky Blue.
Definition: CMaterial.h:748
std::shared_ptr< cMaterial > cMaterialPtr
Definition: CMaterial.h:67
void setYellowLight()
This method sets the color to Light Yellow.
Definition: CMaterial.h:535
double getStaticFriction() const
This method returns the static friction level [N].
Definition: CMaterial.h:321
double m_stickSlipStiffness
Stiffness of stick slip model.
Definition: CMaterial.h:1070
void setPinkMediumVioletRed()
This method sets the color to Medium Violet Red.
Definition: CMaterial.h:495
void setRedFireBrick()
This method sets the color to Red Fire Brick.
Definition: CMaterial.h:472
void setGreenLight()
This method sets the color to Light Green.
Definition: CMaterial.h:647
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 setBrownMaroon()
This method sets the color to Maroon.
Definition: CMaterial.h:831
void setBlueMidnight()
This method sets the color to Midnight Blue.
Definition: CMaterial.h:775
void setWhiteAzure()
This method sets the color to Azure.
Definition: CMaterial.h:851
void setBlueLight()
This method sets the color to Light Blue.
Definition: CMaterial.h:739
bool m_hapticFrontSideOfTriangles
If true, then front side of triangles are rendered haptically (used by the proxy algorithm).
Definition: CMaterial.h:1099
double m_audioFrictionGain
General gain for sounds associated with friction.
Definition: CMaterial.h:1134
void copyTo(cColorf &a_color)
This method copies this color to another if it has been marked.
Definition: CColor.h:223
void setBlueLightSky()
This method sets the color to Light Sky Blue.
Definition: CMaterial.h:745
void setGreenYellow()
This method sets the color to Green Yellow.
Definition: CMaterial.h:629
void copyTo(cMaterialPtr a_material)
This method copies all modified members (the ones which are flagged) to another material object...
Definition: CMaterial.cpp:788
This class implements an audio buffer.
Definition: CAudioBuffer.h:78
void setTextureLevel(const double a_textureLevel)
This method sets the haptic texture level.
Definition: CMaterial.cpp:354
bool m_flag_useHapticFriction
Flag to track if related member has been modified.
Definition: CMaterial.h:1084
double m_vibrationAmplitude
Amplitude of vibrations [Hz].
Definition: CMaterial.h:1036
void setGreenDarkOlive()
This method sets the color to Dark Olive Green.
Definition: CMaterial.h:680
void setBlueMedium()
This method sets the color to Medium Blue.
Definition: CMaterial.h:766
double getMagnetMaxForce() const
This method returns the maximum force applied by the magnet effect[N].
Definition: CMaterial.h:264
double m_magnetMaxDistance
Maximum distance from which magnetic forces can be perceived.
Definition: CMaterial.h:1053
void setWhiteSmoke()
This method sets the color to White Smoke.
Definition: CMaterial.h:860
void setColor(cColorf &a_color)
This method defines a color property for this material.
Definition: CMaterial.cpp:215
void setPinkLight()
This method sets the color to Light Pink.
Definition: CMaterial.h:486
bool m_useHapticTexture
If true, haptic texture rendering is enabled.
Definition: CMaterial.h:1087
void setPurpleDarkMagenta()
This method sets the color to Dark Magenta.
Definition: CMaterial.h:606
virtual ~cMaterial()
Destructor of cMaterial.
Definition: CMaterial.h:112
void setBrownCornsilk()
This method sets the color to Cornsilk.
Definition: CMaterial.h:783
void setBrownTan()
This method sets the color to Tan.
Definition: CMaterial.h:801
void setHapticTriangleFrontSide(const bool a_enabled)
This method enables or disables haptic rendering on the front side of mesh triangles.
Definition: CMaterial.cpp:562
void setTransparencyLevel(const float a_levelTransparency)
This method sets the transparency level (alpha value) to all color components.
Definition: CMaterial.cpp:157
void setGray()
This method sets the color to Gray.
Definition: CMaterial.h:907
void setVibrationFrequency(const double a_vibrationFrequency)
This method set the vibration frequency [Hz].
Definition: CMaterial.cpp:400
void setGreenMediumSea()
This method sets the color to Medium Sea Green.
Definition: CMaterial.h:656
cAudioBuffer * getAudioFrictionBuffer()
This method returns a pointer to the audio buffer associated with friction.
Definition: CMaterial.h:404
GLuint m_shininess
Material shininess level.
Definition: CMaterial.h:952
void setGraySilver()
This method sets the color to Silver.
Definition: CMaterial.h:901
void setYellowMoccasin()
This method sets the color to Moccasin.
Definition: CMaterial.h:547
void setBrown()
This method sets the color to Brown.
Definition: CMaterial.h:828
void setBrownSaddle()
This method sets the color to Saddle Brown.
Definition: CMaterial.h:822
void setGreenLimeGreen()
This method sets the color to Lime Green.
Definition: CMaterial.h:641
void setDynamicFriction(const double a_friction)
This method sets the dynamic friction level.
Definition: CMaterial.cpp:326
void restoreColors()
This method restores the color properties from values stored in the backup members.
Definition: CMaterial.h:168
void setWhiteBeige()
This method sets the color to Beige.
Definition: CMaterial.h:866
bool getHapticTriangleFrontSide() const
This method returns the status about front side triangle haptic rendering. (Applies to polygonal obje...
Definition: CMaterial.h:361
void setYellowPaleGoldenrod()
This method sets the color to Pale Goldenrod.
Definition: CMaterial.h:553
bool m_flag_shininess
Flag to track if related member has been modified.
Definition: CMaterial.h:955
void setOrangeLightSalmon()
This method sets the color to Orange Light Salmon.
Definition: CMaterial.h:506
void setBrownDarkGoldenrod()
This method sets the color to Dark Brown Goldenrod.
Definition: CMaterial.h:813
virtual void render(cRenderOptions &a_options)
This method render the material using OpenGL.
Definition: CMaterial.cpp:723
This class defines a color using a GLubyte representation for each component.
Definition: CColor.h:1184
bool m_flag_stickSlipForceMax
Flag to track if related member has been modified.
Definition: CMaterial.h:1067
void setWhiteIvory()
This method sets the color to Ivory.
Definition: CMaterial.h:875
cColorf m_diffuse
Diffuse color.
Definition: CMaterial.h:190
This class models material properties.
Definition: CMaterial.h:100
void setPurpleBlueViolet()
This method sets the color to Blue Violet.
Definition: CMaterial.h:597
Implements a structure to store rendering options.
bool m_hapticBackSideOfTriangles
If true, then back side of triangles are rendered haptically (used by the proxy algorithm).
Definition: CMaterial.h:1105
void setBlue()
This method sets the color to Blue.
Definition: CMaterial.h:763
void setGreen()
This method sets the color to Green.
Definition: CMaterial.h:665
void setPinkDeep()
This method sets the color to Deep Pink.
Definition: CMaterial.h:492
void setOrangeCoral()
This method sets the color to Orange Coral.
Definition: CMaterial.h:509
bool m_useHapticFriction
If true, haptic friction rendering is enabled.
Definition: CMaterial.h:1081
void setWhiteGhost()
This method sets the color to Ghost White.
Definition: CMaterial.h:857
void setYellow()
This method sets the color to Yellow.
Definition: CMaterial.h:532
void setGreenMediumSpring()
This method sets the color to Medium Spring Green.
Definition: CMaterial.h:650
void setPurpleIndigo()
This method sets the color to Indigo.
Definition: CMaterial.h:612
double m_damping
Definition: CMaterial.h:980
void setYellowGold()
This method sets the color to Gold.
Definition: CMaterial.h:529
void setGreenLime()
This method sets the color to Lime.
Definition: CMaterial.h:638
void setGrayDim()
This method sets the color to Dim Gray.
Definition: CMaterial.h:910
cColorf m_ambient
Ambient color.
Definition: CMaterial.h:187
void setBlueDark()
This method sets the color to Dark Blue.
Definition: CMaterial.h:769
void setAudioFrictionGain(const double a_audioFrictionGain)
This method sets the audio gain for sounds associated with friction.
Definition: CMaterial.cpp:672
void setGreenPale()
This method sets the color to Pale Green.
Definition: CMaterial.h:644
double m_magnetMaxForce
Maximum force applied by magnetic effect [N].
Definition: CMaterial.h:1047
cColorf m_ambientBackup
Ambient color. (Backup)
Definition: CMaterial.h:199
void setBlueLightSteel()
This method sets the color to Light Steel Blue.
Definition: CMaterial.h:733
void setRedIndian()
This method sets the color to Red Indian.
Definition: CMaterial.h:451
double m_stiffness
Stiffness [N/m].
Definition: CMaterial.h:969
bool getUseHapticFriction() const
This method returns the status of haptic friction. (Applies to polygonal objects only).
Definition: CMaterial.h:315
void setGreenDarkSea()
This method sets the color to Dark Sea Green.
Definition: CMaterial.h:686
void setPinkHot()
This method sets the color to Hot Pink.
Definition: CMaterial.h:489
void setPurpleDarkSlateBlue()
This method sets the color to Dark Slate Blue.
Definition: CMaterial.h:618
void setAudioFrictionPitchOffset(const double a_audioFrictionPitchOffset)
This method sets the audio pitch offset for sounds associated with friction.
Definition: CMaterial.cpp:706
double m_audioImpactGain
General gain for sound associated with impacts.
Definition: CMaterial.h:1128
void setGreenForest()
This method sets the color to Forest Green.
Definition: CMaterial.h:662
void setGreenDarkCyan()
This method sets the color to Dark Cyan.
Definition: CMaterial.h:692
void setBluePowder()
This method sets the color to Powder Blue.
Definition: CMaterial.h:736
This class defines a color using a GLfloat representation for each component.
Definition: CColor.h:138
Implements color properties.
cColorf m_emission
Emission color.
Definition: CMaterial.h:196
bool getUseHapticTexture() const
This method returns the status of haptic texture rendering. (Applies to polygonal objects only)...
Definition: CMaterial.h:338
double m_stickSlipForceMax
Force threshold for stick and slip effect [N].
Definition: CMaterial.h:1064
void setWhiteHoneydew()
This method sets the color to Honeydew.
Definition: CMaterial.h:845
void setRedDarkSalmon()
This method sets the color to Dark Red Salmon.
Definition: CMaterial.h:460
void setPinkPaleVioletRed()
This method sets the color to Pale Violet Red.
Definition: CMaterial.h:498
void setWhiteMintCream()
This method sets the color to Mint Cream.
Definition: CMaterial.h:848
void setGreenLawn()
This method sets the color to Lawn Green.
Definition: CMaterial.h:635
void setRedLightSalmon()
This method sets the color to Light Red Salmon.
Definition: CMaterial.h:463
double getAudioFrictionPitchOffset() const
This method returns the audio pitch offset for sounds associated with friction.
Definition: CMaterial.h:422
void setYellowLightGoldenrod()
This method sets the color to Light Goldenrod.
Definition: CMaterial.h:541
void setBluePaleTurquoise()
This method sets the color to Pale Turquoise.
Definition: CMaterial.h:712
bool m_flag_stickSlipStiffness
Flag to track if related member has been modified.
Definition: CMaterial.h:1073
void setBlueSky()
This method sets the color to Sky Blue.
Definition: CMaterial.h:742
void setGreenSpring()
This method sets the color to Spring Green.
Definition: CMaterial.h:653
bool getHapticTriangleBackSide() const
This method returns the status about back side triangle haptic rendering. (Applies to polygonal objec...
Definition: CMaterial.h:367
bool m_flag_useHapticShading
Flag to track if related member has been modified.
Definition: CMaterial.h:1096
void setOrange()
This method sets the color to Orange.
Definition: CMaterial.h:521
double getMagnetMaxDistance() const
This method returns the maximum distance threshold from which magnetic forces are perceived [m]...
Definition: CMaterial.h:270
bool m_flag_audioImpactBuffer
Flag to track if related member has been modified.
Definition: CMaterial.h:1119
void setBlueDarkTurquoise()
This method sets the color to Dark Turquoise.
Definition: CMaterial.h:724
void setYellowKhaki()
This method sets the color to Khaki.
Definition: CMaterial.h:556
Definition: CAudioBuffer.cpp:56
bool m_flag_damping
Flag to track if related member has been modified.
Definition: CMaterial.h:983
void setBlueAqua()
This method sets the color to Aqua.
Definition: CMaterial.h:703
double getAudioFrictionPitchGain() const
This method returns the audio pitch gain for sounds associated with friction.
Definition: CMaterial.h:416
void setWhiteOldLace()
This method sets the color to Old Lace.
Definition: CMaterial.h:869
void setGreenOlive()
This method sets the color to Olive.
Definition: CMaterial.h:677
double getStickSlipForceMax() const
This method returns the maximum force threshold of a stick and slip model [N].
Definition: CMaterial.h:281
void setUseHapticShading(const bool a_useHapticShading)
This method enables or disables haptic shading. (Applies to polygonal objects only).
Definition: CMaterial.cpp:541
bool m_flag_textureLevel
Flag to track if related member has been modified.
Definition: CMaterial.h:1022
double getVibrationFrequency() const
This method returns the vibration frequency [Hz].
Definition: CMaterial.h:247
double getViscosity() const
This method returns the level of viscosity.
Definition: CMaterial.h:236
GLuint getShininess() const
This method returns the shininess level.
Definition: CMaterial.h:144
bool m_flag_useHapticTexture
Flag to track if related member has been modified.
Definition: CMaterial.h:1090
void setWhiteMistyRose()
This method sets the color to Misty Rose.
Definition: CMaterial.h:887
void setPurpleViolet()
This method sets the color to Violet.
Definition: CMaterial.h:576
void setGrayLevel(const GLfloat a_level)
Definition: CMaterial.h:932
static cMaterialPtr create()
Shared cMaterial allocator.
Definition: CMaterial.h:115
double getStickSlipStiffness() const
This method sets the stiffness of the stick and slip model [N/m].
Definition: CMaterial.h:287
void setBlueDodger()
This method sets the color to Doger Blue.
Definition: CMaterial.h:751
void setPink()
This method sets the color to Pink.
Definition: CMaterial.h:483
void backupColors()
This method creates a backup of its color properties. Any previous backup is lost.
Definition: CMaterial.h:159
bool m_flag_vibrationAmplitude
Flag to track if related member has been modified.
Definition: CMaterial.h:1039
void setShininess(const GLuint a_shininess)
This method sets the shininess (the exponent used for specular lighting).
Definition: CMaterial.cpp:178
void setGreenLightSea()
This method sets the color to Light Sea Green.
Definition: CMaterial.h:689
void setGreenDark()
This method sets the color to Dark Green.
Definition: CMaterial.h:668
void setBrownGoldenrod()
This method sets the color to Brown Goldenrod.
Definition: CMaterial.h:810
void setBrownRosy()
This method sets the color to Rosy Brown.
Definition: CMaterial.h:804
void setUseHapticTexture(const bool a_useHapticTexture)
This method enables or disables haptic texture rendering. (Applies to polygonal objects only)...
Definition: CMaterial.cpp:524
void setStaticFriction(const double a_friction)
This method sets the static friction level [N].
Definition: CMaterial.cpp:298
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
void setPurpleLavender()
This method sets the color to Lavendar.
Definition: CMaterial.h:567
double getTextureLevel() const
This method returns the haptic texture level.
Definition: CMaterial.h:344
double m_viscosity
Level of viscosity.
Definition: CMaterial.h:991
void setPurpleSlateBlue()
This method sets the color to Slate Blue.
Definition: CMaterial.h:615
void setPurpleAmethyst()
This method sets the color to Amethyst.
Definition: CMaterial.h:594
void setBrownSandy()
This method sets the color to Sandy Brown.
Definition: CMaterial.h:807
void setStiffness(const double a_stiffness)
This method set the stiffness level [N/m].
Definition: CMaterial.cpp:263
bool m_flag_staticFriction
Flag to track if related member has been modified.
Definition: CMaterial.h:1005
void setYellowPapayaWhip()
This method sets the color to Papaya Whip.
Definition: CMaterial.h:544
void setBlueRoyal()
This method sets the color to Royal Blue.
Definition: CMaterial.h:760
void setAudioFrictionBuffer(cAudioBuffer *a_audioFrictionBuffer)
This method sets an audio buffer associated with friction.
Definition: CMaterial.cpp:638
bool m_flag_dynamicFriction
Flag to track if related member has been modified.
Definition: CMaterial.h:1011
void setWhiteSeashell()
This method sets the color to Seashell.
Definition: CMaterial.h:863
void setBlueTurquoise()
This method sets the color to Turquoise.
Definition: CMaterial.h:718
void setPurpleDarkOrchid()
This method sets the color to Dark Orchid.
Definition: CMaterial.h:603
void setGreenMediumAquamarine()
This method sets the color to Medium Aquamarine.
Definition: CMaterial.h:683
void setBlueCornflower()
This method sets the color to Cornflower Blue.
Definition: CMaterial.h:754
cColorf m_specular
Specular color.
Definition: CMaterial.h:193
double m_audioFrictionPitchOffset
General pitch offset for sounds associated with friction.
Definition: CMaterial.h:1146
void setBrownBlanchedAlmond()
This method sets the color to Blanched Almond.
Definition: CMaterial.h:786
void setWhiteFloral()
This method sets the color to Floral White.
Definition: CMaterial.h:872
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 setGreenOliveDrab()
This method sets the color to Olive Drab.
Definition: CMaterial.h:674
void setHapticTriangleBackSide(const bool a_enabled)
This method enables or disables haptic rendering of back side of mesh triangles.
Definition: CMaterial.cpp:583
double m_staticFriction
Static friction constant [N].
Definition: CMaterial.h:1002
cColorf m_specularBackup
Specular color. (Backup)
Definition: CMaterial.h:205
void setBlueCyan()
This method sets the color to Cyan.
Definition: CMaterial.h:706