|
Isis Developer Reference
|
Go to the documentation of this file.
22 class AdvancedStretchDialog;
110 double min,
double max);
113 double min,
double max);
170 void stretchChanged();
171 void advancedStretchChanged();
172 void changeStretch();
173 void showAdvancedDialog();
174 void setStretchAcrossBands();
175 void setStretchAllViewports();
176 void stretchBandChanged(
int);
184 QToolButton *m_copyButton;
185 QToolButton *m_globalButton;
186 QToolButton *m_stretchRegionalButton;
187 QPushButton *m_flashButton;
196 QLineEdit *m_stretchMinEdit;
197 QLineEdit *m_stretchMaxEdit;
204 Stretch *m_chipViewportStretch;
void SetBasePosition(const int start_sample, const int start_line, const int start_band)
This method is used to set the base position of the shape buffer.
Definition: Brick.h:120
bool isRgbMode() const
Returns true if the dialog is displaying the RGB advanced stretches.
Definition: AdvancedStretchDialog.cpp:340
Reads and stores visible DN values.
Definition: ViewportBuffer.h:63
void restoreRgbStretch(CubeStretch red, CubeStretch green, CubeStretch blue)
Restores a saved RGB stretch from the cube.
Definition: AdvancedStretchDialog.cpp:194
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:39
ViewportBuffer * redBuffer()
Returns the red viewport buffer (Will be NULL if in Gray mode.)
Definition: CubeViewport.h:421
void setAllBandStretches(Stretch stretch)
Sets a stretch for all bands.
Definition: CubeViewport.cpp:1983
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:94
void updateHistogram(const Histogram &grayHist)
This calls setHistogram on the gray advanced stretches.
Definition: AdvancedStretchDialog.cpp:306
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters.
Definition: Statistics.cpp:141
const std::vector< double > & getLine(int line)
Retrieves a line from the buffer.
Definition: ViewportBuffer.cpp:342
double Percent(const double percent) const
Computes and returns the value at X percent of the histogram.
Definition: Histogram.cpp:351
A single keyword-value pair.
Definition: PvlKeyword.h:82
PvlObjectIterator beginObject()
Returns the index of the beginning object.
Definition: PvlObject.h:235
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
bool isGray() const
Definition: CubeViewport.h:189
CubeStretch getGrayStretch()
This returns the advanced stretch's stretch for gray.
Definition: AdvancedStretchDialog.cpp:350
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
void updateStretch(CubeViewport *)
This calls setStretch on all applicable advanced stretches.
Definition: AdvancedStretchDialog.cpp:260
double * DoubleBuffer() const
Returns the value of the shape buffer.
Definition: Buffer.h:138
Pixel value mapper.
Definition: Stretch.h:58
double Maximum() const
Returns the absolute maximum double found in all data passed through the AddData method.
Definition: Statistics.cpp:403
Advanced Stretch Dialog.
Definition: AdvancedStretchDialog.h:30
Container for cube-like labels.
Definition: Pvl.h:119
void forgetStretches()
Resets all remembered stretches.
Definition: CubeViewport.cpp:1973
int Pairs() const
Returns the number of stretch pairs.
Definition: Stretch.h:162
void setName(QString name)
Set the Stretch name.
Definition: CubeStretch.cpp:135
Stores stretch information for a cube.
Definition: CubeStretch.h:27
CubeStretch greenStretch() const
Return the green band stretch.
Definition: CubeViewport.cpp:1674
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
int blueBand() const
Definition: CubeViewport.h:209
CubeStretch redStretch() const
Return the red band stretch.
Definition: CubeViewport.cpp:1668
CubeStretch getBluStretch()
This returns the advanced stretch's stretch for blue.
Definition: AdvancedStretchDialog.cpp:398
void stretchKnownGlobal()
List<Tool *> p This stretches to the global stretch.
Definition: CubeViewport.cpp:2153
QList< PvlObject >::iterator PvlObjectIterator
The counter for objects.
Definition: PvlObject.h:227
void restoreGrayStretch(CubeStretch stretch)
Restores a saved grayscale stretch from the cube.
Definition: AdvancedStretchDialog.cpp:176
CubeStretch blueStretch() const
Return the blue band stretch.
Definition: CubeViewport.cpp:1680
int grayBand() const
Definition: CubeViewport.h:194
void updateHistograms(const Histogram &redHist, const Histogram &grnHist, const Histogram &bluHist)
This calls setHistogram on all of the advanced stretches.
Definition: AdvancedStretchDialog.cpp:284
int lineCount() const
Definition: Cube.cpp:1734
This was called the Qisis MainWindow.
Definition: ViewportMainWindow.h:43
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
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
int toInt(const QString &string)
Global function to convert from a string to an integer.
Definition: IString.cpp:93
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
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
CubeStretch getRedStretch()
This returns the advanced stretch's stretch for red.
Definition: AdvancedStretchDialog.cpp:366
int sampleCount() const
Definition: Cube.cpp:1807
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
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis exception class.
Definition: IException.h:91
Widget to display Isis cubes for qt apps.
Definition: CubeViewport.h:122
QRect bufferXYRect()
Returns a rect, in screen pixels, of the area this buffer covers.
Definition: ViewportBuffer.cpp:1257
void enable(bool enable)
Sets the enabled state to enable.
Definition: AdvancedStretchDialog.h:74
Isis::Blob toBlob() const
Serialize the CubeStretch to a Blob.
Definition: CubeStretch.cpp:84
bool deleteBlob(QString BlobName, QString BlobType)
This method will delete a blob label object from the cube as specified by the Blob type and name.
Definition: Cube.cpp:1955
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
Namespace for the standard library.
void stretchGreen(const QString &string)
Apply stretch pairs to green bands.
Definition: CubeViewport.cpp:2131
void enableGrayMode(Stretch &grayStretch, Histogram &grayHist)
This displays a gray advanced stretch.
Definition: AdvancedStretchDialog.cpp:151
void updateForRGBMode(Stretch &redStretch, Histogram &redHist, Stretch &grnStretch, Histogram &grnHist, Stretch &bluStretch, Histogram &bluHist)
Update the stretch and histogram for all the bands for All BandId option.
Definition: AdvancedStretchDialog.cpp:122
void setBandNumber(int bandNumber)
Set the band number for the stretch.
Definition: CubeStretch.cpp:165
ViewportBuffer * blueBuffer()
Returns the blue viewport buffer (Will be NULL if in Gray mode.)
Definition: CubeViewport.h:441
bool isReadOnly() const
Test if the opened cube is read-only, that is write operations will fail if this is true.
Definition: Cube.cpp:213
PixelType pixelType() const
Definition: Cube.cpp:1758
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
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
Definition: Cube.cpp:1701
void write(Blob &blob, bool overwrite=true)
This method will write a blob of data (e.g.
Definition: Cube.cpp:971
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
bool hasEntireCube()
Method to see if the entire cube is in the buffer.
Definition: ViewportBuffer.cpp:423
bool enabled()
Returns true if the advanced stretch is enabled.
Definition: AdvancedStretchDialog.h:65
Adds specific functionality to C++ strings.
Definition: IString.h:165
ViewportBuffer * grayBuffer()
Returns the gray viewport buffer (Will be NULL if in RGB mode.)
Definition: CubeViewport.h:411
Cube * cube() const
Definition: CubeViewport.h:338
CubeStretch getGrnStretch()
This returns the advanced stretch's stretch for green.
Definition: AdvancedStretchDialog.cpp:382
int redBand() const
Definition: CubeViewport.h:199
CubeStretch readCubeStretch(QString name="CubeStretch", const std::vector< PvlKeyword > keywords=std::vector< PvlKeyword >()) const
Read a Stretch from a cube.
Definition: Cube.cpp:912
void stretchGray(const QString &string)
Apply stretch pairs to gray band.
Definition: CubeViewport.cpp:2107
void stretchBlue(const QString &string)
Apply stretch pairs to blue bands.
Definition: CubeViewport.cpp:2143
ViewportBuffer * greenBuffer()
Returns the green viewport buffer (Will be NULL if in Gray mode.)
Definition: CubeViewport.h:431
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
int greenBand() const
Definition: CubeViewport.h:204
void reopen(QString access="r")
This method will reopen an isis sube for reading or reading/writing.
Definition: Cube.cpp:774
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126
double Input(const int index) const
Returns the value of the input side of the stretch pair at the specified index.
Definition: Stretch.cpp:287
bool working()
This tests if queued actions exist in the viewport buffer.
Definition: ViewportBuffer.cpp:759
void enableRgbMode(Stretch &redStretch, Histogram &redHist, Stretch &grnStretch, Histogram &grnHist, Stretch &bluStretch, Histogram &bluHist)
This displays RGB advanced stretches.
Definition: AdvancedStretchDialog.cpp:52
void stretchRed(const QString &string)
Apply stretch pairs to red bands.
Definition: CubeViewport.cpp:2119