org.jzy3d.plot3d.primitives.selectable
Class SelectableSphere
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.AbstractDrawable
-
- org.jzy3d.plot3d.primitives.AbstractWireframeable
-
- org.jzy3d.plot3d.primitives.Sphere
-
- org.jzy3d.plot3d.primitives.selectable.SelectableSphere
-
- All Implemented Interfaces:
- ISingleColorable, IGLRenderer, ISortableDraw, Selectable
public class SelectableSphere extends Sphere implements Selectable
-
-
Constructor Summary
Constructors Constructor and Description SelectableSphere()SelectableSphere(Coord3d position, float radius, int slicing, Color color)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddraw(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)Call OpenGL2 routines for rendering the object.Polygon2dgetHull2d()java.util.List<Coord3d>getLastProjection()java.util.List<Coord3d>getProjection()booleanisHighlighted()voidproject(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)voidresetHighlighting()voidsetHighlighted(boolean value)voidsetPosition(Coord3d position)Set the position of the Sphere and the dimensions of its boundingbox.voidsetVolume(float radius)Set the radius of the sphere, and the dimensions of its boundingbox.-
Methods inherited from class org.jzy3d.plot3d.primitives.Sphere
applyGeometryTransform, getColor, getPosition, setColor, setData, setSlicing, toString, updateBounds
-
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, doTransform, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString
-
-
-
-
Method Detail
-
draw
public void draw(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)Description copied from class:AbstractDrawableCall OpenGL2 routines for rendering the object.- Specified by:
drawin interfaceIGLRenderer- Overrides:
drawin classSphere- Parameters:
gl- GL2 contextglu- GLU contextcam- a reference to a shooting Camera.
-
project
public void project(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)- Specified by:
projectin interfaceSelectable
-
getProjection
public java.util.List<Coord3d> getProjection()
-
setPosition
public void setPosition(Coord3d position)
Description copied from class:SphereSet 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:
setPositionin classSphere
-
setVolume
public void setVolume(float radius)
Description copied from class:SphereSet the radius of the sphere, and the dimensions of its boundingbox.
-
getHull2d
public Polygon2d getHull2d()
- Specified by:
getHull2din interfaceSelectable
-
getLastProjection
public java.util.List<Coord3d> getLastProjection()
- Specified by:
getLastProjectionin interfaceSelectable
-
setHighlighted
public void setHighlighted(boolean value)
-
isHighlighted
public boolean isHighlighted()
-
resetHighlighting
public void resetHighlighting()
-
-
DMelt 3.0 © DataMelt by jWork.ORG