public class Tetrahedron3D extends java.lang.Object implements Draw3DDefaults
AMBIENT_LIGHT_ON, ARROW_POINT_HEIGHT, ARROW_POINT_RADIUS, ARROW_RADIUS, AV_POINT_DIVISIONS, AXIS_LENGTH, AXIS_RADIUS, BACKGROUND_COLOR, BOUNDRY_RADIUS, CAMERA_FAR_CLIP, CAMERA_INITIAL_DISTANCE, CAMERA_INITIAL_X_ANGLE, CAMERA_INITIAL_Y_ANGLE, CAMERA_NEAR_CLIP, CONE_DIVISIONS, CUMULATE_DEFAULT, CUMULATE_MANUAL_DEFAULT, CYLINDER_DIVISIONS, DEFAULT_ORIGIN, EDGE_RADIUS, EPSILON, LABEL_FONT, LABEL_FONT_SIZE, LINE_RADIUS, MIN_MAX_X, MIN_MAX_Y, MIN_MAX_Z, MOUSE_SPEED, OVAL_DIVISIONS, POINT_LIGHT_1_X, POINT_LIGHT_1_Y, POINT_LIGHT_1_Z, POINT_LIGHT_2_X, POINT_LIGHT_2_Y, POINT_LIGHT_2_Z, POINT_LIGHT_ON, POINT_SIZE, ROTATION_SPEED, SCENE_HEIGHT, SCENE_WIDTH, SCROLL_DELTA, SCROLL_FACTOR, SHOW_AXES, SHOW_BOUNDARY_CUBE, SHOW_DEFAULT_GRID, SHOW_TICK_MARKS, SHOW_X_Y_ONLY, SHOW_Z_AXIS_UP, SPHERE_DIVISIONS, TICK_MARK_LENGTH, TICK_MARK_RADIUS, VECTOR_POINT_HEIGHT, VECTOR_POINT_RADIUS, VECTOR_RADIUS, VERTEX_SIZE
Constructor and Description |
---|
Tetrahedron3D(double x,
double y,
double z,
double size)
Constructs a Tetrahedron3D object given its center point location and size.
|
Tetrahedron3D(double x,
double y,
double z,
double size,
double xr,
double yr,
double zr)
Constructs a Tetrahedron3D object given its center point location, size and
x, y, z rotations.
|
Tetrahedron3D(double x,
double y,
double z,
double size,
double xr,
double yr,
double zr,
javafx.scene.paint.PhongMaterial m)
Constructs a Tetrahedron3D object given its center point location, size,
x, y, z rotations and PhongMaterial.
|
Tetrahedron3D(double x,
double y,
double z,
double size,
javafx.scene.paint.PhongMaterial m)
Constructs a Tetrahedron3D object given its center point location, size,
and PhongMaterial.
|
Tetrahedron3D(javafx.geometry.Point3D p,
double size)
Constructs a Tetrahedron3D object given its center point location and size.
|
Tetrahedron3D(javafx.geometry.Point3D p,
double size,
double xr,
double yr,
double zr)
Constructs a Tetrahedron3D object given its center point location, size and
x, y, z rotations.
|
Tetrahedron3D(javafx.geometry.Point3D p,
double size,
double xr,
double yr,
double zr,
javafx.scene.paint.PhongMaterial m)
Constructs a Tetrahedron3D object given its center point location, size,
x, y, z rotations and PhongMaterial.
|
Tetrahedron3D(javafx.geometry.Point3D p,
double size,
javafx.scene.paint.PhongMaterial m)
Constructs a Tetrahedron3D object given its center point location, size, and PhongMaterial.
|
Tetrahedron3D(java.lang.String lineString)
Constructs a Tetrahedron3D object given specification of the parameters
in Save Data File format
|
Modifier and Type | Method and Description |
---|---|
javafx.scene.shape.CullFace |
getCullFace()
Gets the Polyhedron CullFace property
|
javafx.scene.shape.DrawMode |
getDrawMode()
Gets the Polyhedron DrawMode property
|
Line3D[] |
getEdges()
Gets the Tetrahedron edges
|
javafx.scene.paint.PhongMaterial |
getMaterial()
Gets the Polyhedron PhongMaterial property
|
javafx.geometry.Point3D |
getP()
Gets the 3D Polyhedron location
|
double |
getSize()
Gets size
|
javafx.geometry.Point3D[] |
getVertices()
Gets the Tetrahedron vertices
|
double |
getXr()
Gets the Polyhedron x axis rotation
|
double |
getYr()
Gets the Polyhedron y axis rotation
|
double |
getZr()
Gets the Polyhedron z axis rotation
|
java.lang.String |
outString()
Returns a String containing all Tetrahedron3D values for saving to a data file.
|
void |
setCullFace(javafx.scene.shape.CullFace cf)
Sets the Polyhedron CullFace property
|
void |
setDrawMode(javafx.scene.shape.DrawMode dm)
Sets the Polyhedron DrawMode property
|
void |
setMaterial(javafx.scene.paint.PhongMaterial m)
Sets the Polyhedron PhongMaterial property
|
void |
setP(javafx.geometry.Point3D p)
Sets the 3D Polyhedron location
|
void |
setSize(double size)
Sets size
|
void |
setXr(double xr)
Sets the Polyhedron x axis rotation
|
void |
setYr(double yr)
Sets the Polyhedron y axis rotation
|
void |
setZr(double zr)
Sets the Polyhedron z axis rotation
|
java.lang.String |
toString()
Returns a String for printing all Tetrahedron3D values
|
public Tetrahedron3D(javafx.geometry.Point3D p, double size)
p
- Point3D Tetrahedron center location in user coordinatessize
- Size in user coordinatespublic Tetrahedron3D(javafx.geometry.Point3D p, double size, javafx.scene.paint.PhongMaterial m)
p
- Point3D Tetrahedron center location in user coordinatessize
- Size in user coordinatesm
- PhongMaterial determining Tetrahedron colorpublic Tetrahedron3D(javafx.geometry.Point3D p, double size, double xr, double yr, double zr)
p
- Point3D Tetrahedron center location in user coordinatessize
- Size in user coordinatesxr
- Rotation in degrees about the x axisyr
- Rotation in degrees about the y axiszr
- Rotation in degrees about the z axispublic Tetrahedron3D(javafx.geometry.Point3D p, double size, double xr, double yr, double zr, javafx.scene.paint.PhongMaterial m)
p
- Point3D Tetrahedron center location in user coordinatessize
- Size in user coordinatesxr
- Rotation in degrees about the x axisyr
- Rotation in degrees about the y axiszr
- Rotation in degrees about the z axism
- PhongMaterial determining Tetrahedron colorpublic Tetrahedron3D(double x, double y, double z, double size)
x
- Center point x coordinate in user coordinatesy
- Center point y coordinate in user coordinatesz
- Center point z coordinate in user coordinatessize
- Size in user coordinatespublic Tetrahedron3D(double x, double y, double z, double size, javafx.scene.paint.PhongMaterial m)
x
- Center point x coordinate in user coordinatesy
- Center point y coordinate in user coordinatesz
- Center point z coordinate in user coordinatessize
- Size in user coordinatesm
- PhongMaterial determining Tetrahedron colorpublic Tetrahedron3D(double x, double y, double z, double size, double xr, double yr, double zr)
x
- Center point x coordinate in user coordinatesy
- Center point y coordinate in user coordinatesz
- Center point z coordinate in user coordinatessize
- Size in user coordinatesxr
- Rotation in degrees about the x axisyr
- Rotation in degrees about the y axiszr
- Rotation in degrees about the z axispublic Tetrahedron3D(double x, double y, double z, double size, double xr, double yr, double zr, javafx.scene.paint.PhongMaterial m)
x
- Center point x coordinate in user coordinatesy
- Center point y coordinate in user coordinatesz
- Center point z coordinate in user coordinatessize
- Size in user coordinatesxr
- Rotation in degrees about the x axisyr
- Rotation in degrees about the y axiszr
- Rotation in degrees about the z axism
- PhongMaterial determining Tetrahedron colorpublic Tetrahedron3D(java.lang.String lineString)
lineString
- Tetrahedron: format data stringpublic javafx.geometry.Point3D[] getVertices()
public Line3D[] getEdges()
public java.lang.String outString()
public java.lang.String toString()
toString
in class java.lang.Object
public javafx.geometry.Point3D getP()
public void setP(javafx.geometry.Point3D p)
p
- Point3D location of the center of the Polyhedronpublic void setSize(double size)
size
- Double value of the size in user coordinate spacepublic double getSize()
public double getXr()
public void setXr(double xr)
xr
- Double value of the Polyhedron x axis rotationpublic double getYr()
public void setYr(double yr)
yr
- Double value of the Polyhedron y axis rotationpublic double getZr()
public void setZr(double zr)
zr
- Double value of the Polyhedron z axis rotationpublic javafx.scene.paint.PhongMaterial getMaterial()
public void setMaterial(javafx.scene.paint.PhongMaterial m)
m
- PhongMaterial property of the Polyhedronpublic javafx.scene.shape.DrawMode getDrawMode()
public void setDrawMode(javafx.scene.shape.DrawMode dm)
dm
- DrawMode property of the Polyhedronpublic javafx.scene.shape.CullFace getCullFace()
public void setCullFace(javafx.scene.shape.CullFace cf)
cf
- CullFace property of the Polyhedron