Tabnine Logo
View.setFieldOfView
Code IndexAdd Tabnine to your IDE (free)

How to use
setFieldOfView
method
in
javax.media.j3d.View

Best Java code snippets using javax.media.j3d.View.setFieldOfView (Showing top 2 results out of 315)

origin: com.googlecode.princeton-java-introduction/stdlib

/**
 * Sets the projection mode to perspective projection with the
 * given field of view. In this mode, closer objects appear
 * larger, as in real life. A larger field of view means that
 * there is more perspective distortion. Reasonable values are
 * between 0.5 and 3.0.
 * 
 * @param fov The field of view to use. Try [0.5-3.0].
 */
public static void setPerspectiveProjection (double fov) {
  view.setProjectionPolicy(View.PERSPECTIVE_PROJECTION);
  view.setWindowEyepointPolicy(View.RELATIVE_TO_FIELD_OF_VIEW);
  view.setFieldOfView(fov);
  setScreenScale(1);
  orbit.setZoomEnable(true);
  perspectiveButton.setSelected(true);
  if ((Double)fovSpinner.getValue() != fov)
    fovSpinner.setValue(fov);
  //if (view.getProjectionPolicy() == View.PERSPECTIVE_PROJECTION) return;
}
origin: com.github.fracpete/princeton-java-stdlib

/**
 * Sets the projection mode to perspective projection with the
 * given field of view. In this mode, closer objects appear
 * larger, as in real life. A larger field of view means that
 * there is more perspective distortion. Reasonable values are
 * between 0.5 and 3.0.
 * 
 * @param fov The field of view to use. Try [0.5-3.0].
 */
public static void setPerspectiveProjection (double fov) {
  view.setProjectionPolicy(View.PERSPECTIVE_PROJECTION);
  view.setWindowEyepointPolicy(View.RELATIVE_TO_FIELD_OF_VIEW);
  view.setFieldOfView(fov);
  setScreenScale(1);
  orbit.setZoomEnable(true);
  perspectiveButton.setSelected(true);
  if ((Double)fovSpinner.getValue() != fov)
    fovSpinner.setValue(fov);
  //if (view.getProjectionPolicy() == View.PERSPECTIVE_PROJECTION) return;
}
javax.media.j3dViewsetFieldOfView

Popular methods of View

  • setBackClipDistance
  • setFrontClipDistance
  • addCanvas3D
  • getBackClipDistance
  • getFrontClipDistance
  • getProjectionPolicy
  • getSceneAntialiasingEnable
  • getScreenScale
  • removeAllCanvas3Ds
  • setLocalEyeLightingEnable
  • setProjectionPolicy
  • setSceneAntialiasingEnable
  • setProjectionPolicy,
  • setSceneAntialiasingEnable,
  • setScreenScale,
  • setScreenScalePolicy,
  • setTransparencySortingPolicy,
  • setWindowEyepointPolicy,
  • <init>,
  • attachViewPlatform,
  • getFieldOfView

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now