public interface GeomSSScene
Modified by: Joseph A. Huwaldt
Modifier and Type | Method and Description |
---|---|
void |
center()
Centers the geometry in the display.
|
void |
centerAndZoom()
Centers the geometry in the display and zooms until the geometry fills the display.
|
void |
draw(GeomElement newGeom)
Draws the specified geometry element into the 3D scene without erasing the existing
geometry.
|
void |
draw(GeomElement newGeom,
boolean erase)
Draws the specified geometry element in the 3D scene.
|
void |
erase()
Erases all the geometry from the 3D scene.
|
void |
erase(GeomElement geometry)
Erases the specified geometry from the 3D scene (if possible).
|
Parameter<Length> |
getDrawTolerance()
Return the tolerance used when drawing parametric objects such as curves and
surfaces.
|
java.awt.Color |
getLineColor() |
int |
getLineWidth() |
java.awt.Color |
getPointColor()
Returns the color used when rendering points.
|
int |
getPointSize() |
ProjectionPolicy |
getProjectionPolicy() |
RenderType |
getRenderType() |
float |
getSurfaceAlpha()
Get the alpha or transparency used when rendering surfaces or point-arrays.
|
java.awt.Color |
getSurfaceColor(SurfaceColorType colorType)
Get the color (of the specified type) used to render surfaces and point-arrays.
|
float |
getSurfaceShininess()
Get the shininess used when rendering surfaces and point-arrays.
|
boolean |
isMirrored() |
GeomList |
pick()
Pick items from the scene by control-clicking with the mouse.
|
void |
setDrawTolerance(Parameter<Length> tol)
Set the tolerance used when drawing parametric objects such as curves and surfaces.
|
void |
setLineColor(java.awt.Color color)
Sets the color used when rendering curves and lines.
|
void |
setLineWidth(int pixels)
Set the width that line/curve objects are rendered in pixels.
|
void |
setMirrored(boolean mirrored)
Sets a flag indicating that the geometry is mirrored about the XZ plane of
symmetry.
|
void |
setPointColor(java.awt.Color color)
Sets the color used when rendering points.
|
void |
setPointSize(int pixels)
Set the size that Point objects are rendered in pixels.
|
void |
setProjectionPolicy(ProjectionPolicy policy)
Sets the projection policy for this scene.
|
void |
setRenderType(RenderType type)
Sets
rendering type for all the objects currently
displayed in the entire scene. |
void |
setSurfaceAlpha(float alpha)
Set the alpha or transparency used to render surfaces and point-arrays.
|
void |
setSurfaceColor(SurfaceColorType colorType,
java.awt.Color color)
Set the color (of the specified type) used to render surfaces and point-arrays.
|
void |
setSurfaceShininess(float shininess)
Set the shininess used when rendering surfaces and point-arrays.
|
void draw(GeomElement newGeom)
draw(newGeom, false);
.newGeom
- The new geometry to be displayed on the 3D canvas.void draw(GeomElement newGeom, boolean erase)
newGeom
- The new geometry to be displayed on the 3D canvas.erase
- Set to true
to erase the geometry currently displayed.
Set to false
to add the new geometry to the existing
display.void erase()
void erase(GeomElement geometry)
geometry
- The specific geometry to be erased from the 3D scene.void center()
void centerAndZoom()
GeomList pick()
void setMirrored(boolean mirrored)
mirrored
- Set to true
to turn on mirroring.boolean isMirrored()
void setRenderType(RenderType type)
rendering type
for all the objects currently
displayed in the entire scene.type
- The render type to set.RenderType getRenderType()
rendering type
for the 1st item in the
scene.void setPointColor(java.awt.Color color)
color
- The color to use for points drawn in the future.java.awt.Color getPointColor()
void setPointSize(int pixels)
pixels
- The number of pixels to use when displaying points.int getPointSize()
void setLineColor(java.awt.Color color)
color
- The color to use when rendering lines in the future.java.awt.Color getLineColor()
void setLineWidth(int pixels)
pixels
- The number of pixels line-width to use when rendering lines.int getLineWidth()
void setDrawTolerance(Parameter<Length> tol)
null
or equal to 0
, it
will be silently ignored.tol
- The tolerance used when drawing parametric objects such as curves and
surfaces.Parameter<Length> getDrawTolerance()
ProjectionPolicy getProjectionPolicy()
void setProjectionPolicy(ProjectionPolicy policy)
policy
- The new projection policy, one of PARALLEL_PROJECTION or
PERSPECTIVE_PROJECTION.void setSurfaceColor(SurfaceColorType colorType, java.awt.Color color)
colorType
- The aspect or type of the surface color that is being set.color
- The color to use for the specified type of surface color. The
alpha is ignored.setSurfaceAlpha(float)
java.awt.Color getSurfaceColor(SurfaceColorType colorType)
colorType
- The aspect or type of the surface color that is being set.getSurfaceAlpha()
void setSurfaceAlpha(float alpha)
alpha
- The alpha value to use (0.0=completely transparent, 1.0=completely
opaque).float getSurfaceAlpha()
void setSurfaceShininess(float shininess)
shininess
- The shininess to use in the range [0.0, 1.0] where 0.0 is not
shiny and 1.0 is very shiny. Values outside this range are
clamped.float getSurfaceShininess()