org.stellarium.projector
Class ViewportDistorter.ViewportDistorterFisheyeToSphericMirror

java.lang.Object
  extended by org.stellarium.projector.ViewportDistorter
      extended by org.stellarium.projector.ViewportDistorter.ViewportDistorterFisheyeToSphericMirror
Enclosing class:
ViewportDistorter

static class ViewportDistorter.ViewportDistorterFisheyeToSphericMirror
extends ViewportDistorter


Nested Class Summary
(package private)  class ViewportDistorter.ViewportDistorterFisheyeToSphericMirror.VertexData
           
 
Nested classes/interfaces inherited from class org.stellarium.projector.ViewportDistorter
ViewportDistorter.ViewportDistorterDummy, ViewportDistorter.ViewportDistorterFisheyeToSphericMirror
 
Field Summary
(package private)  SphericMirrorCalculator calc
           
 int mirrorTexture
           
 int screenH
           
 int screenW
           
 float textureUsed
           
(package private)  ViewportDistorter.ViewportDistorterFisheyeToSphericMirror.VertexData[] transArray
           
(package private)  int transHeight
           
(package private)  int transWidth
           
 int viewport_wh
           
 
Constructor Summary
ViewportDistorter.ViewportDistorterFisheyeToSphericMirror(int width, int height, Projector prj)
           
 
Method Summary
 void distort()
           
 boolean distortXY(int x, int y)
           
protected  void finalize()
           
 java.lang.String getType()
           
 void init(IniFileParser conf)
           
 
Methods inherited from class org.stellarium.projector.ViewportDistorter
create
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

screenW

public int screenW

screenH

public int screenH

mirrorTexture

public int mirrorTexture

viewport_wh

public int viewport_wh

textureUsed

public float textureUsed

transArray

ViewportDistorter.ViewportDistorterFisheyeToSphericMirror.VertexData[] transArray

transWidth

int transWidth

transHeight

int transHeight

calc

SphericMirrorCalculator calc
Constructor Detail

ViewportDistorter.ViewportDistorterFisheyeToSphericMirror

public ViewportDistorter.ViewportDistorterFisheyeToSphericMirror(int width,
                                                                 int height,
                                                                 Projector prj)
                                                          throws StellariumException
Throws:
StellariumException
Method Detail

getType

public java.lang.String getType()
Specified by:
getType in class ViewportDistorter

init

public void init(IniFileParser conf)
Specified by:
init in class ViewportDistorter

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

distortXY

public boolean distortXY(int x,
                         int y)

distort

public void distort()
Specified by:
distort in class ViewportDistorter