|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.rendering.r3d.ViewParams
public class ViewParams
Encapsulates the relevant viewing and projection parameters that are needed for performing view frustum culling and LOD (level-of-detail) adaptation.
| Constructor Summary | |
|---|---|
ViewParams(javax.vecmath.Point3d eye,
javax.vecmath.Point3d lookingAt,
javax.vecmath.Vector3d viewerUp,
double fovy,
double zNear,
double zFar)
|
|
ViewParams(ViewFrustum vf,
int projectionWidth,
int projectionHeight)
Creates a new ViewParams instance from the given parameters. |
|
| Method Summary | |
|---|---|
double |
estimatePixelSizeForSpaceUnit(double dist)
Returns a guaranteed upper bound for the size that a world-space unit (e.g. a line with length 1) has in pixels after perspective projection, i.e. in pixels on the screen. |
int |
getScreenPixelsX()
Returns the number of pixels of the projected image in x direction. |
int |
getScreenPixelsY()
Returns the number of pixels of the projected image in y direction. |
ViewFrustum |
getViewFrustum()
Returns the view frustum (volume visible to the viewer). |
void |
setProjectionPlaneDimensions(int width,
int height)
Set the new projection plane dimensions |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ViewParams(javax.vecmath.Point3d eye,
javax.vecmath.Point3d lookingAt,
javax.vecmath.Vector3d viewerUp,
double fovy,
double zNear,
double zFar)
eye - lookingAt - viewerUp - fovy - zNear - zFar -
public ViewParams(ViewFrustum vf,
int projectionWidth,
int projectionHeight)
ViewParams instance from the given parameters.
vf - view frustum (volume visible to the viewer)projectionWidth - number of pixels of the projected image in the x directionprojectionHeight - number of pixels of the projected image in the y direction| Method Detail |
|---|
public ViewFrustum getViewFrustum()
public int getScreenPixelsX()
public int getScreenPixelsY()
public double estimatePixelSizeForSpaceUnit(double dist)
dist - distance of the object (from the point-of-view)
public void setProjectionPlaneDimensions(int width,
int height)
width - height - public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||