Package one.empty3.library
Class Representable
- java.lang.Object
-
- one.empty3.library.Representable
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
,TemporalComputedObject3D
,MatrixPropertiesObject
,XmlRepresentable
- Direct Known Subclasses:
Animation
,Animation
,AttracteurEtrange
,Axe
,BezierCubique
,BezierCubique2D
,Board
,BSpline2D
,Bullet
,CameraBox
,CollineModele1
,CollineModele2
,CollineModele3
,ColorMatrix
,Cube
,HeadRepresentable
,HeadRepresentable
,ImageContainer
,Infini
,LSystemArmature
,Lumiere
,Mandala
,Matrix
,Matrix
,Matrix33
,ParametricCurve
,ParametricSurface
,ParametricVolume
,PCont
,PGeneratorZ
,PObjet
,Point3D
,Point3D_0
,PointWire
,Polygon
,Polyhedron
,PolyMapPoint3D2DArray
,Position
,RepresentableConteneur
,Scene
,SimpleSphere
,Spirale
,StructureDragon
,Tetraedre
,Tour
,Tourbillon
,TourDeRevolution
,TRI
,TRIObject
,TRIObjetGenerateurAbstract
,Tubulaire
,TubulaireN
,Vis
,ZBufferImpl
,ZBufferImplRasterVersion
public class Representable extends java.lang.Object implements java.io.Serializable, java.lang.Comparable, XmlRepresentable, MatrixPropertiesObject, TemporalComputedObject3D
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ITexture
CFAST
protected static java.util.ArrayList<Painter>
classPainters
static ITexture
DEFAULT_TEXTURE
protected static java.util.HashMap<java.lang.String,StructureMatrix>
defaultHashMapData
static int
DISPLAY_ALL
protected RtMatiere
materiau
protected double
NFAST
protected Representable
parent
static int
PATH_ELEM_DOUBLE_VALUES
static int
PATH_ELEM_REPRESENTABLE
static int
PATH_ELEM_STRUCTURE_MATRIX
protected Render
render
StructureMatrix<Rotation>
rotation
static Point3D
SCALE1
protected Scene
scene
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
protected StructureMatrix<T>
T
protected ITexture
texture
protected StructureMatrix<Point3D>
vectors
-
Constructor Summary
Constructors Constructor Description Representable()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
become(Representable r)
Point3D
calculerCurveT(double u, double t)
Point3D
calculerPointT(double t)
Point3D
calculerSurfaceT(double u, double v, double t)
int
compareTo(java.lang.Object o)
MatrixPropertiesObject
copy()
java.util.Map<java.lang.String,StructureMatrix>
declarations()
void
declareProperties()
void
draw(ZBufferImpl zBuffer)
void
drawStructureDrawFast(ZBuffer z)
ITexture
getCFAST()
java.util.Map<java.lang.String,StructureMatrix>
getDeclaredDataStructure()
java.util.Map<java.lang.String,StructureMatrix>
getDeclaredLists()
StructureMatrix
getDeclaredProperty(java.lang.String name)
int
getDisplayType()
static java.lang.String[]
getDisplayTypes()
Point3D
getOrientedPoint(Point3D a)
Painter
getPainter()
Path
getPath(java.lang.String property)
Evaluates property of current object or of a subpropertyjava.lang.Object
getProperty(java.lang.String propertyName)
java.lang.Class
getPropertyType(java.lang.String propertyName)
StructureMatrix<Rotation>
getRotation()
ITexture
getTexture()
Point3D
getVectX()
Point3D
getVectY()
Point3D
getVectZ()
java.lang.String
id()
void
id(java.lang.String id)
void
informer(Representable parent)
Intersects.Intersection
intersects(RtRay ray, RtIntersectInfo cii)
Representable
intersects(Representable r2)
boolean
ISdrawStructureDrawFastIMPLEMENTED(ZBuffer z)
void
paint()
Point3D
refPoint(Point3D x)
void
replace(java.lang.String moo)
Point3D
rotate(Point3D p0, Representable ref)
void
setAxes(Point3D o, Point3D vx, Point3D vy, Point3D vz)
void
setCFAST(ITexture CFAST)
void
setDisplayType(int displayType)
void
setOrig(Point3D orig)
void
setPainter(Painter painter)
void
setPaintingAct(ZBuffer z, Scene s, PaintingAct pa)
static void
setPaintingActForClass(ZBuffer z, Scene s, PaintingAct pa)
void
setPosition(Point3D calcCposition)
void
setProperty(java.lang.String propertyName, java.lang.Object value)
void
setRotation(StructureMatrix<Rotation> rotation)
void
setTexture(ITexture texture)
void
setVectX(Point3D vectX)
void
setVectY(Point3D vectY)
void
setVectZ(Point3D vectZ)
boolean
supporteTexture()
double
T(T t)
ITexture
texture()
void
texture(ITexture tc)
java.lang.String
toString()
void
xmlRepresentation(java.lang.String filesPath, java.lang.StringBuilder stringBuilder, java.io.File o)
void
xmlRepresentation(java.lang.String filesPath, java.lang.StringBuilder stringBuilder, java.lang.Boolean o)
void
xmlRepresentation(java.lang.String filesPath, java.lang.StringBuilder stringBuilder, java.lang.Double o)
void
xmlRepresentation(java.lang.String filesPath, java.lang.StringBuilder stringBuilder, java.lang.Integer o)
void
xmlRepresentation(java.lang.String filesPath, java.lang.StringBuilder stringBuilder, java.lang.Object o)
void
xmlRepresentation(java.lang.String filesPath, java.lang.StringBuilder stringBuilder, java.lang.String o)
void
xmlRepresentation(java.lang.String filesPath, java.lang.StringBuilder stringBuilder, Representable is)
void
xmlRepresentation(java.lang.String filesPath, java.lang.String name, java.lang.StringBuilder stringBuilder, StructureMatrix is)
void
xmlRepresentation(java.lang.String filesPath, MatrixPropertiesObject parent, java.lang.StringBuilder stringBuilder)
void
xmlRepresentation(java.lang.String filesPath, MatrixPropertiesObject parent, java.lang.StringBuilder stringBuilder, java.util.ArrayList o)
-
-
-
Field Detail
-
vectors
protected StructureMatrix<Point3D> vectors
-
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
-
DEFAULT_TEXTURE
public static final ITexture DEFAULT_TEXTURE
-
SCALE1
public static Point3D SCALE1
-
classPainters
protected static java.util.ArrayList<Painter> classPainters
-
defaultHashMapData
protected static java.util.HashMap<java.lang.String,StructureMatrix> defaultHashMapData
-
PATH_ELEM_STRUCTURE_MATRIX
public static final int PATH_ELEM_STRUCTURE_MATRIX
- See Also:
- Constant Field Values
-
PATH_ELEM_DOUBLE_VALUES
public static int PATH_ELEM_DOUBLE_VALUES
-
PATH_ELEM_REPRESENTABLE
public static int PATH_ELEM_REPRESENTABLE
-
rotation
public StructureMatrix<Rotation> rotation
-
NFAST
protected double NFAST
-
materiau
protected RtMatiere materiau
-
CFAST
protected ITexture CFAST
-
parent
protected Representable parent
-
scene
protected Scene scene
-
texture
protected ITexture texture
-
render
protected Render render
-
T
protected StructureMatrix<T> T
-
-
Method Detail
-
setPaintingActForClass
public static void setPaintingActForClass(ZBuffer z, Scene s, PaintingAct pa)
-
getDisplayTypes
public static java.lang.String[] getDisplayTypes()
-
getRotation
public StructureMatrix<Rotation> getRotation()
-
setRotation
public void setRotation(StructureMatrix<Rotation> rotation)
-
rotate
public Point3D rotate(Point3D p0, Representable ref)
-
id
public java.lang.String id()
-
id
public void id(java.lang.String id)
-
informer
public void informer(Representable parent)
-
replace
public void replace(java.lang.String moo)
-
supporteTexture
public boolean supporteTexture()
-
texture
public ITexture texture()
-
texture
public void texture(ITexture tc)
-
drawStructureDrawFast
public void drawStructureDrawFast(ZBuffer z)
-
ISdrawStructureDrawFastIMPLEMENTED
public boolean ISdrawStructureDrawFastIMPLEMENTED(ZBuffer z)
-
setPaintingAct
public void setPaintingAct(ZBuffer z, Scene s, PaintingAct pa)
-
getPainter
public Painter getPainter()
-
setPainter
public void setPainter(Painter painter)
-
paint
public void paint()
-
intersects
public Intersects.Intersection intersects(RtRay ray, RtIntersectInfo cii)
-
intersects
public Representable intersects(Representable r2)
-
become
public void become(Representable r)
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interfacejava.lang.Comparable
-
draw
public void draw(ZBufferImpl zBuffer)
-
getDeclaredProperty
public StructureMatrix getDeclaredProperty(java.lang.String name)
- Specified by:
getDeclaredProperty
in interfaceMatrixPropertiesObject
-
getDeclaredDataStructure
public java.util.Map<java.lang.String,StructureMatrix> getDeclaredDataStructure()
-
getDeclaredLists
public java.util.Map<java.lang.String,StructureMatrix> getDeclaredLists()
-
getTexture
public ITexture getTexture()
-
setTexture
public void setTexture(ITexture texture)
-
getPropertyType
public java.lang.Class getPropertyType(java.lang.String propertyName) throws java.lang.NoSuchMethodException
- Throws:
java.lang.NoSuchMethodException
-
setProperty
public void setProperty(java.lang.String propertyName, java.lang.Object value) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException, java.lang.NoSuchMethodException
- Throws:
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.NoSuchMethodException
-
getProperty
public java.lang.Object getProperty(java.lang.String propertyName) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException, java.lang.NoSuchMethodException
- Throws:
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.NoSuchMethodException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
declareProperties
public void declareProperties()
- Specified by:
declareProperties
in interfaceMatrixPropertiesObject
-
declarations
public java.util.Map<java.lang.String,StructureMatrix> declarations()
- Specified by:
declarations
in interfaceMatrixPropertiesObject
-
getCFAST
public ITexture getCFAST()
-
setCFAST
public void setCFAST(ITexture CFAST)
-
xmlRepresentation
public void xmlRepresentation(java.lang.String filesPath, java.lang.StringBuilder stringBuilder, java.lang.Double o)
-
xmlRepresentation
public void xmlRepresentation(java.lang.String filesPath, java.lang.StringBuilder stringBuilder, java.lang.Boolean o)
-
xmlRepresentation
public void xmlRepresentation(java.lang.String filesPath, java.lang.StringBuilder stringBuilder, java.lang.Integer o)
-
xmlRepresentation
public void xmlRepresentation(java.lang.String filesPath, java.lang.StringBuilder stringBuilder, java.lang.String o)
-
xmlRepresentation
public void xmlRepresentation(java.lang.String filesPath, java.lang.StringBuilder stringBuilder, java.io.File o)
-
xmlRepresentation
public void xmlRepresentation(java.lang.String filesPath, MatrixPropertiesObject parent, java.lang.StringBuilder stringBuilder, java.util.ArrayList o)
-
xmlRepresentation
public void xmlRepresentation(java.lang.String filesPath, java.lang.StringBuilder stringBuilder, java.lang.Object o)
-
xmlRepresentation
public void xmlRepresentation(java.lang.String filesPath, java.lang.StringBuilder stringBuilder, Representable is)
-
xmlRepresentation
public void xmlRepresentation(java.lang.String filesPath, MatrixPropertiesObject parent, java.lang.StringBuilder stringBuilder)
-
xmlRepresentation
public void xmlRepresentation(java.lang.String filesPath, java.lang.String name, java.lang.StringBuilder stringBuilder, StructureMatrix is)
-
copy
public MatrixPropertiesObject copy() throws CopyRepresentableError, java.lang.IllegalAccessException, java.lang.InstantiationException
- Specified by:
copy
in interfaceMatrixPropertiesObject
- Throws:
CopyRepresentableError
java.lang.IllegalAccessException
java.lang.InstantiationException
-
getDisplayType
public int getDisplayType()
-
setDisplayType
public void setDisplayType(int displayType)
-
T
public double T(T t)
- Specified by:
T
in interfaceTemporalComputedObject3D
-
calculerPointT
public Point3D calculerPointT(double t)
- Specified by:
calculerPointT
in interfaceTemporalComputedObject3D
-
calculerCurveT
public Point3D calculerCurveT(double u, double t)
- Specified by:
calculerCurveT
in interfaceTemporalComputedObject3D
-
calculerSurfaceT
public Point3D calculerSurfaceT(double u, double v, double t)
- Specified by:
calculerSurfaceT
in interfaceTemporalComputedObject3D
-
setPosition
public void setPosition(Point3D calcCposition)
-
getPath
public Path getPath(java.lang.String property)
Evaluates property of current object or of a subproperty- Parameters:
property
- propertyName:arrayIndex1:arrayIndex2,subpropertyName:i2:j2,subpro...- Returns:
- atomic property
-
getVectX
public Point3D getVectX()
-
setVectX
public void setVectX(Point3D vectX)
-
getVectY
public Point3D getVectY()
-
setVectY
public void setVectY(Point3D vectY)
-
getVectZ
public Point3D getVectZ()
-
setVectZ
public void setVectZ(Point3D vectZ)
-
setOrig
public void setOrig(Point3D orig)
-
-