org.stellarium.projector
Class SphericMirrorProjector

java.lang.Object
  extended by org.stellarium.projector.DefaultProjector
      extended by org.stellarium.projector.CustomProjector
          extended by org.stellarium.projector.SphericMirrorProjector
All Implemented Interfaces:
Projector

public class SphericMirrorProjector
extends CustomProjector

Version:
0.8.2
Author:
Fred Simon

Nested Class Summary
 
Nested classes/interfaces inherited from class org.stellarium.projector.DefaultProjector
DefaultProjector.AutoZoom, DefaultProjector.ProjectEarthEqu, DefaultProjector.ProjectJ2000, DefaultProjector.ProjectLocal, DefaultProjector.PROJECTOR_MASK_TYPE
 
Nested classes/interfaces inherited from interface org.stellarium.projector.Projector
Projector.ProjFunc, Projector.TYPE
 
Field Summary
private  SphericMirrorCalculator calc
           
 
Fields inherited from class org.stellarium.projector.DefaultProjector
center, flagAutoZoom, flip_horz, flip_vert, fov, gravityLabels, invMatEarthEquToEye, invMatHelioToEye, invMatJ2000ToEye, invMatLocalToEye, maskType, matEarthEquToEye, matHelioToEye, matJ2000ToEye, matLocalToEye, matProjection, maxFov, minFov, projectEarthEquFunc, projectJ2000Func, projectLocalFunc, vecViewport, view_scaling_factor, zFar, zNear, zoomMove
 
Constructor Summary
SphericMirrorProjector(Rectangle4i viewport, double fov)
           
 
Method Summary
 Projector.TYPE getType()
           
 boolean needGlFrontFaceCW()
           
 boolean projectCustom(javax.vecmath.Tuple3d v, javax.vecmath.Tuple3d win, javax.vecmath.Matrix4d mat)
           
 void setViewport(int x, int y, int w, int h)
           
(package private)  void unproject(double x, double y, javax.vecmath.Matrix4d m, javax.vecmath.Point3d v)
          transformation from screen 2D point x,y to object.
 
Methods inherited from class org.stellarium.projector.CustomProjector
initProjectMatrix, sCylinder, sSphere, sVertex3
 
Methods inherited from class org.stellarium.projector.DefaultProjector
applyViewport, changeFov, checkInViewport, create, drawViewportShape, getAimFov, getClippingPlanes, getFlagGravityLabels, getFlipHorz, getFlipVert, getFov, getMaskType, getMaxFov, getProjectEarthEquFunc, getProjectJ2000Func, getProjectLocalFunc, getRadPerPixel, getViewport, getViewportHeight, getViewportPosX, getViewportPosY, getViewportWidth, maskTypeToString, printGravity180, printGravity180, projectCustomCheck, projectCustomLineCheck, projectEarthEqu, projectEarthEquCheck, projectEarthEquLineCheck, projectHelio, projectHelioCheck, projectHelioLineCheck, projectJ2000, projectJ2000Check, projectJ2000LineCheck, projectLocal, projectLocalCheck, resetPerspectiveProjection, sDisk, setClippingPlanes, setFlagGravityLabels, setFlipHorz, setFlipVert, setFov, setMaskType, setMaxFov, setModelviewMatrices, setOrthographicProjection, setViewport, setViewportHeight, setViewportPosX, setViewportPosY, setViewportWidth, sHalfSphere, sRing, sSphere, sSphereMap, sSphereMapTexCoordFast, stringToMaskType, stringToType, typeToString, unprojectEarthEqu, unprojectHelio, unprojectJ2000, unprojectLocal, updateAutoZoom, zoomTo, zoomTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

calc

private SphericMirrorCalculator calc
Constructor Detail

SphericMirrorProjector

public SphericMirrorProjector(Rectangle4i viewport,
                              double fov)
Method Detail

getType

public Projector.TYPE getType()
Specified by:
getType in interface Projector
Overrides:
getType in class DefaultProjector

needGlFrontFaceCW

public boolean needGlFrontFaceCW()
Specified by:
needGlFrontFaceCW in interface Projector
Overrides:
needGlFrontFaceCW in class DefaultProjector

setViewport

public void setViewport(int x,
                        int y,
                        int w,
                        int h)
Overrides:
setViewport in class DefaultProjector

projectCustom

public boolean projectCustom(javax.vecmath.Tuple3d v,
                             javax.vecmath.Tuple3d win,
                             javax.vecmath.Matrix4d mat)
Overrides:
projectCustom in class DefaultProjector

unproject

void unproject(double x,
               double y,
               javax.vecmath.Matrix4d m,
               javax.vecmath.Point3d v)
Description copied from class: DefaultProjector
transformation from screen 2D point x,y to object.

Overrides:
unproject in class DefaultProjector
Parameters:
x - The 2D point absciss
y - The 2D point ordonnee
m - The already inverted full tranfo matrix