public class Box3D 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 |
---|
Box3D(double x,
double y,
double z,
double width,
double height,
double depth)
Constructs a Box3D object given its center point coordinates, width, height, and depth.
|
Box3D(double x,
double y,
double z,
double width,
double height,
double depth,
double xr,
double yr,
double zr)
Constructs a Box3D object given its center point coordinates, width, height, depth,
and x, y, z rotations.
|
Box3D(double x,
double y,
double z,
double width,
double height,
double depth,
double xr,
double yr,
double zr,
javafx.scene.paint.PhongMaterial m)
Constructs a Box3D object given its center point coordinates, width, height, depth,
x, y, z rotations and PhongMaterial.
|
Box3D(double x,
double y,
double z,
double width,
double height,
double depth,
javafx.scene.paint.PhongMaterial m)
Constructs a Box3D object given its center point coordinates, width, height, depth,
and PhongMaterial.
|
Box3D(javafx.geometry.Point3D p,
double width,
double height,
double depth)
Constructs a Box3D object given its center point, width, height, and depth.
|
Box3D(javafx.geometry.Point3D p,
double width,
double height,
double depth,
double xr,
double yr,
double zr)
Constructs a Box3D object given its center point, width, height, depth,
and x, y, z rotations.
|
Box3D(javafx.geometry.Point3D p,
double width,
double height,
double depth,
double xr,
double yr,
double zr,
javafx.scene.paint.PhongMaterial m)
Constructs a Box3D object given its center point, width, height, depth,
x, y, z rotations and PhongMaterial.
|
Box3D(javafx.geometry.Point3D p,
double width,
double height,
double depth,
javafx.scene.paint.PhongMaterial m)
Constructs a Box3D object given its center point, width, height, depth, and PhongMaterial.
|
Box3D(java.lang.String lineString)
Constructs a Box3D object given specification of the parameters
in Save Data File format.
|
Modifier and Type | Method and Description |
---|---|
javafx.scene.shape.CullFace |
getCullFace()
Gets the Box CullFace property
|
double |
getDepth()
Gets the Box depth
|
javafx.scene.shape.DrawMode |
getDrawMode()
Gets the Box DrawMode property
|
Line3D[] |
getEdges()
Returns the set of edges with the box centered at the origin
|
double |
getHeight()
Gets the Box height
|
javafx.scene.paint.PhongMaterial |
getMaterial()
Gets the Box PhongMaterial property
|
javafx.geometry.Point3D |
getP()
Gets the Box location
|
double |
getWidth()
Gets the Box width
|
double |
getXr()
Gets the Box x axis rotation
|
double |
getYr()
Gets the Box y axis rotation
|
double |
getZr()
Gets the Box z axis rotation
|
java.lang.String |
outString()
Returns a String containing all Box3D values for saving to a data file.
|
void |
setCullFace(javafx.scene.shape.CullFace cf)
Sets the Box CullFace property
|
void |
setDrawMode(javafx.scene.shape.DrawMode dm)
Sets the Box DrawMode property
|
void |
setMaterial(javafx.scene.paint.PhongMaterial m)
Sets the Box PhongMaterial property
|
java.lang.String |
toString()
Returns a String for printing all Box3D values
|
public Box3D(javafx.geometry.Point3D p, double width, double height, double depth)
p
- Point3D center point of the boxwidth
- Width of the box in user coordinatesheight
- Height of the box in user coordinatesdepth
- Depth of the box in user coordinatespublic Box3D(javafx.geometry.Point3D p, double width, double height, double depth, javafx.scene.paint.PhongMaterial m)
p
- Point3D center point of the boxwidth
- Width of the box in user coordinatesheight
- Height of the box in user coordinatesdepth
- Depth of the box in user coordinatesm
- PhongMaterial determining box colorpublic Box3D(javafx.geometry.Point3D p, double width, double height, double depth, double xr, double yr, double zr)
p
- Point3D center point of the boxwidth
- Width of the box in user coordinatesheight
- Height of the box in user coordinatesdepth
- Depth of the box in user coordinatesxr
- Rotation in degrees about the x axisyr
- Rotation in degrees about the y axiszr
- Rotation in degrees about the z axispublic Box3D(javafx.geometry.Point3D p, double width, double height, double depth, double xr, double yr, double zr, javafx.scene.paint.PhongMaterial m)
p
- Point3D center point of the boxwidth
- Width of the box in user coordinatesheight
- Height of the box in user coordinatesdepth
- Depth of the box 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 box colorpublic Box3D(double x, double y, double z, double width, double height, double depth)
x
- Center point x coordinate in user coordinatesy
- Center point y coordinate in user coordinatesz
- Center point z coordinate in user coordinateswidth
- Width of the box in user coordinatesheight
- Height of the box in user coordinatesdepth
- Depth of the box in user coordinatespublic Box3D(double x, double y, double z, double width, double height, double depth, 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 coordinateswidth
- Width of the box in user coordinatesheight
- Height of the box in user coordinatesdepth
- Depth of the box in user coordinatesm
- PhongMaterial determining box colorpublic Box3D(double x, double y, double z, double width, double height, double depth, 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 coordinateswidth
- Width of the box in user coordinatesheight
- Height of the box in user coordinatesdepth
- Depth of the box in user coordinatesxr
- Rotation in degrees about the x axisyr
- Rotation in degrees about the y axiszr
- Rotation in degrees about the z axispublic Box3D(double x, double y, double z, double width, double height, double depth, 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 coordinateswidth
- Width of the box in user coordinatesheight
- Height of the box in user coordinatesdepth
- Depth of the box 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 box colorpublic Box3D(java.lang.String lineString)
lineString
- Box: format data stringpublic javafx.geometry.Point3D getP()
public double getWidth()
public double getHeight()
public double getDepth()
public double getXr()
public double getYr()
public double getZr()
public Line3D[] getEdges()
public javafx.scene.paint.PhongMaterial getMaterial()
public void setMaterial(javafx.scene.paint.PhongMaterial m)
m
- PhongMaterial property of the Boxpublic javafx.scene.shape.DrawMode getDrawMode()
public void setDrawMode(javafx.scene.shape.DrawMode dm)
dm
- DrawMode property of the Boxpublic javafx.scene.shape.CullFace getCullFace()
public void setCullFace(javafx.scene.shape.CullFace cf)
cf
- CullFace property of the Boxpublic java.lang.String outString()
public java.lang.String toString()
toString
in class java.lang.Object