public final class Navigator extends JmolThread implements JmolNavigatorInterface
Modifier and Type | Field and Description |
---|---|
private javajs.util.V3 |
aaStepCenter |
private javajs.util.V3 |
axis |
private javajs.util.P3 |
center |
private javajs.util.P3 |
centerStart |
private float |
degrees |
private float |
degreeStep |
private float |
depthDelta |
private float |
depthPercent |
private float |
depthStart |
private float |
floatSecondsTotal |
private int |
frameTimeMillis |
private int |
iList |
private boolean |
isNavTo |
private boolean |
isPathGuide |
private boolean |
isStep |
private int |
iStep |
private int |
multiplier |
private javajs.util.Lst<java.lang.Object[]> |
navigationList |
private int |
nHits |
private javajs.util.P3[] |
pointGuides |
private javajs.util.P3[] |
points |
private TransformManager |
tm |
private int |
totalSteps |
private float |
xTrans |
private float |
xTransDelta |
private float |
xTransStart |
private float |
yTrans |
private float |
yTransDelta |
private float |
yTransStart |
CHECK1, CHECK2, CHECK3, currentTime, eval, FINISH, haveReference, hoverEnabled, INIT, isJS, isReset, lastRepaintTime, MAIN, name, sc, sleepTime, startTime, stopped, targetTime, vwr
Constructor and Description |
---|
Navigator() |
Modifier and Type | Method and Description |
---|---|
private void |
alignZX(javajs.util.P3 pt0,
javajs.util.P3 pt1,
javajs.util.P3 ptVectorWing)
brings pt0-pt1 vector to [0 0 -1], then rotates about [0 0 1] until
ptVectorWing is in xz plane
|
private void |
calcNavigationDepthPercent() |
void |
calcNavigationPoint() |
private void |
calcNavSlabAndDepthValues() |
private void |
doNavStep(int iStep) |
private float |
getNavigationSlabOffsetPercent() |
java.lang.String |
getNavigationState() |
void |
navigate(float seconds,
javajs.util.P3[][] pathGuide,
javajs.util.P3[] path,
float[] theta,
int indexStart,
int indexEnd) |
void |
navigateAxis(javajs.util.V3 rotAxis,
float degrees) |
void |
navigateKey(int keyCode,
int modifiers) |
void |
navigateList(JmolScriptEvaluator eval,
javajs.util.Lst<java.lang.Object[]> list) |
void |
navigateTo(float seconds,
javajs.util.V3 axis,
float degrees,
javajs.util.P3 center,
float depthPercent,
float xTrans,
float yTrans) |
void |
navTranslatePercentOrTo(float seconds,
float x,
float y) |
private void |
newNavigationCenter()
We do not want the fixed navigation offset to change, but we need a new
model-based equivalent position.
|
private void |
nextList(int i,
javajs.util.P3 ptTemp) |
protected void |
oops(java.lang.Exception e) |
protected void |
run1(int mode) |
void |
set(TransformManager tm,
Viewer vwr) |
void |
setNavigationDepthPercent(float percent) |
void |
setNavigationOffsetRelative() |
private void |
setNavPercent(javajs.util.P3 pt1) |
private void |
setupNav(float seconds,
javajs.util.P3[][] pathGuide,
javajs.util.P3[] path,
int indexStart,
int indexEnd) |
private void |
setupNavTo() |
void |
zoomByFactor(float factor,
int x,
int y) |
checkInterrupted, interrupt, reset, resumeEval, run, runSleep, setEval, setManager, setViewer, start
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
interrupt
private TransformManager tm
private int nHits
private int multiplier
private boolean isPathGuide
private javajs.util.P3[] points
private javajs.util.P3[] pointGuides
private int frameTimeMillis
private float floatSecondsTotal
private javajs.util.V3 axis
private float degrees
private javajs.util.P3 center
private float depthPercent
private float xTrans
private float yTrans
private float depthStart
private float depthDelta
private float xTransStart
private float xTransDelta
private float yTransStart
private float yTransDelta
private float degreeStep
private javajs.util.P3 centerStart
private int totalSteps
private javajs.util.V3 aaStepCenter
private boolean isNavTo
private int iStep
private javajs.util.Lst<java.lang.Object[]> navigationList
private int iList
private boolean isStep
public void set(TransformManager tm, Viewer vwr)
set
in interface JmolNavigatorInterface
public void navigateList(JmolScriptEvaluator eval, javajs.util.Lst<java.lang.Object[]> list)
navigateList
in interface JmolNavigatorInterface
private void nextList(int i, javajs.util.P3 ptTemp)
private void setNavPercent(javajs.util.P3 pt1)
public void navigateTo(float seconds, javajs.util.V3 axis, float degrees, javajs.util.P3 center, float depthPercent, float xTrans, float yTrans)
navigateTo
in interface JmolNavigatorInterface
public void navigate(float seconds, javajs.util.P3[][] pathGuide, javajs.util.P3[] path, float[] theta, int indexStart, int indexEnd)
navigate
in interface JmolNavigatorInterface
protected void run1(int mode) throws java.lang.InterruptedException
run1
in class JmolThread
java.lang.InterruptedException
private void doNavStep(int iStep)
private void setupNavTo()
private void setupNav(float seconds, javajs.util.P3[][] pathGuide, javajs.util.P3[] path, int indexStart, int indexEnd)
private void alignZX(javajs.util.P3 pt0, javajs.util.P3 pt1, javajs.util.P3 ptVectorWing)
pt0
- pt1
- ptVectorWing
- public void zoomByFactor(float factor, int x, int y)
zoomByFactor
in interface JmolNavigatorInterface
public void calcNavigationPoint()
calcNavigationPoint
in interface JmolNavigatorInterface
private void calcNavSlabAndDepthValues()
private void newNavigationCenter()
public void setNavigationOffsetRelative()
setNavigationOffsetRelative
in interface JmolNavigatorInterface
public void navigateKey(int keyCode, int modifiers)
navigateKey
in interface JmolNavigatorInterface
public void setNavigationDepthPercent(float percent)
setNavigationDepthPercent
in interface JmolNavigatorInterface
private void calcNavigationDepthPercent()
public java.lang.String getNavigationState()
getNavigationState
in interface JmolNavigatorInterface
private float getNavigationSlabOffsetPercent()
public void navigateAxis(javajs.util.V3 rotAxis, float degrees)
navigateAxis
in interface JmolNavigatorInterface
public void navTranslatePercentOrTo(float seconds, float x, float y)
navTranslatePercentOrTo
in interface JmolNavigatorInterface
protected void oops(java.lang.Exception e)
oops
in class JmolThread