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 floatalphaprotected Drawableeastprotected DrawableeastBgprotected Drawablefarprotected DrawablefarBgprotected Polygon2dlastHullprotected List<Coord3d>lastProjectionprotected Drawablenearprotected DrawablenearBgprotected Drawablenorthprotected DrawablenorthBgprotected Drawablesouthprotected DrawablesouthBgprotected Drawablewestprotected DrawablewestBg-
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 BoundingBox3dgetBounds()Creates and return a BoundingBox3d that embed all available Drawable bounds.Polygon2dgetHull2d()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)voidproject(IPainter painter, Camera cam)voidsetAlphaFactor(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:CompositeCreates and return a BoundingBox3d that embed all available Drawable bounds.
-
project
public void project(IPainter painter, Camera cam)
- Specified by:
projectin interfaceSelectable
-
getHull2d
public Polygon2d getHull2d()
- Specified by:
getHull2din interfaceSelectable
-
getLastProjection
public List<Coord3d> getLastProjection()
- Specified by:
getLastProjectionin interfaceSelectable
-
setAlphaFactor
public void setAlphaFactor(float a)
- Specified by:
setAlphaFactorin interfaceITranslucent
-
-