|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mascotcapsule.micro3d.v3.FigureLayout
This class holds the model rendering data. It holds the required data, specifically the orientation, position and size of a model when rendering to a meta frame buffer, such as an actual screen.
Constructor Summary | |
FigureLayout()
Generates a rendering data object. |
|
FigureLayout(AffineTrans trans,
int sx,
int sy,
int cx,
int cy)
Generates a rendering data object. |
Method Summary | |
AffineTrans |
getAffineTrans()
Gets the affine transformation object settings. |
int |
getCenterX()
Gets the center position x coordinate setting. |
int |
getCenterY()
Gets the center position y coordinate setting. |
int |
getParallelHeight()
Gets parallel projection surface height settings. |
int |
getParallelWidth()
Gets parallel projection surface width settings. |
int |
getScaleX()
Gets the x axis direction scale value setting. |
int |
getScaleY()
Gets the y axis direction scale value setting. |
void |
selectAffineTrans(int idx)
Sets one of the affine transformation sets entered for this object as the actual affine transformation to be used. |
void |
setAffineTrans(AffineTrans trans)
Sets the affine transformation object. |
void |
setAffineTrans(AffineTrans[] trans)
Enters a reference to affine transformation object set. |
void |
setAffineTransArray(AffineTrans[] trans)
Deprecated. Method to be eliminated in the near future. |
void |
setCenter(int cx,
int cy)
Sets the center position coordinates. |
void |
setParallelSize(int w,
int h)
Enters the parallel projection surface width and height. |
void |
setPerspective(int zNear,
int zFar,
int angle)
Specifies the angle of view and enters the prespective projection settings. |
void |
setPerspective(int zNear,
int zFar,
int width,
int height)
Specifies the width and height of the projection surface of the near-clipped surface and enters the perspective projection settings. |
void |
setScale(int sx,
int sy)
Enters the scale value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FigureLayout()
public FigureLayout(AffineTrans trans, int sx, int sy, int cx, int cy)
trans
- Affine transform (no transformation when null)sx
- Scale value in the x axis directionsy
- Scale value in the y axis directioncx
- The x coordinate in the center of the rendering rangecy
- The y coordinate in the center of the rendering rangeMethod Detail |
public final AffineTrans getAffineTrans()
public final void setAffineTrans(AffineTrans trans)
trans
- Affine transformation (no transformation if null)public final void setAffineTransArray(AffineTrans[] trans)
setAffineTrans(AffineTrans[])
public final void setAffineTrans(AffineTrans[] trans)
trans
- Affine transformation set
java.lang.NullPointerException
- When either argument trans is null or any of the elements is null.public final void selectAffineTrans(int idx)
idx
- Index value
java.lang.IllegalArgumentException
- When argument idx is false.public final int getScaleX()
public final int getScaleY()
public final void setScale(int sx, int sy)
sx
- Scale value for the x axis directionsy
- Scale value for the y axis directionpublic final int getParallelWidth()
public final int getParallelHeight()
public final void setParallelSize(int w, int h)
w
- Parallel projection surface widthh
- Parallel projection surface height
java.lang.IllegalArgumentException
- When the argument is a negative number.public final int getCenterX()
public final int getCenterY()
public final void setCenter(int cx, int cy)
cx
- The center position x coordinate in the rendering rangecy
- The center position y coordinate in the rendering rangepublic final void setPerspective(int zNear, int zFar, int angle)
zNear
- Distance from the camera to the near-clipped surfacezFar
- Distance from the camera to the far-clipped surfaceangle
- Angle of view. 360 degrees expressed using 4096.
The valid range is an angle that is greater than zero degrees but less than 180 degrees.
java.lang.IllegalArgumentException
- When the argument is zNear >= zFar.
Argument zNear is smaller than 1 or 32767 or greater.
Argument zFar is smaller than 2 or 32768 or greater.
The argument angle is 0 or smaller or 2048 or greater.public final void setPerspective(int zNear, int zFar, int width, int height)
zNear
- Distance from the camera to the near-clipped surfacezFar
- Distance from the camera to the far-clipped surfacewidth
- Near-clipped projection surface width
(viewing position coordinate system multiplied by 4096, 0 or greater?jheight
- Near-clipped projection surface height
(viewing position coordinate system multiplied by 4096, 0 or greater?j
java.lang.IllegalArgumentException
- When argument zNear >= zFar.
Argument zNear is smaller than 1 or 32767 or greater.
Argument zFar is smaller than 2 or 32768 or greater.
Either the argument width or height is a negative number.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |