#include <SIG_Material.h>
Public Methods | |
SIG_Material (SIG_Robot *par, QString n) | |
Kind of a standard constructor. More... | |
SIG_Material (SIG_Robot *par, QTextStream & tx) | |
Reads the material attributes from a stream. More... | |
~SIG_Material (void) | |
Destructor. More... | |
QString | getName (void) const |
Returns the name of the material. More... | |
void | setDensity (DL_Scalar dens) |
Sets the density of the material. More... | |
DL_Scalar | getDensity () const |
Returns the density of the material. More... | |
void | setElasticity (DL_Scalar elas) |
Sets the elasticity value that the corresponding dyna objects should have. More... | |
DL_Scalar | getElasticity () const |
Returns the elasticity of the material. More... | |
void | setColour (DL_vector col) |
Sets the colour of the material. More... | |
DL_vector | getColour () const |
Returns the colour of the material. More... | |
void | setFrictionValue (SIG_Material *otherObj, DL_Scalar fricval, bool negotiate = true) |
setFrictionValue sets or adds a friction constant to the material. More... | |
DL_Scalar | getFrictionValue (SIG_Material *otherObj) const |
Returns the friction constant between this material and the material otherObj. More... | |
void | writeToFileTransfer (QTextStream & tx) const |
Writes the material object into a stream. More... | |
Private Attributes | |
SIG_Robot* | parent |
QString | name |
DL_Scalar | elasticity |
DL_Scalar | density |
QList<FrictionValue> | friction |
DL_vector | colour |
Objects instantiated from this class contain information about the density, the elasticity, and the colour of the material.
Definition at line 21 of file SIG_Material.h.
|
Kind of a standard constructor. Sets all material values to a default value. Definition at line 5 of file SIG_Material.cpp. |
|
Reads the material attributes from a stream.
Definition at line 15 of file SIG_Material.cpp. |
|
Destructor.
Definition at line 41 of file SIG_Material.cpp. |
|
Returns the colour of the material.
Definition at line 76 of file SIG_Material.cpp. |
|
Returns the density of the material. This value denotes the kilograms per cubic meter. Definition at line 56 of file SIG_Material.cpp. |
|
Returns the elasticity of the material. Please refer to the Dynamo manuals for the interpretation of this value. Definition at line 66 of file SIG_Material.cpp. |
|
Returns the friction constant between this material and the material otherObj. otherObj->getFrictionValue (this) returns the same value. Definition at line 105 of file SIG_Material.cpp. |
|
Returns the name of the material.
Definition at line 46 of file SIG_Material.cpp. |
|
Sets the colour of the material.
Definition at line 71 of file SIG_Material.cpp. |
|
Sets the density of the material. According to the SI system, this has to be in kilograms per cubic meter. Definition at line 51 of file SIG_Material.cpp. |
|
Sets the elasticity value that the corresponding dyna objects should have. Please refer to the Dynamo manuals for the interpretation of this value. Definition at line 61 of file SIG_Material.cpp. |
|
setFrictionValue sets or adds a friction constant to the material.
Definition at line 81 of file SIG_Material.cpp. |
|
Writes the material object into a stream.
Definition at line 116 of file SIG_Material.cpp. |
|
Definition at line 32 of file SIG_Material.h. |
|
Definition at line 30 of file SIG_Material.h. |
|
Definition at line 30 of file SIG_Material.h. |
|
Definition at line 31 of file SIG_Material.h. |
|
Definition at line 29 of file SIG_Material.h. |
|
Definition at line 28 of file SIG_Material.h. |