8 #ifndef META_OCEAN_SCENEDESCRIPTION_SDX_X3D_MATERIAL_H
9 #define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_MATERIAL_H
17 namespace SceneDescription
This class is the base class for all scene description fields.
Definition: Field.h:36
This class implements a node specification object.
Definition: scenedescription/Node.h:77
This class implements a x3d material node.
Definition: scenedescription/sdx/x3d/Material.h:31
SingleColor emissiveColor_
EmissiveColor field.
Definition: scenedescription/sdx/x3d/Material.h:81
SingleFloat shininess_
Shininess field.
Definition: scenedescription/sdx/x3d/Material.h:84
SingleColor diffuseColor_
DiffuseColor field.
Definition: scenedescription/sdx/x3d/Material.h:78
SingleFloat transparency_
Transparency field.
Definition: scenedescription/sdx/x3d/Material.h:90
SingleFloat ambientIntensity_
AmbientIntensity field.
Definition: scenedescription/sdx/x3d/Material.h:75
Material(const SDXEnvironment *environment)
Creates a new x3d material node.
bool onFieldChanging(const std::string &fieldName, const Field &field) override
Explicit changing event function for node fields.
SingleFloat reflectivity_
Reflectivity field, which is not part of the X3D specification.
Definition: scenedescription/sdx/x3d/Material.h:93
void onInitialize(const Rendering::SceneRef &scene, const Timestamp timestamp) override
Event function to inform the node that it has been initialized and can apply all internal values to c...
SingleColor specularColor_
SpecularColor field.
Definition: scenedescription/sdx/x3d/Material.h:87
void onFieldChanged(const std::string &fieldName) override
Event function to inform the node about a changed field.
NodeSpecification specifyNode()
Specifies the node type and the fields of this node.
size_t objectAddress() const override
Returns the address of the most derived object.
SingleFloat refractionIndex_
Refraction index field, which is not part of the X3D specification.
Definition: scenedescription/sdx/x3d/Material.h:96
This class implements an abstract x3d material node.
Definition: X3DMaterialNode.h:31
This class implements a node environment container.
Definition: SDXNode.h:62
This class implements a timestamp.
Definition: Timestamp.h:36
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15