|
|||||||||
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 | |
---|---|
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
|
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(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 |
private void |
calcNavigationDepthPercent()
|
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)
|
private float |
getNavPtHeight()
|
protected float |
getPerspectiveFactor(float z)
calculate the perspective factor based on z |
(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 |
(package private) void |
navigateSurface(float timeSeconds,
java.lang.String name)
|
private void |
navigateSurface(int dz)
|
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. |
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)
|
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
Constructor Detail |
---|
TransformManager11()
TransformManager11(Viewer viewer)
TransformManager11(Viewer viewer, int width, int height)
Method Detail |
---|
protected void setNavFps(int navFps)
setNavFps
in class TransformManager
protected void calcCameraFactors()
TransformManager
calcCameraFactors
in class TransformManager
protected float getPerspectiveFactor(float z)
TransformManager
getPerspectiveFactor
in class TransformManager
protected void adjustTemporaryScreenPoint()
TransformManager
adjustTemporaryScreenPoint
in class TransformManager
void setScreenParameters(int screenWidth, int screenHeight, boolean useZoomLarge, boolean antialias, boolean resetSlab, boolean resetZoom)
setScreenParameters
in class TransformManager
protected void calcNavigationPoint()
calcNavigationPoint
in class TransformManager
private float getNavPtHeight()
protected void calcNavigationSlabAndDepth()
private void newNavigationCenter()
boolean canNavigate()
canNavigate
in class TransformManager
protected void resetNavigationPoint(boolean doResetSlab)
TransformManager
resetNavigationPoint
in class TransformManager
protected void setNavigationOffsetRelative(boolean navigatingSurface)
setNavigationOffsetRelative
in class TransformManager
void navigate(int keyCode, int modifiers)
TransformManager
navigate
in class TransformManager
keyCode
- 0 indicates key releasedmodifiers
- shift,alt,ctrlprivate void navigateSurface(int dz)
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 TransformManager
seconds
- 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 yetprivate void navigate(float seconds, javax.vecmath.Point3f[][] pathGuide, javax.vecmath.Point3f[] path, float[] theta, int indexStart, int indexEnd)
void navigateSurface(float timeSeconds, java.lang.String name)
navigateSurface
in class TransformManager
void alignZX(javax.vecmath.Point3f pt0, javax.vecmath.Point3f pt1, javax.vecmath.Point3f ptVectorWing)
pt0
- pt1
- ptVectorWing
- javax.vecmath.Point3f getNavigationCenter()
getNavigationCenter
in class TransformManager
float getNavigationDepthPercent()
getNavigationDepthPercent
in class TransformManager
void setNavigationSlabOffsetPercent(float percent)
setNavigationSlabOffsetPercent
in class TransformManager
private float getNavigationSlabOffsetPercent()
javax.vecmath.Point3f getNavigationOffset()
getNavigationOffset
in class TransformManager
private void setNavigationDepthPercent(float percent)
private void calcNavigationDepthPercent()
float getNavigationOffsetPercent(char XorY)
getNavigationOffsetPercent
in class TransformManager
protected java.lang.String getNavigationText(boolean addComments)
getNavigationText
in class TransformManager
protected java.lang.String getNavigationState()
getNavigationState
in class TransformManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |