8#ifndef META_OCEAN_SCENEDESCRIPTION_SDX_X3D_MATERIAL_H
9#define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_MATERIAL_H
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
const Field & field(const std::string &fieldName) const
Returns the field base of a specified (standard) field.
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
X3DMaterialNode(const SDXEnvironment *environment)
Creats a new x3d material node.
This class implements a node environment container.
Definition SDXNode.h:62
This class implements a timestamp.
Definition Timestamp.h:64
SmartObjectRef< Scene > SceneRef
Definition of a smart object reference holding a scene node.
Definition rendering/Scene.h:29
Field0D< Scalar > SingleFloat
Definition of a single field with float value.
Definition Field0D.h:41
Field0D< RGBAColor > SingleColor
Definition of a single field with color value.
Definition Field0D.h:35
Namespace of the S(scene)D(escription)X X3D SceneDescription library.
Definition Appearance.h:26
Definition Appearance.h:23
Namespace of the SceneDescription library.
Definition DynamicNode.h:21
The namespace covering the entire Ocean framework.
Definition Accessor.h:15