|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fhg.igd.earth.model.graph.ProjectorObject
de.fhg.igd.earth.model.graph.ModelGraphObject
de.fhg.igd.earth.model.graph.Node
de.fhg.igd.earth.model.graph.Group
de.fhg.igd.earth.model.graph.TransformGroup
This class represents a trasformationGroup.
A transformationGroup includes a transformation matrix witch transforms
all children. So it's possible to move (translate), rotate and scale them.
You can move relatively (truetranslate()) or absolutely
(setPosition()).
Title : Earth
Copyright : Copyright (c) 2001
Organisation : IGD FhG
| Field Summary | |
private cMatrix4d |
transformation_
the transformation matrix 4x4 |
| Fields inherited from class de.fhg.igd.earth.model.graph.Group |
maxNumChildren_ |
| Fields inherited from class de.fhg.igd.earth.model.graph.Node |
boundless_, collidable_, icon_, parent_, pickable_ |
| Fields inherited from class de.fhg.igd.earth.model.graph.ProjectorObject |
projectorObject_ |
| Constructor Summary | |
TransformGroup()
Creates an instance of this class. |
|
| Method Summary | |
protected boolean |
allowChildAddEvent(Node n)
This method is called BEFORE the given node is added to this group. |
void |
calcBoundingBox(cBoundingBox boundingBox)
Calculates the bounding box of this node. |
Object |
clone()
Clone this TransformGroup |
int |
getSubType()
Returns SUBTYPE_TransformGroup. |
cMatrix4d |
getTransformation()
Returns a transformation matrix clone. |
int |
getType()
Returns TYPE_Group. |
boolean |
scale(double s)
Scales the matrix with the given value (mul) (blocked by mutable). |
boolean |
setPosition(double x,
double y,
double z)
Translates the matrix with the given values (absolutely) (blocked by mutable). |
boolean |
setTransformation(cMatrix4d tfm)
Sets the transformation matrix (blocked by mutable). |
boolean |
translate(double x,
double y,
double z)
Translates the matrix with the given values (relatively) (blocked by mutable). |
| Methods inherited from class de.fhg.igd.earth.model.graph.Group |
addChild, childAddedEvent, childRemovedEvent, createLeafList, createSubGroupList, createSubNodeList, detach, detachedEvent, getAllChildren, getChild, getErasedChildren, numChildren, removeAllChildren, removeChild, removeChild, resetChanges, searchDown, searchDown, searchDown, searchDown, searchDownInserter, searchDownInserter, setChildAt, setColor, setHighLight, setMutable, setVisible |
| Methods inherited from class de.fhg.igd.earth.model.graph.Node |
broadcastCreation, broadcastResetChanges, createParentGroupList, delete, delete, getBoundingBox, getBoundless, getBranchGroup, getCollidable, getGroup, getIcon, getLeafList, getModelGraph, getParent, getParentGroupList, getPickable, getSubGroupList, getSubNodeList, isFocused, move, move, moveTo, publishChanges, resetProjectorObject, searchUp, searchUp, searchUp, searchUp, setBoundless, setCollidable, setIcon, setParent, setPickable |
| Methods inherited from class de.fhg.igd.earth.model.graph.ModelGraphObject |
anyChanges, anySubChanges, getChanges, getChanges, getInfoTable, getInfoTableElements, getInfoTableKeys, getInfoTableSize, getInfoTableValues, getMutable, getName, getSubChanges, getSubChanges, getSubTypeName, getTimeStamp, getTrace, getTraceable, putInfo, setChanges, setInfoTable, setName, setSubChanges, setTrace, VectorClone |
| Methods inherited from class de.fhg.igd.earth.model.graph.ProjectorObject |
getProjectorObject, setProjectorObject |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private cMatrix4d transformation_
| Constructor Detail |
public TransformGroup()
| Method Detail |
public int getType()
getType in class Grouppublic int getSubType()
getSubType in class Grouppublic boolean setTransformation(cMatrix4d tfm)
tfm - transformation matrix
true on successpublic cMatrix4d getTransformation()
public boolean translate(double x,
double y,
double z)
true on successpublic boolean scale(double s)
s - Scale
true on success
public boolean setPosition(double x,
double y,
double z)
true on successpublic void calcBoundingBox(cBoundingBox boundingBox)
calcBoundingBox in class GroupboundingBox - which will be combined withprotected boolean allowChildAddEvent(Node n)
allowChildAddEvent in class Groupn - Node to check
true if it's allowed to add this node (always true)public Object clone()
clone in class Group
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||