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, stacksfacestatus, wfcolor, wfstatus, wfwidthbbox, 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, updateBoundsgetFaceDisplayed, getWireframeColor, getWireframeDisplayed, getWireframeWidth, setFaceDisplayed, setWireframeColor, setWireframeDisplayed, setWireframeWidthaddDrawableListener, 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, vertexGLES2public void draw(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera cam)
AbstractDrawabledraw in interface IGLRendererdraw in class Spheregl - 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 Selectablepublic void setPosition(Coord3d position)
SpheresetPosition in class Spherepublic void setVolume(float radius)
Sphereprotected void buildAnchors()
public Polygon2d getHull2d()
getHull2d in interface Selectablepublic List<Coord3d> getLastProjection()
getLastProjection in interface Selectablepublic void setHighlighted(boolean value)
public boolean isHighlighted()
public void resetHighlighting()
Copyright © 2016. All rights reserved.