1#ifndef ProjectionFactory_h
2#define ProjectionFactory_h
16 class RingPlaneProjection;
84 bool sizeMatch =
true);
86 int &samples,
int &lines,
89 int &samples,
int &lines,
92 int &samples,
int &lines,
106 static Plugin m_projPlugin;
124 PFPixelMapper(
double pixelResolution,
double upperLeftX,
double upperLeftY) {
125 p_pixelResolution = pixelResolution;
126 p_upperLeftX = upperLeftX;
127 p_upperLeftY = upperLeftY;
136 double WorldX(
const double projX)
const {
137 return (projX - p_upperLeftX) / p_pixelResolution + 0.5;
146 double WorldY(
const double projY)
const {
147 return (p_upperLeftY - projY) / p_pixelResolution + 0.5;
157 return (sample - 0.5) * p_pixelResolution + p_upperLeftX;
167 return p_upperLeftY - (line - 0.5) * p_pixelResolution;
172 return p_pixelResolution;
176 double p_pixelResolution;
IO Handler for Isis Cubes.
Definition Cube.h:168
Definition ProjectionFactory.h:115
double Resolution() const
Returns the pixel resolution.
Definition ProjectionFactory.h:171
PFPixelMapper(double pixelResolution, double upperLeftX, double upperLeftY)
Constructs a PFFixelMapper object with the given pixel resolution and location.
Definition ProjectionFactory.h:124
double WorldY(const double projY) const
Returns the world y position for the given y projection value.
Definition ProjectionFactory.h:146
double ProjectionX(const double sample) const
Returns the x projection of the given sample.
Definition ProjectionFactory.h:156
double ProjectionY(const double line) const
Returns the y projection of the given line.
Definition ProjectionFactory.h:166
double WorldX(const double projX) const
Returns the world x position for the given x projection value.
Definition ProjectionFactory.h:136
Loads plugins from a shared library.
Definition Plugin.h:55
Initialize a map projection.
Definition ProjectionFactory.h:75
static Isis::Projection * CreateFromCube(Isis::Cube &cube)
This method is a helper method.
Definition ProjectionFactory.cpp:1069
static Isis::Projection * RingsCreate(Isis::Pvl &label, bool allowDefaults=false)
This method returns a pointer to a RingPlaneProjection object.
Definition ProjectionFactory.cpp:119
static Isis::Projection * Create(Isis::Pvl &label, bool allowDefaults=false)
This method returns a pointer to a Projection object.
Definition ProjectionFactory.cpp:51
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.
Definition ProjectionFactory.cpp:432
static Isis::Projection * RingsCreateFromCube(Isis::Cube &cube)
This method is a helper method.
Definition ProjectionFactory.cpp:1081
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.
Definition ProjectionFactory.cpp:188
Base class for Map Projections.
Definition Projection.h:155
Container for cube-like labels.
Definition Pvl.h:119
Create a mapping between a projection and other coordinate system.
Definition WorldMapper.h:38
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16