harmonic.mz.data.fields
Class PointSetField

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

public class PointSetField
extends ModelNode

This is the node specialized for holding a set of points. It creates a PointSetEntry to control it.


Field Summary
 java.util.Vector val
           
 
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
PointSetField()
          Constructs a PointSetField.
 
Method Summary
 PointField addVert(float x, float y, float z)
          Add a vertex
 PointField addVert(harmonic.meshGeom.math.Pnt3f v)
          Add a vertex
 void assignFromXMLString(MVGFileOpener opener, java.lang.String string)
          Implements XML string in
 java.lang.String assignToXMLString(MVGFileSaver saver)
          Implements XML string out
 java.awt.Component createControlWidget()
          Implements abstract control widget creator by returning an PointSetEntry
 PointField fieldAt(int i)
          Return PointField at index.
 harmonic.viewer3D.CoordSystem getCoordSystem()
           
 java.util.Vector getHandles(java.lang.String type)
          Produce a handle for every unique point.
 harmonic.meshGeom.geom.PolygonGeom getVal()
          Returns value as a PolygonGeom
 harmonic.meshGeom.math.Pnt3f getVert(int index)
           
 void insertVert(int i, harmonic.meshGeom.math.Pnt3f v)
          Set vertex at index.
 int pointCount()
          Return point count.
 java.lang.String pythonString()
          String for represention in python.
 PointField removeLast()
           
 void removeVert(int i)
          Remove vertex at index.
 void set(DataNode _f)
          Implements abstract setting function
 void set(harmonic.meshGeom.math.Pnt3f[] points)
          Sets point array value
 void setLast(harmonic.meshGeom.math.Pnt3f v)
           
 void setVert(int i, harmonic.meshGeom.math.Pnt3f v)
          Set vertex at index.
 void transform(harmonic.meshGeom.math.TMat mat)
           
 void updateNames()
           
 
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, assignToMetaFields, assignToXMLAttributes, at, bind, canSelect, castSelection, checkFileRead, checkNetworkInput, childCount, clean, clearAttrib, clearNotified, compare, copyFrom, 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, 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, remove, removeAll, removeAll, removeHandles, removeNetworkInput, removeNetworkOutput, removeNode, removeNode, removeNode, removeNodeListener, replace, selfNodeChanged, 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
 

Field Detail

val

public java.util.Vector val
Constructor Detail

PointSetField

public PointSetField()
Constructs a PointSetField.

Method Detail

getVal

public harmonic.meshGeom.geom.PolygonGeom getVal()
Returns value as a PolygonGeom


set

public void set(DataNode _f)
Implements abstract setting function

Specified by:
set in interface DataNode
Overrides:
set in class ModelNode

set

public void set(harmonic.meshGeom.math.Pnt3f[] points)
Sets point array value


addVert

public PointField addVert(float x,
                          float y,
                          float z)
Add a vertex


addVert

public PointField addVert(harmonic.meshGeom.math.Pnt3f v)
Add a vertex


getVert

public harmonic.meshGeom.math.Pnt3f getVert(int index)

pointCount

public int pointCount()
Return point count.


fieldAt

public PointField fieldAt(int i)
Return PointField at index.


setVert

public void setVert(int i,
                    harmonic.meshGeom.math.Pnt3f v)
Set vertex at index.


insertVert

public void insertVert(int i,
                       harmonic.meshGeom.math.Pnt3f v)
Set vertex at index.


removeVert

public void removeVert(int i)
Remove vertex at index.


updateNames

public void updateNames()

setLast

public void setLast(harmonic.meshGeom.math.Pnt3f v)

removeLast

public PointField removeLast()

transform

public void transform(harmonic.meshGeom.math.TMat mat)

createControlWidget

public java.awt.Component createControlWidget()
Implements abstract control widget creator by returning an PointSetEntry

Overrides:
createControlWidget in class ModelNode

getHandles

public java.util.Vector getHandles(java.lang.String type)
Produce a handle for every unique point. Looping along the points, keep the previous handle produced and previous point. If current point is the same as the previous point, add it to the previous handle, so one handle does any number of PointFields. Handle has special rendering to indicate the number of points it effects.

Overrides:
getHandles in class ModelNode

assignToXMLString

public java.lang.String assignToXMLString(MVGFileSaver saver)
Implements XML string out

Overrides:
assignToXMLString in class ModelNode

assignFromXMLString

public void assignFromXMLString(MVGFileOpener opener,
                                java.lang.String string)
Implements XML string in

Overrides:
assignFromXMLString in class ModelNode

getCoordSystem

public harmonic.viewer3D.CoordSystem getCoordSystem()

pythonString

public java.lang.String pythonString()
Description copied from class: ModelNode
String for represention in python. Thie is deprecated. Use valueString().

Overrides:
pythonString in class ModelNode