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
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassclassclass -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected ECBufferedImageprotected booleanstatic intstatic intstatic final intprotected intstatic Point3Dstatic doubleprotected intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic intstatic intFields 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTex()voidbackgroundTexture(ITexture texture) camera()voidbooleancheckScreen(Point p1) clickAt(double x, double y) clickAt(int x, int y) voidcopyResourceFiles(File destDirectory) voidcouleurDeFond(ITexture couleurFond) voidvoiddraw()voiddraw(Collection<Object> collection) voidvoiddrawElementVolume(Representable representable, ParametricVolume volume) doubleintgetColorAt(Point p) int[]getData()intgetInstance(int x, int y) intha()inthauteur()protected longidImg()intidz()voididzpp()image()image2()booleanbooleanisLocked()voidisobox(boolean isBox) voiditereMaxDist(List<Double[]> polygons, ParametricSurface ps, double u0, double u1, double v0, double v1, ParametricVolume v) voiditereMaxDist(List<Double> points, ParametricCurve pc, double pStart, double pEnd, ParametricVolume v) intla()intlargeur()voidvoidline(Point3D p1, Point3D p2, ITexture texture, double u1, double v1, double u2, double v2, ParametricSurface surface) voidline(Point3D p1, Point3D p2, ITexture t, double u, double u1, ParametricCurve curve) booleanlock()double[][]map()doublemathUtilPow2(Point p1, Point p2) doublemaxDistance(Point p1, Point p2, Point p3, Point p4) voidnext()voidvoidvoidrendu()representableAt(int x, int y) intresX()intresY()rotate(Point3D p0, Representable ref) scene()voidvoidsetAngles(double angleXRad, double angleYRad) voidsetColoration(boolean a) Deprecated.voidsetDimension(int width, int height) voidsetDisplayType(int displayType) voidsetFORCE_POSITIVE_NORMALS(boolean FORCE_POSITIVE_NORMALS) voidvoidvoidvoidtestDeep(Point3D pFinal, ITexture texture, double u, double v, ParametricSurface n) voidvoidvoidtracerQuad(Point3D pp1, Point3D pp2, Point3D pp3, Point3D pp4, ITexture texture, double u0, double u1, double v0, double v1, ParametricSurface n) voidtracerTriangle(Point3D pp1, Point3D pp2, Point3D pp3, ITexture c) voidtracerTriangle(Point3D pp1, Point3D pp2, Point3D pp3, ITexture t, double u0, double v0, double u1, double v1) booleanunlock()voidzoom(float z) Methods inherited from class one.empty3.library.Representable
become, calculerCurveT, calculerPointT, calculerSurfaceT, compareTo, copy, declarations, declareProperties, draw, drawStructureDrawFast, getCFAST, getDeclaredDataStructure, getDeclaredLists, getDeclaredProperty, getDisplayTypes, getPainter, getPath, getProperty, getPropertyType, getRotation, getTexture, id, id, informer, intersects, intersects, ISdrawStructureDrawFastIMPLEMENTED, paint, replace, setCFAST, setPainter, setPaintingAct, setPaintingActForClass, setPosition, setProperty, setRotation, setTexture, 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_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
-
-
Constructor Details
-
ZBufferImpl
public ZBufferImpl() -
ZBufferImpl
public ZBufferImpl(int l, int h) -
ZBufferImpl
-
-
Method Details
-
copyResourceFiles
- Specified by:
copyResourceFilesin interfaceZBuffer
-
idImg
protected long idImg() -
camera
-
camera
-
draw
public void draw() -
rotate
- Overrides:
rotatein classRepresentable
-
draw
-
draw
-
echelleEcran
public double echelleEcran() -
getColorAt
- Specified by:
getColorAtin interfaceZBuffer
-
getData
public int[] getData() -
getInstance
- Specified by:
getInstancein interfaceZBuffer
-
hauteur
public int hauteur() -
setDimension
public void setDimension(int width, int height) - Specified by:
setDimensionin 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:
maxDistancein interfaceZBuffer
-
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
-
tracerLumineux
public void tracerLumineux()- Specified by:
tracerLumineuxin interfaceZBuffer
-
mathUtilPow2
-
tracerTriangle
-
checkScreen
- Specified by:
checkScreenin interfaceZBuffer
-
tracerQuad
-
tracerTriangle
-
unlock
public boolean unlock() -
zoom
public void zoom(float z) -
backgroundTexture
- Specified by:
backgroundTexturein interfaceZBuffer
-
couleurDeFond
- Specified by:
couleurDeFondin interfaceZBuffer
-
backgroundTexture
- Specified by:
backgroundTexturein interfaceZBuffer
-
applyTex
public void applyTex() -
dessine
-
clickAt
-
clickAt
-
representableAt
-
invert
-
getDisplayType
public int getDisplayType()- Specified by:
getDisplayTypein interfaceZBuffer- Overrides:
getDisplayTypein classRepresentable
-
setDisplayType
public void setDisplayType(int displayType) - Overrides:
setDisplayTypein classRepresentable
-
idz
public int idz() -
drawElementVolume
- Specified by:
drawElementVolumein 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)
-