templates1.txt

来自「gaca源码」· 文本 代码 · 共 1,293 行 · 第 1/4 页

TXT
1,293
字号
#-- Version 1 --#
# templates for the BIFS nodes
# =============================
# Notations I = Infinity
# %q=x	Quantization method x
#	0	None
#	1	3D Position			(SFVec3F)
#	2	2D Position			(SFVec2F)
#	3	drawing Order
#	4	Color 				(SFColor)
#	5	Texture Coordinate
#	6	Angle 				(SFFloat 0-2PI)
#	7	Scale 				(SFVec2F or SFVec3F)
#	8	Interpolators keys
#	9	Normals
#	10	Rotations			(SFRotation)
#	11	Object Size 3D 		(SFVec3F and SFFloat)
#	12	Object Size  2D
#	13	Linear Quantization (+ Nb Bits)
#	14	Index (of IndexedFaceSet,...)
#	15	Reserved
#
# %a=y	Animation method for fields that can be animated
#
## OO 081498 To match BIFS's update numbering
#	0	None
#	1	Position 3D
#	2	Position 2D
#	4	Color
#	6	Angle
#	7	Float
#	8	BoundFloat			(intensities, transparencies,...)
#	9	Normal
#	10	Rotation
#	11	Size 3D
#	12	Size 2D
#	13	Integer
#	14	Reserved
##	0	3D Position
##	1	2D positon
##	2	Color					(SFColor)
##	3	Angle					(SFFloat 0-2pi)
##	4	Normals
##	5	Scale					(SFVec2F)
##	6	Rotation				(SFRotation)
##	7	Object Size or Scalar	(SFFloat)
#
# %b=[min,max] bounds of value
#  For each scalar or vectorial value, bounds may be specified.
#  This will be used to check if user-specified values are out of bounds. In
# this case, bounds specified in the templates will be used (if not infinity).
#
# %NDT=Node Data Type
#  For each node, one or several Node Data Types are assigned, specifying which node sub
# types the node belongs to. Moreover, each field of type SF/MF3DNode is re assigned
# a unique correct NodeDataType according to specify the allowed values of the field
#
# %COD	Type of encoding
#	N	Normal Syntax : The node syntax follos the generic syntax for nodes
#	S	Special Syntax : The node has a specific syntax
#
#
# NCT => VRML type equivalence
#
#  SF/MFxxxNode         => SF/MFNode
#  SF/MFURL             => SF/MFString
#  SF/MFCommandBuffer   => SF/MFString
#  SF/MFScript          => SF/MFString
#
#
# Modification History
# ------------------------------------------------
# Jan 16, 2003 (MBS) AudioBuffer.length changed to exposedField
# Dec 10, 1997 (Yuval Fisher) SFTimerNode changed to SFTimeSensorNode
# Dec 10, 1997 (Yuval Fisher) SFFitNode changed to SFFITNode
# Dec 10, 1997 (Yuval Fisher) children in Form changed to exposedField
# Dec 11, 1997 (Yuval Fisher) exposedfield changed to exposedField in Form
#
# Dec 19, 1997 (Yuval Fisher - Following Alexandros' Parser errors)
# - FALSE removed from isActive field on AudioClip node
# - %b=(-I,+I) removed from set_fraction on ColorInterpolator
# - justify field value in FontStyle enclosed in []
# - %b=(-I,+I) removed from set_fraction on ScalarInterpolator
# - removed -1 from duration_changed and FALSE from isActive in VideoObject2D
# - changed renderedFace to exposedField in Face node
# - changed renderedFace to exposedField in Body node -- just temporary anyway
# - animation type on height field of elevation grid changed from 11 to 7
# - vector field of Normal node, transposed quantization=9 and animation=4
# - changed eventIn to exposedField in background, fog, navigationInfo,viewpoint
#      of Layer3D
# - Same as above for Composite3DTexture
#
# Dec 22, 1997 (Yuval Fisher) added Conditional back.
# March 16:
# Reordered alphabetically
# Sound field spatialize changed to exposedfield
# Sound added addChildren and deleteChildren to all nodes with children
# Changed children2D field to be children in CompositeMap
# Eliminate ucs_2 field from StreamingText
# Do the childrenLayer fields need add and remove eventIns ?
# sound field changed to source in Sound2D
#
# March 24
# Many changes based on changes adopted in Tokyo
# added bounding boxes to Layer2D and Layer3D
#
# March 25
# Added Animation to various nodes - Checked template with Julien.
#
# March 30
# 0 -> FALSE and MFURL:null->[]  corrections.
#
# April 13
# Added TermCap per Joern
#
# May 12
# add and remove ChildrenLayer in Layer3d was missing 'Layer'
# term cap had int instead of int32
#
# May 19
# DiscSensor center had a wrong quantization type
# May 26
# drawOrderMin and Max were SFVec3f in Quantization Parameter
# June 8
# Layer2D,3D Has an SFInt32 depth, converted to SFFloat
# Text should hav an MFString
# June 16
# added to PlaneSensor:
#eventOut     SFVec3f  translation_changed
#
#
# to do:
# check if SFstring or SFBuffer ins AudioFX
# check children field for AudioSource
# fix FIT node bounds
# ask Eric if Face really has a URL -- try to eliminate it because it's an
# animation stream/can bounds be put on the faceDefMesh parameters why are
# these fields
#
# Oct 28
# JS: Updated all template to correct DOC
# JCD updated Form, Layout and Valuator
# JS: To check FBA latest nodes
# November 2, 1998 (Mikael Bourges-Sevenier) AudioBuffer has MFAudioNode children not MFNode
# November 2, 1998 (Mikael Bourges-Sevenier) Face node is a SF3DNode also.
# November 2, 1998 (Mikael Bourges-Sevenier) modif I bound -> +I bound
# November 2, 1998 (Mikael Bourges-Sevenier) modif xFInt -> xFInt32 where missing
# November 2, 1998 (Mikael Bourges-Sevenier) removed childrenLayer in Layer2D
# Nov 2: JS: Integrated latest comments from Gabriel and Liam
# Nov 3: Still more bug corrections! The last ones? Added also type correspondance for
#  semantic tables.
# JS: Changesd all fap values to be 0 by default
# Feb 9 99: Changed Layer2D/3D to be SF3DNode, suppresed cone anim stuff 
#
# Mar 1 1999
# group -> groups in Form plus other minor fixes
# Mar 8, 1999
# Add speed to AudioSource
# June 15, 1999 YF
# Changed renderedFace to default [] from NULL & removed blank line
#
# Dec 20, 1999 YF
# FABs get default value of +I
#
# Aug 10, 2000 YF per Steve Woods:
# VisibilitySensor %b= missing from center and size fields
#
# July 10, 2001 YF per DCOR1 
# modify maxAngle, minAngle and diskAngle in CylinderSensor
# minAngle in DiscSensor changed to 0
#
# Jan 2, 2002 YF per decision at meeting
# revert to capilized letter of factor, offset, sum in Valuator
#
# Aug 13, 2002 -- added activate field to Anchor per COR2 item
# modified field to exposedField in FontStyle per COR2
#

PROTO Anchor [ #%NDT=SFWorldNode,SF3DNode,SF2DNode  %COD=N
eventIn      MF3DNode   addChildren
eventIn      MF3DNode   removeChildren
exposedField MF3DNode   children        []
exposedField SFString description     ""
exposedField MFString parameter       []
exposedField MFURL    url             []
eventIn      SFBool   activate 
]{
}


PROTO AnimationStream [ #%NDT=SFWorldNode,SF3DNode,SF2DNode,SFStreamingNode  %COD=N
exposedField SFBool		loop             FALSE
exposedField SFFloat	speed            1.0     #%b=(-I,+I) #%q=0 #%a=7
exposedField SFTime		startTime        0       #%b=(-I,+I)
exposedField SFTime		stopTime         0       #%b=(-I,+I)
exposedField MFURL		url		        []
eventOut     SFTime	    duration_changed
eventOut     SFBool		isActive
] {
}


PROTO Appearance [ #%NDT=SFWorldNode,SFAppearanceNode  %COD=N
exposedField SFMaterialNode		material          NULL
exposedField SFTextureNode		texture           NULL
exposedField SFTextureTransformNode	textureTransform  NULL
] {
}

PROTO AudioBuffer [ #%NDT=SFWorldNode,SFAudioNode  %COD=N
exposedField	SFBool	loop	            FALSE
exposedField	SFFloat	pitch	            1       #%b=[0,+I) #%q=0 #%a=7
exposedField	SFTime	startTime	        0       #%b=[0,+I) #%q=0
exposedField	SFTime	stopTime	        0       #%b=[0,+I) #%q=0
exposedField	MFAudioNode	children	        []
exposedField	SFInt32	numChan	            1       #%b=[0,255] #%q=13 8
exposedField	MFInt32	phaseGroup	        [1]
exposedField	        SFFloat	length	            0.0     #%b=[0,+I) #%q=0
eventOut	    SFTime	duration_changed
eventOut	    SFBool	isActive
] {
}

PROTO AudioClip [ #%NDT=SFWorldNode,SFAudioNode,SFStreamingNode  %COD=N
exposedField   	SFString	description      ""
exposedField   	SFBool   	loop             FALSE
exposedField   	SFFloat  	pitch            1.0   #%b=[0,+I)	#%q=0 #%a=7
exposedField   	SFTime   	startTime        0     #%b=(-I,+I)
exposedField   	SFTime   	stopTime         0     #%b=(-I,+I)
exposedField	MFURL		url		     []
eventOut       	SFTime   	duration_changed
eventOut       	SFBool   	isActive
] {
}

