org.stellarium.projector
Interface Projector

All Known Implementing Classes:
CustomProjector, CylinderProjector, DefaultProjector, FisheyeProjector, SphericMirrorProjector, StereographicProjector

public interface Projector

Version:
0.8.2
Author:
Jerome Beau, Fred Simon

Nested Class Summary
static interface Projector.ProjFunc
           
static class Projector.TYPE
           
 
Method Summary
 boolean getFlagGravityLabels()
           
 double getFov()
          Get the Field of View in degree
 Projector.ProjFunc getProjectEarthEquFunc()
           
 Projector.ProjFunc getProjectJ2000Func()
           
 Projector.ProjFunc getProjectLocalFunc()
           
 Projector.TYPE getType()
           
 Rectangle4i getViewport()
           
 int getViewportHeight()
           
 int getViewportPosX()
           
 int getViewportPosY()
           
 int getViewportWidth()
           
 boolean needGlFrontFaceCW()
           
 void printGravity180(SFontIfc font, double x, double y, java.lang.String ws, boolean speedOptimize, float xshift, float yshift)
           
 void printGravity180(SFontIfc fontIfc, double x, double y, java.lang.String ws, float xshift, float yshift)
           
 boolean projectEarthEqu(javax.vecmath.Point3d v, javax.vecmath.Point3d win)
           
 boolean projectJ2000(javax.vecmath.Point3d v, javax.vecmath.Point3d win)
           
 boolean projectJ2000Check(javax.vecmath.Tuple3d v, javax.vecmath.Point3d win)
           
 boolean projectJ2000LineCheck(javax.vecmath.Point3d v1, javax.vecmath.Point3d win1, javax.vecmath.Point3d v2, javax.vecmath.Point3d win2)
           
 boolean projectLocal(javax.vecmath.Point3d v, javax.vecmath.Point3d win)
          Same function with input vector v in local coordinate
 void resetPerspectiveProjection()
           
 void setMaxFov(double max)
          Set the maximum Field of View in degree
 void setOrthographicProjection()
           
 void sSphere(double radius, double oneMinusOblateness, int slices, int stacks, javax.vecmath.Matrix4d mat)
          Method by orientInside false by default
 void sSphere(double radius, double oneMinusOblateness, int slices, int stacks, javax.vecmath.Matrix4d mat, boolean orientInside)
          Reimplementation of gluSphere : glu is overrided for non standard projection
 void sVertex3(double x, double y, double z, javax.vecmath.Matrix4d mat)
           
 void unprojectLocal(double x, double y, javax.vecmath.Point3d v)
           
 

Method Detail

getFov

double getFov()
Get the Field of View in degree

Returns:

setOrthographicProjection

void setOrthographicProjection()

resetPerspectiveProjection

void resetPerspectiveProjection()

getFlagGravityLabels

boolean getFlagGravityLabels()

printGravity180

void printGravity180(SFontIfc fontIfc,
                     double x,
                     double y,
                     java.lang.String ws,
                     float xshift,
                     float yshift)

printGravity180

void printGravity180(SFontIfc font,
                     double x,
                     double y,
                     java.lang.String ws,
                     boolean speedOptimize,
                     float xshift,
                     float yshift)

getViewportPosX

int getViewportPosX()

getViewportPosY

int getViewportPosY()

getViewportWidth

int getViewportWidth()

getViewportHeight

int getViewportHeight()

getViewport

Rectangle4i getViewport()

projectJ2000Check

boolean projectJ2000Check(javax.vecmath.Tuple3d v,
                          javax.vecmath.Point3d win)

projectJ2000LineCheck

boolean projectJ2000LineCheck(javax.vecmath.Point3d v1,
                              javax.vecmath.Point3d win1,
                              javax.vecmath.Point3d v2,
                              javax.vecmath.Point3d win2)

getType

Projector.TYPE getType()

setMaxFov

void setMaxFov(double max)
Set the maximum Field of View in degree

Parameters:
max - The new maximum field of view

sSphere

void sSphere(double radius,
             double oneMinusOblateness,
             int slices,
             int stacks,
             javax.vecmath.Matrix4d mat)
Method by orientInside false by default


sSphere

void sSphere(double radius,
             double oneMinusOblateness,
             int slices,
             int stacks,
             javax.vecmath.Matrix4d mat,
             boolean orientInside)
Reimplementation of gluSphere : glu is overrided for non standard projection

Parameters:
radius -
slices -
stacks -
mat -
orientInside -

projectEarthEqu

boolean projectEarthEqu(javax.vecmath.Point3d v,
                        javax.vecmath.Point3d win)

projectLocal

boolean projectLocal(javax.vecmath.Point3d v,
                     javax.vecmath.Point3d win)
Same function with input vector v in local coordinate


getProjectEarthEquFunc

Projector.ProjFunc getProjectEarthEquFunc()

getProjectLocalFunc

Projector.ProjFunc getProjectLocalFunc()

getProjectJ2000Func

Projector.ProjFunc getProjectJ2000Func()

needGlFrontFaceCW

boolean needGlFrontFaceCW()

unprojectLocal

void unprojectLocal(double x,
                    double y,
                    javax.vecmath.Point3d v)

sVertex3

void sVertex3(double x,
              double y,
              double z,
              javax.vecmath.Matrix4d mat)

projectJ2000

boolean projectJ2000(javax.vecmath.Point3d v,
                     javax.vecmath.Point3d win)