Class TexturedCube
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.Drawable
-
- org.jzy3d.plot3d.primitives.Wireframeable
-
- org.jzy3d.plot3d.primitives.Composite
-
- org.jzy3d.plot3d.primitives.textured.TexturedCube
-
- All Implemented Interfaces:
IMultiColorable
,ISingleColorable
,IGLRenderer
,ISortableDraw
,Selectable
,ITranslucent
public class TexturedCube extends Composite implements Selectable, ITranslucent
-
-
Field Summary
Fields Modifier and Type Field Description protected float
alpha
protected Drawable
east
protected Drawable
eastBg
protected Drawable
far
protected Drawable
farBg
protected Polygon2d
lastHull
protected List<Coord3d>
lastProjection
protected Drawable
near
protected Drawable
nearBg
protected Drawable
north
protected Drawable
northBg
protected Drawable
south
protected Drawable
southBg
protected Drawable
west
protected Drawable
westBg
-
Fields inherited from class org.jzy3d.plot3d.primitives.Composite
color, components, detailedToString, mapper, transform
-
Fields 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, wireframeWithLineLoop
-
Fields inherited from class org.jzy3d.plot3d.primitives.Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transformBefore
-
-
Constructor Summary
Constructors Constructor Description TexturedCube(Coord3d position, Color color, Color bgcolor, MaskPair masks)
TexturedCube(Coord3d position, Color color, Color bgcolor, MaskPair masks, float width)
TexturedCube(Coord3d position, MaskPair masks)
TexturedCube(MaskPair masks)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundingBox3d
getBounds()
Creates and return a BoundingBox3d that embed all available Drawable bounds.Polygon2d
getHull2d()
List<Coord3d>
getLastProjection()
static List<Coord2d>
makeXPlaneTextureMapping(Coord3d position, float width)
static List<Coord2d>
makeYPlaneTextureMapping(Coord3d position, float width)
static List<Coord2d>
makeZPlaneTextureMapping(Coord3d position, float width)
void
project(IPainter painter, Camera cam)
void
setAlphaFactor(float a)
-
Methods inherited from class org.jzy3d.plot3d.primitives.Composite
add, add, applyGeometryTransform, canDecompose, clear, draw, get, getColor, getColorMapper, getDrawables, getTransform, isDetailedToString, remove, setColor, setColorMapper, setDetailedToString, setDisplayed, setFaceDisplayed, setMaterialAmbiantReflection, setMaterialDiffuseReflection, setMaterialEmission, setMaterialShininess, setMaterialSpecularReflection, setPolygonOffsetFillEnable, setPolygonWireframeDepthTrick, setReflectLight, setSpaceTransformer, setTransform, setTransformBefore, setWireframeColor, setWireframeColorFromPolygonPoints, setWireframeDisplayed, setWireframeWidth, size, toString, toString, updateBounds
-
Methods 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, setPolygonOffsetFactor, setPolygonOffsetUnit
-
Methods inherited from class org.jzy3d.plot3d.primitives.Drawable
addDrawableListener, asWireframeable, dispose, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setLegend, setLegendDisplayed
-
-
-
-
Field Detail
-
north
protected Drawable north
-
south
protected Drawable south
-
west
protected Drawable west
-
east
protected Drawable east
-
near
protected Drawable near
-
far
protected Drawable far
-
northBg
protected Drawable northBg
-
southBg
protected Drawable southBg
-
westBg
protected Drawable westBg
-
eastBg
protected Drawable eastBg
-
nearBg
protected Drawable nearBg
-
farBg
protected Drawable farBg
-
lastHull
protected Polygon2d lastHull
-
alpha
protected float alpha
-
-
Constructor Detail
-
TexturedCube
public TexturedCube(MaskPair masks)
-
-
Method Detail
-
makeXPlaneTextureMapping
public static List<Coord2d> makeXPlaneTextureMapping(Coord3d position, float width)
-
makeYPlaneTextureMapping
public static List<Coord2d> makeYPlaneTextureMapping(Coord3d position, float width)
-
makeZPlaneTextureMapping
public static List<Coord2d> makeZPlaneTextureMapping(Coord3d position, float width)
-
getBounds
public BoundingBox3d getBounds()
Description copied from class:Composite
Creates and return a BoundingBox3d that embed all available Drawable bounds.
-
project
public void project(IPainter painter, Camera cam)
- Specified by:
project
in interfaceSelectable
-
getHull2d
public Polygon2d getHull2d()
- Specified by:
getHull2d
in interfaceSelectable
-
getLastProjection
public List<Coord3d> getLastProjection()
- Specified by:
getLastProjection
in interfaceSelectable
-
setAlphaFactor
public void setAlphaFactor(float a)
- Specified by:
setAlphaFactor
in interfaceITranslucent
-
-