public class SelectableSphere extends Sphere implements Selectable
Modifier and Type | Field and Description |
---|---|
protected List<Coord3d> |
anchors |
protected boolean |
isHighlighted |
protected int |
PRECISION |
protected List<Coord3d> |
projection |
color, glut, position, radius, slices, stacks
facestatus, wfcolor, wfstatus, wfwidth
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore
Constructor and Description |
---|
SelectableSphere() |
SelectableSphere(Coord3d position,
float radius,
int slicing,
Color color) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildAnchors() |
protected List<Coord3d> |
buildAnchors(Coord3d position,
float radius) |
void |
draw(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera cam)
Call OpenGL2 routines for rendering the object.
|
Polygon2d |
getHull2d() |
List<Coord3d> |
getLastProjection() |
List<Coord3d> |
getProjection() |
boolean |
isHighlighted() |
void |
project(com.jogamp.opengl.GL gl,
com.jogamp.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.
|
applyGeometryTransform, getColor, getPosition, setColor, setData, setSlicing, toString, updateBounds
getFaceDisplayed, getWireframeColor, getWireframeDisplayed, getWireframeWidth, setFaceDisplayed, setWireframeColor, setWireframeDisplayed, setWireframeWidth
addDrawableListener, call, call, callWithAlphaFactor, colorGL2, colorGLES2, dispose, doDrawBounds, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, vertexGL2, vertexGLES2
public void draw(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)
AbstractDrawable
draw
in interface IGLRenderer
draw
in class Sphere
gl
- GL2 contextglu
- GLU contextcam
- a reference to a shooting Camera.public void project(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)
project
in interface Selectable
public void setPosition(Coord3d position)
Sphere
setPosition
in class Sphere
public void setVolume(float radius)
Sphere
protected void buildAnchors()
public Polygon2d getHull2d()
getHull2d
in interface Selectable
public List<Coord3d> getLastProjection()
getLastProjection
in interface Selectable
public void setHighlighted(boolean value)
public boolean isHighlighted()
public void resetHighlighting()
Copyright © 2016. All rights reserved.