instantreality 1.0

Component:
Layer
Status:
interface only
Structure type:
abstract
Standard:
X3D3.2

Layer (alias: Layer3D)

The Layer is an abstract base class for all Layer2D and Layer3D nodes. The node represents a 2D area where all children are rendered. Its coordinate system is the same as used in the VRML scene.

Inheritance

Code

XML encoding
<Layer size='-1 -1'
translation='0 0'
render='TRUE'
showBBox='FALSE'
bboxSize='-1 -1 -1'
bboxCenter='0 0 0'
logFeature=''
 />
Classic encoding
Layer {
	size -1 -1
	translation 0 0
	render TRUE
	showBBox FALSE
	bboxSize -1 -1 -1
	bboxCenter 0 0 0
	logFeature [""]
}

Interface

Filter: X3D only | Avalon only | All
id Name DataType PartType Default ValueType Description
SFVec2f size SFVec2f inputOutput -1 -1 Specifies width and height of layer rectangle in local coordinate system.
SFVec2f translation SFVec2f inputOutput 0 0 Specifies position of layer rectangle in local coordinate system.
SFNode viewpoint SFNode inputOutput NULL ViewBindable Specifies the viewpoint of the current layer.
SFNode navigationInfo SFNode inputOutput NULL UserBindable Specifies the NavigationInfo of the current layer.
SFNode background SFNode inputOutput NULL BackgroundBindable Specifies the background of the current layer.
SFNode fog SFNode inputOutput NULL FogBindable Specifies the fog bindable of the current layer.
SFBool render SFBool inputOutput TRUE Flag to control the visibility of the node or subtree
SFBool showBBox SFBool inputOutput FALSE Show Bounding Box of Subtree.
SFVec3f bboxSize SFVec3f initializeOnly -1 -1 -1 Bounding box size: automatically calculated, can be specified as an optimization or constraint.
SFVec3f bboxCenter SFVec3f initializeOnly 0 0 0 Bounding box center: position offset from origin of local coordinate system.
MFString logFeature MFString inputOutput state, child, parent, route, eventIn, eventOut controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything
MFNode removeChildren MFNode inputOnly The removeChildren event removes nodes from the children fieldof the grouping node . Any nodes in the removeChildren event that are not in the children list of the grouping node are ignored
SFNode metadata SFNode initializeOnly MetadataObject container for payload metadata inside MetadataSet element
MFNode addChildren MFNode inputOnly The addChildren event appends nodes to the children field of a grouping node. Any nodes passed to the addChildren inputOnly field that are already in the children list of the grouping node are ignored
MFNode children MFNode inputOutput Node field that contains a list of children nodes