|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gzz.vob.VobCoorder | +--gzz.vob.AffineVobCoorder | +--gzz.gfx.gl.GLVobCoorder
Field Summary | |
static boolean |
dbg
|
static java.lang.String |
rcsid
|
Constructor Summary | |
GLVobCoorder()
|
Method Summary | |
void |
activate(int cs)
Cause the given coordinate system to be considered when getCSAt() is called. |
int |
affineCoordsys(int into,
float depth,
float cx,
float cy,
float x_x,
float x_y,
float y_x,
float y_y)
|
int |
box(int into,
float w,
float h)
|
int |
buoyOnCircle(int into,
int anchor,
float cx,
float cy,
float rad,
float px,
float py,
float shiftamount)
|
int |
concat(int parent,
int child)
|
int |
cull(int parent,
int clip)
Creates a CullingCoordSys using the parent also as the test coordinate system. |
int |
cull(int parent,
int test,
int clip)
Creates a CullingCoordSys with distinct parent and test coordinate systems. |
int |
distort(int into,
float x,
float y,
float w,
float h,
float mag,
float min)
A fisheye coordinate system: non-linear magnification. |
void |
dump()
|
int |
getBuoyOnCircleAnchor(int cs)
|
java.lang.String |
getCoordSystemStr(int cs)
|
int |
getCSAt(int parent,
float x,
float y,
float[] targetcoords)
Get the topmost activated coordinate system which has parent as a primary ancestor. |
int |
getParent(int cs)
|
Vob.RenderInfo |
getRenderInfo(int cs)
|
void |
getSqSize(int cs,
float[] into)
Get the size of the "unit square" of the given coordinate system. |
boolean |
inverseTransformPoints3_interp(int[] interpList,
GLVobCoorder other,
float fract,
boolean show1,
int withCS,
float[] points,
float[] into)
|
float[] |
inverseTransformPoints3(int withCS,
float[] points,
float[] into)
|
int |
invert(int parent)
|
int |
nadirOrigin(int into,
int nadir)
Make a nadir rotation of into towards nadir. |
int |
nadirUnitSq(int into,
int nadir)
Make a nadir rotation around unitsq center towards nadir. |
boolean |
needInterp(VobCoorder interpTo,
int[] interpList)
|
int |
orthoBox(int into,
float z,
float x,
float y,
float sx,
float sy,
float w,
float h)
|
void |
renderInterp(GL.RenderingSurface into,
GLVobMap theVobs,
int[] csinds,
GLVobCoorder other,
float fract,
boolean standardcoords,
boolean showFinal)
|
void |
renderInterp(GraphicsAPI.RenderingSurface into,
GLVobMap theVobs,
int[] csinds,
GLVobCoorder other,
float fract,
boolean standardcoords,
boolean showFinal)
|
int |
rotate(int into,
float degrees)
Get a subcs rotated clockwise. |
int |
rotateCentered(int into,
float degrees,
float x,
float y)
|
int |
rotateXYZ(int into,
float degrees,
float x,
float y,
float z)
|
int |
scale(int into,
float sx,
float sy,
float sz)
|
void |
setAffineParams(int cs,
float depth,
float cx,
float cy,
float x_x,
float x_y,
float y_x,
float y_y)
|
void |
setBoxParams(int cs,
float w,
float h)
|
void |
setDistortParams(int cs,
float x,
float y,
float w,
float h,
float mag,
float min)
|
void |
setOrthoBoxParams(int cs,
float z,
float x,
float y,
float sx,
float sy,
float w,
float h)
|
void |
setRotateCenteredParams(int cs,
float degrees,
float x,
float y)
|
void |
setRotateParams(int cs,
float degrees)
|
void |
setScaleParams(int cs,
float sx,
float sy,
float sz)
|
float |
timeRender(GL.RenderingSurface into,
GLVobMap theVobs,
boolean standardcoords,
int iters)
|
boolean |
transformPoints3_interp(int[] interpList,
GLVobCoorder other,
float fract,
boolean show1,
int withCS,
float[] points,
float[] into)
|
float[] |
transformPoints3(int withCS,
float[] points,
float[] into)
Transform a point to screen coordinates from the given cs. |
int |
translateXYZ(int into,
float sx,
float sy,
float sz)
|
int |
unitSq(int into)
|
Methods inherited from class gzz.vob.AffineVobCoorder |
ortho, setOrthoParams |
Methods inherited from class gzz.vob.VobCoorder |
scale, setScaleParams, setTranslateParams, setTranslateParams, transformPoint, transformPoints2, translate, translate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String rcsid
public static boolean dbg
Constructor Detail |
public GLVobCoorder()
Method Detail |
public void activate(int cs)
VobCoorder
activate
in class VobCoorder
public int getCSAt(int parent, float x, float y, float[] targetcoords)
VobCoorder
1) Inverse transform into the coordinate system; in there, clip against the unit square and project to the plane z=0 2) Transform the projected point back into screen coordinates, making note of the z coordinate.
getCSAt
in class VobCoorder
public int getParent(int cs)
public java.lang.String getCoordSystemStr(int cs)
public int affineCoordsys(int into, float depth, float cx, float cy, float x_x, float x_y, float y_x, float y_y)
affineCoordsys
in class AffineVobCoorder
public void setAffineParams(int cs, float depth, float cx, float cy, float x_x, float x_y, float y_x, float y_y)
setAffineParams
in class AffineVobCoorder
public int rotate(int into, float degrees)
AffineVobCoorder
rotate
in class AffineVobCoorder
public void setRotateParams(int cs, float degrees)
setRotateParams
in class AffineVobCoorder
public int rotateCentered(int into, float degrees, float x, float y)
public void setRotateCenteredParams(int cs, float degrees, float x, float y)
public int rotateXYZ(int into, float degrees, float x, float y, float z)
public int translateXYZ(int into, float sx, float sy, float sz)
public int buoyOnCircle(int into, int anchor, float cx, float cy, float rad, float px, float py, float shiftamount)
public int getBuoyOnCircleAnchor(int cs)
public int nadirOrigin(int into, int nadir)
into
- The coordinate system for which a rotated
child is to be constructed.nadir
- The coordinate system towards whose origin
the positive y coordinate axis of the rotated CS
should point.public int nadirUnitSq(int into, int nadir)
public int scale(int into, float sx, float sy, float sz)
scale
in class AffineVobCoorder
public void setScaleParams(int cs, float sx, float sy, float sz)
setScaleParams
in class AffineVobCoorder
public int box(int into, float w, float h)
box
in class VobCoorder
public void setBoxParams(int cs, float w, float h)
setBoxParams
in class VobCoorder
public int unitSq(int into)
unitSq
in class VobCoorder
public int orthoBox(int into, float z, float x, float y, float sx, float sy, float w, float h)
orthoBox
in class VobCoorder
public void setOrthoBoxParams(int cs, float z, float x, float y, float sx, float sy, float w, float h)
setOrthoBoxParams
in class VobCoorder
public void getSqSize(int cs, float[] into)
VobCoorder
getSqSize
in class VobCoorder
public int distort(int into, float x, float y, float w, float h, float mag, float min)
into
- The parent coordinate system, inside which this cs ismag
- The magnification at its largest, i.e. in the center of the rectangle
defined by x, y, w, hmin
- The magnification at its smallest, i.e. far away from the origin.public void setDistortParams(int cs, float x, float y, float w, float h, float mag, float min)
public int concat(int parent, int child)
public int invert(int parent)
public int cull(int parent, int clip)
VobCoorder
cull
in class VobCoorder
public int cull(int parent, int test, int clip)
VobCoorder
This coordsys will not necessarily be drawn if the boxes of the test and clip coordinate systems do not intersect. However, this is not guaranteed; the only thing guaranteed is that if the boxes of the test and clip coordinate systems *do* intersect, the CullingCoordsys will be drawn.
The default implementation (although this may change in the future) in VobCoorder is to simply return parent.
cull
in class VobCoorder
parent
- ID of the coordinate system which points
will be transformed, if CullingCoordSys
is showntest
- ID of the coordinate system whose box is tested
against the clip coordinate system.clip
- ID of the coordinate system whose box is tested
against the test coordinate system.public void dump()
dump
in class VobCoorder
public void renderInterp(GraphicsAPI.RenderingSurface into, GLVobMap theVobs, int[] csinds, GLVobCoorder other, float fract, boolean standardcoords, boolean showFinal)
public void renderInterp(GL.RenderingSurface into, GLVobMap theVobs, int[] csinds, GLVobCoorder other, float fract, boolean standardcoords, boolean showFinal)
public float timeRender(GL.RenderingSurface into, GLVobMap theVobs, boolean standardcoords, int iters)
public Vob.RenderInfo getRenderInfo(int cs)
getRenderInfo
in class VobCoorder
public boolean needInterp(VobCoorder interpTo, int[] interpList)
needInterp
in class VobCoorder
public float[] transformPoints3(int withCS, float[] points, float[] into)
VobCoorder
transformPoints3
in class VobCoorder
public float[] inverseTransformPoints3(int withCS, float[] points, float[] into)
inverseTransformPoints3
in class VobCoorder
public boolean transformPoints3_interp(int[] interpList, GLVobCoorder other, float fract, boolean show1, int withCS, float[] points, float[] into)
public boolean inverseTransformPoints3_interp(int[] interpList, GLVobCoorder other, float fract, boolean show1, int withCS, float[] points, float[] into)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |