|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViewEnvironmentCullable
A cullable that represents the viewing set up within a given layer.
The view environment tells the system how to project the world on to the rendering plane courtesy of the projection type. Three projection types are currently defined: perspective, orthographic and custom.
Field Summary | |
---|---|
static int |
CUSTOM_PROJECTION
The projection type is a custom projection matrix |
static int |
INFINITE_PROJECTION
The projection type is a infinite perspective matrix |
static int |
ORTHOGRAPHIC_PROJECTION
The projection type is perspective mode |
static int |
PERSPECTIVE_PROJECTION
The projection type is perspective mode |
static int |
VIEW_HEIGHT
Index into the viewport size array for the height |
static int |
VIEW_WIDTH
Index into the viewport size array for the width |
static int |
VIEW_X
Index into the viewport size array for the X position |
static int |
VIEW_Y
Index into the viewport size array for the Y position |
Method Summary | |
---|---|
double |
getFieldOfView()
Get the currently set field of view. |
void |
getProjectionMatrix(float[] matrix)
Get the projection matrix that is generated for this environment. |
int |
getProjectionType()
Get the type of view environment defined. |
int[] |
getScissorDimensions()
Get the currently set dimensions of the scissor area. |
void |
getViewFrustum(double[] frustum)
Get the frustum based on the projectionType. |
int[] |
getViewportDimensions()
Get the currently set dimensions of the viewport. |
boolean |
isStereoEnabled()
Check to see if stereo has been enabled for this environment. |
Field Detail |
---|
static final int PERSPECTIVE_PROJECTION
static final int ORTHOGRAPHIC_PROJECTION
static final int INFINITE_PROJECTION
static final int CUSTOM_PROJECTION
static final int VIEW_X
static final int VIEW_Y
static final int VIEW_WIDTH
static final int VIEW_HEIGHT
Method Detail |
---|
boolean isStereoEnabled()
int getProjectionType()
void getViewFrustum(double[] frustum)
frustum
- An array at least 6 in length for the values generateddouble getFieldOfView()
int[] getViewportDimensions()
int[] getScissorDimensions()
void getProjectionMatrix(float[] matrix)
matrix
- An array of length 16 to put the projection matrix in to.
The format is row-major
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |