Codota Logo
ViewFrustum.setPerspectiveParams
Code IndexAdd Codota to your IDE (free)

How to use
setPerspectiveParams
method
in
org.deegree.rendering.r3d.ViewFrustum

Best Java code snippets using org.deegree.rendering.r3d.ViewFrustum.setPerspectiveParams (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: deegree/deegree3

/**
 * Create a viewFrustum from the given parameters.
 * 
 * @param eye
 * @param lookingAt
 * @param up
 * @param fovy
 *            the field-of-view in y direction
 * @param aspect
 * @param zNear
 * @param zFar
 */
public ViewFrustum( Point3d eye, Point3d lookingAt, Vector3d up, double fovy, double aspect, double zNear,
          double zFar ) {
  setPerspectiveParams( fovy, aspect, zNear, zFar );
  setCameraParams( eye, lookingAt, up );
}
origin: deegree/deegree3

/**
 * Create a view Frustum by using the given roll, pitch, yaw and distance to the point of interest (looking at), to
 * calculate the eye and the up vector.
 * 
 * @param pitch
 * @param yaw
 * @param roll
 * @param distance
 * @param lookingAt
 * @param fovy
 *            the field-of-view in y direction
 * @param aspect
 * @param zNear
 * @param zFar
 */
public ViewFrustum( double pitch, double yaw, double roll, double distance, Point3d lookingAt, double fovy,
          double aspect, double zNear, double zFar ) {
  Point3d calculatedEye = calcObserPosition( lookingAt, pitch, yaw, distance );
  Vector3d calculatedUp = calcUp( roll, calculatedEye, lookingAt );
  setPerspectiveParams( fovy, aspect, zNear, zFar );
  setCameraParams( calculatedEye, lookingAt, calculatedUp );
}
origin: deegree/deegree3

/**
 * Set the new projection plane dimensions
 * 
 * @param width
 * @param height
 */
public void setProjectionPlaneDimensions( int width, int height ) {
  projectionWidth = width;
  projectionHeight = height;
  double aspect = (double) width / height;
  vf.setPerspectiveParams( vf.getFOVY(), aspect, vf.getZNear(), vf.getZFar() );
  vf.setCameraParams( vf.getEyePos(), vf.getLookingAt(), vf.getUp() );
}
org.deegree.rendering.r3dViewFrustumsetPerspectiveParams

Javadoc

Sets the view frustum parameters that correspond to the perspective transformation matrix.

The parameters correspond to those of the OpenGL gluPerspective() function.

NOTE: When this method is called, it is necessary to call #setCameraParams(Point3d,Point3d,Vector3d)afterwards, so the internal state is consistent.

Popular methods of ViewFrustum

  • getEyePos
  • getFOVY
  • getLookingAt
  • getUp
  • getZFar
  • getZNear
  • <init>
    Create a viewFrustum from the given parameters.
  • calcObserPosition
    Calculate the position of the viewer regarding the yaw and the pitch.
  • calcUp
    The up vector only depends on the roll
  • intersects
  • intersectsFrustum
  • moveForward
    Move the viewfrustum to the forward (according to the view direction).
  • intersectsFrustum,
  • moveForward,
  • moveRight,
  • moveUp,
  • rotate,
  • rotateX,
  • rotateY,
  • rotateZ,
  • setCameraParams

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • getSystemService (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now