de.grogra.imp3d.edit
public abstract class TransformTool extends ToolRoot3D
Attributes.TRANSFORM).
The tool coordinate system (see ToolRoot3D
is adjusted such that tool nodes of size 1 have a size of about 150
pixels on a 3D view.Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NTypeEventListener.Bicast, EventListener.Multicaster| Modifier and Type | Field and Description |
|---|---|
protected Matrix4d |
local
The local transformation matrix of the
transformable object.
|
$TYPEADDITIONAL_FIELDS, bits, DELETED, EXTENT_BIT, EXTENT_MASK, extentIndex$FIELD, extentTail$FIELD, HAS_OBSERVERS, IS_INTERPRETIVE, isInterpretive$FIELD, LAST_EXTENT_INDEX, layer$FIELD, MARK, mark$FIELD, MIME_TYPE, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELD, USED_BITSDEFAULT_VALUE, EMPTY_MAP| Constructor and Description |
|---|
TransformTool() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustToolTransformation(Matrix4d t,
CameraBase c)
This method is invoked to compute an adjustment of the tool
coordinates system.
|
protected void |
computeTargetTransformation(Matrix4d t,
Matrix4d parent)
This implementation sets the target coordinate system such that is
is transformed to the parent coordinate system by the
transformation of the transformable tool target.
|
protected boolean |
initialize(Tool tool)
Initializes this tool root.
|
protected void |
setTargetTransform(Matrix4d t)
This utility method may be used by subclasses in order to set
the local transformation of the transformable tool target
to the given matrix
t. |
adjustScale, attributeChanged, dispose, eventOccured, getAdjustment, getParentTransformation, getTargetTransformation, getToolTransformation, postTransform, preTransformexecuteWithWriteLock, getToolTarget, isTargetNodeaddEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dupUnmanagedFields, edgeChanged, fieldModified, findAdjacent, findRefinementType, get, getAccessor, getAccessor, getAttributes, getAxisParent, getBoolean, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getDouble, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getFloat, getGraph, getId, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getNTypeImpl, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getShort, getSource, getStamp, getSuccessor, getSymbol, getSymbolColor, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isEncoarseOf, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, newInstance, paramString, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setLayer, setMark, setName, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplaceaddEdgeBits, getBitMark, getEdgeBits, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBitMark, getObjectMark, setBitMark, setObjectMarkprotected Matrix4d local
protected void adjustToolTransformation(Matrix4d t, CameraBase c)
ToolRoot3Dt to the
transformation matrix from target coordinates to world
coordinates. Implementations of this method may adjust
t, e.g., they may set a certain scaling factor
between tool coordinates and camera coordinates in order to
ensure a fixed size of tool nodes on the 3D view.adjustToolTransformation in class ToolRoot3Dt - the tool transformation to be adjustedc - the camera of the tool's 3D viewprotected void computeTargetTransformation(Matrix4d t, Matrix4d parent)
computeTargetTransformation in class ToolRoot3Dt - the computed matrix of the target coordinate systemparent - the provided matrix of the parent coordinate systemprotected boolean initialize(Tool tool)
ToolRootToolRoot.tool with the given tool.initialize in class ToolRoot3Dtool - the tool to which this tool root is associatedtrue if this tool root actually shall be used
for the tool, false if it shall not be used (e.g., if
the actual tool target cannot be manipulated by the tool graph
of this tool root).protected void setTargetTransform(Matrix4d t)
t.t - the new local transformation of the target object