ants.move.builder
Class Item

java.lang.Object
  |
  +--ants.move.builder.Item
All Implemented Interfaces:
java.io.Serializable

public class Item
extends java.lang.Object
implements java.io.Serializable

Class that stores all information of a thing or a model in the 3D environment

Author:
Oriol Montalà (omontala@tinet.org), Carles Pairot (cpairot@tinet.org)
See Also:
Serialized Form

Constructor Summary
Item()
          Constructor
Item(java.lang.String n, float[] t, float[] s, float[] r)
           
 
Method Summary
 void addProperty(java.lang.String key, java.lang.String value)
           
 java.lang.String getName()
           
 java.util.Hashtable getProperties()
           
 java.lang.String getProperty(java.lang.String key)
           
 float[] getRotation()
           
 float[] getScale()
           
 java.lang.String getToolId()
           
 float[] getTranslation()
           
 java.lang.String getType()
           
 void setName(java.lang.String n)
           
 void setRotation(float[] r)
           
 void setScale(float[] s)
           
 void setToolId(java.lang.String tId)
           
 void setTranslation(float[] t)
           
 void setType(java.lang.String t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Item

public Item()
Constructor
Parameters:
params - None
Throws:
exceptions - No exceptions thrown

Item

public Item(java.lang.String n,
            float[] t,
            float[] s,
            float[] r)
Method Detail

setType

public void setType(java.lang.String t)

getToolId

public java.lang.String getToolId()

setToolId

public void setToolId(java.lang.String tId)

getType

public java.lang.String getType()

setRotation

public void setRotation(float[] r)

getRotation

public float[] getRotation()

setScale

public void setScale(float[] s)

getScale

public float[] getScale()

setName

public void setName(java.lang.String n)

getName

public java.lang.String getName()

getTranslation

public float[] getTranslation()

setTranslation

public void setTranslation(float[] t)

addProperty

public void addProperty(java.lang.String key,
                        java.lang.String value)

getProperty

public java.lang.String getProperty(java.lang.String key)

getProperties

public java.util.Hashtable getProperties()


Developers: Oriol Montala, Carles Pairot, Francesc Pinas2000 - 2002
Departament d'Enginyeria Informatica i Matematiques
Escola Tecnica Superior d'Enginyeria
Universitat Rovira i Virgili