|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.grogra.graph.impl.Edge
de.grogra.graph.impl.Node
de.grogra.imp.edit.ToolRoot
de.grogra.imp3d.edit.ToolRoot3D
de.grogra.imp3d.edit.TransformTool
de.grogra.imp3d.edit.Scale
public class Scale
Scaling tool. There are three cubes for each axis. Clicking and dragging them allows to resize the object in that direction. There is a fourth cube in the center of the tool. Clicking and dragging the mouse allows to resize the object in all directions by the same amount. There is a minimum scale factor of 1% of the original size for resizing an object with one drag operation. Shrinking an object even further requires to finish the drag and start a new one. This prevents objects from disappearing unvoluntarily.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.grogra.graph.impl.Node |
---|
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType |
Nested classes/interfaces inherited from interface de.grogra.util.EventListener |
---|
EventListener.Bicast, EventListener.Multicaster |
Nested classes/interfaces inherited from interface de.grogra.util.Map |
---|
Map.Chain |
Field Summary | |
---|---|
static Node.NType |
$TYPE
|
Fields inherited from class de.grogra.imp3d.edit.TransformTool |
---|
local |
Fields inherited from class de.grogra.imp.edit.ToolRoot |
---|
tool |
Fields inherited from class de.grogra.graph.impl.Node |
---|
ADDITIONAL_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_BITS |
Fields inherited from interface de.grogra.util.Map |
---|
DEFAULT_VALUE, EMPTY_MAP |
Constructor Summary | |
---|---|
Scale()
|
Method Summary | |
---|---|
protected void |
adjustToolTransformation(Matrix4d t,
CameraBase c)
This method is invoked to compute an adjustment of the tool coordinates system. |
protected Node.NType |
getNTypeImpl()
This method returns the Node.NType which describes the managed
fields of the class of this node. |
protected Node |
newInstance()
This method returns a new instance of the class of this node. |
Methods inherited from class de.grogra.imp3d.edit.TransformTool |
---|
computeTargetTransformation, initialize, setTargetTransform |
Methods inherited from class de.grogra.imp3d.edit.ToolRoot3D |
---|
adjustScale, attributeChanged, dispose, eventOccured, getAdjustment, getParentTransformation, getTargetTransformation, getToolTransformation, postTransform, preTransform |
Methods inherited from class de.grogra.imp.edit.ToolRoot |
---|
executeWithWriteLock, getToolTarget, isTargetNode |
Methods inherited from class de.grogra.graph.impl.Edge |
---|
addEdgeBits, getBitMark, getEdgeBits, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBits |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.grogra.persistence.PersistenceCapable |
---|
getBitMark, getObjectMark, setBitMark, setObjectMark |
Field Detail |
---|
public static final Node.NType $TYPE
Constructor Detail |
---|
public Scale()
Method Detail |
---|
protected void adjustToolTransformation(Matrix4d t, CameraBase c)
ToolRoot3D
t
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 TransformTool
t
- the tool transformation to be adjustedc
- the camera of the tool's 3D viewprotected Node.NType getNTypeImpl()
Node
Node.NType
which describes the managed
fields of the class of this node. This method has to be implemented
in every concrete subclass.
getNTypeImpl
in class Node
protected Node newInstance()
Node
newInstance
in class Node
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |