|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SurfaceController
| Method Summary | |
|---|---|
void |
addToDisplay(SurfacePlugin plugin)
Registers this plugin instance so that its display method will be called. |
BufferedImage |
captureImage(Surface surface,
boolean showLinesAndPoints)
Returns a BufferedImage of the specified surface. |
javax.vecmath.Point3d |
convertViewerCoordinateToSurfacePoint(Coordinate coor,
boolean isWorld)
Convert viewer coordinate to surface coordinate. |
GLCanvas |
getCanvas()
Returns the canvas instance. |
float[] |
getLightingValues()
Returns the lighting values (ambient, diffuse, specular, directionX, directionY, directionZ). |
float[] |
getMaterialValues(Surface surface)
Returns the material values (red, green, blue, shininess, emissivity, transparency). |
Surface[] |
getSurfaces()
Returns a list of all surfaces being rendered (starts with the base surface). |
JFrame |
getSurfaceViewerFrame()
Returns the surface viewer frame. |
float |
getThreshold()
Returns the threshold used to build the surface. |
BasicController |
getViewerController()
Returns the associated viewer controller |
double[] |
getViewTransform()
Returns a 4x4 of the view transform. |
void |
removeFromDisplay(SurfacePlugin plugin)
Unregisters this plugin instance. |
void |
setLightingValues(float ambient,
float diffuse,
float specular,
float[] direction)
Sets the lighting values. |
void |
setMaterialValues(Surface surface,
float[] color,
float shininess,
float emissivity,
float transparency)
Sets the material values. |
void |
setViewTransform(double[] xform)
Sets the view transform. |
void |
updateSurface()
Redraws the surface. |
| Method Detail |
|---|
void addToDisplay(SurfacePlugin plugin)
plugin - the plugin
BufferedImage captureImage(Surface surface,
boolean showLinesAndPoints)
surface - the surface to capture or null to capture allshowLinesAndPoints - true to include added lines and points in capture, false otherwise
javax.vecmath.Point3d convertViewerCoordinateToSurfacePoint(Coordinate coor,
boolean isWorld)
coor - the viewer coordinateisWorld - true if the coordinate is in world space
GLCanvas getCanvas()
float[] getLightingValues()
float[] getMaterialValues(Surface surface)
surface - the surface from which the material values should be returned
Surface[] getSurfaces()
JFrame getSurfaceViewerFrame()
float getThreshold()
BasicController getViewerController()
double[] getViewTransform()
void removeFromDisplay(SurfacePlugin plugin)
plugin - the plugin to remove
void setLightingValues(float ambient,
float diffuse,
float specular,
float[] direction)
ambient - the ambient lighting valuediffuse - the diffuse lighting valuespecular - the specular lighting valuedirection - x, y, z
void setMaterialValues(Surface surface,
float[] color,
float shininess,
float emissivity,
float transparency)
surface - the surface to apply the changescolor - red, green, blueshininess - the shininess material valueemissivity - the emissivity material valuetransparency - the transparency material valuevoid setViewTransform(double[] xform)
xform - a 4x4 transformvoid updateSurface()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||