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

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

Best Java code snippets using org.deegree.rendering.r3d.ViewFrustum.getZNear (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

/**
 * 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() );
}
origin: deegree/deegree3

/**
 * @param gl
 */
private void reshape( GL gl ) {
  float aspect = (float) width / (float) height;
  LOG.trace( "reshape( GLAutoDrawable, " + 0 + ", " + 0 + ", " + width + ", " + height + " ) called, aspect: "
        + aspect );
  gl.glMatrixMode( GL.GL_PROJECTION );
  gl.glLoadIdentity();
  gl.glViewport( 0, 0, width, height );
  glu.gluPerspective( viewParams.getViewFrustum().getFOVY(), aspect, viewParams.getViewFrustum().getZNear(),
            viewParams.getViewFrustum().getZFar() );
  gl.glMatrixMode( GL.GL_MODELVIEW );
}
origin: deegree/deegree3

@Override
public void reshape( GLAutoDrawable drawable, int x, int y, int width, int height ) {
  float aspect = (float) width / (float) height;
  LOG.info( "reshape( GLAutoDrawable, " + x + ", " + y + ", " + width + ", " + height + " ) called, aspect: "
       + aspect );
  params.setProjectionPlaneDimensions( width, height );
  GL gl = drawable.getGL();
  gl.glViewport( x, y, width, height );
  gl.glMatrixMode( GL.GL_PROJECTION );
  gl.glLoadIdentity();
  glu.gluPerspective( params.getViewFrustum().getFOVY(), aspect, params.getViewFrustum().getZNear(),
            params.getViewFrustum().getZFar() );
  // glu.gluPerspective( params.getViewFrustum().getFOVY(), aspect, 0.01, 1000 );
  gl.glMatrixMode( GL.GL_MODELVIEW );
}
org.deegree.rendering.r3dViewFrustumgetZNear

Popular methods of ViewFrustum

  • getEyePos
  • getFOVY
  • getLookingAt
  • getUp
  • getZFar
  • <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).
  • moveRight
    Move the viewfrustum to the right (according to the view direction).
  • moveForward,
  • moveRight,
  • moveUp,
  • rotate,
  • rotateX,
  • rotateY,
  • rotateZ,
  • setCameraParams,
  • setPerspectiveParams

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • requestLocationUpdates (LocationManager)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
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