|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.cult3d.world.World
This class provides a representation of a Cult3D world.
Use the methods getWorld and loadWorld to get an instance of this class
Method Summary | |
java.lang.String |
getActionName(java.lang.String name)
Returns the new name for an action. |
java.lang.String |
getEventName(java.lang.String name)
Returns the new name for an event. |
java.lang.String |
getExpressionName(java.lang.String name)
Returns the new name for a expression. |
java.lang.String |
getInfo()
Returns a string representation of the values of this object. |
java.lang.String |
getMaterialName(java.lang.String name)
Returns the new name for a material. |
java.lang.String |
getSceneGraphName(java.lang.String name)
Returns the new name for a scene graph. |
java.lang.String |
getSoundName(java.lang.String name)
Returns the new name for a sound. |
java.lang.String |
getTextureName(java.lang.String name)
Returns the new name for a texture. |
java.lang.String |
getToolTipName(java.lang.String name)
Returns the new name for a Tooltip. |
static World |
getWorld(java.lang.String name)
Constructs a Java representation of a Cult3D world. |
java.lang.String |
getWorldName(java.lang.String name)
Returns the new name for a world. |
boolean |
isVisible()
Checks if the world is hidden or not. |
static World |
loadWorld(java.lang.String url,
java.lang.String name,
java.lang.String event)
Loads a world from a given url and constructs a Java representation of the Cult3D world. |
static World |
loadWorld(java.lang.String url,
java.lang.String name,
java.lang.String event,
Matrix4x4 transform)
Loads a world from a given url and constructs a Java representation of the Cult3D world. |
static World |
loadWorld(java.lang.String url,
java.lang.String name,
java.lang.String event,
Node node)
Loads a world from a given url and constructs a Java representation of the Cult3D world. |
static World |
loadWorld(java.lang.String url,
java.lang.String name,
java.lang.String event,
Node node,
Matrix4x4 transform)
Loads a world from a given url and constructs a Java representation of the Cult3D world. |
void |
setVisible(boolean visible)
Shows or hides the world. |
java.lang.String |
toString()
This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations and versions of Cult3D. |
void |
unloadWorld()
Unloads the world. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public static World getWorld(java.lang.String name)
name
- the name of the world.public static World loadWorld(java.lang.String url, java.lang.String name, java.lang.String event, Node node, Matrix4x4 transform)
url
- URL addressname
- gives the world a name witch can be retrived by
getWorld(name), must be unique or it can be null if not needed.event
- event name to trigger when the world has been loaded,
can be set to null if no event is needed.node
- attach to a node, set to null to attach to the root node.transform
- world transformation, can be set to null if no transformation is needed.public static World loadWorld(java.lang.String url, java.lang.String name, java.lang.String event, Node node)
url
- URL addressname
- gives the world a name witch can be retrived by
getWorld(name), must be unique or it can be null if not needed.event
- event name to trigger when the world has been loaded,
can be set to null if no event is needed.node
- attach to a node, set to null to attach to the root node.public static World loadWorld(java.lang.String url, java.lang.String name, java.lang.String event, Matrix4x4 transform)
url
- URL addressname
- gives the world a name witch can be retrived by
getWorld(name), must be unique or it can be null if not needed.event
- event name to trigger when the world has been loaded,
can be set to null if no event is needed.transform
- world transformation, can be set to null if
no transformation is needed.public static World loadWorld(java.lang.String url, java.lang.String name, java.lang.String event)
url
- URL addressname
- gives the world a name witch can be retrived by
getWorld(name), must be unique or it can be null if not needed.event
- event name to trigger when the world has been loaded,
can be set to null if no event is needed.public void unloadWorld()
public void setVisible(boolean visible)
visible
- set to true if the world should be visible,
set to false if the world should be hidden.public boolean isVisible()
public java.lang.String getTextureName(java.lang.String name)
name
- The old name for this texture.public java.lang.String getMaterialName(java.lang.String name)
name
- The old name for this material.public java.lang.String getSceneGraphName(java.lang.String name)
name
- The old name for this scene graph.public java.lang.String getSoundName(java.lang.String name)
name
- The old name for this sound.public java.lang.String getExpressionName(java.lang.String name)
name
- The old name for this expression.public java.lang.String getToolTipName(java.lang.String name)
name
- The old name for this tooltip.public java.lang.String getEventName(java.lang.String name)
name
- The old name for this event.public java.lang.String getActionName(java.lang.String name)
name
- The old name for this action.public java.lang.String getWorldName(java.lang.String name)
name
- The old name for this worldpublic java.lang.String getInfo()
Returns a string representation of the values of this object.
The string contains the name of this class and if the world is visible.
This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations and versions of Cult3D.
public java.lang.String toString()
This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations and versions of Cult3D.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |