public class Sphere3D 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 |
---|
Sphere3D(double x,
double y,
double z,
double radius)
Constructs a Sphere3D object given its center point coordinates and radius.
|
Sphere3D(double x,
double y,
double z,
double radius,
double xr,
double yr,
double zr)
Constructs a Sphere3D object given its center point coordinates, radius
and x, y, z rotations.
|
Sphere3D(double x,
double y,
double z,
double radius,
double xr,
double yr,
double zr,
javafx.scene.paint.PhongMaterial m)
Constructs a Sphere3D object given its center point coordinates, radius,
x, y, z rotations and PhongMaterial.
|
Sphere3D(double x,
double y,
double z,
double radius,
javafx.scene.paint.PhongMaterial m)
Constructs a Sphere3D object given its center point coordinates, radius
and PhongMaterial.
|
Sphere3D(javafx.geometry.Point3D p,
double radius)
Constructs a Sphere3D object given its center point location and radius.
|
Sphere3D(javafx.geometry.Point3D p,
double radius,
double xr,
double yr,
double zr)
Constructs a Sphere3D object given its center point location, radius
and x, y, z rotations.
|
Sphere3D(javafx.geometry.Point3D p,
double radius,
double xr,
double yr,
double zr,
javafx.scene.paint.PhongMaterial m)
Constructs a Sphere3D object given its center point location, radius,
x, y, z rotations and PhongMaterial.
|
Sphere3D(javafx.geometry.Point3D p,
double radius,
javafx.scene.paint.PhongMaterial m)
Constructs a Sphere3D object given its center point location, radius and PhongMaterial.
|
Sphere3D(java.lang.String lineString)
Constructs a Sphere3D object given specification of the parameters
in Save Data File format
|
Modifier and Type | Method and Description |
---|---|
javafx.scene.shape.CullFace |
getCullFace()
Gets the Sphere CullFace property
|
javafx.scene.shape.DrawMode |
getDrawMode()
Gets the Sphere DrawMode property
|
javafx.scene.paint.PhongMaterial |
getMaterial()
Gets the Sphere PhongMaterial property
|
javafx.geometry.Point3D |
getP()
Gets the 3D Sphere location
|
double |
getRadius()
Gets the Sphere radius
|
int |
getSphereDivisions()
Gets the number of Sphere divisions
|
double |
getXr()
Gets the Sphere x axis rotation
|
double |
getYr()
Gets the Sphere y axis rotation
|
double |
getZr()
Gets the Sphere z axis rotation
|
java.lang.String |
outString()
Returns a String containing all Sphere3D values for saving to a data file.
|
void |
setCullFace(javafx.scene.shape.CullFace cf)
Sets the Sphere CullFace property
|
void |
setDrawMode(javafx.scene.shape.DrawMode dm)
Sets the Sphere DrawMode property
|
void |
setMaterial(javafx.scene.paint.PhongMaterial m)
Sets the Sphere PhongMaterial property
|
void |
setRadius(double radius)
Sets the Sphere radius
|
void |
setSphereDivisions(int sphereDivisions)
Sets the number of Sphere divisions
|
java.lang.String |
toString()
Returns a String for printing all Sphere3D values
|
public Sphere3D(javafx.geometry.Point3D p, double radius)
p
- Point3D sphere center location in user coordinatesradius
- Radius of the sphere in user coordinatespublic Sphere3D(javafx.geometry.Point3D p, double radius, javafx.scene.paint.PhongMaterial m)
p
- Point3D sphere center location in user coordinatesradius
- Radius of the sphere in user coordinatesm
- PhongMaterial determining sphere colorpublic Sphere3D(javafx.geometry.Point3D p, double radius, double xr, double yr, double zr)
p
- Point3D sphere center location in user coordinatesradius
- Radius of the sphere in user coordinatesxr
- Rotation in degrees about the x axisyr
- Rotation in degrees about the y axiszr
- Rotation in degrees about the z axispublic Sphere3D(javafx.geometry.Point3D p, double radius, double xr, double yr, double zr, javafx.scene.paint.PhongMaterial m)
p
- Point3D sphere center location in user coordinatesradius
- Radius of the sphere 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 sphere colorpublic Sphere3D(double x, double y, double z, double radius)
x
- Center point x coordinate in user coordinatesy
- Center point y coordinate in user coordinatesz
- Center point z coordinate in user coordinatesradius
- Radius of the sphere in user coordinatespublic Sphere3D(double x, double y, double z, double radius, 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 coordinatesradius
- Radius of the sphere in user coordinatesm
- PhongMaterial determining sphere colorpublic Sphere3D(double x, double y, double z, double radius, 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 coordinatesradius
- Radius of the sphere in user coordinatesxr
- Rotation in degrees about the x axisyr
- Rotation in degrees about the y axiszr
- Rotation in degrees about the z axispublic Sphere3D(double x, double y, double z, double radius, 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 coordinatesradius
- Radius of the sphere 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 sphere colorpublic Sphere3D(java.lang.String lineString)
lineString
- Sphere: format data stringpublic javafx.geometry.Point3D getP()
public double getRadius()
public void setRadius(double radius)
radius
- Double value of the radius in user coordinate spacepublic int getSphereDivisions()
public void setSphereDivisions(int sphereDivisions)
sphereDivisions
- Integer value of the number of Sphere divisionspublic double getXr()
public double getYr()
public double getZr()
public javafx.scene.paint.PhongMaterial getMaterial()
public void setMaterial(javafx.scene.paint.PhongMaterial m)
m
- PhongMaterial property of the Spherepublic javafx.scene.shape.DrawMode getDrawMode()
public void setDrawMode(javafx.scene.shape.DrawMode dm)
dm
- DrawMode property of the Spherepublic javafx.scene.shape.CullFace getCullFace()
public void setCullFace(javafx.scene.shape.CullFace cf)
cf
- CullFace property of the Spherepublic java.lang.String outString()
public java.lang.String toString()
toString
in class java.lang.Object