Package one.empty3.library
Class ZBufferImplRasterVersion
- java.lang.Object
-
- one.empty3.library.Representable
-
- one.empty3.library.ZBufferImplRasterVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
,TemporalComputedObject3D
,MatrixPropertiesObject
,XmlRepresentable
,ZBuffer
public class ZBufferImplRasterVersion extends Representable implements ZBuffer
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ZBufferImplRasterVersion.Box2D
class
ZBufferImplRasterVersion.Box2DPerspective
class
ZBufferImplRasterVersion.ImageMap
class
ZBufferImplRasterVersion.ImageMapElement
-
Field Summary
Fields Modifier and Type Field Description protected double
angleX
protected double
angleY
protected ECBufferedImage
bi
ZBufferImplRasterVersion.Box2D
box
protected boolean
colorationActive
static int
CURVES_MAX_DEEP
static int
CURVES_MAX_SIZE
static int
DISPLAY_ALL
protected int
ha
ZBufferImplRasterVersion.ImageMap
ime
static Point3D
INFINITY
static double
INFINITY_DEEP
protected int
la
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_POINTS_DEEP
static int
SURFACE_DISPLAY_POINTS_LARGE
static int
SURFACE_DISPLAY_TEXT_QUADS
static int
SURFACE_DISPLAY_TEXT_TRI
static int
SURFAS_MAX_DEEP
static int
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 ZBufferImplRasterVersion()
ZBufferImplRasterVersion(int l, int h)
ZBufferImplRasterVersion(Resolution resolution)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
applyTex()
ITexture
backgroundTexture()
void
backgroundTexture(ITexture texture)
Camera
camera()
void
camera(Camera c)
boolean
checkScreen(java.awt.Point p1)
Point3D
clickAt(double x, double y)
Point3D
clickAt(int x, int y)
void
copyResourceFiles(java.io.File destDirectory)
void
couleurDeFond(ITexture couleurFond)
void
dessine(Point3D p, ITexture texture)
void
draw()
void
draw(java.util.Collection<java.lang.Object> collection)
void
draw(Representable r)
void
drawElementVolume(Representable representable, ParametricVolume volume)
double
echelleEcran()
int
getColorAt(java.awt.Point p)
java.awt.image.WritableRaster
getData()
int
getDisplayType()
ZBuffer
getInstance(int x, int y)
int
ha()
int
hauteur()
protected long
idImg()
int
idz()
void
idzpp()
ECBufferedImage
image()
ECBufferedImage
imageFromRaster()
ECBufferedImage
imageInvX()
Point3D
invert(Point3D p, Camera camera, double returnedDist)
boolean
isFORCE_POSITIVE_NORMALS()
boolean
isLocked()
void
isobox(boolean isBox)
void
itereMaxDist(java.util.List<java.lang.Double[]> polygons, ParametricSurface ps, double u0, double u1, double v0, double v1, ParametricVolume v)
void
itereMaxDist(java.util.List<java.lang.Double> points, ParametricCurve pc, double pStart, double pEnd, ParametricVolume v)
int
la()
int
largeur()
void
line(Point3D p1, Point3D p2, ITexture t)
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()
Lumiere
lumiereActive()
double[][]
map()
double
mathUtilPow2(java.awt.Point p1, java.awt.Point p2)
double
maxDistance(java.awt.Point p1, java.awt.Point p2, java.awt.Point p3, java.awt.Point p4)
void
next()
void
plotPoint(java.awt.Color color, Point3D p)
void
plotPoint(Point3D p)
void
plotPoint(Point3D p, java.awt.Color c)
java.awt.Image
rendu()
Representable
representableAt(int x, int y)
int
resX()
int
resY()
Point3D
rotate(Point3D p0, Representable ref)
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
setFORCE_POSITIVE_NORMALS(boolean FORCE_POSITIVE_NORMALS)
void
testDeep(Point3D p)
void
testDeep(Point3D p, int c)
void
testDeep(Point3D p, java.awt.Color c)
void
testDeep(Point3D pFinal, ITexture texture, double u, double v, ParametricSurface n)
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 v0, double u1, double v1)
boolean
unlock()
void
zoom(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, 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_TEXT_TRI
public static final int SURFACE_DISPLAY_TEXT_TRI
- 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
-
SURFACE_DISPLAY_POINTS_DEEP
public static final int SURFACE_DISPLAY_POINTS_DEEP
- See Also:
- Constant Field Values
-
SURFACE_DISPLAY_POINTS_LARGE
public static final int SURFACE_DISPLAY_POINTS_LARGE
- See Also:
- Constant Field Values
-
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
public static Point3D INFINITY
-
ime
public ZBufferImplRasterVersion.ImageMap ime
-
box
public ZBufferImplRasterVersion.Box2D box
-
colorationActive
protected boolean colorationActive
-
angleX
protected double angleX
-
angleY
protected double angleY
-
bi
protected ECBufferedImage bi
-
ha
protected int ha
-
la
protected int la
-
-
Constructor Detail
-
ZBufferImplRasterVersion
public ZBufferImplRasterVersion()
-
ZBufferImplRasterVersion
public ZBufferImplRasterVersion(int l, int h)
-
ZBufferImplRasterVersion
public ZBufferImplRasterVersion(Resolution resolution)
-
-
Method Detail
-
copyResourceFiles
public void copyResourceFiles(java.io.File destDirectory)
- Specified by:
copyResourceFiles
in interfaceZBuffer
-
idImg
protected long idImg()
-
camera
public void camera(Camera c)
-
rotate
public Point3D rotate(Point3D p0, Representable ref)
- Overrides:
rotate
in classRepresentable
-
draw
public void draw(java.util.Collection<java.lang.Object> collection)
-
draw
public void draw(Representable r)
-
echelleEcran
public double echelleEcran()
-
getColorAt
public int getColorAt(java.awt.Point p)
- Specified by:
getColorAt
in interfaceZBuffer
-
getData
public java.awt.image.WritableRaster getData()
-
getInstance
public ZBuffer getInstance(int x, int y)
- Specified by:
getInstance
in interfaceZBuffer
-
image
public ECBufferedImage image()
-
imageInvX
public ECBufferedImage imageInvX()
-
setDimension
public void setDimension(int width, int height)
- Specified by:
setDimension
in interfaceZBuffer
-
imageFromRaster
public ECBufferedImage imageFromRaster()
-
line
public void line(Point3D p1, Point3D p2, ITexture t, double u, double u1, ParametricCurve curve)
-
line
public void line(Point3D p1, Point3D p2, ITexture texture, double u1, double v1, double u2, double v2, ParametricSurface surface)
-
lumiereActive
public Lumiere lumiereActive()
-
map
public double[][] map()
-
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
-
testDeep
public void testDeep(Point3D pFinal, ITexture texture, double u, double v, ParametricSurface n)
-
itereMaxDist
public void itereMaxDist(java.util.List<java.lang.Double> points, ParametricCurve pc, double pStart, double pEnd, ParametricVolume v)
-
itereMaxDist
public void itereMaxDist(java.util.List<java.lang.Double[]> polygons, ParametricSurface ps, double u0, double u1, double v0, double v1, ParametricVolume v)
-
plotPoint
public void plotPoint(java.awt.Color color, Point3D p)
-
plotPoint
public void plotPoint(Point3D p)
-
plotPoint
public void plotPoint(Point3D p, java.awt.Color c)
-
rendu
public java.awt.Image rendu()
-
setAngles
public void setAngles(double angleXRad, double angleYRad)
-
setColoration
@Deprecated public void setColoration(boolean a)
Deprecated.
-
testDeep
public void testDeep(Point3D p, java.awt.Color c)
-
testPoint
public void testPoint(Point3D p, java.awt.Color c)
-
tracerLumineux
public void tracerLumineux()
- Specified by:
tracerLumineux
in interfaceZBuffer
-
mathUtilPow2
public double mathUtilPow2(java.awt.Point p1, java.awt.Point p2)
-
tracerTriangle
public void tracerTriangle(Point3D pp1, Point3D pp2, Point3D pp3, ITexture t, double u0, double v0, double u1, double v1)
-
checkScreen
public boolean checkScreen(java.awt.Point p1)
- Specified by:
checkScreen
in interfaceZBuffer
-
tracerQuad
public void tracerQuad(Point3D pp1, Point3D pp2, Point3D pp3, Point3D pp4, ITexture texture, double u0, double u1, double v0, double v1, ParametricSurface n)
-
backgroundTexture
public ITexture backgroundTexture()
- Specified by:
backgroundTexture
in interfaceZBuffer
-
couleurDeFond
public void couleurDeFond(ITexture couleurFond)
- Specified by:
couleurDeFond
in interfaceZBuffer
-
backgroundTexture
public void backgroundTexture(ITexture texture)
- Specified by:
backgroundTexture
in interfaceZBuffer
-
applyTex
public void applyTex()
-
clickAt
public Point3D clickAt(int x, int y)
-
representableAt
public Representable representableAt(int x, int y)
-
getDisplayType
public int getDisplayType()
- Specified by:
getDisplayType
in interfaceZBuffer
- Overrides:
getDisplayType
in classRepresentable
-
setDisplayType
public void setDisplayType(int displayType)
- Overrides:
setDisplayType
in classRepresentable
-
drawElementVolume
public void drawElementVolume(Representable representable, ParametricVolume volume)
- Specified by:
drawElementVolume
in interfaceZBuffer
-
isFORCE_POSITIVE_NORMALS
public boolean isFORCE_POSITIVE_NORMALS()
-
setFORCE_POSITIVE_NORMALS
public void setFORCE_POSITIVE_NORMALS(boolean FORCE_POSITIVE_NORMALS)
-
-