Package one.empty3.library
Class ZBufferImpl8
java.lang.Object
one.empty3.library.Representable
one.empty3.library.ZBufferImpl
one.empty3.library.ZBufferImpl8
- All Implemented Interfaces:
Serializable
,Comparable
,TemporalComputedObject3D
,MatrixPropertiesObject
,XmlRepresentable
,ZBuffer
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
class
class
class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double
protected double
protected ECBufferedImage
protected Point3D
protected boolean
static final int
protected boolean
protected ZBufferImpl8.ImageMap
static Point3D
static double
protected Point3D
static final int
static final int
static final int
static final int
static final int
Fields inherited from class one.empty3.library.ZBufferImpl
CHECKED_POINT_SIZE_QUADS, CHECKED_POINT_SIZE_TRI, CURVES_MAX_DEEP, CURVES_MAX_SIZE, FORCE_POSITIVE_NORMALS, ha, INFINITY, INFINITY_DEEP, la, scale, 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, NFAST, parent, PATH_ELEM_DOUBLE_VALUES, PATH_ELEM_REPRESENTABLE, PATH_ELEM_STRUCTURE_MATRIX, render, rotation, SCALE1, scene, T, texture, vectors
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
add
(Double px, Double py, Double pz, Double tx, Double ty, Double tz, Double nx, Double ny, Double nz, Double u, Double v, Double w, Representable r) void
applyTex()
void
backgroundTexture
(ITexture texture) camera()
void
clickAt
(double x, double y) clickAt
(int x, int y) void
couleurDeFond
(ITexture couleurFond) void
void
draw()
void
double
Textures and lightsint
getColorAt
(Point p) int[]
getData()
int
getInstance
(int x, int y) int
hauteur()
protected long
idImg()
image()
image2()
boolean
isLocked()
void
isobox
(boolean isBox) int
largeur()
void
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()
double[][]
map()
void
void
void
void
predraw()
Draw buffer with data Iterate on objectsvoid
rendu()
representableAt
(int x, int y) int
resX()
int
resY()
scene()
void
void
setAngles
(double angleXRad, double angleYRad) void
setColoration
(boolean a) Deprecated.void
setDimension
(int width, int height) void
setDisplayType
(int displayType) void
void
void
void
void
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, getScale, ha, idz, idzpp, imageInvX, invert, isFORCE_POSITIVE_NORMALS, itereMaxDist, itereMaxDist, la, mathUtilPow2, maxDistance, next, ratioVerticalAngle, rotate, setCheckedOccupied, setFORCE_POSITIVE_NORMALS, setScale, testDeep, testDeep, tracerAretes, tracerLines
Methods inherited from class one.empty3.library.Representable
become, calculerCurveT, calculerPointT, calculerSurfaceT, compareTo, computeCubic, computeSpherical, copy, declarations, declareProperties, draw, drawStructureDrawFast, getCFAST, getDeclaredDataStructure, getDeclaredLists, getDeclaredProperty, getDisplayTypes, getOrientedPoint, getOrig, getPainter, getPath, getProperty, getPropertyType, getRotation, getTexture, getVectors, 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 Details
-
DISPLAY_ALL
public static final int DISPLAY_ALL- See Also:
-
SURFACE_DISPLAY_TEXT_QUADS
public static final int SURFACE_DISPLAY_TEXT_QUADS- See Also:
-
SURFACE_DISPLAY_COL_QUADS
public static final int SURFACE_DISPLAY_COL_QUADS- See Also:
-
SURFACE_DISPLAY_COL_TRI
public static final int SURFACE_DISPLAY_COL_TRI- See Also:
-
SURFACE_DISPLAY_LINES
public static final int SURFACE_DISPLAY_LINES- See Also:
-
SURFACE_DISPLAY_POINTS
public static final int SURFACE_DISPLAY_POINTS- See Also:
-
INFINI_PROF
public static double INFINI_PROF -
planproj
-
camera
-
colorationActive
protected boolean colorationActive -
experimental
protected boolean experimental -
angleX
protected double angleX -
angleY
protected double angleY -
bi
-
ime
-
INFINI
-
box
-
-
Constructor Details
-
ZBufferImpl8
public ZBufferImpl8() -
ZBufferImpl8
public ZBufferImpl8(int l, int h) -
ZBufferImpl8
-
-
Method Details
-
idImg
protected long idImg()- Overrides:
idImg
in classZBufferImpl
-
activeLight
-
activeLight
-
camera
- Specified by:
camera
in interfaceZBuffer
- Overrides:
camera
in classZBufferImpl
-
camera
- Overrides:
camera
in classZBufferImpl
-
predraw
public void predraw()Draw buffer with data Iterate on objects -
finishDraw
Textures and lights- Returns:
- image null
-
draw
public void draw()- Specified by:
draw
in interfaceZBuffer
- Overrides:
draw
in classZBufferImpl
-
draw
- Specified by:
draw
in interfaceZBuffer
- Overrides:
draw
in classZBufferImpl
-
echelleEcran
public double echelleEcran()- Overrides:
echelleEcran
in classZBufferImpl
-
getColorAt
- Specified by:
getColorAt
in interfaceZBuffer
- Overrides:
getColorAt
in classZBufferImpl
-
getData
public int[] getData()- Overrides:
getData
in classZBufferImpl
-
getInstance
- 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
- Specified by:
image
in interfaceZBuffer
- Overrides:
image
in classZBufferImpl
-
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
- Specified by:
line
in interfaceZBuffer
- Overrides:
line
in classZBufferImpl
-
line
- 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
- Overrides:
lumiereActive
in classZBufferImpl
-
map
public double[][] map()- Overrides:
map
in classZBufferImpl
-
plotPoint
- Overrides:
plotPoint
in classZBufferImpl
-
plotPoint
- Overrides:
plotPoint
in classZBufferImpl
-
plotPoint
- Specified by:
plotPoint
in interfaceZBuffer
- Overrides:
plotPoint
in classZBufferImpl
-
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
- Specified by:
scene
in interfaceZBuffer
- Overrides:
scene
in classZBufferImpl
-
scene
- Specified by:
scene
in interfaceZBuffer
- Overrides:
scene
in classZBufferImpl
-
setAngles
public void setAngles(double angleXRad, double angleYRad) - Overrides:
setAngles
in classZBufferImpl
-
setColoration
Deprecated.- Overrides:
setColoration
in classZBufferImpl
-
testDeep
- Specified by:
testDeep
in interfaceZBuffer
- Overrides:
testDeep
in classZBufferImpl
-
testDeep
- Specified by:
testDeep
in interfaceZBuffer
- Overrides:
testDeep
in classZBufferImpl
-
testDeep
- Specified by:
testDeep
in interfaceZBuffer
- Overrides:
testDeep
in classZBufferImpl
-
testPoint
- Overrides:
testPoint
in classZBufferImpl
-
add
-
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
- 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
- Specified by:
backgroundTexture
in interfaceZBuffer
- Overrides:
backgroundTexture
in classZBufferImpl
-
couleurDeFond
- Specified by:
couleurDeFond
in interfaceZBuffer
- Overrides:
couleurDeFond
in classZBufferImpl
-
backgroundTexture
- Specified by:
backgroundTexture
in interfaceZBuffer
- Overrides:
backgroundTexture
in classZBufferImpl
-
applyTex
public void applyTex()- Overrides:
applyTex
in classZBufferImpl
-
preprocessor
public void preprocessor() -
dessine
- Overrides:
dessine
in classZBufferImpl
-
clickAt
- Specified by:
clickAt
in interfaceZBuffer
- Overrides:
clickAt
in classZBufferImpl
-
clickAt
- Overrides:
clickAt
in classZBufferImpl
-
representableAt
- Overrides:
representableAt
in classZBufferImpl
-
invert
-
getDisplayType
public int getDisplayType()- Specified by:
getDisplayType
in interfaceZBuffer
- Overrides:
getDisplayType
in classZBufferImpl
-
setDisplayType
public void setDisplayType(int displayType) - Overrides:
setDisplayType
in classZBufferImpl
-