Class TMaterialNode

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TMaterialNode = class(TAbstractMaterialNode)

Description

no description available, TAbstractMaterialNode description follows
no description available, TAbstractAppearanceChildNode description follows
no description available, TAbstractNode description follows

Base X3D node.

Almost all X3D nodes inherit from this. (Exception: X3DMetadataObject. So you cannot have metadata of metadata of...)

Hierarchy

Overview

Methods

Public procedure CreateNode; override;
Public class function ClassNodeTypeName: string; override;
Public class function URNMatching(const URN: string): boolean; override;
Public class function ForVRMLVersion(const Version: TX3DVersion): boolean; override;
Public function Opacity: Single;
Public function ShininessExp: Single;
Public function MaterialInfo: TX3DMaterialInfo;

Properties

Public property FdAmbientIntensity: TSFFloat read FFdAmbientIntensity;
Public property FdDiffuseColor: TSFColor read FFdDiffuseColor;
Public property FdEmissiveColor: TSFColor read FFdEmissiveColor;
Public property FdShininess: TSFFloat read FFdShininess;
Public property FdSpecularColor: TSFColor read FFdSpecularColor;
Public property FdTransparency: TSFFloat read FFdTransparency;
Public property FdFogImmune: TSFBool read FFdFogImmune;
Public property FdMirror: TSFFloat read FFdMirror;
Public property FdReflSpecular: TMFColor read FFdReflSpecular;
Public property FdReflDiffuse: TMFColor read FFdReflDiffuse;
Public property FdTransSpecular: TMFColor read FFdTransSpecular;
Public property FdTransDiffuse: TMFColor read FFdTransDiffuse;
Public property FdReflSpecularExp: TSFFloat read FFdReflSpecularExp;
Public property FdTransSpecularExp: TSFFloat read FFdTransSpecularExp;

Description

Methods

Public procedure CreateNode; override;
 
Public class function ClassNodeTypeName: string; override;
 
Public class function URNMatching(const URN: string): boolean; override;
 
Public class function ForVRMLVersion(const Version: TX3DVersion): boolean; override;
 
Public function Opacity: Single;

Opacity is just a 1 - FdTransparency.Value. Defined for your comfort — for OpenGL you will usually want to pass Opacity, not Transparency.

Public function ShininessExp: Single;

ShininessExp is just 128 * FdShininess.Value, this is the "real" exponent indicated by shininess field value. Defined for your comfort — for any graphic library you will usually want to pass the "real" exponent given by this function, not just value of shininess field.

Public function MaterialInfo: TX3DMaterialInfo;

Create material information based on this node. Returned TX3DMaterialInfo is valid only as long as this node instance.

Properties

Public property FdAmbientIntensity: TSFFloat read FFdAmbientIntensity;
 
Public property FdDiffuseColor: TSFColor read FFdDiffuseColor;
 
Public property FdEmissiveColor: TSFColor read FFdEmissiveColor;
 
Public property FdShininess: TSFFloat read FFdShininess;
 
Public property FdSpecularColor: TSFColor read FFdSpecularColor;
 
Public property FdTransparency: TSFFloat read FFdTransparency;
 
Public property FdFogImmune: TSFBool read FFdFogImmune;
 
Public property FdMirror: TSFFloat read FFdMirror;
 
Public property FdReflSpecular: TMFColor read FFdReflSpecular;
 
Public property FdReflDiffuse: TMFColor read FFdReflDiffuse;
 
Public property FdTransSpecular: TMFColor read FFdTransSpecular;
 
Public property FdTransDiffuse: TMFColor read FFdTransDiffuse;
 
Public property FdReflSpecularExp: TSFFloat read FFdReflSpecularExp;
 
Public property FdTransSpecularExp: TSFFloat read FFdTransSpecularExp;
 

Generated by PasDoc 0.12.1 on 2013-02-04 20:26:54