harmonic.mz.undo
Class GeometryUndo

java.lang.Object
  |
  +--harmonic.mz.data.ModelNode
        |
        +--harmonic.mz.undo.UndoRecord
              |
              +--harmonic.mz.undo.GeometryUndo
All Implemented Interfaces:
java.awt.event.ActionListener, DataNode, Documentable, java.util.EventListener, Interpolater, harmonic.meshGeom.math.MarkableObject, NodeListener

public class GeometryUndo
extends UndoRecord

This is a subclass of UndoRecord for restoring entire geometries. It usually a pretty bad idea to use this. Normally undos that store some higher level data (the user fields) should be used. No extention module written by the creator the this application uses this undo class.


Field Summary
 
Fields inherited from class harmonic.mz.undo.UndoRecord
undo
 
Fields inherited from class harmonic.mz.data.ModelNode
_fileRoot_, _thread_, ATTRIB_CONTROL_WIDGET, ATTRIB_LISTABLE, ATTRIB_PRESENTABLE, ATTRIB_PRIVATE, ATTRIB_REMOVEABLE, ATTRIB_RENAMEABLE, ATTRIB_SHOW_CONTEXT_MENU, ATTRIB_TYPE_FILTER, ATTRIB_USERGROUP, ATTRIB_VALUE_GROUP, ATTRIB_VE_LISTENER, bCustomCS, bDebug, bValid, name
 
Constructor Summary
GeometryUndo(FunctionStarter action, harmonic.viewer3D.PaintStruct p)
          Constructs a GeometryUndo
GeometryUndo(FunctionStarter action, harmonic.viewer3D.PaintStruct[] painters)
          Constructs a GeometryUndo
GeometryUndo(java.lang.String name, harmonic.viewer3D.PaintStruct p)
          Constructs a GeometryUndo
GeometryUndo(java.lang.String name, harmonic.viewer3D.PaintStruct[] painters)
          Constructs a GeometryUndo
 
Method Summary
 UndoRecord makeRedo()
          Creates a GeometryUndo for doing the redo.
 void undo()
          Undoes any changes to the geometry by replacing the geometry with a copy taken at the time of the creation of the GeometryUndo
 
Methods inherited from class harmonic.mz.data.ModelNode
actionPerformed, addAll, addAlphaed, addField, addField, addField, addFields, addNetworkInput, addNetworkOutput, addNode, addNodeListener, addNodeListener, addNodes, addNodes, addToCurrent, addToGlobals, addToNetworkEditor, addToTemps, addWithUndo, allFieldsAreFinal, applyDataTransfer, areFieldsValid, assignFromMetaFields, assignFromXMLAttributes, assignFromXMLString, assignToMetaFields, assignToXMLAttributes, assignToXMLString, at, bind, canSelect, castSelection, checkFileRead, checkNetworkInput, childCount, clean, clearAttrib, clearNotified, compare, copyFrom, createControlWidget, createCopy, createXMLElement, deepCopy, defeatNodeEvents, disableEvents, enableEvents, expectedValidationTime, fileRoot, finalize, findFieldElement, findNode, fromXMLNodes, getAttrib, getBound, getCatagory, getControlWidget, getCurrentNames, getDataTransfer, getDataTransferTypes, getDeleted, getDirectInputs, getDirectOutputs, getEffectors, getEntryListener, getErrorState, getFilterType, getFullName, getHandles, getInstanceURL, getInterpolater, getIsLeaf, getListable, getMark, getMetaFields, getName, getNodeChildren_V, getNodeChildren, getNodeID, getNodeParent, getObjectRep, getPresentable, getPrivate, getReferencePoolName, getRemoteOwner, getRemoveable, getRenameable, getSaveable, getSavedChildren, getSelect, getSeparateDirectInputs, getSeparateDirectOutputs, getSequenced, getSerialNo, getTags, getTentativeSelect, getTransformable, getTransformableParent, getTransient, getTreeName, getTypeImage, getTypeURL, getUnfoldedChildren, getUpdateTime, getUserGroup, getValidates, getValue, getXMLNodes, hasDependants, hasExternalRef, hashKey, hasValidationLock, hideControlWidget, indexOf, initControlWidget, insertNode, interpolate_Linear, interpolate_Quadratic, invalidate, isField, isFinal, isInSubtree, isInTree, isLinked, isNotified, isPurged, isSet, isTemporary, isValid, linkedTo, linksChildren, makeContextMenu, makeFixed, makePrototype, makeReferenced, makeUnreferenced, makeVisibleInGUI, markNotified, mayValidate, nodeChanged, notifyListeners, postAssignFromXMLElement, preAssignToXMLElement, printChildren, printTags, printTree, printTree, purge, purgeFinal, pythonString, remove, removeAll, removeAll, removeHandles, removeNetworkInput, removeNetworkOutput, removeNode, removeNode, removeNode, removeNodeListener, replace, selfNodeChanged, set, setActualName, setAttrib, setBound, setCatagory, setChildrenExcept, setCoordSystem, setCurrentControlWidget, setCurrentNames, setDeleted, setEntryListener, setErrorState, setFromPrototype, setIsField, setIsLeaf, setIsSet, setListable, setMark, setMetaFields, setName, setNodeParent, setPresentable, setPrivate, setRemoteOwner, setRemoveable, setRenameable, setSaveable, setSelect, setSelect, setSequenced, setSerialNo, setTentativeSelect, setTentativeSelect, setToLink, setTransient, setTransientChildren, setUpdateTime, setUserGroup, setValidates, setValidationLock, setValue, setValueGroup, showControlWidget, showControlWidget, showControlWidget, showHandles, startRename, tag, toString, unlinkListeners, unmarkNotified, untag, updateBindable, valChanged, valChanged, validate, valueString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeometryUndo

public GeometryUndo(FunctionStarter action,
                    harmonic.viewer3D.PaintStruct[] painters)
Constructs a GeometryUndo

Parameters:
action - Action causing change, used for undo name
painters - Painters owning geometries to store

GeometryUndo

public GeometryUndo(FunctionStarter action,
                    harmonic.viewer3D.PaintStruct p)
Constructs a GeometryUndo

Parameters:
action - Action causing change, used for undo name

GeometryUndo

public GeometryUndo(java.lang.String name,
                    harmonic.viewer3D.PaintStruct[] painters)
Constructs a GeometryUndo

Parameters:
name - Undo name
painters - Painters owning geometries to store

GeometryUndo

public GeometryUndo(java.lang.String name,
                    harmonic.viewer3D.PaintStruct p)
Constructs a GeometryUndo

Parameters:
name - Undo name
Method Detail

undo

public void undo()
Undoes any changes to the geometry by replacing the geometry with a copy taken at the time of the creation of the GeometryUndo

Overrides:
undo in class UndoRecord

makeRedo

public UndoRecord makeRedo()
Creates a GeometryUndo for doing the redo.

Overrides:
makeRedo in class UndoRecord