Difference between revisions of "ColorDamper"

From Web3D.org
Jump to: navigation, search
(Created page with "* Node Reference ==ColorDamper== Specification Link: [http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/followers.html#ColorDamper ColorDamper]...")
 
 
Line 53: Line 53:
 
* The Schema attempts to check that the values of the ''initialDestination'' field are within the range [0,1]. It does this successfully for values in decimal format but can fail for values in exponent format.
 
* The Schema attempts to check that the values of the ''initialDestination'' field are within the range [0,1]. It does this successfully for values in decimal format but can fail for values in exponent format.
 
* The Schema attempts to check that the values of the ''initialValue'' field are within the range [0,1]. It does this successfully for values in decimal format but can fail for values in exponent format.
 
* The Schema attempts to check that the values of the ''initialValue'' field are within the range [0,1]. It does this successfully for values in decimal format but can fail for values in exponent format.
* The ''order'' field is only permitted to take the values between 0 and 5 inclusive.
+
* The ''order'' field is only permitted to take a value between 0 and 5 inclusive.
  
 
==Schematron validation==
 
==Schematron validation==

Latest revision as of 05:53, 29 July 2015

ColorDamper

Specification Link: ColorDamper

ColorDamper : X3DDamperNode { 
  SFColor [in]     set_destination
  SFColor [in]     set_value
  SFNode  [in,out] metadata           NULL        [X3DMetadataObject]
  SFTime  [in,out] tau                0.3         [0, ∞)
  SFFloat [in,out] tolerance          -1          -1 of [0, ∞)
  SFBool  [out]    isActive
  SFColor [out]    value_changed
  SFColor []       initialDestination 0.8 0.8 0.8 [0,1]
  SFColor []       initialValue       0.8 0.8 0.8 [0,1]
  SFInt32 []       order              3           [0,5]
}

DTD Validation

Children

Children must appear as follows:

  1. A single, optional IS.
  2. A single, optional node derived from X3DMetadataObject for the metadata field.

Attributes

  • There is no check that the value of the tau field is acceptable.
  • There is no check that the value of the tolerance field is acceptable.
  • There is no check that the values of the initialDestination field are acceptable.
  • There is no check that the values of the initialValue field are acceptable.
  • The order field is only permitted to take the value 0, 1, 2, 3, 4 or 5.

Note: The default value for the order field in the DTD is 0, whereas in the specification it is 3. This has been reported.

Schema Validation

Children

Children must appear as follows:

  1. A single, optional IS.
  2. A single, optional node derived from X3DMetadataObject for the metadata field.

Attributes

  • The Schema does check that the value of the tau field is greater than or equal to zero.
  • There is no check that the value of the tolerance field is acceptable.
  • The Schema attempts to check that the values of the initialDestination field are within the range [0,1]. It does this successfully for values in decimal format but can fail for values in exponent format.
  • The Schema attempts to check that the values of the initialValue field are within the range [0,1]. It does this successfully for values in decimal format but can fail for values in exponent format.
  • The order field is only permitted to take a value between 0 and 5 inclusive.

Schematron validation

TBD