BlendedVolumeStyle

From Web3D.org
Revision as of 08:39, 24 April 2015 by Walroy (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

BlendedVolumeStyle

Specification Link: BlendedVolumeStyle

BlendedVolumeStyle : X3ComposableVolumeRenderStyleNode {
  SFBool   [in,out] enabled                 TRUE
  SFNode   [in,out] metadata                NULL       [X3DMetadataObject]
  SFNode   [in,out] renderStyle             NULL       [X3ComposableVolumeRenderStyleNode]
  SFNode   [in,out] voxels                  NULL       [X3DTexture3DNode]
  SFFloat  [in,out] weightConstant1         0.5        [0,1]
  SFFloat  [in,out] weightConstant2         0.5        [0,1]
  SFString [in,out] weightFunction1         "CONSTANT" ["CONSTANT", "ALPHA0", "ALPHA1", "TABLE", "ONE_MINUS_ALPHA0", "ONE_MINUS_ALPHA1"]
  SFString [in,out] weightFunction2         "CONSTANT" ["CONSTANT", "ALPHA0", "ALPHA1", "TABLE", "ONE_MINUS_ALPHA0", "ONE_MINUS_ALPHA1"]
  SFNode   [in,out] weightTransferFunction1 NULL       [X3DTexture2DNode]
  SFNode   [in,out] weightTransferFunction2 NULL       [X3DTexture2DNode]
}

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.
  3. Any number of children of any of the following types in any order:
    1. X3DComposableVolumeRenderStyleNodes, which are:
      1. BlendedVolumeStyle
      2. BoundaryEnhancementVolumeStyle
      3. CartoonVolumeStyle
      4. ComposedVolumeStyle
      5. EdgeEnhancementVolumeStyle
      6. OpacityMapVolumeStyle
      7. ProjectionVolumeStyle
      8. ShadedVolumeStyle
      9. SilhouetteEnhancementVolumeStyle
      10. ToneMappedVolumeStyle
    2. Texture2DNodes, which are:
      1. ImageTexture
      2. MovieTexture
      3. PixelTexture
    3. Texture3DTextureNodes, which are:
      1. ComposedTexture3D
      2. ImageTexture3D
      3. PixelTexture3D
    4. Appropriately typed Prototypes

Note: There is no limitation on the number of each type of node.

Attributes

  • There is no check that the value in the weightConstant1 field is acceptable.
  • There is no check that the value in the weightConstant2 field is acceptable.
  • The value in the weightFunction1 field is checked and must be one of the six options.
  • The value in the weightFunction2 field is checked and must be one of the six options.

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.
  3. Up to four children of any of the following types in any order:
    1. Texture2DContentModel, which consists of:
      1. ImageTexture
      2. MovieTexture
      3. PixelTexture
    2. VolumeRenderStyleContentModel, which consists of:
      1. BlendedVolumeStyle
      2. BoundaryEnhancementVolumeStyle
      3. CartoonVolumeStyle
      4. ComposedVolumeStyle
      5. EdgeEnhancementVolumeStyle
      6. OpacityMapVolumeStyle
      7. ProjectionVolumeStyle
      8. ShadedVolumeStyle
      9. SilhouetteEnhancementVolumeStyle
      10. ToneMappedVolumeStyle
    3. Texture3DContentModel, which consists of:
      1. ComposedTexture3D
      2. ImageTexture3D
      3. PixelTexture3D
    4. Appropriately typed Prototypes

Note: There is no specific limitation on the number of each type of node to match the specification interface definition.

Attributes

  • The value in the weightConstant1 field is checked to be within range.
  • The value in the weightConstant2 field is checked to be within range.
  • The value in the weightFunction1 field is checked and must be one of the six options.
  • The value in the weightFunction2 field is checked and must be one of the six options.

Schematron validation

TBD