|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
org.vrspace.server.VRObject
org.vrspace.server.DBObject
org.vrspace.server.PublicDBObject
org.vrspace.server.OwnedDBObject
org.vrspace.server.Transform
Transform is basic object used to build the scene. This is a point in space
containing other objects, and transformations applied to them. Concept taken
from VRML97
NOTE: all fields are public, to enable the database storage. What
are security implications?
Scene
Field Summary | |
boolean |
active
Transform is active by default. |
double |
angle
|
double[] |
bBoxCenter
bounding box center. |
double[] |
bBoxSize
object's max size, starting from the bBoxCenter |
ID[] |
members
list of objects on this point in space |
java.lang.String |
name
name |
boolean |
permanent
hint to scene manager: permanent Transform members are always displayed. |
double |
rotx
|
double |
roty
|
double |
rotz
|
double[] |
scale
|
double |
x
|
double |
y
|
double |
z
|
Fields inherited from class org.vrspace.server.DBObject |
db |
Fields inherited from class org.vrspace.server.VRObject |
db_id, primitiveMap, primitives |
Constructor Summary | |
Transform()
|
|
Transform(double x,
double y,
double z)
New transoform at x,y,z coordinates |
Method Summary | |
void |
addMember(VRObject obj)
Adds obj to this Transform. |
VRObjectComparator |
comparator()
Returns a comparator |
boolean |
contains(VRObject obj)
True if obj is member of this Transform |
VRObject[] |
getChildren()
returns all members of this transform |
double |
getDistance(double x,
double y,
double z)
calculates distance to the specified point |
double |
getDistance(Transform t)
calculates distance to the specified transform |
void |
removeMember(VRObject obj)
Removes obj from this Transform. |
void |
set_bBoxCenter(double x,
double y,
double z)
sets bounding box center |
void |
set_bBoxSize(double x,
double y,
double z)
sets bounding box size |
void |
set_rotation(Request req,
java.lang.String args)
|
void |
set_scale(Request req,
java.lang.String args)
|
void |
set_translation(Request req,
java.lang.String args)
|
Methods inherited from class org.vrspace.server.OwnedDBObject |
addOwner, isOwned, notifyOwners, ownershipRequired, processEvent, removeOwner, sendEvent |
Methods inherited from class org.vrspace.server.PublicDBObject |
setValue |
Methods inherited from class org.vrspace.server.DBObject |
delete, get, put, put |
Methods inherited from class org.vrspace.server.VRObject |
arrayToString, canRead, canWrite, clone, equals, fieldToText, fromString, fromText, getClassName, getField, getFields, getId, getID, getMemebers, hasField, hasMethod, isNew, newInstance, sendResponse, setField, setField, setField, setFields, setFields, stringToArray, toString, toText, toText, toText |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.String name
public boolean permanent
public boolean active
public double x
public double y
public double z
public ID[] members
public double rotx
public double roty
public double rotz
public double angle
public double[] scale
public double[] bBoxCenter
public double[] bBoxSize
Constructor Detail |
public Transform()
public Transform(double x, double y, double z)
Method Detail |
public void set_translation(Request req, java.lang.String args) throws java.lang.Exception
java.lang.Exception
public void set_rotation(Request req, java.lang.String args) throws java.lang.Exception
java.lang.Exception
public void set_scale(Request req, java.lang.String args) throws java.lang.Exception
java.lang.Exception
public VRObjectComparator comparator()
TransformComparator
public void addMember(VRObject obj)
public void removeMember(VRObject obj)
public boolean contains(VRObject obj)
public void set_bBoxCenter(double x, double y, double z)
public void set_bBoxSize(double x, double y, double z)
public VRObject[] getChildren()
public double getDistance(double x, double y, double z)
public double getDistance(Transform t)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |