Class TInlineNode
Unit
Declaration
type TInlineNode = class(TAbstractInternalGroupingNode)
Description
Embed another X3D scene into the current scene.
Hierarchy
- TObject
- TPersistent
- TX3DFileItem
- TX3DNode
- TAbstractNode
- TAbstractChildNode
- TAbstractInternalGroupingNode
- TInlineNode
Overview
Methods
procedure BeforeTraverse(StateStack: TX3DGraphTraverseStateStack); override; |
|
procedure AfterTraverse(StateStack: TX3DGraphTraverseStateStack); override; |
|
procedure AfterLoadInlined; virtual; |
|
procedure ParseAfter(Reader: TX3DReaderNames); override; |
|
function DeepCopyCore(CopyState: TX3DNodeDeepCopyState): TX3DNode; override; |
|
constructor Create(const AX3DName: String = ''; const ABaseUrl: String = ''); override; |
|
class function VRML1ChildrenSaveToStream: boolean; override; |
|
procedure LoadInlined(CanReload: boolean; const CurrentLengthConversionFactor: Float = 1.0; const Exported: TX3DNodeNames = nil); |
|
procedure UnLoadInlined; |
|
procedure LoadedInlineDirectly; |
|
procedure CreateNode; override; |
|
class function ClassX3DType: String; override; |
|
procedure SetUrl(const Value: array of string); overload; |
|
procedure SetUrl(const Value: TCastleStringList); overload; |
Properties
property Inlined: TX3DRootNode read FInlined; |
|
property FdLoad: TSFBool read FFdLoad; |
|
property Load: Boolean read GetLoad write SetLoad; |
|
property FdUrl: TMFString read FFdUrl; |
|
property FdBboxCenter: TSFVec3f read FFdBboxCenter; |
|
property BBox: TBox3D read GetBBox write SetBBox; |
|
property FdBboxSize: TSFVec3f read FFdBboxSize; |
Description
Methods
procedure BeforeTraverse(StateStack: TX3DGraphTraverseStateStack); override; |
|
This item has no description. Showing description inherited from TX3DNode.BeforeTraverse. Override these methods to determine what happens when given node is traversed during Traverse call. The main use of this is to operate on TX3DGraphTraverseStateStack. Remember to always call inherited when overriding. In Besides changing StateStack.Top fields, you can do push/pop on the stack. Remember that if you do StateStack.Push in |
procedure AfterTraverse(StateStack: TX3DGraphTraverseStateStack); override; |
|
This item has no description. |
procedure AfterLoadInlined; virtual; |
|
You can override this to do anything after the Inline children were loaded. It's called only after actual loading occurred, e.g. it's not called when LoadInlined was called on the already-loaded node with CanReload = |
procedure ParseAfter(Reader: TX3DReaderNames); override; |
|
This item has no description. Showing description inherited from TX3DNode.ParseAfter. Called at the end of parsing this node (including children) in any encoding. |
function DeepCopyCore(CopyState: TX3DNodeDeepCopyState): TX3DNode; override; |
|
This item has no description. Showing description inherited from TX3DNode.DeepCopyCore. Does actual DeepCopy work. You can override this to copy some more properties for descendants. |
constructor Create(const AX3DName: String = ''; const ABaseUrl: String = ''); override; |
|
This item has no description. Showing description inherited from TX3DNode.Create. Constructor. Initializes various properties:
|
class function VRML1ChildrenSaveToStream: boolean; override; |
|
This item has no description. Showing description inherited from TX3DNode.VRML1ChildrenSaveToStream.
Should SaveToStream save our VRML1Children. In this class default implementation returns |
procedure LoadInlined(CanReload: boolean; const CurrentLengthConversionFactor: Float = 1.0; const Exported: TX3DNodeNames = nil); |
|
Load inlined content now. If Inlined is already loaded: if CanReload = Note that this has a really simple support for "load" field (this concerns VRML 97 amendment 1 "InlineLoadControl.load" and X3D (actually used also in VRML 97 handling) "Inline.load" fields). It simply doesn't do any loading when "load" = Note that this doesn't perform setting the "load" field, or sending any notifications to Scene about "load" field. It's the caller's job to keep loaded state synchronized with "load" field value.
Parameters
|
procedure UnLoadInlined; |
|
This item has no description. |
procedure LoadedInlineDirectly; |
|
Call this to indicate that you loaded the inline contents directly, by using AddChild yourself. |
procedure CreateNode; override; |
|
Create node fields and events. |
class function ClassX3DType: String; override; |
|
This item has no description. Showing description inherited from TX3DNode.ClassX3DType. Node type name in VRML/X3D, for this class. Normal VRML/X3D node classes should override this to return something non-empty, and then X3DType automatically will return the same value. Empty for classes that don't have a hardcoded VRML/X3D node name, like a special TX3DUnknownNode. Such special classes should override then X3DType to return actual non-empty name there. You usually should call X3DType. The only use of this method is that it works on classes (it's "class function"), without needing at actual instance. |
procedure SetUrl(const Value: array of string); overload; |
|
This item has no description. |
procedure SetUrl(const Value: TCastleStringList); overload; |
|
This item has no description. |
Properties
property Inlined: TX3DRootNode read FInlined; |
|
The inlined content (loaded from inlined url). This is also kept in VRML 1.0 children list as VRML1Children[0], but for future it's better to not depend on that. But it will always be enumerated by things like TX3DNode.EnumerateNodes. |
property FdLoad: TSFBool read FFdLoad; |
|
Internal wrapper for property |
property Load: Boolean read GetLoad write SetLoad; |
|
This item has no description. |
property FdUrl: TMFString read FFdUrl; |
|
Internal wrapper for property |
property FdBboxCenter: TSFVec3f read FFdBboxCenter; |
|
Internal wrapper for property |
property BBox: TBox3D read GetBBox write SetBBox; |
|
This item has no description. |
property FdBboxSize: TSFVec3f read FFdBboxSize; |
|
Internal wrapper for property |
Generated by PasDoc 0.16.0-snapshot.