|
Isis Developer Reference
|
Go to the documentation of this file.
12 template<
class T>
class QVector;
68 std::vector<double> lookDirection);
97 double m_pixPerDegree;
DemShape()
Construct a DemShape object.
Definition: DemShape.cpp:54
double kilometers() const
Get the distance in kilometers.
Definition: Distance.cpp:106
@ Degrees
Degrees are generally considered more human readable, 0-360 is one circle, however most math does not...
Definition: Angle.h:56
@ BiLinearType
Definition: Interpolator.h:43
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
Displacement GetX() const
Definition: SurfacePoint.cpp:1436
double demScale()
Return the scale of the DEM shape, in pixels per degree.
Definition: DemShape.cpp:295
Buffer for containing a two dimensional section of an image.
Definition: Portal.h:36
This class is designed to encapsulate the concept of a Latitude.
Definition: Latitude.h:51
bool intersectSurface(std::vector< double > observerPos, std::vector< double > lookDirection)
Find the intersection point with the DEM.
Definition: DemShape.cpp:143
SurfacePoint * surfaceIntersection() const
Returns the surface intersection for this ShapeModel.
Definition: ShapeModel.cpp:358
void read(Blob &blob, const std::vector< PvlKeyword > keywords=std::vector< PvlKeyword >()) const
This method will read data from the specified Blob object.
Definition: Cube.cpp:807
std::vector< Distance > targetRadii() const
Returns the radii of the body in km.
Definition: ShapeModel.cpp:465
void setHasIntersection(bool b)
Sets the flag to indicate whether this ShapeModel has an intersection.
Definition: ShapeModel.cpp:554
double * DoubleBuffer() const
Returns the value of the shape buffer.
Definition: Buffer.h:138
Cube * demCube()
Returns the cube defining the shape model.
Definition: DemShape.cpp:342
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Definition: PvlContainer.cpp:159
Container for cube-like labels.
Definition: Pvl.h:119
Displacement GetZ() const
Definition: SurfacePoint.cpp:1450
int Lines()
Returns the number of lines needed by the interpolator.
Definition: Interpolator.cpp:236
virtual void calculateDefaultNormal()
This method calculates the default normal (Ellipsoid for backwards compatability) for the DemShape.
Definition: DemShape.cpp:305
static Cube * Open(const QString &cubeFileName)
This method calls the method OpenCube() on the static instance.
Definition: CubeManager.h:84
virtual bool SetUniversalGround(const double coord1, const double coord2)
This method is used to set the lat/lon or radius/azimuth (i.e.
Definition: Projection.cpp:417
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
Definition: NaifStatus.cpp:28
void setNormal(const std::vector< double >)
Sets the normal for the currect intersection point.
Definition: ShapeModel.cpp:487
virtual bool intersectSurface(std::vector< double > observerPos, std::vector< double > lookDirection)=0
bool IsSpecial(const double d)
Returns if the input pixel is special.
Definition: SpecialPixel.h:197
double HotSample()
Returns the sample coordinate of the center pixel in the buffer for the interpolator.
Definition: Interpolator.cpp:265
void calculateLocalNormal(QVector< double * > cornerNeighborPoints)
This method calculates the local surface normal of the current intersection point.
Definition: DemShape.cpp:367
Distance measurement, usually in meters.
Definition: Distance.h:34
This class is designed to encapsulate the concept of a Longitude.
Definition: Longitude.h:40
@ Traverse
Search child objects.
Definition: PvlObject.h:158
Distance localRadius(const Latitude &lat, const Longitude &lon)
Gets the radius from the DEM, if we have one.
Definition: DemShape.cpp:264
virtual double WorldY() const
This returns the world Y coordinate provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:544
void setName(QString name)
Sets the shape name.
Definition: ShapeModel.cpp:532
double resolution()
Convenience method to get pixel resolution (m/pix) at current intersection point.
Definition: ShapeModel.cpp:592
~DemShape()
Destroys the DemShape.
Definition: DemShape.cpp:112
@ Meters
The distance is being specified in meters.
Definition: Distance.h:43
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
void addCachingAlgorithm(CubeCachingAlgorithm *)
This will add the given caching algorithm to the list of attempted caching algorithms.
Definition: Cube.cpp:1922
bool intersectEllipsoid(const std::vector< double > observerPosRelativeToTarget, const std::vector< double > &observerLookVectorToTarget)
Finds the intersection point on the ellipsoid model using the given position of the observer (spacecr...
Definition: ShapeModel.cpp:267
virtual double WorldX() const
This returns the world X coordinate provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:524
void FromNaifArray(const double naifValues[3])
A naif array is a c-style array of size 3.
Definition: SurfacePoint.cpp:891
IO Handler for Isis Cubes.
Definition: Cube.h:167
Pixel interpolator.
Definition: Interpolator.h:34
Isis exception class.
Definition: IException.h:91
void setHasNormal(bool status)
Sets the flag to indicate whether this ShapeModel has a surface normal.
Definition: ShapeModel.cpp:581
double kilometers() const
Get the displacement in kilometers.
Definition: Displacement.cpp:94
Define shapes and provide utilities for targets stored as ISIS maps.
Definition: DemShape.h:52
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
Namespace for the standard library.
Define shapes and provide utilities for Isis targets.
Definition: ShapeModel.h:62
bool isValid() const
This indicates whether we have a legitimate angle stored or are in an unset, or invalid,...
Definition: Angle.cpp:95
PixelType pixelType() const
Definition: Cube.cpp:1758
double Interpolate(const double isamp, const double iline, const double buf[])
Performs an interpolation on the data according to the parameters set in the constructor.
Definition: Interpolator.cpp:56
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
Definition: Cube.cpp:1701
void ToNaifArray(double naifOutput[3]) const
A naif array is a c-style array of size 3.
Definition: SurfacePoint.cpp:870
This algorithm is designed for applications that jump around between a couple of spots in the cube wi...
Definition: UniqueIOCachingAlgorithm.h:30
double degrees() const
Get the angle in units of Degrees.
Definition: Angle.h:232
bool hasIntersection()
Returns intersection status.
Definition: ShapeModel.cpp:368
int Samples()
Returns the number of samples needed by the interpolator.
Definition: Interpolator.cpp:208
Adds specific functionality to C++ strings.
Definition: IString.h:165
This is free and unencumbered software released into the public domain.
Definition: Calculator.h:18
Base class for Map Projections.
Definition: Projection.h:155
double HotLine()
Returns the line coordinate of the center pixel in the buffer for the interpolator.
Definition: Interpolator.cpp:297
void SetPosition(const double sample, const double line, const int band)
Sets the line and sample position of the buffer.
Definition: Portal.h:93
This class is used to create and store valid Isis targets.
Definition: Target.h:63
const double RAD2DEG
Multiplier for converting from radians to degrees.
Definition: Constants.h:44
Projection * projection()
Definition: Cube.cpp:1794
bool isDEM() const
Indicates that this shape model is from a DEM.
Definition: DemShape.cpp:356
Displacement GetY() const
Definition: SurfacePoint.cpp:1443
void calculateSurfaceNormal()
This method calculates the surface normal of the current intersection point.
Definition: DemShape.cpp:421
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
std::vector< double > normal()
Returns the local surface normal at the current intersection point.
Definition: ShapeModel.cpp:401