org.jzy3d.plot3d.primitives.interactive
Class InteractiveSphere

java.lang.Object
  extended by org.jzy3d.plot3d.primitives.AbstractDrawable
      extended by org.jzy3d.plot3d.primitives.AbstractWireframeable
          extended by org.jzy3d.plot3d.primitives.Sphere
              extended by org.jzy3d.plot3d.primitives.interactive.InteractiveSphere
All Implemented Interfaces:
ISingleColorable, IGLRenderer, IInteractive, ISortableDraw, IWireframeable

public class InteractiveSphere
extends Sphere
implements IInteractive


Constructor Summary
InteractiveSphere()
           
InteractiveSphere(Coord3d position, float radius, int slicing, Color color)
           
 
Method Summary
 void draw(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera cam)
          Call OpenGL routines for rendering the object.
 java.awt.Polygon getHull2d()
           
 java.util.List<Coord3d> getLastProjection()
           
 java.util.List<Coord3d> getProjection()
           
 boolean isHighlighted()
           
 void project(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera cam)
           
 void resetHighlighting()
           
 void setHighlighted(boolean value)
           
 void setPosition(Coord3d position)
          Set the position of the Sphere and the dimensions of its boundingbox.
 void setVolume(float radius)
          Set the radius of the sphere, and the dimensions of its boundingbox.
 
Methods inherited from class org.jzy3d.plot3d.primitives.Sphere
getColor, setColor, setData, setSlicing, toString
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractWireframeable
getFaceDisplayed, getWireframeColor, getWireframeDisplayed, getWireframeWidth, setFaceDisplayed, setWireframeColor, setWireframeDisplayed, setWireframeWidth
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
addDrawableListener, dispose, getBarycentre, getBounds, getDistance, getFace, getLongestDistance, getShortestDistance, getTransform, hasFace, isDisplayed, isFace2dDisplayed, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InteractiveSphere

public InteractiveSphere()

InteractiveSphere

public InteractiveSphere(Coord3d position,
                         float radius,
                         int slicing,
                         Color color)
Method Detail

draw

public void draw(javax.media.opengl.GL gl,
                 javax.media.opengl.glu.GLU glu,
                 Camera cam)
Description copied from class: AbstractDrawable
Call OpenGL routines for rendering the object.

Specified by:
draw in interface IGLRenderer
Overrides:
draw in class Sphere
Parameters:
gl - GL context
glu - GLU context
cam - a reference to a shooting Camera.

project

public void project(javax.media.opengl.GL gl,
                    javax.media.opengl.glu.GLU glu,
                    Camera cam)
Specified by:
project in interface IInteractive

getProjection

public java.util.List<Coord3d> getProjection()

setPosition

public void setPosition(Coord3d position)
Description copied from class: Sphere
Set the position of the Sphere and the dimensions of its boundingbox. Note that this position will be use to translate the object before drawing it (meaning a glTranslate(position) is performed right after the Translate.execute).

Overrides:
setPosition in class Sphere

setVolume

public void setVolume(float radius)
Description copied from class: Sphere
Set the radius of the sphere, and the dimensions of its boundingbox.

Overrides:
setVolume in class Sphere
Parameters:
radius - sphere radius

getHull2d

public java.awt.Polygon getHull2d()
Specified by:
getHull2d in interface IInteractive

getLastProjection

public java.util.List<Coord3d> getLastProjection()
Specified by:
getLastProjection in interface IInteractive

setHighlighted

public void setHighlighted(boolean value)

isHighlighted

public boolean isHighlighted()

resetHighlighting

public void resetHighlighting()