Package org.web3d.vrml.lang
Class SceneMetaData
java.lang.Object
org.web3d.vrml.lang.SceneMetaData
- Direct Known Subclasses:
WriteableSceneMetaData
MetaData related to the scene.
MetaData provides setup information that is useful when trying to blend multiple scenes together. For example, it will tell you about what version and encoding the source file was in.
- Version:
- $Revision: 1.3 $
- Author:
- Justin Couch
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
VRML 1.0 ASCII encodingstatic final int
MPEG-4 BIFS encodingstatic final int
Binary encodingprotected List
<ComponentInfo> List of components that were usedstatic final int
The index to use for the start of a custom encoding representation if an end user wants to build their own custom parser.Map of Meta tag information in name/value pairsprotected String
The profile name used, if any.static final int
The scene was built from userland code using scriptingstatic final int
VRML97 classic encoding (UTF8)static final int
XML encoding -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SceneMetaData
(String ver, boolean vrml, int enc) Create a new metadata instance for a scene that describes the given subset of information of the specification.Create a new, non-writable instance that copies the information from the given source -
Method Summary
Modifier and TypeMethodDescriptionGet the list of all the components declared in the scene.int
Get the encoding of the original file type.Get the meta data mapping from this scene.Get the name of the profile used by this scene.Get the specification version name that was used to describe this scene.boolean
Get the flag indicating what specification this is referring to.
-
Field Details
-
SCRIPTED_ENCODING
public static final int SCRIPTED_ENCODINGThe scene was built from userland code using scripting- See Also:
-
ASCII_ENCODING
public static final int ASCII_ENCODINGVRML 1.0 ASCII encoding- See Also:
-
VRML_ENCODING
public static final int VRML_ENCODINGVRML97 classic encoding (UTF8)- See Also:
-
XML_ENCODING
public static final int XML_ENCODINGXML encoding- See Also:
-
BINARY_ENCODING
public static final int BINARY_ENCODINGBinary encoding- See Also:
-
BIFS_ENCODING
public static final int BIFS_ENCODINGMPEG-4 BIFS encoding- See Also:
-
LAST_STD_ENCODING
public static final int LAST_STD_ENCODINGThe index to use for the start of a custom encoding representation if an end user wants to build their own custom parser.- See Also:
-
profile
The profile name used, if any. -
components
List of components that were used -
metaData
-
-
Constructor Details
-
SceneMetaData
Create a new metadata instance for a scene that describes the given subset of information of the specification.- Parameters:
ver
- The version string to be supportedvrml
- true if this is a VRMLX spec, false for X3Denc
- The encoding type used for the source file
-
SceneMetaData
Create a new, non-writable instance that copies the information from the given source- Parameters:
src
- The metadata to source the information from
-
-
Method Details
-
getVersion
Get the specification version name that was used to describe this scene. The version is a string that is relative to the specification used and is in the format "X.Y" where X and Y are integer values describing major and minor versions, respectively.- Returns:
- The version used for this scene
-
isVrmlSpec
public boolean isVrmlSpec()Get the flag indicating what specification this is referring to.- Returns:
- true if this is a VRML spec, false for X3D
-
getEncoding
public int getEncoding()Get the encoding of the original file type.- Returns:
- The encoding description
-
getProfileName
Get the name of the profile used by this scene. If the profile is not set, will return null.- Returns:
- The name of the profile, or null
-
getComponents
Get the list of all the components declared in the scene. If there were no components registered, this will return null.- Returns:
- The components declared or null
-
getMetaData
-