Renderer
Class ModelTemplate
java.lang.Object
|
+--Renderer.ModelTemplate
- public class ModelTemplate
- extends java.lang.Object
Class maintains the description of a ModelTemplate returned by ModelLibrary. This is the generic template
from which all instances are derived per model. For example, ModelLibrary may contain a single airplane
ModelTemplate. Each time an instance is needed, this template is cloned and independently configured. Regardless of
how many derived instances are created, only one ModelTemplate ever exists.
- Version:
- Created 25 February 2003
- Author:
- Dan Tappan
- See Also:
ModelLibrary
|
Constructor Summary |
ModelTemplate(java.lang.String name)
Creates a blank ModelTemplate, which is configured by setting the protected fields directly. |
|
Method Summary |
ModelTemplate |
getClone()
Returns a clone that serves as a derived instance of this template. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
protected java.lang.String name
node
protected javax.media.j3d.Node node
attitude_base
protected Attitude attitude_base
dimensions_base
protected Dimensions dimensions_base
position_base
protected Position position_base
normalization
protected float normalization
color
protected javax.vecmath.Color3f color
is_obj_otherwise_3ds_format
protected boolean is_obj_otherwise_3ds_format
transparency
protected float transparency
ModelTemplate
public ModelTemplate(java.lang.String name)
- Creates a blank ModelTemplate, which is configured by setting the protected fields directly.
- Parameters:
name - - the model-template name
getClone
public ModelTemplate getClone()
- Returns a clone that serves as a derived instance of this template.
- Returns:
- the clone
toString
public java.lang.String toString()
- Returns a string representation of this object.
- Overrides:
toString in class java.lang.Object
- Returns:
- the String representation
- See Also:
- Support