Package one.empty3.library
Class ZBufferImpl
java.lang.Object
one.empty3.library.Representable
one.empty3.library.ZBufferImpl
- All Implemented Interfaces:
Serializable
,Comparable
,TemporalComputedObject3D
,MatrixPropertiesObject
,XmlRepresentable
,ZBuffer
- Direct Known Subclasses:
ZBufferImpl8
,ZBufferImplRecursive
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
class
class
class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double
protected double
protected ECBufferedImage
static final int
static final int
protected boolean
protected Scene
static int
static int
protected int
protected int
static final int
protected int
protected boolean
protected int
protected int
static Point3D
static double
protected int
protected boolean
protected StructureMatrix<Double>
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static int
static int
protected float
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
applyTex()
void
backgroundTexture
(ITexture texture) camera()
void
boolean
checkScreen
(Point p1) clickAt
(double x, double y) clickAt
(int x, int y) void
copyResourceFiles
(File destDirectory) void
couleurDeFond
(ITexture couleurFond) void
void
draw()
void
draw
(Collection<Object> collection) void
void
drawElementVolume
(Representable representable, ParametricVolume volume) double
int
getColorAt
(Point p) int[]
getData()
int
getInstance
(int x, int y) double
getScale()
int
ha()
int
hauteur()
protected long
idImg()
int
idz()
void
idzpp()
image()
image2()
boolean
boolean
isLocked()
void
isobox
(boolean isBox) void
itereMaxDist
(List<Double[]> polygons, ParametricSurface ps, double u0, double u1, double v0, double v1, ParametricVolume v) void
itereMaxDist
(List<Double> points, ParametricCurve pc, double pStart, double pEnd, ParametricVolume v) int
la()
int
largeur()
void
void
line
(Point3D p1, Point3D p2, ITexture texture, double u1, double v1, double u2, double v2, ParametricSurface surface) void
line
(Point3D p1, Point3D p2, ITexture t, double u, double u1, ParametricCurve curve) boolean
lock()
double[][]
map()
double
mathUtilPow2
(Point p1, Point p2) double
maxDistance
(Point... points) void
next()
void
void
void
void
rendu()
representableAt
(int x, int y) int
resX()
int
resY()
rotate
(Point3D p0, Representable ref) scene()
void
void
setAngles
(double angleXRad, double angleYRad) void
setCheckedOccupied
(boolean checkedOccupied) void
setColoration
(boolean a) Deprecated.void
setDimension
(int width, int height) void
setDisplayType
(int displayType) void
setFORCE_POSITIVE_NORMALS
(boolean FORCE_POSITIVE_NORMALS) void
setScale
(double scale) void
void
void
void
testDeep
(Point3D pFinal, ITexture texture, double u, double v, ParametricCurve n) void
testDeep
(Point3D pFinal, ITexture texture, double u, double v, ParametricSurface n) void
protected void
tracerAretes
(Point3D point3d, Point3D point3d2, Color c) protected void
tracerLines
(Point3D p1, Point3D p2, Point3D p3, Point3D p4, ITexture texture, double u1, double v1, double u2, double v2, ParametricSurface n) 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 v0, double u1, double v1) boolean
unlock()
void
zoom
(float z) 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
-
CHECKED_POINT_SIZE_TRI
public static final int CHECKED_POINT_SIZE_TRI- See Also:
-
CHECKED_POINT_SIZE_QUADS
public static final int CHECKED_POINT_SIZE_QUADS- See Also:
-
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_TEXT_TRI
public static final int SURFACE_DISPLAY_TEXT_TRI- 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:
-
SURFACE_DISPLAY_POINTS_DEEP
public static final int SURFACE_DISPLAY_POINTS_DEEP- See Also:
-
SURFACE_DISPLAY_POINTS_LARGE
public static final int SURFACE_DISPLAY_POINTS_LARGE- See Also:
-
CURVES_MAX_SIZE
public static int CURVES_MAX_SIZE -
SURFAS_MAX_SIZE
public static int SURFAS_MAX_SIZE -
CURVES_MAX_DEEP
public static int CURVES_MAX_DEEP -
SURFAS_MAX_DEEP
public static int SURFAS_MAX_DEEP -
INFINITY_DEEP
public static double INFINITY_DEEP -
INFINITY
-
ime
-
box
-
colorationActive
protected boolean colorationActive -
angleX
protected double angleX -
angleY
protected double angleY -
bi
-
ha
protected int ha -
la
protected int la -
zoom
protected float zoom -
locked
protected boolean locked -
idImg
protected int idImg -
dimx
protected int dimx -
dimy
protected int dimy -
currentScene
-
displayType
protected int displayType -
FORCE_POSITIVE_NORMALS
protected boolean FORCE_POSITIVE_NORMALS -
scale
-
-
Constructor Details
-
ZBufferImpl
public ZBufferImpl() -
ZBufferImpl
public ZBufferImpl(int l, int h) -
ZBufferImpl
-
-
Method Details
-
copyResourceFiles
- Specified by:
copyResourceFiles
in interfaceZBuffer
-
idImg
protected long idImg() -
camera
-
camera
-
draw
public void draw() -
rotate
- Overrides:
rotate
in classRepresentable
-
draw
-
draw
-
tracerLines
-
echelleEcran
public double echelleEcran() -
getColorAt
- Specified by:
getColorAt
in interfaceZBuffer
-
getData
public int[] getData() -
getInstance
- Specified by:
getInstance
in interfaceZBuffer
-
hauteur
public int hauteur() -
setDimension
public void setDimension(int width, int height) - Specified by:
setDimension
in interfaceZBuffer
-
image
-
imageInvX
-
image2
-
isLocked
public boolean isLocked() -
isobox
public void isobox(boolean isBox) -
largeur
public int largeur() -
line
-
line
-
line
public void line(Point3D p1, Point3D p2, ITexture texture, double u1, double v1, double u2, double v2, ParametricSurface surface) -
lock
public boolean lock() -
lumiereActive
-
map
public double[][] map() -
maxDistance
- Specified by:
maxDistance
in interfaceZBuffer
-
testDeep
-
testDeep
-
la
public int la() -
ha
public int ha() -
itereMaxDist
public void itereMaxDist(List<Double> points, ParametricCurve pc, double pStart, double pEnd, ParametricVolume v) -
itereMaxDist
public void itereMaxDist(List<Double[]> polygons, ParametricSurface ps, double u0, double u1, double v0, double v1, ParametricVolume v) -
plotPoint
-
plotPoint
-
plotPoint
-
rendu
-
resX
public int resX() -
resY
public int resY() -
scene
-
scene
-
setAngles
public void setAngles(double angleXRad, double angleYRad) -
setColoration
Deprecated. -
next
public void next() -
testDeep
-
testDeep
-
testDeep
-
testPoint
-
tracerAretes
-
tracerLumineux
public void tracerLumineux()- Specified by:
tracerLumineux
in interfaceZBuffer
-
mathUtilPow2
-
tracerTriangle
-
checkScreen
- Specified by:
checkScreen
in interfaceZBuffer
-
tracerQuad
-
tracerTriangle
-
unlock
public boolean unlock() -
zoom
public void zoom(float z) -
backgroundTexture
- Specified by:
backgroundTexture
in interfaceZBuffer
-
couleurDeFond
- Specified by:
couleurDeFond
in interfaceZBuffer
-
backgroundTexture
- Specified by:
backgroundTexture
in interfaceZBuffer
-
applyTex
public void applyTex() -
dessine
-
clickAt
-
clickAt
-
representableAt
-
invert
-
getDisplayType
public int getDisplayType()- Specified by:
getDisplayType
in interfaceZBuffer
- Overrides:
getDisplayType
in classRepresentable
-
setDisplayType
public void setDisplayType(int displayType) - Overrides:
setDisplayType
in classRepresentable
-
idz
public int idz() -
drawElementVolume
- Specified by:
drawElementVolume
in interfaceZBuffer
-
idzpp
public void idzpp() -
isFORCE_POSITIVE_NORMALS
public boolean isFORCE_POSITIVE_NORMALS() -
setFORCE_POSITIVE_NORMALS
public void setFORCE_POSITIVE_NORMALS(boolean FORCE_POSITIVE_NORMALS) -
ratioVerticalAngle
public void ratioVerticalAngle() -
getScale
public double getScale() -
setScale
public void setScale(double scale) -
setCheckedOccupied
public void setCheckedOccupied(boolean checkedOccupied)
-