edu.jhu.cs.cisst.vent.widgets
Class VisualizationTriangleMesh

java.lang.Object
  extended by PApplet
      extended by edu.jhu.cs.cisst.vent.VisualizationProcessing
          extended by edu.jhu.cs.cisst.vent.VisualizationProcessing3D
              extended by edu.jhu.cs.cisst.vent.widgets.VisualizationTriangleMesh
All Implemented Interfaces:
Visualization, VisualizationParameters, ParamViewObserver, Refreshable

public class VisualizationTriangleMesh
extends VisualizationProcessing3D
implements Refreshable

The Class VisualizationTriangleMesh.


Field Summary
protected  float axisLength
          The axis length.
protected  BoundingBox bbox
          The bounding box.
protected  java.awt.Color bgColor
          The bg color.
protected  ParamColor bgColorParam
          The bg color param.
protected  Point3f center
          The center.
protected  ParamPointFloat centerParam
          The center param.
protected  Refresher refresher
          The refresher.
protected  boolean requestUpdate
          The request update.
protected  float rotRate
          The rotation rate in radians.
protected  float rotx
          The rotation in x.
protected  ParamDouble rotxParam
          The scale param.
protected  float roty
          The rotation in y.
protected  ParamDouble rotyParam
          The scale param.
protected  float rotz
          The rotation in z.
protected  ParamDouble rotzParam
          The scale param.
protected  float scaleObject
          The scale object.
protected  ParamDouble scaleParam
          The scale param.
protected  float scaleRate
          The scale rate.
protected  ParamCollection sceneParams
          The scene params.
protected  boolean showAxes
          The show axes.
protected  ParamBoolean showAxesParam
          The show axes param.
protected  ParamDouble txParam
          The scale param.
protected  ParamDouble tyParam
          The scale param.
 
Fields inherited from class edu.jhu.cs.cisst.vent.VisualizationProcessing3D
height, renderers, width
 
Fields inherited from class edu.jhu.cs.cisst.vent.VisualizationProcessing
name, requestScreenShot, screenshot, visualizationParameters
 
Constructor Summary
VisualizationTriangleMesh(int width, int height)
          Instantiates a new visualization triangle mesh.
 
Method Summary
 void add(EmbeddedSurface surf)
          Adds the.
 void createVisualizationParameters(ParamCollection visualizationParameters)
          Creates the visualization parameters.
 void dispose()
          Dispose.
 void draw()
          Draw.
protected  void drawAxes()
          Draw axes.
static java.lang.String getVersion()
          Gets the version.
 void keyPressed()
          Mouse dragged.
 void mouseDragged()
           
 void refresh()
          Refresh object.
protected  void resetScale()
          Reset scale.
 void setAxesVisible(boolean visible)
          Sets the axes visible.
 void setup()
          Setup.
 void update(ParamModel model, ParamInputView view)
          Update.
 void updateVisualizationParameters()
          Update all visualization parameters.
 
Methods inherited from class edu.jhu.cs.cisst.vent.VisualizationProcessing3D
getScreenshot
 
Methods inherited from class edu.jhu.cs.cisst.vent.VisualizationProcessing
create, getComponent, getName, getVideoFrames, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bbox

protected BoundingBox bbox
The bounding box.


rotRate

protected float rotRate
The rotation rate in radians.


scaleRate

protected float scaleRate
The scale rate.


rotx

protected float rotx
The rotation in x.


roty

protected float roty
The rotation in y.


rotz

protected float rotz
The rotation in z.


bgColor

protected java.awt.Color bgColor
The bg color.


axisLength

protected float axisLength
The axis length.


showAxes

protected boolean showAxes
The show axes.


scaleObject

protected float scaleObject
The scale object.


showAxesParam

protected ParamBoolean showAxesParam
The show axes param.


requestUpdate

protected boolean requestUpdate
The request update.


sceneParams

protected ParamCollection sceneParams
The scene params.


txParam

protected ParamDouble txParam
The scale param.


tyParam

protected ParamDouble tyParam
The scale param.


rotxParam

protected ParamDouble rotxParam
The scale param.


rotyParam

protected ParamDouble rotyParam
The scale param.


rotzParam

protected ParamDouble rotzParam
The scale param.


scaleParam

protected ParamDouble scaleParam
The scale param.


centerParam

protected ParamPointFloat centerParam
The center param.


bgColorParam

protected ParamColor bgColorParam
The bg color param.


refresher

protected Refresher refresher
The refresher.


center

protected Point3f center
The center.

Constructor Detail

VisualizationTriangleMesh

public VisualizationTriangleMesh(int width,
                                 int height)
Instantiates a new visualization triangle mesh.

Parameters:
width - the width
height - the height
Method Detail

getVersion

public static java.lang.String getVersion()
Gets the version.

Returns:
the version

drawAxes

protected void drawAxes()
Draw axes.


setup

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

Overrides:
setup in class VisualizationProcessing3D
See Also:
processing.core.PApplet#setup()

resetScale

protected void resetScale()
Reset scale.


add

public void add(EmbeddedSurface surf)
Adds the.

Parameters:
surf - the surf

draw

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

Overrides:
draw in class VisualizationProcessing3D
See Also:
processing.core.PApplet#draw()

keyPressed

public void keyPressed()
Mouse dragged.

See Also:
processing.core.PApplet#mouseDragged()

mouseDragged

public void mouseDragged()

createVisualizationParameters

public void createVisualizationParameters(ParamCollection visualizationParameters)
Creates the visualization parameters.

Specified by:
createVisualizationParameters in interface VisualizationParameters
Overrides:
createVisualizationParameters in class VisualizationProcessing3D
Parameters:
visualizationParameters - the visualization parameters
See Also:
VisualizationParameters.createVisualizationParameters(edu.jhu.ece.iacl.jist.pipeline.parameter.ParamCollection)

update

public void update(ParamModel model,
                   ParamInputView view)
Update.

Specified by:
update in interface ParamViewObserver
Overrides:
update in class VisualizationProcessing3D
Parameters:
model - the model
view - the view
See Also:
ParamViewObserver.update(edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel, edu.jhu.ece.iacl.jist.pipeline.view.input.ParamInputView)

updateVisualizationParameters

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

Specified by:
updateVisualizationParameters in interface VisualizationParameters
Overrides:
updateVisualizationParameters in class VisualizationProcessing3D
See Also:
VisualizationParameters.updateVisualizationParameters()

setAxesVisible

public void setAxesVisible(boolean visible)
Sets the axes visible.

Parameters:
visible - the new axes visible

dispose

public void dispose()
Description copied from class: VisualizationProcessing
Dispose.

Specified by:
dispose in interface Visualization
Overrides:
dispose in class VisualizationProcessing
See Also:
Visualization.dispose()

refresh

public void refresh()
Description copied from interface: Refreshable
Refresh object.

Specified by:
refresh in interface Refreshable