1 #ifndef ProjectionFactory_h 2 #define ProjectionFactory_h 32 class RingPlaneProjection;
100 bool sizeMatch =
true);
102 int &samples,
int &lines,
105 int &samples,
int &lines,
108 int &samples,
int &lines,
122 static Plugin m_projPlugin;
140 PFPixelMapper(
double pixelResolution,
double upperLeftX,
double upperLeftY) {
141 p_pixelResolution = pixelResolution;
142 p_upperLeftX = upperLeftX;
143 p_upperLeftY = upperLeftY;
152 double WorldX(
const double projX)
const {
153 return (projX - p_upperLeftX) / p_pixelResolution + 0.5;
162 double WorldY(
const double projY)
const {
163 return (p_upperLeftY - projY) / p_pixelResolution + 0.5;
173 return (sample - 0.5) * p_pixelResolution + p_upperLeftX;
183 return p_upperLeftY - (line - 0.5) * p_pixelResolution;
188 return p_pixelResolution;
192 double p_pixelResolution;
static Isis::Projection * Create(Isis::Pvl &label, bool allowDefaults=false)
This method returns a pointer to a Projection object.
static Isis::Projection * CreateFromCube(Isis::Cube &cube)
This method is a helper method.
~ProjectionFactory()
Destroys the ProjectionFactory object.
static Isis::Projection * RingsCreate(Isis::Pvl &label, bool allowDefaults=false)
This method returns a pointer to a RingPlaneProjection object.
Loads plugins from a shared library.
static Isis::Projection * RingsCreateForCube(Isis::Pvl &label, int &samples, int &lines, bool sizeMatch)
This method creates a projection for a cube to a ring plane given a label.
Initialize a map projection.
Base class for Map Projections.
ProjectionFactory()
Constructor (Its private, so you cannot use it.) Use the Create method instead.
static Isis::Projection * CreateForCube(Isis::Pvl &label, int &ns, int &nl, bool sizeMatch=true)
This method creates a map projection for a cube given a label.
static Isis::Projection * RingsCreateFromCube(Isis::Cube &cube)
This method is a helper method.
double WorldX(const double projX) const
Returns the world x position for the given x projection value.
PFPixelMapper(double pixelResolution, double upperLeftX, double upperLeftY)
Constructs a PFFixelMapper object with the given pixel resolution and location.
double ProjectionX(const double sample) const
Returns the x projection of the given sample.
Container for cube-like labels.
double Resolution() const
Returns the pixel resolution.
double WorldY(const double projY) const
Returns the world y position for the given y projection value.
double ProjectionY(const double line) const
Returns the y projection of the given line.
Create a mapping between a projection and other coordinate system.
Namespace for ISIS/Bullet specific routines.
IO Handler for Isis Cubes.