|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--HWPanel
|
+--harmonic.mz.gui.ValueEntry
|
+--harmonic.mz.entries.PointEntry
GUI widget for entering point values. Most of the brains of this are concerned with processing mouse input from the viewport, which picks point of the UCS picking plane.
Ortho: Points tend to come in sequences, and thats when this applies. Points i=1,n will be such that they are on a line of the same x or same y as the point i-1. A variable 'bFirstPoint' is keeped to indicate when ortho is not in effect. The sequence is restarted when PointEntry.reset() is called. Note that ortho only takes effect when the point is picked with the mouse.
Component Sequence: Pick x, y, z in sequence. This is a sequence in a larger sequence, possibly, but not nessesary. If it is the first point in the larger sequence the read out will show the complete point under the cross hair as the mouse is moved (tentativly). When the button is pressed, compSeqBasePoint is set to the current point. Then as the mouse is moved only y and z will update, and x will be fixed (by reading from compSeqBasePoint). The button is pressed and compSeqBasePoint is set to the current point again. Only z will update as the mouse is moved. The button is pressed and the point is finaly sent to the client. Maybe the point will be sent as a tentative through out the x, y, z sequence, maybe not. For subseqent points in the larger sequence it would be possible to use compSeqBasePoint from the previous point, or the complete point as in the first. I say make it just like the first.
| Field Summary | |
static PointEntry |
activePointEntry
|
static BooleanField |
bCompSeq
|
static BooleanField |
bDrawBlips
|
static BooleanField |
bGridSnap
|
static BooleanField |
bOrtho
|
static BooleanField |
bReferencedSnaps
|
PointField |
field
|
static int |
FILTER_X
|
static int |
FILTER_XY
|
static int |
FILTER_XYZ
|
static int |
FILTER_Y
|
static int |
FILTER_YZ
|
static int |
FILTER_Z
|
static int |
FILTER_ZX
|
static int |
NEW_POINT
|
static int |
SNAP
|
static BooleanField |
x_comp
|
static BooleanField |
xy_comp
|
static BooleanField |
y_comp
|
static BooleanField |
yz_comp
|
static BooleanField |
z_comp
|
static BooleanField |
zx_comp
|
| Constructor Summary | |
PointEntry()
|
|
PointEntry(java.lang.String label,
java.lang.Object listener,
java.lang.String callback)
Constructs a PointEntry |
|
PointEntry(java.lang.String label,
java.lang.Object listener,
java.lang.String callback,
harmonic.meshGeom.math.Pnt3f point)
Constructs a PointEntry |
|
PointEntry(java.lang.String label,
java.lang.Object listener,
java.lang.String callback,
harmonic.meshGeom.math.Pnt3f point,
boolean bMulti)
Constructs a PointEntry |
|
PointEntry(java.lang.String label,
harmonic.meshGeom.math.Pnt3f point)
Constructs a PointEntry |
|
| Method Summary | |
static void |
addSnapSearcher(harmonic.mz.snap.PointSnapSearcher pss)
Add snap searcher |
static void |
appInit()
|
void |
assignFromPointText(java.lang.String pointText)
|
void |
assignFromReadout()
Override to assign value from readout. |
void |
beginEntry(harmonic.viewer3D.Task parentTask)
Begin picking points off viewport |
void |
cancelEntry()
Called when entry or thing owning entry is canceled, as the elements of the task tree are canceled. |
void |
changeCoordRep(int x)
|
void |
cleanTask()
|
void |
contract()
Shrink to small size. |
void |
expand()
Expand to full size. |
void |
fin_comp()
|
void |
fin()
|
void |
finishEntry()
Called when entry is properly finished. |
void |
format(int w,
int h)
|
static void |
gcsToDevice(harmonic.meshGeom.math.Pnt3f pnt)
|
static void |
gcsToUcs(harmonic.meshGeom.math.Pnt3f pnt)
|
static void |
gcsToView(harmonic.meshGeom.math.Pnt3f pnt)
|
java.awt.Dimension |
getEntrySize()
Override to return the size of the specialized value entry controls. |
harmonic.meshGeom.math.Pnt3f |
getOldPoint()
|
static harmonic.meshGeom.math.Pnt3f |
getPickingPoint()
|
int |
getPickingPoint(harmonic.meshGeom.math.Pnt3f ret,
int x,
int y)
|
harmonic.meshGeom.math.Pnt3f |
getPoint()
Return the point value. |
void |
initReadout()
Override to assign readout from value. |
java.lang.String |
makePointString(harmonic.meshGeom.math.Pnt3f _p)
|
void |
makeValueUI()
|
void |
monologFinished()
This is called by Monolog when it is finished. |
void |
mouseClicked(harmonic.viewer3D.event.ViewportMouseEvent e)
|
void |
mouseDragged(harmonic.viewer3D.event.ViewportMouseEvent e)
|
void |
mouseEntered(harmonic.viewer3D.event.ViewportMouseEvent e)
|
void |
mouseExited(harmonic.viewer3D.event.ViewportMouseEvent e)
|
void |
mouseMoved(harmonic.viewer3D.event.ViewportMouseEvent e)
|
void |
mousePressed(harmonic.viewer3D.event.ViewportMouseEvent e)
|
void |
mouseReleased(harmonic.viewer3D.event.ViewportMouseEvent e)
|
void |
nodeChanged(ModelNode f)
|
static void |
onPickingPlane(java.awt.event.ItemEvent e)
|
static void |
onPickSequencial(java.awt.event.ItemEvent e)
|
void |
onPointTextEntered(java.awt.event.TextEvent e)
|
static void |
onReadOut()
|
void |
onSettingsButton(java.awt.event.ItemEvent e)
|
harmonic.meshGeom.math.Pnt3f |
parsePoint(java.lang.String _pointText)
|
static void |
pickComponents(int x)
|
void |
pointOnPlane(harmonic.meshGeom.math.Pnt3f ret,
int x,
int y)
|
static void |
pointOnPlane(harmonic.meshGeom.math.Pnt3f ret,
int x,
int y,
harmonic.viewer3D.Viewport view,
harmonic.meshGeom.math.TMat globalPerPlane)
Utility for calculating point on picking plane |
static void |
removeSnapSearcher(harmonic.mz.snap.PointSnapSearcher pss)
Remove snap searcher |
static void |
reset()
|
void |
setBasePoint(harmonic.meshGeom.math.Pnt3f p)
|
void |
setField(ModelNode f)
Sets the effected data node. |
void |
setPickingPlane(int x)
Set the picking plane coordinate system to one of the contant values declared in this class. |
void |
setPoint(harmonic.meshGeom.math.Tuple3f p)
Sets the point value. |
void |
setReadOut(int x)
Set the readout coordinate system to one of the contant values declared in this class. |
void |
setUpMouse()
|
void |
snapToRTGrid(harmonic.meshGeom.math.Pnt3f _point)
|
void |
snapToXYGrid(harmonic.meshGeom.math.Pnt3f point)
|
static void |
transformUCSFromLocal(harmonic.meshGeom.math.Pnt3f p,
PointField field)
|
static void |
transformUCSToLocal(harmonic.meshGeom.math.Pnt3f p,
PointField field)
|
static void |
ucsToGcs(harmonic.meshGeom.math.Pnt3f pnt)
|
static void |
ucsToView(harmonic.meshGeom.math.Pnt3f pnt)
|
void |
updateCrossHair(int r)
|
void |
updateField()
This is called by notifyListeners we have a EntryEvent.VALUE_CHANGED. |
void |
updateMousePosition(int x,
int y)
|
void |
updatePointText(harmonic.meshGeom.math.Pnt3f p)
|
void |
viewportChanged(harmonic.viewer3D.event.ViewportEvent e)
|
void |
waitForApproach(harmonic.meshGeom.math.Pnt3f approachValue)
Mouse input will be ignored unill approachValue is neared with the mouse. |
| Methods inherited from class harmonic.mz.gui.ValueEntry |
_notifyListeners_, add, addEntryListener, aquireInput, beginTask, cancelTask, componentHidden, componentMoved, componentResized, componentShown, contractIcon, echoFieldChange, expandCheck, expandIcon, finishTask, getField, getInstanceURL, getPreferredSize, getTaskName, getTypeURL, highlight, init, innerChange, isActive, isDoingTask, isExpanded, mousePressed, nodeChanged, notifyListeners_ValueChanged, notifyListeners, removeEntryListener, savePrev, setDocURL, setInnerChange, setValue, transferListener, unlinkField, validateUISettings |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface harmonic.mz.event.NodeListener |
nodeChanged |
| Field Detail |
public static BooleanField bReferencedSnaps
public static BooleanField bGridSnap
public static BooleanField bCompSeq
public static BooleanField bOrtho
public static BooleanField bDrawBlips
public static BooleanField x_comp
public static BooleanField y_comp
public static BooleanField z_comp
public static BooleanField xy_comp
public static BooleanField yz_comp
public static BooleanField zx_comp
public static PointEntry activePointEntry
public static final int FILTER_XYZ
public static final int FILTER_XY
public static final int FILTER_YZ
public static final int FILTER_ZX
public static final int FILTER_X
public static final int FILTER_Y
public static final int FILTER_Z
public static final int SNAP
public static final int NEW_POINT
public PointField field
| Constructor Detail |
public PointEntry()
public PointEntry(java.lang.String label,
harmonic.meshGeom.math.Pnt3f point)
public PointEntry(java.lang.String label,
java.lang.Object listener,
java.lang.String callback)
public PointEntry(java.lang.String label,
java.lang.Object listener,
java.lang.String callback,
harmonic.meshGeom.math.Pnt3f point)
public PointEntry(java.lang.String label,
java.lang.Object listener,
java.lang.String callback,
harmonic.meshGeom.math.Pnt3f point,
boolean bMulti)
| Method Detail |
public static void appInit()
public void setField(ModelNode f)
setField in class ValueEntrypublic void makeValueUI()
public void nodeChanged(ModelNode f)
public void onSettingsButton(java.awt.event.ItemEvent e)
onSettingsButton in class ValueEntrypublic static void addSnapSearcher(harmonic.mz.snap.PointSnapSearcher pss)
public static void removeSnapSearcher(harmonic.mz.snap.PointSnapSearcher pss)
public void format(int w,
int h)
public java.awt.Dimension getEntrySize()
ValueEntry
getEntrySize in class ValueEntrypublic void expand()
ValueEntry
expand in class ValueEntrypublic void contract()
ValueEntry
contract in class ValueEntrypublic void setUpMouse()
public void beginEntry(harmonic.viewer3D.Task parentTask)
beginEntry in class ValueEntrypublic void finishEntry()
ValueEntry
finishEntry in class ValueEntrypublic void cancelEntry()
ValueEntry
cancelEntry in class ValueEntrypublic void cleanTask()
cleanTask in interface harmonic.viewer3D.Taskpublic void waitForApproach(harmonic.meshGeom.math.Pnt3f approachValue)
public void setReadOut(int x)
public void setPickingPlane(int x)
public void setPoint(harmonic.meshGeom.math.Tuple3f p)
public harmonic.meshGeom.math.Pnt3f getPoint()
public harmonic.meshGeom.math.Pnt3f getOldPoint()
public static harmonic.meshGeom.math.Pnt3f getPickingPoint()
public int getPickingPoint(harmonic.meshGeom.math.Pnt3f ret,
int x,
int y)
public static void pointOnPlane(harmonic.meshGeom.math.Pnt3f ret,
int x,
int y,
harmonic.viewer3D.Viewport view,
harmonic.meshGeom.math.TMat globalPerPlane)
public void pointOnPlane(harmonic.meshGeom.math.Pnt3f ret,
int x,
int y)
public static void gcsToUcs(harmonic.meshGeom.math.Pnt3f pnt)
public static void ucsToGcs(harmonic.meshGeom.math.Pnt3f pnt)
public static void gcsToView(harmonic.meshGeom.math.Pnt3f pnt)
public static void gcsToDevice(harmonic.meshGeom.math.Pnt3f pnt)
public static void ucsToView(harmonic.meshGeom.math.Pnt3f pnt)
public static void transformUCSToLocal(harmonic.meshGeom.math.Pnt3f p,
PointField field)
public static void transformUCSFromLocal(harmonic.meshGeom.math.Pnt3f p,
PointField field)
public void snapToXYGrid(harmonic.meshGeom.math.Pnt3f point)
public void snapToRTGrid(harmonic.meshGeom.math.Pnt3f _point)
public void updateMousePosition(int x,
int y)
public void updateField()
ValueEntry
updateField in class ValueEntrypublic void viewportChanged(harmonic.viewer3D.event.ViewportEvent e)
viewportChanged in interface harmonic.viewer3D.event.ViewportListenerpublic void updateCrossHair(int r)
public void changeCoordRep(int x)
public java.lang.String makePointString(harmonic.meshGeom.math.Pnt3f _p)
public static void pickComponents(int x)
public void initReadout()
ValueEntry
initReadout in class ValueEntrypublic void updatePointText(harmonic.meshGeom.math.Pnt3f p)
public void mouseMoved(harmonic.viewer3D.event.ViewportMouseEvent e)
mouseMoved in interface harmonic.viewer3D.event.ViewportMouseListenerpublic void mouseDragged(harmonic.viewer3D.event.ViewportMouseEvent e)
mouseDragged in interface harmonic.viewer3D.event.ViewportMouseListenerpublic void mousePressed(harmonic.viewer3D.event.ViewportMouseEvent e)
mousePressed in interface harmonic.viewer3D.event.ViewportMouseListenerpublic void mouseReleased(harmonic.viewer3D.event.ViewportMouseEvent e)
mouseReleased in interface harmonic.viewer3D.event.ViewportMouseListenerpublic void mouseExited(harmonic.viewer3D.event.ViewportMouseEvent e)
mouseExited in interface harmonic.viewer3D.event.ViewportMouseListenerpublic void mouseEntered(harmonic.viewer3D.event.ViewportMouseEvent e)
mouseEntered in interface harmonic.viewer3D.event.ViewportMouseListenerpublic void mouseClicked(harmonic.viewer3D.event.ViewportMouseEvent e)
mouseClicked in interface harmonic.viewer3D.event.ViewportMouseListenerpublic harmonic.meshGeom.math.Pnt3f parsePoint(java.lang.String _pointText)
public void setBasePoint(harmonic.meshGeom.math.Pnt3f p)
public void assignFromReadout()
ValueEntry
assignFromReadout in class ValueEntrypublic void monologFinished()
ValueEntry
monologFinished in class ValueEntrypublic void onPointTextEntered(java.awt.event.TextEvent e)
public void assignFromPointText(java.lang.String pointText)
public void fin_comp()
public void fin()
public static void reset()
public static void onReadOut()
public static void onPickingPlane(java.awt.event.ItemEvent e)
public static void onPickSequencial(java.awt.event.ItemEvent e)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||