edu.jhu.cs.cisst.vent.renderer.processing
Class SurfaceRenderer

java.lang.Object
  extended by edu.jhu.cs.cisst.vent.renderer.processing.RendererProcessing
      extended by edu.jhu.cs.cisst.vent.renderer.processing.RendererProcessing3D
          extended by edu.jhu.cs.cisst.vent.renderer.processing.SurfaceRenderer
All Implemented Interfaces:
VisualizationParameters, ParamViewObserver

public class SurfaceRenderer
extends RendererProcessing3D

The Class SurfaceRenderer.


Field Summary
protected  VisualizationProcessing3D applet
          The applet.
protected  java.awt.Color diffuseColor
          The diffuse color.
protected  ParamColor diffuseColorParam
          The diffuse color param.
protected  boolean flipNormals
          The flip normals.
protected  ParamBoolean flipNormalsParam
          The visible param.
protected  boolean gouraud
          The gouraud.
protected  ParamBoolean gouraudParam
          The visible param.
protected  PTriangleMesh mesh
          The mesh.
protected  EmbeddedSurface surf
          The surf.
protected  boolean visible
          The visible.
protected  ParamBoolean visibleParam
          The visible param.
 
Fields inherited from class edu.jhu.cs.cisst.vent.renderer.processing.RendererProcessing3D
bbox
 
Constructor Summary
SurfaceRenderer(VisualizationProcessing3D applet, EmbeddedSurface surf)
          Instantiates a new surface renderer.
 
Method Summary
 void createVisualizationParameters(ParamCollection visualizationParameters)
          Creates the visualization parameters.
 void draw()
          Draw.
 void setup()
          Setup.
 void setVisible(boolean visible)
          Sets the visible.
 void update(ParamModel model, ParamInputView view)
          Indicate that an update has occurred to a particular parameter in a particular view pane.
 void updateVisualizationParameters()
          Update all visualization parameters.
 
Methods inherited from class edu.jhu.cs.cisst.vent.renderer.processing.RendererProcessing3D
getBoundingBox, setBoundingBox
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applet

protected VisualizationProcessing3D applet
The applet.


surf

protected EmbeddedSurface surf
The surf.


mesh

protected PTriangleMesh mesh
The mesh.


visible

protected boolean visible
The visible.


gouraud

protected boolean gouraud
The gouraud.


flipNormals

protected boolean flipNormals
The flip normals.


visibleParam

protected ParamBoolean visibleParam
The visible param.


gouraudParam

protected ParamBoolean gouraudParam
The visible param.


flipNormalsParam

protected ParamBoolean flipNormalsParam
The visible param.


diffuseColorParam

protected ParamColor diffuseColorParam
The diffuse color param.


diffuseColor

protected java.awt.Color diffuseColor
The diffuse color.

Constructor Detail

SurfaceRenderer

public SurfaceRenderer(VisualizationProcessing3D applet,
                       EmbeddedSurface surf)
Instantiates a new surface renderer.

Parameters:
applet - the applet
surf - the surf
Method Detail

setVisible

public void setVisible(boolean visible)
Sets the visible.

Parameters:
visible - the new visible

draw

public void draw()
Description copied from class: RendererProcessing
Draw.

Specified by:
draw in class RendererProcessing
See Also:
RendererProcessing.draw()

createVisualizationParameters

public void createVisualizationParameters(ParamCollection visualizationParameters)
Description copied from interface: VisualizationParameters
Creates the visualization parameters.

Parameters:
visualizationParameters - the visualization parameters
See Also:
VisualizationParameters.createVisualizationParameters(edu.jhu.ece.iacl.jist.pipeline.parameter.ParamCollection)

updateVisualizationParameters

public void updateVisualizationParameters()
Description copied from interface: VisualizationParameters
Update all visualization parameters.

See Also:
VisualizationParameters.updateVisualizationParameters()

update

public void update(ParamModel model,
                   ParamInputView view)
Description copied from interface: ParamViewObserver
Indicate that an update has occurred to a particular parameter in a particular view pane.

Parameters:
model - parameter that was updated
view - input view
See Also:
ParamViewObserver.update(edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel, edu.jhu.ece.iacl.jist.pipeline.view.input.ParamInputView)

setup

public void setup()
Description copied from class: RendererProcessing
Setup.

Specified by:
setup in class RendererProcessing
See Also:
RendererProcessing.setup()