NASA World Wind

gov.nasa.worldwindx.examples.util
Class ViewVolumeRenderer

java.lang.Object
  extended by gov.nasa.worldwindx.examples.util.ViewVolumeRenderer

public class ViewVolumeRenderer
extends Object


Nested Class Summary
protected  class ViewVolumeRenderer.OrderedViewVolume
           
 
Field Summary
protected  double size
           
 
Constructor Summary
ViewVolumeRenderer()
           
 
Method Summary
protected  void draw(DrawContext dc, Matrix modelview, Matrix projection, Rectangle viewport)
           
protected  void drawAxes(DrawContext dc, Matrix modelview)
           
protected  void drawClipVolume(DrawContext dc, Matrix modelview, Matrix projection, Rectangle viewport)
           
protected static void drawLine(DrawContext dc, Vec4 a, Vec4 b)
           
protected static void drawQuad(DrawContext dc, Vec4 ll, Vec4 lr, Vec4 ur, Vec4 ul)
           
protected static void drawTriangle(DrawContext dc, Vec4 a, Vec4 b, Vec4 c)
           
protected static void drawVolume(DrawContext dc, Matrix modelview, Matrix projection, Rectangle viewport)
           
 double getSize()
           
 void render(DrawContext dc, Matrix modelview, Matrix projection, Rectangle viewport)
           
 void setSize(double size)
           
protected static Vec4 worldPointFromScreenPoint(DrawContext dc, Rectangle viewport, Matrix modelview, Matrix projection, Vec4 screenPoint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

protected double size
Constructor Detail

ViewVolumeRenderer

public ViewVolumeRenderer()
Method Detail

draw

protected void draw(DrawContext dc,
                    Matrix modelview,
                    Matrix projection,
                    Rectangle viewport)

drawAxes

protected void drawAxes(DrawContext dc,
                        Matrix modelview)

drawClipVolume

protected void drawClipVolume(DrawContext dc,
                              Matrix modelview,
                              Matrix projection,
                              Rectangle viewport)

drawLine

protected static void drawLine(DrawContext dc,
                               Vec4 a,
                               Vec4 b)

drawQuad

protected static void drawQuad(DrawContext dc,
                               Vec4 ll,
                               Vec4 lr,
                               Vec4 ur,
                               Vec4 ul)

drawTriangle

protected static void drawTriangle(DrawContext dc,
                                   Vec4 a,
                                   Vec4 b,
                                   Vec4 c)

drawVolume

protected static void drawVolume(DrawContext dc,
                                 Matrix modelview,
                                 Matrix projection,
                                 Rectangle viewport)

getSize

public double getSize()

render

public void render(DrawContext dc,
                   Matrix modelview,
                   Matrix projection,
                   Rectangle viewport)

setSize

public void setSize(double size)

worldPointFromScreenPoint

protected static Vec4 worldPointFromScreenPoint(DrawContext dc,
                                                Rectangle viewport,
                                                Matrix modelview,
                                                Matrix projection,
                                                Vec4 screenPoint)

NASA World Wind