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