Package one.empty3.library.core.extra
Class SimpleSphere
- java.lang.Object
-
- one.empty3.library.Representable
-
- one.empty3.library.core.extra.SimpleSphere
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
,TemporalComputedObject3D
,MatrixPropertiesObject
,TRIGenerable
,XmlRepresentable
- Direct Known Subclasses:
SimpleSphereAvecTexture
public class SimpleSphere extends Representable implements TRIGenerable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Point3D
centre
protected java.awt.Color
color
static float
DMAX
static float
DMIN
protected int
numLatQuad
protected int
numLongQuad
protected PObjet
po
protected double
radius
-
Fields inherited from class one.empty3.library.Representable
CFAST, classPainters, DEFAULT_TEXTURE, defaultHashMapData, DISPLAY_ALL, materiau, NFAST, parent, PATH_ELEM_DOUBLE_VALUES, PATH_ELEM_REPRESENTABLE, PATH_ELEM_STRUCTURE_MATRIX, render, rotation, SCALE1, scene, SURFACE_DISPLAY_COL_QUADS, SURFACE_DISPLAY_COL_TRI, SURFACE_DISPLAY_LINES, SURFACE_DISPLAY_POINTS, SURFACE_DISPLAY_TEXT_QUADS, T, texture, vectors
-
-
Constructor Summary
Constructors Constructor Description SimpleSphere(Point3D c, double r, java.awt.Color col)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Point3D
CoordPoint(double a, double b)
TRIObject
generate()
int
getNumLatQuad()
int
getNumLongQuad()
Barycentre
position()
void
setNumLatQuad(int numLatQuad)
void
setNumLongQuad(int numLongQuad)
boolean
supporteTexture()
TextureCol
texture()
java.lang.String
toString()
-
Methods inherited from class one.empty3.library.Representable
become, calculerCurveT, calculerPointT, calculerSurfaceT, compareTo, copy, declarations, declareProperties, draw, drawStructureDrawFast, getCFAST, getDeclaredDataStructure, getDeclaredLists, getDeclaredProperty, getDisplayType, getDisplayTypes, getOrientedPoint, getPainter, getPath, getProperty, getPropertyType, getRotation, getTexture, getVectX, getVectY, getVectZ, id, id, informer, intersects, intersects, ISdrawStructureDrawFastIMPLEMENTED, paint, refPoint, replace, rotate, setAxes, setCFAST, setDisplayType, setOrig, setPainter, setPaintingAct, setPaintingActForClass, setPosition, setProperty, setRotation, setTexture, setVectX, setVectY, setVectZ, T, texture, xmlRepresentation, xmlRepresentation, xmlRepresentation, xmlRepresentation, xmlRepresentation, xmlRepresentation, xmlRepresentation, xmlRepresentation, xmlRepresentation, xmlRepresentation
-
-
-
-
Constructor Detail
-
SimpleSphere
public SimpleSphere(Point3D c, double r, java.awt.Color col)
-
-
Method Detail
-
CoordPoint
public Point3D CoordPoint(double a, double b)
-
generate
public TRIObject generate()
- Specified by:
generate
in interfaceTRIGenerable
-
getNumLatQuad
public int getNumLatQuad()
-
setNumLatQuad
public void setNumLatQuad(int numLatQuad)
-
getNumLongQuad
public int getNumLongQuad()
-
setNumLongQuad
public void setNumLongQuad(int numLongQuad)
-
position
public Barycentre position()
-
supporteTexture
public boolean supporteTexture()
- Overrides:
supporteTexture
in classRepresentable
-
texture
public TextureCol texture()
- Overrides:
texture
in classRepresentable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classRepresentable
-
-