|
|||||||||
| 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.MotionThread, TransformManager.VibrationThread |
| Field Summary | |
|---|---|
private int |
multiplier
|
private static int |
NAV_MODE_IGNORE
|
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
|
(package private) float |
navigationDepth
|
private float |
navigationSlabOffset
|
private int |
navMode
|
private int |
nHits
|
protected Point3f |
ptMoveToCenter
|
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 |
(package private) void |
alignZX(Point3f pt0,
Point3f pt1,
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 |
private void |
calcNavigationDepthPercent()
|
protected void |
calcNavigationPoint()
All the magic happens here. |
protected void |
calcNavSlabAndDepthValues()
|
(package private) boolean |
canNavigate()
|
(package private) Point3f |
getNavigationCenter()
|
(package private) float |
getNavigationDepthPercent()
|
(package private) Point3f |
getNavigationOffset()
|
(package private) float |
getNavigationOffsetPercent(char XorY)
|
private float |
getNavigationSlabOffsetPercent()
|
protected String |
getNavigationState()
|
protected String |
getNavigationText(boolean addComments)
|
private float |
getNavPtHeight()
|
protected float |
getPerspectiveFactor(float z)
calculate the perspective factor based on z |
(package private) void |
navigate(float seconds,
Point3f pt)
scripted entry point for navigation |
(package private) void |
navigate(float seconds,
Point3f[][] pathGuide)
follows a path guided by orientation and offset vectors (as Point3fs) |
private void |
navigate(float seconds,
Point3f[][] pathGuide,
Point3f[] path,
float[] theta,
int indexStart,
int indexEnd)
|
(package private) void |
navigate(float seconds,
Point3f[] path,
float[] theta,
int indexStart,
int indexEnd)
scripted navigation |
(package private) void |
navigate(float seconds,
Vector3f rotAxis,
float degrees)
scripted entry point for navigation |
(package private) void |
navigate(int keyCode,
int modifiers)
entry point for keyboard-based navigation |
(package private) void |
navigateSurface(float timeSeconds,
String name)
|
private void |
navigateSurface(int dz)
|
private void |
navigateTo(float floatSecondsTotal,
Vector3f axis,
float degrees,
Point3f center,
float depthPercent,
float xTrans,
float yTrans)
|
(package private) void |
navTranslate(float seconds,
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. |
protected void |
setNavFps(int navFps)
|
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) |
protected void |
setNavigationOffsetRelative(boolean navigatingSurface)
|
(package private) void |
setNavigationSlabOffsetPercent(float percent)
|
(package private) void |
setScreenParameters(int screenWidth,
int screenHeight,
boolean useZoomLarge,
boolean antialias,
boolean resetSlab,
boolean resetZoom)
|
(package private) void |
zoomByFactor(float factor,
int x,
int y)
|
| 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 static final int NAV_MODE_IGNORE
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
float navigationDepth
private int nHits
private int multiplier
protected Point3f ptMoveToCenter
| Constructor Detail |
|---|
TransformManager11()
TransformManager11(Viewer viewer)
TransformManager11(Viewer viewer,
int width,
int height)
| Method Detail |
|---|
protected void setNavFps(int navFps)
setNavFps in class TransformManager
void zoomByFactor(float factor,
int x,
int y)
zoomByFactor in class TransformManagerprotected 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 TransformManagerprivate float getNavPtHeight()
protected void calcNavSlabAndDepthValues()
private void newNavigationCenter()
boolean canNavigate()
canNavigate in class TransformManagerprotected void resetNavigationPoint(boolean doResetSlab)
TransformManager
resetNavigationPoint in class TransformManagerprotected void setNavigationOffsetRelative(boolean navigatingSurface)
setNavigationOffsetRelative in class TransformManager
void navigate(int keyCode,
int modifiers)
TransformManager
navigate in class TransformManagerkeyCode - 0 indicates key releasedmodifiers - shift,alt,ctrlprivate void navigateSurface(int dz)
void navigate(float seconds,
Point3f pt)
TransformManager
navigate in class TransformManager
void navigate(float seconds,
Vector3f rotAxis,
float degrees)
TransformManager
navigate in class TransformManager
void setNavigationDepthPercent(float timeSec,
float percent)
TransformManager
setNavigationDepthPercent in class TransformManager
void navTranslate(float seconds,
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,
Vector3f axis,
float degrees,
Point3f center,
float depthPercent,
float xTrans,
float yTrans)
void navigate(float seconds,
Point3f[][] pathGuide)
TransformManager
navigate in class TransformManager
void navigate(float seconds,
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,
Point3f[][] pathGuide,
Point3f[] path,
float[] theta,
int indexStart,
int indexEnd)
seconds - pathGuide - path - theta - indexStart - indexEnd -
void navigateSurface(float timeSeconds,
String name)
navigateSurface in class TransformManager
void alignZX(Point3f pt0,
Point3f pt1,
Point3f ptVectorWing)
pt0 - pt1 - ptVectorWing - Point3f getNavigationCenter()
getNavigationCenter in class TransformManagerfloat getNavigationDepthPercent()
getNavigationDepthPercent in class TransformManagervoid setNavigationSlabOffsetPercent(float percent)
setNavigationSlabOffsetPercent in class TransformManagerprivate float getNavigationSlabOffsetPercent()
Point3f getNavigationOffset()
getNavigationOffset in class TransformManagerprivate void setNavigationDepthPercent(float percent)
private void calcNavigationDepthPercent()
float getNavigationOffsetPercent(char XorY)
getNavigationOffsetPercent in class TransformManagerprotected String getNavigationText(boolean addComments)
getNavigationText in class TransformManagerprotected String getNavigationState()
getNavigationState in class TransformManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||