|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmol.viewer.TransformManager
org.jmol.viewer.TransformManager11
class TransformManager11
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jmol.viewer.TransformManager |
|---|
TransformManager.VibrationThread |
| Field Summary | |
|---|---|
(package private) boolean |
isNavigationCentered
|
private int |
multiplier
|
private static int |
NAV_MODE_NEWXY
|
private static int |
NAV_MODE_NEWXYZ
|
private static int |
NAV_MODE_NEWZ
|
private static int |
NAV_MODE_NONE
|
private static int |
NAV_MODE_RESET
|
private static int |
NAV_MODE_ZOOMED
|
private float |
navigationSlabOffset
|
private int |
navMode
|
private int |
nHits
|
private float |
previousX
|
private float |
previousY
|
private float |
prevZoomSetting
|
private float |
zoomFactor
|
| Constructor Summary | |
|---|---|
TransformManager11()
|
|
TransformManager11(Viewer viewer)
|
|
TransformManager11(Viewer viewer,
int width,
int height)
|
|
| Method Summary | |
|---|---|
protected void |
adjustTemporaryScreenPoint()
adjusts the temporary point for perspective and offsets |
private void |
alignZX(javax.vecmath.Point3f pt0,
javax.vecmath.Point3f pt1,
javax.vecmath.Point3f ptVectorWing)
brings pt0-pt1 vector to [0 0 -1], then rotates about [0 0 1] until ptVectorWing is in xz plane |
protected void |
calcCameraFactors()
sets all camera and scale factors needed by the specific perspective model instantiated |
protected void |
calcNavigationPoint()
All the magic happens here. |
protected void |
calcNavigationSlabAndDepth()
|
(package private) boolean |
canNavigate()
|
(package private) javax.vecmath.Point3f |
getNavigationCenter()
|
(package private) float |
getNavigationDepthPercent()
|
(package private) javax.vecmath.Point3f |
getNavigationOffset()
|
(package private) float |
getNavigationOffsetPercent(char XorY)
|
private float |
getNavigationSlabOffsetPercent()
|
protected java.lang.String |
getNavigationState()
|
protected java.lang.String |
getNavigationText(boolean addComments)
|
protected float |
getPerspectiveFactor(float z)
calculate the perspective factor based on z |
(package private) boolean |
isNavigationCentered()
|
(package private) void |
navigate(float seconds,
javax.vecmath.Point3f pt)
scripted entry point for navigation |
(package private) void |
navigate(float seconds,
javax.vecmath.Point3f[][] pathGuide)
follows a path guided by orientation and offset vectors (as Point3fs) |
private void |
navigate(float seconds,
javax.vecmath.Point3f[][] pathGuide,
javax.vecmath.Point3f[] path,
float[] theta,
int indexStart,
int indexEnd)
|
(package private) void |
navigate(float seconds,
javax.vecmath.Point3f[] path,
float[] theta,
int indexStart,
int indexEnd)
scripted navigation |
(package private) void |
navigate(float seconds,
javax.vecmath.Vector3f rotAxis,
float degrees)
scripted entry point for navigation |
(package private) void |
navigate(int keyCode,
int modifiers)
entry point for keyboard-based navigation |
private void |
navigateTo(float floatSecondsTotal,
javax.vecmath.Vector3f axis,
float degrees,
javax.vecmath.Point3f center,
float depthPercent,
float xTrans,
float yTrans)
|
(package private) void |
navTranslate(float seconds,
javax.vecmath.Point3f pt)
scripted entry point for navigation |
(package private) void |
navTranslatePercent(float seconds,
float x,
float y)
scripted entry point for navigation |
private void |
newNavigationCenter()
We do not want the fixed navigation offset to change, but we need a new model-based equivalent position. |
protected void |
resetNavigationPoint(boolean doResetSlab)
something has arisen that requires resetting of the navigation point. |
private void |
setNavigationDepthPercent(float percent)
|
(package private) void |
setNavigationDepthPercent(float timeSec,
float percent)
sets the position of the navigation offset relative to the model (50% center; 0% rear, 100% front; can be <0 or >100) |
(package private) void |
setNavigationSlabOffsetPercent(float percent)
|
(package private) void |
setScreenParameters(int screenWidth,
int screenHeight,
boolean useZoomLarge,
boolean antialias,
boolean resetSlab,
boolean resetZoom)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private float navigationSlabOffset
private float zoomFactor
private float prevZoomSetting
private float previousX
private float previousY
boolean isNavigationCentered
private int nHits
private int multiplier
private static final int NAV_MODE_ZOOMED
private static final int NAV_MODE_NONE
private static final int NAV_MODE_RESET
private static final int NAV_MODE_NEWXY
private static final int NAV_MODE_NEWXYZ
private static final int NAV_MODE_NEWZ
private int navMode
| Constructor Detail |
|---|
TransformManager11()
TransformManager11(Viewer viewer)
TransformManager11(Viewer viewer,
int width,
int height)
| Method Detail |
|---|
protected void calcCameraFactors()
TransformManager
calcCameraFactors in class TransformManagerprotected float getPerspectiveFactor(float z)
TransformManager
getPerspectiveFactor in class TransformManagerprotected void adjustTemporaryScreenPoint()
TransformManager
adjustTemporaryScreenPoint in class TransformManager
void setScreenParameters(int screenWidth,
int screenHeight,
boolean useZoomLarge,
boolean antialias,
boolean resetSlab,
boolean resetZoom)
setScreenParameters in class TransformManagerprotected void calcNavigationPoint()
calcNavigationPoint in class TransformManagerprotected void calcNavigationSlabAndDepth()
private void newNavigationCenter()
boolean canNavigate()
canNavigate in class TransformManagerprotected void resetNavigationPoint(boolean doResetSlab)
TransformManager
resetNavigationPoint in class TransformManager
void navigate(int keyCode,
int modifiers)
TransformManager
navigate in class TransformManagerkeyCode - 0 indicates key releasedmodifiers - shift,alt,ctrl
void navigate(float seconds,
javax.vecmath.Point3f pt)
TransformManager
navigate in class TransformManager
void navigate(float seconds,
javax.vecmath.Vector3f rotAxis,
float degrees)
TransformManager
navigate in class TransformManager
void setNavigationDepthPercent(float timeSec,
float percent)
TransformManager
setNavigationDepthPercent in class TransformManager
void navTranslate(float seconds,
javax.vecmath.Point3f pt)
TransformManager
navTranslate in class TransformManager
void navTranslatePercent(float seconds,
float x,
float y)
TransformManager
navTranslatePercent in class TransformManager
private void navigateTo(float floatSecondsTotal,
javax.vecmath.Vector3f axis,
float degrees,
javax.vecmath.Point3f center,
float depthPercent,
float xTrans,
float yTrans)
void navigate(float seconds,
javax.vecmath.Point3f[][] pathGuide)
TransformManager
navigate in class TransformManager
void navigate(float seconds,
javax.vecmath.Point3f[] path,
float[] theta,
int indexStart,
int indexEnd)
TransformManager
navigate in class TransformManagerseconds - number of seconds to allow for total movement, like moveTopath - sequence of points to turn into a hermetian paththeta - orientation angle along path (0 aligns with window Y axis)
[or Z axis if path is vertical]indexStart - index of first "station"indexEnd - index of last "station"
not implemented yet
private void navigate(float seconds,
javax.vecmath.Point3f[][] pathGuide,
javax.vecmath.Point3f[] path,
float[] theta,
int indexStart,
int indexEnd)
private void alignZX(javax.vecmath.Point3f pt0,
javax.vecmath.Point3f pt1,
javax.vecmath.Point3f ptVectorWing)
pt0 - pt1 - ptVectorWing - javax.vecmath.Point3f getNavigationCenter()
getNavigationCenter in class TransformManagerboolean isNavigationCentered()
isNavigationCentered in class TransformManagervoid setNavigationSlabOffsetPercent(float percent)
setNavigationSlabOffsetPercent in class TransformManagerprivate float getNavigationSlabOffsetPercent()
javax.vecmath.Point3f getNavigationOffset()
getNavigationOffset in class TransformManagerprivate void setNavigationDepthPercent(float percent)
float getNavigationDepthPercent()
getNavigationDepthPercent in class TransformManagerfloat getNavigationOffsetPercent(char XorY)
getNavigationOffsetPercent in class TransformManagerprotected java.lang.String getNavigationText(boolean addComments)
getNavigationText in class TransformManagerprotected java.lang.String getNavigationState()
getNavigationState in class TransformManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||