118 if(cvp == NULL)
return;
120 if(p.x() >= 0 && p.x() < cvp->width() &&
121 p.y() >= 0 && p.y() < cvp->height()) {
153 if((sample < 0.5) || (line < 0.5) ||
159 int isamp = (int)(sample + 0.5);
165 int iline = (int)(line + 0.5);
183 p_latLabel->setText(QString(
"Lat %1").arg(lat));
184 p_lonLabel->setText(QString(
"Lon %1").arg(lon));
191 p_latLabel->setText(QString(
"Rad %1").arg(rad));
192 p_lonLabel->setText(QString(
"Lon %1").arg(lon));
201 else if(cvp->
camera() != NULL) {
209 p_latLabel->setText(QString(
"Lat %1").arg(lat));
210 p_lonLabel->setText(QString(
"Lon %1").arg(lon));
216 p_latLabel->setText(QString(
"Rad %1").arg(rad));
217 p_lonLabel->setText(QString(
"Lon %1").arg(lon));
245 if(p.x() >= rect.left() && p.x() <= rect.right() &&
246 p.y() >= rect.top() && p.y() <= rect.bottom()) {
247 const int bufX = p.x() - rect.left();
248 const int bufY = p.y() - rect.top();
269 if(p.x() >= rRect.left() && p.x() < rRect.right() &&
270 p.y() >= rRect.top() && p.y() < rRect.bottom()) {
271 const int rBufX = p.x() - rRect.left();
272 const int rBufY = p.y() - rRect.top();
288 if(p.x() >= gRect.left() && p.x() < gRect.right() &&
289 p.y() >= gRect.top() && p.y() < gRect.bottom()) {
290 const int gBufX = p.x() - gRect.left();
291 const int gBufY = p.y() - gRect.top();
307 if(p.x() >= bRect.left() && p.x() < bRect.right() &&
308 p.y() >= bRect.top() && p.y() < bRect.bottom()) {
309 const int bBufX = p.x() - bRect.left();
310 const int bBufY = p.y() - bRect.top();
343 QPoint p =
cubeViewport()->viewport()->mapFromGlobal(QCursor::pos());
344 if(p.x() < 0)
return;
345 if(p.y() < 0)
return;
346 if(p.x() >=
cubeViewport()->viewport()->width())
return;
347 if(p.y() >=
cubeViewport()->viewport()->height())
return;
376 QStatusBar *TrackTool::getStatusBar(
void) {
Cube display widget for certain Isis MDI applications.
double meters() const
Get the distance in meters.
ViewportBuffer * grayBuffer()
Returns the gray viewport buffer (Will be NULL if in RGB mode.)
int cubeLines() const
Return the number of lines in the cube.
Reads and stores visible DN values.
ViewportBuffer * redBuffer()
Returns the red viewport buffer (Will be NULL if in Gray mode.)
ProjectionType projectionType() const
Returns an enum value for the projection type.
double UniversalLatitude() const
Returns the planetocentric latitude, in degrees, at the surface intersection point in the body fixed ...
Base class for Map TProjections.
const std::vector< double > & getLine(int line)
Retrieves a line from the buffer.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
QRect bufferXYRect()
Returns a rect, in screen pixels, of the area this buffer covers.
Distance LocalRadius() const
Returns the local radius at the intersection point.
bool SetImage(const double sample, const double line)
Sets the sample/line values of the image to get the lat/lon values.
Target * target() const
Returns a pointer to the target object.
double Longitude() const
This returns a longitude with correct longitude direction and domain as specified in the label object...
QString ToQt() const
Retuns the object string as a QString.
ShapeModel * shape() const
Return the shape.
double UniversalLongitude() const
Returns the positive east, 0-360 domain longitude, in degrees, at the surface intersection point in t...
bool working()
This tests if queued actions exist in the viewport buffer.
double RingRadius() const
This returns a radius.
int cubeSamples() const
Return the number of samples in the cube.
bool SetWorld(const double x, const double y)
This method is used to set a world coordinate.
ViewportBuffer * blueBuffer()
Returns the blue viewport buffer (Will be NULL if in Gray mode.)
QString name() const
Gets the shape name.
Base class for Map Projections of plane shapes.
double Latitude() const
This returns a latitude with correct latitude type as specified in the label object.
QString PixelToString(double d)
Takes a double pixel value and returns the name of the pixel type as a string.
Adds specific functionality to C++ strings.
Namespace for ISIS/Bullet specific routines.
Projection * projection() const
double RingLongitude() const
This returns a ring longitude with correct ring longitude direction and domain as specified in the la...
ViewportBuffer * greenBuffer()
Returns the green viewport buffer (Will be NULL if in Gray mode.)
void viewportToCube(int x, int y, double &sample, double &line) const
Turns a viewport into a cube.
ProjectionType
This enum defines the subclasses of Projection supported in Isis.
These projections are used to map triaxial and irregular-shaped bodies.