|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectProjectionSimpleStretch
public class ProjectionSimpleStretch
stretches sim coordinates to screen coordinates
| Constructor Summary | |
|---|---|
ProjectionSimpleStretch(int nWidth,
int nHeight,
IEnvironment env)
ensures that the environment env gets displayed on a panel of nWidth by nHeight |
|
| Method Summary | |
|---|---|
int |
getScreenComp(int i,
double[] arrLfState,
int nIdxOff)
Finds the ith component in screen coordinates of a vector indicated by the portion of the array arrLfState starting at nIdxOff; |
int |
height()
|
int |
left()
|
void |
resize(int nNewWidth,
int nNewHeight)
|
void |
scaleProjection(int nNewX,
int nNewY)
|
int |
scaleRadius(double lfRad)
Simple scale function for 2d circles etc. |
int[] |
scaleVector(double[] arrLfVec,
int nIdxOff)
Scales (possibly including rotation and flip) a vector, without applying global translation |
void |
set(int nWidth,
int nHeight,
IBoundary bound)
ensures that the boundary bound gets displayed on a panel of nWidth by nHeight |
int |
top()
|
int |
width()
|
void |
xlateProjection(int nXOff,
int nYOff)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectionSimpleStretch(int nWidth,
int nHeight,
IEnvironment env)
| Method Detail |
|---|
public void resize(int nNewWidth,
int nNewHeight)
resize in interface IProjection
public void set(int nWidth,
int nHeight,
IBoundary bound)
public int getScreenComp(int i,
double[] arrLfState,
int nIdxOff)
getScreenComp in interface IProjectioni - which component of screen coordinates to get (0=x, 1=y)arrLfState - global state vector in sim coordinatesnIdxOff - offset index in arrLfState of the coord we're looking
for
public int[] scaleVector(double[] arrLfVec,
int nIdxOff)
scaleVector in interface IProjectionarrLfVec - array containing vector to scale (transform)nIdxOff - offset of begining of vector to scale in
arrLfVec
public int width()
width in interface IProjectionpublic int height()
height in interface IProjectionpublic int top()
top in interface IProjectionpublic int left()
left in interface IProjection
public int scaleRadius(double lfRad)
throws java.lang.Exception
scaleRadius in interface IProjectionjava.lang.Exception
public void scaleProjection(int nNewX,
int nNewY)
scaleProjection in interface IProjection
public void xlateProjection(int nXOff,
int nYOff)
xlateProjection in interface IProjection
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||