Class SelectableSphere
java.lang.Object
org.jzy3d.plot3d.primitives.Drawable
org.jzy3d.plot3d.primitives.Wireframeable
org.jzy3d.plot3d.primitives.Sphere
org.jzy3d.plot3d.primitives.selectable.SelectableSphere
- All Implemented Interfaces:
ISingleColorable,IGLRenderer,ISortableDraw,Selectable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intFields inherited from class org.jzy3d.plot3d.primitives.Sphere
color, position, radius, slices, stacksFields inherited from class org.jzy3d.plot3d.primitives.Wireframeable
depthFunctionChangeForWireframe, faceDisplayed, materialAmbiantReflection, materialDiffuseReflection, materialEmission, materialShininess, materialSpecularReflection, NO_OVERLAP_DEPTH_RATIO, polygonOffsetFactor, polygonOffsetFillEnable, polygonOffsetUnit, polygonWireframeDepthTrick, reflectLight, wireframeColor, wireframeColorFromPolygonPoints, wireframeDisplayed, wireframeWidth, wireframeWithLineLoopFields inherited from class org.jzy3d.plot3d.primitives.Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildAnchors(Coord3d position, float radius) voidCall OpenGL2 routines for rendering the object.booleanvoidvoidvoidsetHighlighted(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, doDrawSphere, getColor, getPosition, setColor, setData, setSlicing, toString, updateBoundsMethods inherited from class org.jzy3d.plot3d.primitives.Wireframeable
applyDepthRangeDefault, applyDepthRangeForOverlying, applyDepthRangeForUnderlying, applyMaterial, doDrawBoundsIfDisplayed, getMaterialAmbiantReflection, getMaterialDiffuseReflection, getMaterialEmission, getMaterialShininess, getMaterialSpecularReflection, getPolygonOffsetFactor, getPolygonOffsetUnit, getWireframeColor, getWireframeWidth, isFaceDisplayed, isPolygonOffsetFillEnable, isPolygonWireframeDepthTrick, isReflectLight, isWireframeColorFromPolygonPoints, isWireframeDisplayed, polygonOffsetFillDisable, polygonOffsetFillEnable, polygonOffsetLineDisable, polygonOffsetLineEnable, setFaceDisplayed, setMaterialAmbiantReflection, setMaterialDiffuseReflection, setMaterialEmission, setMaterialShininess, setMaterialSpecularReflection, setPolygonOffsetFactor, setPolygonOffsetFillEnable, setPolygonOffsetUnit, setPolygonWireframeDepthTrick, setReflectLight, setWireframeColor, setWireframeColorFromPolygonPoints, setWireframeDisplayed, setWireframeWidthMethods inherited from class org.jzy3d.plot3d.primitives.Drawable
addDrawableListener, asWireframeable, dispose, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString
-
Field Details
-
anchors
-
PRECISION
protected int PRECISION -
isHighlighted
protected boolean isHighlighted -
projection
-
-
Constructor Details
-
SelectableSphere
public SelectableSphere() -
SelectableSphere
-
-
Method Details
-
draw
Description copied from class:DrawableCall OpenGL2 routines for rendering the object.- Specified by:
drawin interfaceIGLRenderer- Overrides:
drawin classSphere
-
project
- Specified by:
projectin interfaceSelectable
-
getProjection
-
setPosition
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. -
buildAnchors
protected void buildAnchors() -
buildAnchors
-
getHull2d
- Specified by:
getHull2din interfaceSelectable
-
getLastProjection
- Specified by:
getLastProjectionin interfaceSelectable
-
setHighlighted
public void setHighlighted(boolean value) -
isHighlighted
public boolean isHighlighted() -
resetHighlighting
public void resetHighlighting()
-