java.lang.Object
- All Implemented Interfaces:
Described,KeyDescription,Comparable
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.graph.ObjectAttribute
ObjectAttribute.IdentityAccessor -
Field Summary
FieldsFields inherited from class de.grogra.graph.Attribute
ATTRIBUTE_0, attrType, quantityFields inherited from interface de.grogra.util.Described
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected Matrix34dPairderive(Object object, boolean asNode, Matrix34dPair parentValue, Matrix34dPair placeIn, GraphState gs) static Matrix34dget(Object object, boolean asNode, GraphState gs, boolean post) Returns the global coordinate system ofobject.protected Matrix34dPairstatic Matrix34dgetParentValue(Object object, boolean asNode, GraphState gs, boolean post) Returns the global coordinate system of the parent ofobject.Methods inherited from class de.grogra.graph.ObjectTreeAttribute
getDerived, getParentAttribute, getParentValue, isDerivedMethods inherited from class de.grogra.graph.ObjectAttribute
get, set, setDerived, setObject, setSubfield, toType, valueOfMethods inherited from class de.grogra.graph.Attribute
compareTo, find, forName, getAttributeState, getDescription, getId, getKey, getQuantity, getSimpleName, getType, hashCode, initializeI18N, initializeName, isContained, isWritable, setAttributeState, toArray, toString
-
Field Details
-
ATTRIBUTE
-
-
Method Details
-
derive
protected Matrix34dPair derive(Object object, boolean asNode, Matrix34dPair parentValue, Matrix34dPair placeIn, GraphState gs) - Specified by:
derivein classObjectTreeAttribute<Matrix34dPair>
-
dependsOn
- Specified by:
dependsOnin classObjectTreeAttribute<Matrix34dPair>
-
getInitialValue
- Specified by:
getInitialValuein classObjectTreeAttribute<Matrix34dPair>
-
get
Returns the global coordinate system ofobject. Ifpostistrue, the coordinate system behind the object is returned, which is the basis for the coordinate system of children, otherwise the method returns the coordinate system in which the shape of the object is defined.The returned matrix must not be modified.
- Parameters:
object- an object in the scene graphasNode- isobjecta node or an edge?gs- the current graph statepost- include the post-transformation (behind the object)?- Returns:
- global coordinate system, matrix must not be modified
-
getParentValue
Returns the global coordinate system of the parent ofobject. Ifpostistrue, the coordinate system behind the parent is returned, which is the basis for the coordinate system ofobject, otherwise the method returns the coordinate system in which the shape of the parent is defined.The returned matrix must not be modified.
- Parameters:
object- an object in the scene graphasNode- isobjecta node or an edge?gs- the current graph statepost- include the post-transformation (behind the parent)?- Returns:
- global coordinate system of parent, matrix must not be modified
-