org.jcae.viewer3d
Class ViewPyramid

java.lang.Object
  extended by javax.media.j3d.Bounds
      extended by javax.media.j3d.BoundingPolytope
          extended by org.jcae.viewer3d.ViewPyramid
All Implemented Interfaces:
java.lang.Cloneable

public class ViewPyramid
extends javax.media.j3d.BoundingPolytope

A Bound object representing the visible part of the space. It's computed by cutting the infinite pyramid made by the eye and the screen, by the back and front clipping planes.


Constructor Summary
ViewPyramid(javax.media.j3d.Canvas3D canvas)
           
ViewPyramid(javax.media.j3d.Canvas3D canvas, java.awt.Rectangle rectangle)
           
 
Method Summary
 javax.vecmath.Point3d getEye()
          Return the position of the eye in the VWorld
 void getPlanes(javax.vecmath.Vector4d[] planes)
           
 javax.media.j3d.Shape3D getShape3D()
          Return a shape3D representing the current pyramid.
 void getSidePlanes(javax.vecmath.Vector4d[] planes)
           
 javax.vecmath.Point3d getStartPoint()
          Return a point from where to start when picking
 
Methods inherited from class javax.media.j3d.BoundingPolytope
clone, closestIntersection, combine, combine, combine, combine, equals, getNumPlanes, hashCode, intersect, intersect, intersect, intersect, intersect, intersect, isEmpty, set, setPlanes, toString, transform, transform
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViewPyramid

public ViewPyramid(javax.media.j3d.Canvas3D canvas)

ViewPyramid

public ViewPyramid(javax.media.j3d.Canvas3D canvas,
                   java.awt.Rectangle rectangle)
Method Detail

getPlanes

public void getPlanes(javax.vecmath.Vector4d[] planes)
Overrides:
getPlanes in class javax.media.j3d.BoundingPolytope

getStartPoint

public javax.vecmath.Point3d getStartPoint()
Return a point from where to start when picking


getSidePlanes

public void getSidePlanes(javax.vecmath.Vector4d[] planes)

getEye

public javax.vecmath.Point3d getEye()
Return the position of the eye in the VWorld


getShape3D

public javax.media.j3d.Shape3D getShape3D()
Return a shape3D representing the current pyramid. This method aims to be used for debugging.