|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef IndependentCubeViewport_h
2 #define IndependentCubeViewport_h
24 template <
class T >
class QList;
79 void handleMouseMove(QPoint);
80 void handleMousePress(QPoint, Qt::MouseButton b);
81 void handleMouseRelease(QPoint);
88 void track(
const QPoint &);
99 QPoint * bandingPoint1;
100 QPoint * bandingPoint2;
101 QPoint * panningPrevPoint;
int cubeLines() const
Return the number of lines in the cube.
Definition: CubeViewport.cpp:439
Reads and stores visible DN values.
Definition: ViewportBuffer.h:63
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:94
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters.
Definition: Statistics.cpp:141
int SampleDimension() const
Returns the number of samples in the shape buffer.
Definition: Buffer.h:70
void resetKnownGlobal()
Definition: IndependentCubeViewport.cpp:169
double Percent(const double percent) const
Computes and returns the value at X percent of the histogram.
Definition: Histogram.cpp:351
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
virtual bool SetImage(const double sample, const double line)
Sets the sample/line values of the image to get the lat/lon values.
Definition: Camera.cpp:154
void paintEvent(QPaintEvent *e)
Repaint the viewport.
Definition: IndependentCubeViewport.cpp:133
void center(int x, int y)
Bring the cube pixel under viewport x/y to the center.
Definition: CubeViewport.cpp:730
double * DoubleBuffer() const
Returns the value of the shape buffer.
Definition: Buffer.h:138
Pixel value mapper.
Definition: Stretch.h:58
void setScale(double scale)
Change the scale of the cube to the given parameter value.
Definition: CubeViewport.cpp:588
QPixmap p_pixmap
The qpixmap.
Definition: CubeViewport.h:610
double Maximum() const
Returns the absolute maximum double found in all data passed through the AddData method.
Definition: Statistics.cpp:403
void mouseLeave()
Emitted when the mouse leaves the viewport.
void restretch(ViewportBuffer *)
This is called by internal viewport buffers when a stretch action should be performed.
Definition: IndependentCubeViewport.cpp:152
ProjectionType projectionType() const
Returns an enum value for the projection type.
Definition: Projection.cpp:198
int Pairs() const
Returns the number of stretch pairs.
Definition: Stretch.h:162
Stores stretch information for a cube.
Definition: CubeStretch.h:27
void trackingChanged(double sample, double line, double lat, double lon, double dn, IndependentCubeViewport *)
BigInt ValidPixels() const
Returns the total number of valid pixels processed.
Definition: Statistics.cpp:433
Buffer for containing a three dimensional section of an image.
Definition: Brick.h:45
Encapsulation of Cube I/O with Change Notifications.
Definition: CubeDataThread.h:59
Camera * camera() const
Definition: CubeViewport.h:348
void stretchKnownGlobal()
List<Tool *> p This stretches to the global stretch.
Definition: CubeViewport.cpp:2153
void mouseEnter()
Emitted when the mouse enters the viewport.
int grayBand() const
Definition: CubeViewport.h:194
virtual double UniversalLongitude() const
Returns the positive east, 0-360 domain longitude, in degrees, at the surface intersection point in t...
Definition: Sensor.cpp:233
CubeStretch grayStretch() const
Return the gray band stretch.
Definition: CubeViewport.cpp:1662
void CopyPairs(const Stretch &other)
Copies the stretch pairs from another Stretch object, but maintains special pixel values.
Definition: Stretch.cpp:392
bool eventFilter(QObject *o, QEvent *e)
Event filter to watch for mouse events on viewport.
Definition: IndependentCubeViewport.cpp:77
void trackingChanged(double samp, double line, double dn, IndependentCubeViewport *)
virtual void AddData(const double *data, const unsigned int count)
Add an array of doubles to the histogram counters.
Definition: Histogram.cpp:232
double Minimum() const
Returns the absolute minimum double found in all data passed through the AddData method.
Definition: Statistics.cpp:382
General purpose Cube display widget.
Definition: IndependentCubeViewport.h:46
int LineDimension() const
Returns the number of lines in the shape buffer.
Definition: Buffer.h:79
void AddPair(const double input, const double output)
Adds a stretch pair to the list of pairs.
Definition: Stretch.cpp:48
void ClearPairs()
Clears the stretch pairs.
Definition: Stretch.h:170
double BestMaximum(const double percent=99.5) const
This method returns the better of the absolute maximum or the Chebyshev maximum.
Definition: Statistics.cpp:625
IndependentCubeViewport(Cube *cube, CubeDataThread *cdt=0, QWidget *parent=0)
Definition: IndependentCubeViewport.cpp:35
IO Handler for Isis Cubes.
Definition: Cube.h:167
Widget to display Isis cubes for qt apps.
Definition: CubeViewport.h:122
int cubeSamples() const
Return the number of samples in the cube.
Definition: CubeViewport.cpp:433
void cantTrack(QString, IndependentCubeViewport *)
virtual bool SetWorld(const double x, const double y)
This method is used to set a world coordinate.
Definition: Projection.cpp:497
void scrollBy(int dx, int dy)
Move the scrollbars by dx/dy screen pixels.
Definition: CubeViewport.cpp:869
int Band(const int index=0) const
Returns the band position associated with a shape buffer index.
Definition: Buffer.cpp:162
void synchronize(IndependentCubeViewport *)
int cubeID()
Definition: CubeViewport.h:480
Namespace for the standard library.
void addStretchAction()
When all current operations finish the cube viewport will be asked to do a stretch if you call this.
Definition: ViewportBuffer.cpp:1220
Container of a cube histogram.
Definition: Histogram.h:74
double BestMinimum(const double percent=99.5) const
This method returns the better of the absolute minimum or the Chebyshev minimum.
Definition: Statistics.cpp:598
QVector< Stretch * > * p_globalStretches
Global stretches for each stretched band.
Definition: CubeViewport.h:616
int size() const
Returns the total number of pixels in the shape buffer.
Definition: Buffer.h:97
double scale() const
Definition: CubeViewport.h:214
@ Triaxial
These projections are used to map triaxial and irregular-shaped bodies.
Definition: Projection.h:166
void viewportToCube(int x, int y, double &sample, double &line) const
Turns a viewport into a cube.
Definition: CubeViewport.cpp:815
virtual void paintEvent(QPaintEvent *e)
Repaint the viewport.
Definition: CubeViewport.cpp:1089
ViewportBuffer * grayBuffer()
Returns the gray viewport buffer (Will be NULL if in RGB mode.)
Definition: CubeViewport.h:411
~IndependentCubeViewport()
Definition: IndependentCubeViewport.cpp:55
int Sample(const int index=0) const
Returns the sample position associated with a shape buffer index.
Definition: Buffer.cpp:127
virtual void cubeDataChanged(int cubeId, const Brick *)
Definition: IndependentCubeViewport.cpp:181
void showEvent(QShowEvent *)
This method is called to initially show the viewport.
Definition: CubeViewport.cpp:233
Cube * cube() const
Definition: CubeViewport.h:338
ProjectionType
This enum defines the subclasses of Projection supported in Isis.
Definition: Projection.h:166
int Line(const int index=0) const
Returns the line position associated with a shape buffer index.
Definition: Buffer.cpp:145
virtual void cubeDataChanged(int cubeId, const Isis::Brick *)
This method updates the internal viewport buffer based on changes in cube DN values.
Definition: CubeViewport.cpp:457
virtual void showEvent(QShowEvent *e)
Definition: IndependentCubeViewport.cpp:160
int cubeBands() const
Return the number of bands in the cube.
Definition: CubeViewport.cpp:445
void stretchGray(const QString &string)
Apply stretch pairs to gray band.
Definition: CubeViewport.cpp:2107
int BandDimension() const
Returns the number of bands in the shape buffer.
Definition: Buffer.h:88
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Projection * projection() const
Definition: CubeViewport.h:343
virtual double UniversalLatitude() const
Returns the planetocentric latitude, in degrees, at the surface intersection point in the body fixed ...
Definition: Sensor.cpp:210