PROTO AudioDelay [ #%NDT=SFWorldNode,SFAudioNode %COD=N
eventIn      MFAudioNode	addChildren
eventIn      MFAudioNode	removeChildren
exposedField	MFAudioNode	children	[]
exposedField	SFTime		delay		0	#%b=[0,+I)
field		SFInt32		numChan		1	#%b=[0,255]  #%q=13 8
field		MFInt32		phaseGroup	[]	#%b=[0,255]  #%q=13 8
] {
}

PROTO AudioFX [ #%NDT=SFWorldNode,SFAudioNode %COD=N
eventIn      MFAudioNode	addChildren
eventIn      MFAudioNode	removeChildren
exposedField	MFAudioNode	children	[]
exposedField	SFString	orch		""
exposedField	SFString	score		""
exposedField	MFFloat		params		[]	#%b=(-I,+I) #%q=0 #%a=7
field		SFInt32	numChan		1	#%b=[0,255]	#%q=13 8
field		MFInt32	phaseGroup	[]	#%b=[0,255]	#%q=13 8
] {
}

PROTO AudioMix [ #%NDT=SFWorldNode,SFAudioNode %COD=N
eventIn      MFAudioNode	addChildren
eventIn      MFAudioNode	removeChildren
exposedField	MFAudioNode	children	[]
exposedField	SFInt32		numInputs	1	#%b=[1,255]	#%q=13 8
exposedField	MFFloat		matrix		[]	#%b=[0,1]  	#%q=0 #%a=7
field		SFInt32		numChan		1	#%b=[0,255]    	#%q=13 8
field		MFInt32		phaseGroup	[]	#%b=[0,255]	#%q=13 8
] {
}

PROTO AudioSource [ #%NDT=SFWorldNode,SFAudioNode,SFStreamingNode %COD=N
eventIn      MFAudioNode	addChildren
eventIn      MFAudioNode	removeChildren
exposedField	MFAudioNode	children	[]
exposedField	MFURL 	url		[]
exposedField	SFFloat	pitch		1	#%b=[0,+I)	#%q=0 #%a=7
exposedField    SFFloat speed       1   #%b=[0,+I)  #%q=0 #%a=7
exposedField	SFTime	startTime	0
exposedField	SFTime	stopTime	0
field		SFInt32	numChan		1	#%b=[0,255]	#%q=13 8
field		MFInt32	phaseGroup	[]	#%b=[0,255]	#%q=13 8
] {
}

PROTO AudioSwitch [ #%NDT=SFWorldNode,SFAudioNode %COD=N
eventIn      MFAudioNode	addChildren
eventIn      MFAudioNode	removeChildren
exposedField	MFAudioNode	children	[]
exposedField	MFInt32		whichChoice	[]  #%b=[0,1] #%q=13 1
field		SFInt32		numChan		1	#%b=[0,255] 	#%q=13 8
field		MFInt32		phaseGroup	[]	#%b=[0,255]	    #%q=13 8
] {
}

PROTO Background [ #%NDT=SFWorldNode,SF3DNode,SFBackground3DNode  %COD=N
eventIn      SFBool   set_bind
exposedField MFFloat  groundAngle []            #%b=[0,1.5707963]	#%q=6 #%a=8
exposedField MFColor  groundColor []            #%b=[0,1]	        #%q=4 #%a=4
exposedField MFURL    backUrl     []
exposedField MFURL    bottomUrl     []
exposedField MFURL    frontUrl    []
exposedField MFURL    leftUrl     []
exposedField MFURL    rightUrl    []
exposedField MFURL    topUrl      []
exposedField MFFloat  skyAngle    []            #%b=[0,3.14159265] #%q=6 #%a=8
exposedField MFColor  skyColor    [ 0 0 0 ]     #%b=[0,1]	#%q=4 #%a=4
eventOut     SFBool   isBound
] {
}

PROTO Background2D [ #%NDT=SFWorldNode,SF2DNode,SF3DNode,SFBackground2DNode  %COD=N
eventIn		    SFBool	set_bind
exposedField	SFColor	backColor      0 0 0 #%b=[0,1]	#%q=4 #%a=4
exposedField	MFURL	url	[]
eventOut	    SFBool	isBound
] {
}

PROTO Billboard [ #%NDT=SFWorldNode,SF3DNode  %COD=N
eventIn      MF3DNode   addChildren
eventIn      MF3DNode   removeChildren
exposedField MF3DNode   children        []
exposedField SFVec3f  axisOfRotation  0 1 0     #%q=9 #%a=9
] {
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?