Package one.empty3.library
Class ZBufferImpl8
- java.lang.Object
-
- one.empty3.library.Representable
-
- one.empty3.library.ZBufferImpl
-
- one.empty3.library.ZBufferImpl8
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
,TemporalComputedObject3D
,MatrixPropertiesObject
,XmlRepresentable
,ZBuffer
public class ZBufferImpl8 extends ZBufferImpl
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ZBufferImpl8.Box2D
class
ZBufferImpl8.Box2DPerspective
class
ZBufferImpl8.ImageMap
class
ZBufferImpl8.ImageMapElement
-
Field Summary
Fields Modifier and Type Field Description protected double
angleX
protected double
angleY
protected ECBufferedImage
bi
ZBufferImpl8.Box2D
box
protected Point3D
camera
protected boolean
colorationActive
static int
DISPLAY_ALL
protected boolean
experimental
protected ZBufferImpl8.ImageMap
ime
static Point3D
INFINI
static double
INFINI_PROF
protected Point3D
planproj
static int
SURFACE_DISPLAY_COL_QUADS
static int
SURFACE_DISPLAY_COL_TRI
static int
SURFACE_DISPLAY_LINES
static int
SURFACE_DISPLAY_POINTS
static int
SURFACE_DISPLAY_TEXT_QUADS
-
Fields inherited from class one.empty3.library.ZBufferImpl
CURVES_MAX_DEEP, CURVES_MAX_SIZE, ha, INFINITY, INFINITY_DEEP, la, SURFACE_DISPLAY_POINTS_DEEP, SURFACE_DISPLAY_POINTS_LARGE, SURFAS_MAX_DEEP, SURFAS_MAX_SIZE
-
Fields inherited from class one.empty3.library.Representable
CFAST, classPainters, DEFAULT_TEXTURE, defaultHashMapData, materiau, NFAST, parent, PATH_ELEM_DOUBLE_VALUES, PATH_ELEM_REPRESENTABLE, PATH_ELEM_STRUCTURE_MATRIX, render, rotation, SCALE1, scene, T, texture, vectors
-
-
Constructor Summary
Constructors Constructor Description ZBufferImpl8()
ZBufferImpl8(int l, int h)
ZBufferImpl8(Resolution resolution)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Point3D
activeLight()
void
activeLight(Point3D l)
boolean
add(java.lang.Double px, java.lang.Double py, java.lang.Double pz, java.lang.Double tx, java.lang.Double ty, java.lang.Double tz, java.lang.Double nx, java.lang.Double ny, java.lang.Double nz, java.lang.Double u, java.lang.Double v, java.lang.Double w, Representable r)
void
applyTex()
ITexture
backgroundTexture()
void
backgroundTexture(ITexture texture)
Camera
camera()
void
camera(Camera c)
Point3D
clickAt(double x, double y)
Point3D
clickAt(int x, int y)
void
couleurDeFond(ITexture couleurFond)
void
dessine(Point3D p, ITexture texture)
void
draw()
void
draw(Representable r)
double
echelleEcran()
java.awt.image.BufferedImage
finishDraw()
Textures and lightsint
getColorAt(java.awt.Point p)
int[]
getData()
int
getDisplayType()
ZBuffer
getInstance(int x, int y)
int
hauteur()
protected long
idImg()
ECBufferedImage
image()
ECBufferedImage
image2()
Point3D
invert(int x, int y, Point3D orig, Camera camera)
boolean
isLocked()
void
isobox(boolean isBox)
int
largeur()
void
line(Point3D p1, Point3D p2, ITexture t)
void
line(Point3D p1, Point3D p2, ITexture texture, double u, double v, double u1, double v1, ParametricSurface surface)
void
line(Point3D p1, Point3D p2, ITexture t, double u, double u1, ParametricCurve curve)
boolean
lock()
Lumiere
lumiereActive()
double[][]
map()
double
maxDistance(java.awt.Point p1, java.awt.Point p2, java.awt.Point p3, java.awt.Point p4)
void
plotPoint(java.awt.Color color, Point3D p)
void
plotPoint(Point3D p)
void
plotPoint(Point3D p, java.awt.Color c)
void
predraw()
Draw buffer with data Iterate on objectsvoid
preprocessor()
java.awt.Image
rendu()
Representable
representableAt(int x, int y)
int
resX()
int
resY()
Scene
scene()
void
scene(Scene s)
void
setAngles(double angleXRad, double angleYRad)
void
setColoration(boolean a)
Deprecated.void
setDimension(int width, int height)
void
setDisplayType(int displayType)
void
testDeep(Point3D p)
void
testDeep(Point3D p, int c)
void
testDeep(Point3D p, java.awt.Color c)
void
testPoint(Point3D p, java.awt.Color c)
void
tracerLumineux()
void
tracerQuad(Point3D pp1, Point3D pp2, Point3D pp3, Point3D pp4, ITexture texture, double u0, double u1, double v0, double v1, ParametricSurface n)
void
tracerTriangle(Point3D pp1, Point3D pp2, Point3D pp3, ITexture c)
void
tracerTriangle(Point3D pp1, Point3D pp2, Point3D pp3, ITexture t, double u0, double u1, double v0, double v1)
boolean
unlock()
void
zoom(float z)
-
Methods inherited from class one.empty3.library.ZBufferImpl
checkScreen, copyResourceFiles, draw, drawElementVolume, ha, idz, idzpp, imageInvX, invert, isFORCE_POSITIVE_NORMALS, itereMaxDist, itereMaxDist, la, mathUtilPow2, next, ratioVerticalAngle, rotate, setFORCE_POSITIVE_NORMALS, testDeep
-
Methods inherited from class one.empty3.library.Representable
become, calculerCurveT, calculerPointT, calculerSurfaceT, compareTo, copy, declarations, declareProperties, draw, drawStructureDrawFast, getCFAST, getDeclaredDataStructure, getDeclaredLists, getDeclaredProperty, getDisplayTypes, getOrientedPoint, getPainter, getPath, getProperty, getPropertyType, getRotation, getTexture, getVectX, getVectY, getVectZ, id, id, informer, intersects, intersects, ISdrawStructureDrawFastIMPLEMENTED, paint, refPoint, replace, setAxes, setCFAST, setOrig, setPainter, setPaintingAct, setPaintingActForClass, setPosition, setProperty, setRotation, setTexture, setVectX, setVectY, setVectZ, supporteTexture, T, texture, texture, toString, xmlRepresentation, xmlRepresentation, xmlRepresentation, xmlRepresentation, xmlRepresentation, xmlRepresentation, xmlRepresentation, xmlRepresentation, xmlRepresentation, xmlRepresentation
-
-
-
-
Field Detail
-
DISPLAY_ALL
public static final int DISPLAY_ALL
- See Also:
- Constant Field Values
-
SURFACE_DISPLAY_TEXT_QUADS
public static final int SURFACE_DISPLAY_TEXT_QUADS
- See Also:
- Constant Field Values
-
SURFACE_DISPLAY_COL_QUADS
public static final int SURFACE_DISPLAY_COL_QUADS
- See Also:
- Constant Field Values
-
SURFACE_DISPLAY_COL_TRI
public static final int SURFACE_DISPLAY_COL_TRI
- See Also:
- Constant Field Values
-
SURFACE_DISPLAY_LINES
public static final int SURFACE_DISPLAY_LINES
- See Also:
- Constant Field Values
-
SURFACE_DISPLAY_POINTS
public static final int SURFACE_DISPLAY_POINTS
- See Also:
- Constant Field Values
-
INFINI_PROF
public static double INFINI_PROF
-
planproj
protected Point3D planproj
-
camera
protected Point3D camera
-
colorationActive
protected boolean colorationActive
-
experimental
protected boolean experimental
-
angleX
protected double angleX
-
angleY
protected double angleY
-
bi
protected ECBufferedImage bi
-
ime
protected ZBufferImpl8.ImageMap ime
-
INFINI
public static Point3D INFINI
-
box
public ZBufferImpl8.Box2D box
-
-
Constructor Detail
-
ZBufferImpl8
public ZBufferImpl8()
-
ZBufferImpl8
public ZBufferImpl8(int l, int h)
-
ZBufferImpl8
public ZBufferImpl8(Resolution resolution)
-
-
Method Detail
-
idImg
protected long idImg()
- Overrides:
idImg
in classZBufferImpl
-
activeLight
public Point3D activeLight()
-
activeLight
public void activeLight(Point3D l)
-
camera
public Camera camera()
- Specified by:
camera
in interfaceZBuffer
- Overrides:
camera
in classZBufferImpl
-
camera
public void camera(Camera c)
- Overrides:
camera
in classZBufferImpl
-
predraw
public void predraw()
Draw buffer with data Iterate on objects
-
finishDraw
public java.awt.image.BufferedImage finishDraw()
Textures and lights- Returns:
- image null
-
draw
public void draw()
- Specified by:
draw
in interfaceZBuffer
- Overrides:
draw
in classZBufferImpl
-
draw
public void draw(Representable r)
- Specified by:
draw
in interfaceZBuffer
- Overrides:
draw
in classZBufferImpl
-
echelleEcran
public double echelleEcran()
- Overrides:
echelleEcran
in classZBufferImpl
-
getColorAt
public int getColorAt(java.awt.Point p)
- Specified by:
getColorAt
in interfaceZBuffer
- Overrides:
getColorAt
in classZBufferImpl
-
getData
public int[] getData()
- Overrides:
getData
in classZBufferImpl
-
getInstance
public ZBuffer getInstance(int x, int y)
- Specified by:
getInstance
in interfaceZBuffer
- Overrides:
getInstance
in classZBufferImpl
-
hauteur
public int hauteur()
- Specified by:
hauteur
in interfaceZBuffer
- Overrides:
hauteur
in classZBufferImpl
-
setDimension
public void setDimension(int width, int height)
- Specified by:
setDimension
in interfaceZBuffer
- Overrides:
setDimension
in classZBufferImpl
-
image
public ECBufferedImage image()
- Specified by:
image
in interfaceZBuffer
- Overrides:
image
in classZBufferImpl
-
image2
public ECBufferedImage image2()
- Overrides:
image2
in classZBufferImpl
-
isLocked
public boolean isLocked()
- Specified by:
isLocked
in interfaceZBuffer
- Overrides:
isLocked
in classZBufferImpl
-
isobox
public void isobox(boolean isBox)
- Specified by:
isobox
in interfaceZBuffer
- Overrides:
isobox
in classZBufferImpl
-
largeur
public int largeur()
- Specified by:
largeur
in interfaceZBuffer
- Overrides:
largeur
in classZBufferImpl
-
line
public void line(Point3D p1, Point3D p2, ITexture t)
- Specified by:
line
in interfaceZBuffer
- Overrides:
line
in classZBufferImpl
-
line
public void line(Point3D p1, Point3D p2, ITexture t, double u, double u1, ParametricCurve curve)
- Overrides:
line
in classZBufferImpl
-
line
public void line(Point3D p1, Point3D p2, ITexture texture, double u, double v, double u1, double v1, ParametricSurface surface)
- Overrides:
line
in classZBufferImpl
-
lock
public boolean lock()
- Specified by:
lock
in interfaceZBuffer
- Overrides:
lock
in classZBufferImpl
-
lumiereActive
public Lumiere lumiereActive()
- Overrides:
lumiereActive
in classZBufferImpl
-
map
public double[][] map()
- Overrides:
map
in classZBufferImpl
-
maxDistance
public double maxDistance(java.awt.Point p1, java.awt.Point p2, java.awt.Point p3, java.awt.Point p4)
- Specified by:
maxDistance
in interfaceZBuffer
- Overrides:
maxDistance
in classZBufferImpl
-
plotPoint
public void plotPoint(java.awt.Color color, Point3D p)
- Overrides:
plotPoint
in classZBufferImpl
-
plotPoint
public void plotPoint(Point3D p)
- Overrides:
plotPoint
in classZBufferImpl
-
plotPoint
public void plotPoint(Point3D p, java.awt.Color c)
- Specified by:
plotPoint
in interfaceZBuffer
- Overrides:
plotPoint
in classZBufferImpl
-
rendu
public java.awt.Image rendu()
- Overrides:
rendu
in classZBufferImpl
-
resX
public int resX()
- Specified by:
resX
in interfaceZBuffer
- Overrides:
resX
in classZBufferImpl
-
resY
public int resY()
- Specified by:
resY
in interfaceZBuffer
- Overrides:
resY
in classZBufferImpl
-
scene
public Scene scene()
- Specified by:
scene
in interfaceZBuffer
- Overrides:
scene
in classZBufferImpl
-
scene
public void scene(Scene s)
- Specified by:
scene
in interfaceZBuffer
- Overrides:
scene
in classZBufferImpl
-
setAngles
public void setAngles(double angleXRad, double angleYRad)
- Overrides:
setAngles
in classZBufferImpl
-
setColoration
@Deprecated public void setColoration(boolean a)
Deprecated.- Overrides:
setColoration
in classZBufferImpl
-
testDeep
public void testDeep(Point3D p, java.awt.Color c)
- Specified by:
testDeep
in interfaceZBuffer
- Overrides:
testDeep
in classZBufferImpl
-
testDeep
public void testDeep(Point3D p, int c)
- Specified by:
testDeep
in interfaceZBuffer
- Overrides:
testDeep
in classZBufferImpl
-
testDeep
public void testDeep(Point3D p)
- Specified by:
testDeep
in interfaceZBuffer
- Overrides:
testDeep
in classZBufferImpl
-
testPoint
public void testPoint(Point3D p, java.awt.Color c)
- Overrides:
testPoint
in classZBufferImpl
-
add
public boolean add(java.lang.Double px, java.lang.Double py, java.lang.Double pz, java.lang.Double tx, java.lang.Double ty, java.lang.Double tz, java.lang.Double nx, java.lang.Double ny, java.lang.Double nz, java.lang.Double u, java.lang.Double v, java.lang.Double w, Representable r)
-
tracerLumineux
public void tracerLumineux()
- Specified by:
tracerLumineux
in interfaceZBuffer
- Overrides:
tracerLumineux
in classZBufferImpl
-
tracerTriangle
public void tracerTriangle(Point3D pp1, Point3D pp2, Point3D pp3, ITexture t, double u0, double u1, double v0, double v1)
- Overrides:
tracerTriangle
in classZBufferImpl
-
tracerQuad
public void tracerQuad(Point3D pp1, Point3D pp2, Point3D pp3, Point3D pp4, ITexture texture, double u0, double u1, double v0, double v1, ParametricSurface n)
- Overrides:
tracerQuad
in classZBufferImpl
-
tracerTriangle
public void tracerTriangle(Point3D pp1, Point3D pp2, Point3D pp3, ITexture c)
- Overrides:
tracerTriangle
in classZBufferImpl
-
unlock
public boolean unlock()
- Specified by:
unlock
in interfaceZBuffer
- Overrides:
unlock
in classZBufferImpl
-
zoom
public void zoom(float z)
- Specified by:
zoom
in interfaceZBuffer
- Overrides:
zoom
in classZBufferImpl
-
backgroundTexture
public ITexture backgroundTexture()
- Specified by:
backgroundTexture
in interfaceZBuffer
- Overrides:
backgroundTexture
in classZBufferImpl
-
couleurDeFond
public void couleurDeFond(ITexture couleurFond)
- Specified by:
couleurDeFond
in interfaceZBuffer
- Overrides:
couleurDeFond
in classZBufferImpl
-
backgroundTexture
public void backgroundTexture(ITexture texture)
- Specified by:
backgroundTexture
in interfaceZBuffer
- Overrides:
backgroundTexture
in classZBufferImpl
-
applyTex
public void applyTex()
- Overrides:
applyTex
in classZBufferImpl
-
preprocessor
public void preprocessor()
-
dessine
public void dessine(Point3D p, ITexture texture)
- Overrides:
dessine
in classZBufferImpl
-
clickAt
public Point3D clickAt(double x, double y)
- Specified by:
clickAt
in interfaceZBuffer
- Overrides:
clickAt
in classZBufferImpl
-
clickAt
public Point3D clickAt(int x, int y)
- Overrides:
clickAt
in classZBufferImpl
-
representableAt
public Representable representableAt(int x, int y)
- Overrides:
representableAt
in classZBufferImpl
-
getDisplayType
public int getDisplayType()
- Specified by:
getDisplayType
in interfaceZBuffer
- Overrides:
getDisplayType
in classZBufferImpl
-
setDisplayType
public void setDisplayType(int displayType)
- Overrides:
setDisplayType
in classZBufferImpl
-
-