Class TNodeShape

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TNodeShape = class(TVRMLNode)

Description

no description available, TVRMLNode description follows

VRML node.

Descendant implementors note: Each descendant should override constructor to create and add his fields and events. Like Fields.Add(TSFFloat.Create('width', 2, true)). Also, you should define FdXxx properties that allow fast, comfortable and type-secure way to retrieve and set these fields.

Hierarchy

Overview

Methods

Protected procedure DirectEnumerateActive( Func: TEnumerateChildrenFunction); override;
Public constructor Create(const ANodeName: string; const AWWWBasePath: string); override;
Public class function ClassNodeTypeName: string; override;
Public function SuggestedVRMLVersion( out VerMajor, VerMinor, SuggestionPriority: Integer): boolean; override;
Public class function URNMatching(const URN: string): boolean; override;
Public procedure BeforeTraverse(var State: TVRMLGraphTraverseState); override;
Public procedure AfterTraverse(var State: TVRMLGraphTraverseState); override;
Public function Appearance: TNodeAppearance;
Public function Texture: TNodeGeneralTexture;
Public function NormalMap: TNodeGeneralTexture;
Public function HeightMap: TNodeGeneralTexture;
Public function HeightMapScale: Single;
Public function TextureTransform: TNodeTextureTransform;
Public function Material: TNodeMaterial_2;

Properties

Public property Fdappearance: TSFNode index 0 read GetFieldAsSFNode;
Public property Fdgeometry: TSFNode index 1 read GetFieldAsSFNode;

Description

Methods

Protected procedure DirectEnumerateActive( Func: TEnumerateChildrenFunction); override;
 
Public constructor Create(const ANodeName: string; const AWWWBasePath: string); override;
 
Public class function ClassNodeTypeName: string; override;
 
Public function SuggestedVRMLVersion( out VerMajor, VerMinor, SuggestionPriority: Integer): boolean; override;
 
Public class function URNMatching(const URN: string): boolean; override;
 
Public procedure BeforeTraverse(var State: TVRMLGraphTraverseState); override;
 
Public procedure AfterTraverse(var State: TVRMLGraphTraverseState); override;
 
Public function Appearance: TNodeAppearance;

This is a shortcut for FdAppearance.Value.FdTexture.Value. If anything makes this impossible (Apperance field is NULL, or wrong class) then returns Nil.

Public function Texture: TNodeGeneralTexture;

This is a shortcut for FdAppearance.Value.FdTexture.Value. If anything makes this impossible (Apperance field is NULL, or Appearance.Texture field is NULL, or wrong node class is passed as Appearance or Texture node), then returns nil.

Public function NormalMap: TNodeGeneralTexture;

This is like Texture, but it returns normalMap field of KambiAppearance.

Public function HeightMap: TNodeGeneralTexture;

This is like Texture, but it returns heightMap field of KambiAppearance.

Public function HeightMapScale: Single;
 
Public function TextureTransform: TNodeTextureTransform;

This is like Texture, but it returns TextureTransform of Apperance.

Public function Material: TNodeMaterial_2;

This is like Texture, but it returns Material of Apperance.

Properties

Public property Fdappearance: TSFNode index 0 read GetFieldAsSFNode;
 
Public property Fdgeometry: TSFNode index 1 read GetFieldAsSFNode;
 

Generated by PasDoc 0.10.0 on 2008-02-25 00:00:44