Isis 3 Programmer Reference
|
Cube display widget for certain Isis MDI applications. More...
#include <MdiCubeViewport.h>
Public Slots | |
void | setLinked (bool b) |
Change the linked state of the viewport. More... | |
void | viewGray (int band) |
void | viewRGB (int red, int green, int blue) |
QSize | sizeHint () const |
Make viewports show up as 512 by 512. More... | |
void | setScale (double scale) |
Change the scale of the cube to the given parameter value. More... | |
void | setScale (double scale, double sample, double line) |
Change the scale of the cube after moving samp/line to the center. More... | |
void | setScale (double scale, int x, int y) |
Change the scale of the cube after moving x,y to the center. More... | |
void | center (int x, int y) |
Bring the cube pixel under viewport x/y to the center. More... | |
void | center (double sample, double line) |
Bring the cube sample/line the center. More... | |
void | stretchGray (const QString &string) |
Apply stretch pairs to gray band. More... | |
void | stretchGray (const Stretch &stretch) |
Sets the stretch for gray mode. More... | |
void | stretchRed (const QString &string) |
Apply stretch pairs to red bands. More... | |
void | stretchRed (const Stretch &stretch) |
Sets the stretch for red in rgb mode. More... | |
void | stretchGreen (const QString &string) |
Apply stretch pairs to green bands. More... | |
void | stretchGreen (const Stretch &stretch) |
Sets the stretch for green in rgb mode. More... | |
void | stretchBlue (const QString &string) |
Apply stretch pairs to blue bands. More... | |
void | stretchBlue (const Stretch &stretch) |
Sets the stretch for blue in rgb mode. More... | |
void | stretchKnownGlobal () |
List<Tool *> p This stretches to the global stretch. More... | |
void | cubeChanged (bool changed) |
This method is called when the cube has changed or changes have been finalized. More... | |
void | showEvent (QShowEvent *) |
This method is called to initially show the viewport. More... | |
void | scrollBy (int dx, int dy) |
Move the scrollbars by dx/dy screen pixels. More... | |
void | changeCursor (QCursor cursor) |
Allows users to change the cursor type on the viewport. More... | |
void | onProgressTimer () |
This updates the progress bar visually. More... | |
void | enableProgress () |
This restarts the progress bar. More... | |
Signals | |
void | linkChanging (bool) |
void | requestRestretch (MdiCubeViewport *, int) |
void | viewportUpdated () |
Emitted when viewport updated. More... | |
void | viewportClosed (CubeViewport *) |
Emitted when viewport is closed. More... | |
void | mouseEnter () |
Emitted when the mouse enters the viewport. More... | |
void | mouseMove (QPoint) |
Emitted when the mouse moves. More... | |
void | mouseMove (QPoint, Qt::MouseButton) |
Emitted when the mouse moves. More... | |
void | mouseLeave () |
Emitted when the mouse leaves the viewport. More... | |
void | mouseButtonPress (QPoint, Qt::MouseButton) |
Emitted when mouse button pressed. More... | |
void | mouseButtonRelease (QPoint, Qt::MouseButton) |
Emitted when mouse button released. More... | |
void | mouseDoubleClick (QPoint) |
Emitted when double click happens. More... | |
void | windowTitleChanged () |
Emitted when window title changes. More... | |
void | scaleChanged () |
Emitted when zoom factor changed just before the repaint event. More... | |
void | saveChanges (CubeViewport *) |
Emitted when changes should be saved. More... | |
void | discardChanges (CubeViewport *) |
Emitted when changes should be discarded. More... | |
void | screenPixelsChanged () |
Emitted when cube pixels that should be on the screen change. More... | |
void | progressChanged (int) |
Emitted with current progress (0 to 100) when working. More... | |
void | progressComplete () |
Emitted when the current progress is complete (100) More... | |
void | doneWithData (int, const Isis::Brick *) |
Emitted when a brick is no longer needed, should only be sent to cube data thread. More... | |
Public Member Functions | |
MdiCubeViewport (Cube *cube, Isis::CubeDataThread *cdt=0, QWidget *parent=0) | |
void | forceAbstract () |
bool | isLinked () const |
Is the viewport linked with other viewports. More... | |
void | registerTool (Tool *tool) |
Registers the tool given tool. More... | |
void | paintEvent (QPaintEvent *e) |
Repaint the viewport. More... | |
void | restretch (ViewportBuffer *buffer) |
This is called by internal viewport buffers when a stretch action should be performed. More... | |
void | setCube (Cube *cube) |
This method sets the viewports cube. More... | |
int | cubeSamples () const |
Return the number of samples in the cube. More... | |
int | cubeLines () const |
Return the number of lines in the cube. More... | |
int | cubeBands () const |
Return the number of bands in the cube. More... | |
bool | isColor () const |
bool | isGray () const |
int | grayBand () const |
int | redBand () const |
int | greenBand () const |
int | blueBand () const |
double | scale () const |
bool | cubeShown () const |
int | comboCount () const |
int | comboIndex () const |
void | cubeContentsChanged (QRect rect) |
Calle dhwen the contents of the cube changes. More... | |
double | fitScale () const |
Determine the scale that causes the full cube to fit in the viewport. More... | |
double | fitScaleWidth () const |
Determine the scale of cube in the width to fit in the viewport. More... | |
double | fitScaleHeight () const |
Determine the scale of cube in heighth to fit in the viewport. More... | |
void | viewportToCube (int x, int y, double &sample, double &line) const |
Turns a viewport into a cube. More... | |
void | cubeToViewport (double sample, double line, int &x, int &y) const |
Turns a cube into a viewport. More... | |
void | contentsToCube (int x, int y, double &sample, double &line) const |
Turns contents to a cube. More... | |
void | cubeToContents (double sample, double line, int &x, int &y) const |
Turns a cube into contents. More... | |
double | redPixel (int sample, int line) |
Gets the red pixel. More... | |
double | greenPixel (int sample, int line) |
Gets the green pixel. More... | |
double | bluePixel (int sample, int line) |
Gets the blue pixel. More... | |
double | grayPixel (int sample, int line) |
Gets the gray pixel. More... | |
Stretch | grayStretch () const |
Return the gray band stretch. More... | |
Stretch | redStretch () const |
Return the red band stretch. More... | |
Stretch | greenStretch () const |
Return the green band stretch. More... | |
Stretch | blueStretch () const |
Return the blue band stretch. More... | |
Cube * | cube () const |
Projection * | projection () const |
Camera * | camera () const |
UniversalGroundMap * | universalGroundMap () const |
Cube * | trackingCube () const |
void | moveCursor (int x, int y) |
Move the cursor by x,y if possible. More... | |
bool | cursorInside () const |
Is cursor inside viewport. More... | |
QPoint | cursorPosition () const |
Return the cursor position in the viewport. More... | |
void | setCursorPosition (int x, int y) |
Set the cursor position to x/y in the viewport. More... | |
void | setCaption () |
Change the caption on the viewport title bar. More... | |
void | setBackground (QColor color) |
Sets the background color. More... | |
void | setComboCount (int count) |
Sets the band bin combo box count. More... | |
void | setComboIndex (int index) |
Sets the band bin combo box index. More... | |
QPixmap | pixmap () |
Returns the pixmap. More... | |
ViewportBuffer * | grayBuffer () |
Returns the gray viewport buffer (Will be NULL if in RGB mode.) More... | |
ViewportBuffer * | redBuffer () |
Returns the red viewport buffer (Will be NULL if in Gray mode.) More... | |
ViewportBuffer * | greenBuffer () |
Returns the green viewport buffer (Will be NULL if in Gray mode.) More... | |
ViewportBuffer * | blueBuffer () |
Returns the blue viewport buffer (Will be NULL if in Gray mode.) More... | |
void | bufferUpdated (QRect rect) |
This method is called by ViewportBuffer upon successful completion of all operations and gives the appropriate rect to be repainted. More... | |
void | paintPixmap () |
Paint the whole pixmap. More... | |
void | forgetStretches () |
Resets all remembered stretches. More... | |
void | setAllBandStretches (Stretch stretch) |
Sets a stretch for all bands. More... | |
CubeDataThread * | cubeDataThread () |
int | cubeID () |
void | getAllWhatsThisInfo (Pvl &pWhatsThisPvl) |
Get All WhatsThis info - viewport, cube, area in PVL format. More... | |
void | getBandFilterName (PvlKeyword &pFilterNameKey) |
Get Band Filter name from the Isis cube label. More... | |
void | getCubeArea (double &pdStartSample, double &pdEndSample, double &pdStartLine, double &pdEndLine) |
Get Cube area corresponding to the viewport's dimension. More... | |
bool | confirmClose () |
This method should be called during a close event that would cause this viewport to close. More... | |
void | setTrackingCube () |
Finds the Tracking group from p_cube and stores the tracking cube name so that we can grab it in AdvancedTrackTool and get mosaic information. More... | |
Protected Slots | |
virtual void | cubeDataChanged (int cubeId, const Isis::Brick *) |
This method updates the internal viewport buffer based on changes in cube DN values. More... | |
Protected Member Functions | |
void | scrollContentsBy (int dx, int dy) |
Scroll the viewport contents by dx/dy screen pixels. More... | |
virtual void | resizeEvent (QResizeEvent *e) |
The viewport is being resized. More... | |
virtual bool | eventFilter (QObject *o, QEvent *e) |
Event filter to watch for mouse events on viewport. More... | |
virtual void | keyPressEvent (QKeyEvent *e) |
Process arrow keystrokes on cube. More... | |
Protected Attributes | |
QPixmap | p_pixmap |
The qpixmap. More... | |
QVector< Stretch *> * | p_knownStretches |
Stretches for each previously stretched band. More... | |
QVector< Stretch *> * | p_globalStretches |
Global stretches for each stretched band. More... | |
Private Attributes | |
bool | p_linked |
QList< Tool * > | p_toolList |
Cube display widget for certain Isis MDI applications.
Definition at line 53 of file MdiCubeViewport.h.
|
inlineinherited |
Definition at line 219 of file CubeViewport.h.
References Isis::CubeViewport::BandInfo::band, and Isis::CubeViewport::p_blue.
Referenced by Isis::BandTool::changeView(), Isis::BandTool::copyAllViewports(), Isis::BandTool::copyLinkedViewports(), Isis::SpectralPlotWindow::drawBandMarkers(), Isis::StretchTool::stretchBand(), Isis::CubeViewport::stretchBlue(), Isis::CubeViewport::stretchKnownGlobal(), and Isis::BandTool::updateTool().
|
inlineinherited |
Returns the blue viewport buffer (Will be NULL if in Gray mode.)
Definition at line 451 of file CubeViewport.h.
References Isis::CubeViewport::p_blueBuffer.
Referenced by restretch(), Isis::StretchTool::setCubeViewport(), Isis::StretchTool::stretchRect(), Isis::StretchTool::stretchRequested(), Isis::StretchTool::updateAdvStretchDialogforAll(), Isis::StretchTool::updateHistograms(), and Isis::TrackTool::updateLabels().
|
inherited |
Gets the blue pixel.
Return the blue pixel value at a sample/line.
sample | The sample |
line | The line |
sample | |
line |
Definition at line 1640 of file CubeViewport.cpp.
References Isis::CubeViewport::BandInfo::band, Isis::CubeViewport::p_blue, Isis::CubeViewport::p_cube, Isis::CubeViewport::p_pntBrick, Isis::Cube::read(), and Isis::Brick::SetBasePosition().
|
inherited |
Return the blue band stretch.
Definition at line 1682 of file CubeViewport.cpp.
References Isis::CubeViewport::BandInfo::getStretch(), and Isis::CubeViewport::p_blue.
Referenced by Isis::StretchTool::advancedStretchChanged(), Isis::SpecialPixelTool::apply(), Isis::StretchTool::changeStretch(), Isis::StretchTool::setCubeViewport(), Isis::StretchTool::setStretchAcrossBands(), Isis::StretchTool::setStretchAllViewports(), Isis::StretchTool::stretchBand(), Isis::StretchTool::stretchChanged(), Isis::StretchTool::stretchRect(), Isis::StretchTool::stretchRequested(), Isis::StretchTool::updateAdvStretchDialogforAll(), and Isis::AdvancedStretchDialog::updateStretch().
|
inherited |
This method is called by ViewportBuffer upon successful completion of all operations and gives the appropriate rect to be repainted.
This is intended to update the screen once all data is done and ready to be displayed.
rect | Area to update screen |
Definition at line 1114 of file CubeViewport.cpp.
References Isis::CubeViewport::p_blueBuffer, Isis::CubeViewport::p_grayBuffer, Isis::CubeViewport::p_greenBuffer, Isis::CubeViewport::p_redBuffer, Isis::CubeViewport::paintPixmap(), and Isis::ViewportBuffer::working().
|
inlineinherited |
Definition at line 358 of file CubeViewport.h.
References Isis::CubeViewport::p_camera.
Referenced by Isis::FeatureNomenclatureTool::findMissingNomenclature(), Isis::MeasureTool::rubberBandComplete(), Isis::MeasureTool::updateDist(), Isis::TrackTool::updateLabels(), Isis::AdvancedTrackTool::updateRow(), and Isis::FindTool::updateTool().
|
slotinherited |
Bring the cube pixel under viewport x/y to the center.
x | |
y |
Definition at line 740 of file CubeViewport.cpp.
References Isis::CubeViewport::viewportToCube().
Referenced by Isis::CubeViewport::setScale().
|
slotinherited |
Bring the cube sample/line the center.
sample | Value of the sample to center on. |
line | Value of the line to center on. |
Definition at line 753 of file CubeViewport.cpp.
References Isis::CubeViewport::cubeToContents(), Isis::CubeViewport::p_blueBuffer, Isis::CubeViewport::p_grayBuffer, Isis::CubeViewport::p_greenBuffer, Isis::CubeViewport::p_redBuffer, Isis::CubeViewport::p_updatingBuffers, Isis::CubeViewport::paintPixmapRects(), Isis::ViewportBuffer::pan(), Isis::CubeViewport::screenPixelsChanged(), Isis::CubeViewport::shiftPixmap(), and Isis::CubeViewport::updateScrollBars().
|
slotinherited |
Allows users to change the cursor type on the viewport.
cursor |
Definition at line 2394 of file CubeViewport.cpp.
|
inlineinherited |
Definition at line 234 of file CubeViewport.h.
References Isis::CubeViewport::p_comboCount.
Referenced by Isis::BandTool::setBandBin().
|
inlineinherited |
Definition at line 239 of file CubeViewport.h.
References Isis::CubeViewport::p_comboIndex.
Referenced by Isis::BandTool::setBandBin().
|
inherited |
This method should be called during a close event that would cause this viewport to close.
If changes have been made to this viewport it opens an information dialog that asks the user if they want to save, discard changes, or cancel.
Definition at line 535 of file CubeViewport.cpp.
References Isis::CubeViewport::cube(), Isis::CubeViewport::discardChanges(), Isis::CubeViewport::p_saveEnabled, and Isis::CubeViewport::saveChanges().
|
inherited |
Turns contents to a cube.
Convert a contents x/y to a cube sample/line (may be outside the cube)
x | |
y | |
sample | |
line |
Definition at line 808 of file CubeViewport.cpp.
References Isis::CubeViewport::p_scale.
Referenced by Isis::CubeViewport::setScale(), and Isis::CubeViewport::viewportToCube().
|
inlineinherited |
Definition at line 348 of file CubeViewport.h.
References Isis::CubeViewport::p_cube.
Referenced by Isis::CubeViewport::confirmClose(), Isis::MatchTool::createPoint(), Isis::CubeViewport::cubeContentsChanged(), Isis::CubeViewport::cubeDataChanged(), Isis::Workspace::cubeToMdiWidget(), Isis::CubeViewport::CubeViewport(), Isis::ControlNetTool::drawAllMeasurements(), Isis::QnetTool::drawAllMeasurments(), Isis::SpectralPlotWindow::drawBandMarkers(), Isis::FileTool::exportToList(), Isis::FeatureNomenclatureTool::featuresForViewportFound(), Isis::FeatureNomenclatureTool::findMissingNomenclature(), Isis::SpatialPlotTool::getSpatialStatistics(), Isis::SpectralPlotTool::getSpectralStatistics(), Isis::StatisticsTool::getStatistics(), Isis::ScatterPlotWindow::isXCube(), Isis::ScatterPlotWindow::isYCube(), Isis::SunShadowTool::mouseButtonPress(), Isis::ControlNetTool::mouseButtonRelease(), Isis::EditTool::mouseButtonRelease(), Isis::MatchTool::mouseButtonRelease(), Isis::QnetTool::mouseButtonRelease(), Isis::CubeDnView::onCubeViewportActivated(), Isis::CubeDnView::onCubeViewportDeleted(), Isis::QnetTool::openGround(), Isis::CubePlotCurve::paint(), Isis::StereoTool::paintViewport(), Isis::SunShadowTool::recalculateShadowHeight(), Isis::EditTool::redoEdit(), Isis::HistogramTool::refreshPlot(), Isis::ScatterPlotConfigDialog::refreshWidgetStates(), Isis::AbstractPlotTool::repaintViewports(), Isis::EditTool::rubberBandComplete(), Isis::FileTool::save(), Isis::FileTool::saveAsCubeByOption(), Isis::FileTool::saveAsReducedCube(), Isis::ScatterPlotConfigDialog::ScatterPlotConfigDialog(), Isis::MatchTool::serialNumberList(), Isis::CubeViewport::setCube(), Isis::StretchTool::stretchBand(), Isis::ChipViewport::stretchFromCubeViewport(), Isis::AdvancedTrackTool::TrackMosaicOrigin(), Isis::EditTool::undoAll(), Isis::EditTool::undoEdit(), Isis::MeasureTool::updateDist(), Isis::AdvancedTrackTool::updateRow(), Isis::BandTool::updateTool(), Isis::SunShadowTool::updateTool(), Isis::SpectralPlotTool::updateTool(), Isis::CubeDnView::workspaceActiveCube(), Isis::EditTool::writeToCube(), Isis::ScatterPlotConfigDialog::xAxisCubeViewport(), and Isis::ScatterPlotConfigDialog::yAxisCubeViewport().
|
inherited |
Return the number of bands in the cube.
Definition at line 455 of file CubeViewport.cpp.
References Isis::Cube::bandCount(), and Isis::CubeViewport::p_cube.
Referenced by Isis::BandTool::copyAllViewports(), and Isis::BandTool::copyLinkedViewports().
|
slotinherited |
This method is called when the cube has changed or changes have been finalized.
changed |
Definition at line 571 of file CubeViewport.cpp.
References Isis::CubeViewport::p_saveEnabled.
Referenced by Isis::EditTool::redoEdit(), Isis::EditTool::save(), Isis::EditTool::undoEdit(), and Isis::EditTool::writeToCube().
|
inherited |
Calle dhwen the contents of the cube changes.
Cube changed, repaint given area.
rect | The QRect |
rect | Rectangle containing portion of cube (sample/line) that changed. |
Definition at line 2314 of file CubeViewport.cpp.
References Isis::CubeViewport::cube(), Isis::CubeViewport::cubeToViewport(), Isis::ViewportBuffer::fillBuffer(), Isis::Cube::lineCount(), Isis::CubeViewport::p_blueBuffer, Isis::CubeViewport::p_grayBuffer, Isis::CubeViewport::p_greenBuffer, Isis::CubeViewport::p_redBuffer, Isis::CubeViewport::p_updatingBuffers, Isis::CubeViewport::paintPixmapRects(), and Isis::Cube::sampleCount().
Referenced by Isis::EditTool::redoEdit(), Isis::EditTool::undoEdit(), and Isis::EditTool::writeToCube().
|
protectedvirtualslotinherited |
This method updates the internal viewport buffer based on changes in cube DN values.
cubeId | Cube that the changed brick belongs to |
* | data New data |
Definition at line 467 of file CubeViewport.cpp.
References Isis::CubeViewport::cube(), Isis::CubeViewport::cubeToViewport(), Isis::CubeViewport::doneWithData(), Isis::ViewportBuffer::fillBuffer(), Isis::Buffer::Line(), Isis::Cube::lineCount(), Isis::Buffer::LineDimension(), Isis::CubeViewport::p_blueBuffer, Isis::CubeViewport::p_cubeId, Isis::CubeViewport::p_grayBuffer, Isis::CubeViewport::p_greenBuffer, Isis::CubeViewport::p_redBuffer, Isis::CubeViewport::p_updatingBuffers, Isis::CubeViewport::paintPixmapRects(), Isis::Buffer::Sample(), Isis::Cube::sampleCount(), and Isis::Buffer::SampleDimension().
Referenced by Isis::CubeViewport::CubeViewport().
|
inlineinherited |
Definition at line 483 of file CubeViewport.h.
References Isis::CubeViewport::p_cubeData.
|
inlineinherited |
Definition at line 490 of file CubeViewport.h.
References Isis::CubeViewport::p_cubeId.
|
inherited |
Return the number of lines in the cube.
Definition at line 449 of file CubeViewport.cpp.
References Isis::Cube::lineCount(), and Isis::CubeViewport::p_cube.
Referenced by Isis::CubeViewport::fitScale(), Isis::CubeViewport::fitScaleHeight(), Isis::CubeViewport::getCubeArea(), Isis::StatisticsTool::getStatistics(), Isis::EditTool::LineToPoints(), Isis::EditTool::mouseButtonRelease(), Isis::EditTool::rubberBandComplete(), Isis::CubeViewport::setScale(), Isis::CubeViewport::showEvent(), Isis::TrackTool::updateLabels(), Isis::AdvancedTrackTool::updateRow(), Isis::CubeViewport::updateScrollBars(), Isis::ZoomTool::zoomFit(), Isis::ZoomTool::zoomFitHeight(), and Isis::ZoomTool::zoomFitWidth().
|
inherited |
Return the number of samples in the cube.
Definition at line 443 of file CubeViewport.cpp.
References Isis::CubeViewport::p_cube, and Isis::Cube::sampleCount().
Referenced by Isis::CubeViewport::fitScale(), Isis::CubeViewport::fitScaleWidth(), Isis::CubeViewport::getCubeArea(), Isis::StatisticsTool::getStatistics(), Isis::EditTool::mouseButtonRelease(), Isis::EditTool::rubberBandComplete(), Isis::CubeViewport::setScale(), Isis::CubeViewport::showEvent(), Isis::TrackTool::updateLabels(), Isis::AdvancedTrackTool::updateRow(), Isis::CubeViewport::updateScrollBars(), Isis::ZoomTool::zoomFit(), Isis::ZoomTool::zoomFitHeight(), and Isis::ZoomTool::zoomFitWidth().
|
inlineinherited |
Definition at line 229 of file CubeViewport.h.
References Isis::CubeViewport::p_cubeShown.
|
inherited |
Turns a cube into contents.
Convert a cube sample/line to a contents x/y (should not be outside)
x | |
y | |
sample | |
line | |
sample | |
line | |
x | |
y |
Definition at line 845 of file CubeViewport.cpp.
References Isis::CubeViewport::p_scale.
Referenced by Isis::CubeViewport::center(), Isis::CubeViewport::cubeToViewport(), and Isis::CubeViewport::setScale().
|
inherited |
Turns a cube into a viewport.
Convert a cube sample/line to a viewport x/y (may be outside the viewport)
x | |
y | |
sample | |
line | |
sample | |
line | |
x | |
y |
Definition at line 862 of file CubeViewport.cpp.
References Isis::CubeViewport::cubeToContents().
Referenced by Isis::CubeViewport::cubeContentsChanged(), Isis::CubeViewport::cubeDataChanged(), Isis::ControlNetTool::drawAllMeasurements(), Isis::MatchTool::drawAllMeasurments(), Isis::QnetTool::drawAllMeasurments(), Isis::ControlNetTool::drawGroundMeasures(), Isis::QnetTool::drawGroundMeasures(), Isis::FindTool::handleRecordClicked(), Isis::CubePlotCurve::paint(), Isis::SunShadowTool::paintViewport(), Isis::StereoTool::paintViewport(), Isis::FindTool::paintViewport(), and Isis::HistogramTool::refreshPlot().
|
inherited |
|
inherited |
Return the cursor position in the viewport.
Definition at line 1836 of file CubeViewport.cpp.
|
signalinherited |
Emitted when changes should be discarded.
Referenced by Isis::CubeViewport::confirmClose().
|
signalinherited |
Emitted when a brick is no longer needed, should only be sent to cube data thread.
Referenced by Isis::CubeViewport::cubeDataChanged(), and Isis::CubeViewport::CubeViewport().
|
slotinherited |
This restarts the progress bar.
Does nothing if already loading.
Definition at line 982 of file CubeViewport.cpp.
References Isis::CubeViewport::p_progressTimer, and Isis::CubeViewport::progressChanged().
|
protectedvirtualinherited |
Event filter to watch for mouse events on viewport.
o | |
e |
Reimplemented in Isis::IndependentCubeViewport.
Definition at line 1696 of file CubeViewport.cpp.
References Isis::CubeViewport::mouseButtonPress(), Isis::CubeViewport::mouseButtonRelease(), Isis::CubeViewport::mouseDoubleClick(), Isis::CubeViewport::mouseEnter(), Isis::CubeViewport::mouseLeave(), and Isis::CubeViewport::mouseMove().
|
inherited |
Determine the scale that causes the full cube to fit in the viewport.
Definition at line 2272 of file CubeViewport.cpp.
References Isis::CubeViewport::cubeLines(), Isis::CubeViewport::cubeSamples(), and Isis::CubeViewport::scale().
Referenced by Isis::CubeViewport::showEvent(), and Isis::ZoomTool::zoomFit().
|
inherited |
Determine the scale of cube in heighth to fit in the viewport.
Definition at line 2300 of file CubeViewport.cpp.
References Isis::CubeViewport::cubeLines(), and Isis::CubeViewport::scale().
Referenced by Isis::ZoomTool::zoomFitHeight().
|
inherited |
Determine the scale of cube in the width to fit in the viewport.
Definition at line 2287 of file CubeViewport.cpp.
References Isis::CubeViewport::cubeSamples(), and Isis::CubeViewport::scale().
Referenced by Isis::ZoomTool::zoomFitWidth().
|
inherited |
Resets all remembered stretches.
Definition at line 1975 of file CubeViewport.cpp.
References Isis::CubeViewport::p_knownStretches.
Referenced by Isis::StretchTool::stretchGlobalAllBands().
|
inherited |
Get All WhatsThis info - viewport, cube, area in PVL format.
pWhatsThisPvl | - Pvl for all whatsthis info |
pWhatsThisPvl | - Pvl for all whatsthis info |
Definition at line 1374 of file CubeViewport.cpp.
References Isis::Cube::bandCount(), Isis::Cube::fileName(), Isis::ViewportBuffer::getBand(), Isis::CubeViewport::getBandFilterName(), Isis::CubeViewport::getCubeArea(), Isis::Cube::lineCount(), Isis::CubeViewport::p_blueBuffer, Isis::CubeViewport::p_color, Isis::CubeViewport::p_cube, Isis::CubeViewport::p_grayBuffer, Isis::CubeViewport::p_greenBuffer, Isis::CubeViewport::p_redBuffer, Isis::Cube::physicalBand(), Isis::Cube::sampleCount(), Isis::PvlKeyword::size(), and Isis::toString().
Referenced by Isis::FileTool::saveInfo().
|
inherited |
Get Band Filter name from the Isis cube label.
pFilterNameKey | - FilterName keyword containing the corresponding keyword from the Isis Cube label |
pFilterNameKey | - FilterName keyword containing the corresponding keyword from the Isis Cube label |
Definition at line 1476 of file CubeViewport.cpp.
References Isis::PvlObject::findGroup(), Isis::PvlContainer::findKeyword(), Isis::PvlObject::findObject(), Isis::PvlObject::hasGroup(), Isis::PvlContainer::hasKeyword(), Isis::Cube::label(), and Isis::CubeViewport::p_cube.
Referenced by Isis::CubeViewport::getAllWhatsThisInfo(), and Isis::CubeViewport::updateWhatsThis().
|
inherited |
Get Cube area corresponding to the viewport's dimension.
pdStartSample | - Cube Start Sample |
pdEndSample | - Cube End Sample |
pdStartLine | - Cube Start Line |
pdEndLine | - Cube End Line |
Definition at line 1497 of file CubeViewport.cpp.
References Isis::CubeViewport::cubeLines(), Isis::CubeViewport::cubeSamples(), and Isis::CubeViewport::viewportToCube().
Referenced by Isis::CubeViewport::getAllWhatsThisInfo(), and Isis::CubeViewport::updateWhatsThis().
|
inlineinherited |
Definition at line 204 of file CubeViewport.h.
References Isis::CubeViewport::BandInfo::band, and Isis::CubeViewport::p_gray.
Referenced by Isis::BandTool::changeView(), Isis::BandTool::copyAllViewports(), Isis::BandTool::copyLinkedViewports(), Isis::SpectralPlotWindow::drawBandMarkers(), Isis::SpatialPlotTool::getSpatialStatistics(), Isis::StatisticsTool::getStatistics(), Isis::ScatterPlotWindow::isXCube(), Isis::ScatterPlotWindow::isYCube(), Isis::EditTool::mouseButtonRelease(), Isis::EditTool::redoEdit(), Isis::HistogramTool::refreshPlot(), Isis::SpatialPlotTool::refreshPlot(), Isis::StretchTool::stretchBand(), Isis::CubeViewport::stretchGray(), Isis::CubeViewport::stretchKnownGlobal(), Isis::EditTool::undoEdit(), Isis::AdvancedTrackTool::updateRow(), Isis::BandTool::updateTool(), and Isis::EditTool::writeToCube().
|
inlineinherited |
Returns the gray viewport buffer (Will be NULL if in RGB mode.)
Definition at line 421 of file CubeViewport.h.
References Isis::CubeViewport::p_grayBuffer.
Referenced by Isis::ScatterPlotWindow::paint(), restretch(), Isis::StretchTool::setCubeViewport(), Isis::StretchTool::stretchRect(), Isis::StretchTool::stretchRequested(), Isis::StretchTool::updateHistograms(), and Isis::TrackTool::updateLabels().
|
inherited |
Gets the gray pixel.
Return the gray pixel value at a sample/line.
sample | The sample |
line | The line |
sample | |
line |
Definition at line 1656 of file CubeViewport.cpp.
References Isis::CubeViewport::BandInfo::band, Isis::CubeViewport::p_cube, Isis::CubeViewport::p_gray, Isis::CubeViewport::p_pntBrick, Isis::Cube::read(), and Isis::Brick::SetBasePosition().
Referenced by Isis::AdvancedTrackTool::updateRow().
|
inherited |
Return the gray band stretch.
Definition at line 1664 of file CubeViewport.cpp.
References Isis::CubeViewport::BandInfo::getStretch(), and Isis::CubeViewport::p_gray.
Referenced by Isis::StretchTool::advancedStretchChanged(), Isis::StretchTool::changeStretch(), Isis::StretchTool::setCubeViewport(), Isis::StretchTool::setStretchAcrossBands(), Isis::StretchTool::setStretchAllViewports(), Isis::StretchTool::stretchBand(), Isis::StretchTool::stretchChanged(), Isis::StretchTool::stretchRect(), Isis::StretchTool::stretchRequested(), and Isis::AdvancedStretchDialog::updateStretch().
|
inlineinherited |
Definition at line 214 of file CubeViewport.h.
References Isis::CubeViewport::BandInfo::band, and Isis::CubeViewport::p_green.
Referenced by Isis::BandTool::changeView(), Isis::BandTool::copyAllViewports(), Isis::BandTool::copyLinkedViewports(), Isis::SpectralPlotWindow::drawBandMarkers(), Isis::StretchTool::stretchBand(), Isis::CubeViewport::stretchGreen(), Isis::CubeViewport::stretchKnownGlobal(), and Isis::BandTool::updateTool().
|
inlineinherited |
Returns the green viewport buffer (Will be NULL if in Gray mode.)
Definition at line 441 of file CubeViewport.h.
References Isis::CubeViewport::p_greenBuffer.
Referenced by restretch(), Isis::StretchTool::setCubeViewport(), Isis::StretchTool::stretchRect(), Isis::StretchTool::stretchRequested(), Isis::StretchTool::updateAdvStretchDialogforAll(), Isis::StretchTool::updateHistograms(), and Isis::TrackTool::updateLabels().
|
inherited |
Gets the green pixel.
Return the green pixel value at a sample/line.
sample | The sample |
line | The line |
sample | |
line |
Definition at line 1624 of file CubeViewport.cpp.
References Isis::CubeViewport::BandInfo::band, Isis::CubeViewport::p_cube, Isis::CubeViewport::p_green, Isis::CubeViewport::p_pntBrick, Isis::Cube::read(), and Isis::Brick::SetBasePosition().
|
inherited |
Return the green band stretch.
Definition at line 1676 of file CubeViewport.cpp.
References Isis::CubeViewport::BandInfo::getStretch(), and Isis::CubeViewport::p_green.
Referenced by Isis::StretchTool::advancedStretchChanged(), Isis::SpecialPixelTool::apply(), Isis::StretchTool::changeStretch(), Isis::StretchTool::setCubeViewport(), Isis::StretchTool::setStretchAcrossBands(), Isis::StretchTool::setStretchAllViewports(), Isis::StretchTool::stretchBand(), Isis::StretchTool::stretchChanged(), Isis::StretchTool::stretchRect(), Isis::StretchTool::stretchRequested(), Isis::StretchTool::updateAdvStretchDialogforAll(), and Isis::AdvancedStretchDialog::updateStretch().
|
inlineinherited |
Definition at line 194 of file CubeViewport.h.
References Isis::CubeViewport::p_color.
Referenced by Isis::BandTool::changeView(), Isis::BandTool::copyAllViewports(), Isis::BandTool::copyLinkedViewports(), Isis::SpectralPlotWindow::drawBandMarkers(), Isis::EditTool::mouseButtonRelease(), and Isis::EditTool::rubberBandComplete().
|
inlineinherited |
Definition at line 199 of file CubeViewport.h.
References Isis::CubeViewport::p_color.
Referenced by Isis::StretchTool::changeStretch(), Isis::BandTool::changeView(), Isis::BandTool::copyAllViewports(), Isis::BandTool::copyLinkedViewports(), Isis::SpatialPlotTool::getSpatialStatistics(), Isis::ScatterPlotWindow::isXCube(), Isis::ScatterPlotWindow::isYCube(), Isis::SpatialPlotTool::refreshPlot(), Isis::StretchTool::setCubeViewport(), Isis::StretchTool::setStretchAcrossBands(), Isis::StretchTool::setStretchAllViewports(), Isis::StretchTool::stretchChanged(), Isis::CubeViewport::stretchKnownGlobal(), Isis::StretchTool::stretchRect(), Isis::StretchTool::updateAdvStretchDialogforAll(), Isis::StretchTool::updateHistograms(), Isis::TrackTool::updateLabels(), Isis::AdvancedTrackTool::updateRow(), Isis::BandTool::updateTool(), and Isis::StretchTool::updateTool().
|
inline |
Is the viewport linked with other viewports.
Definition at line 64 of file MdiCubeViewport.h.
Referenced by Isis::BlinkTool::advance(), Isis::FindTool::centerLinkedViewports(), Isis::FeatureNomenclatureTool::centerOnFeature(), Isis::BandTool::copyLinkedViewports(), Isis::RubberBandTool::mouseButtonRelease(), Isis::RubberBandTool::mouseMove(), Isis::RubberBandTool::paintViewport(), Isis::FindTool::paintViewport(), Isis::FindTool::refresh(), Isis::WindowTool::resizeWindows(), Isis::BlinkTool::reverse(), Isis::ZoomTool::rubberBandComplete(), Isis::BlinkTool::toggleLink(), Isis::MeasureTool::updateMeasure(), Isis::AdvancedTrackTool::updateRow(), Isis::BlinkTool::updateTool(), Isis::AbstractPlotTool::viewportsToPlot(), Isis::ZoomTool::zoomBy(), Isis::ZoomTool::zoomFit(), Isis::ZoomTool::zoomFitHeight(), Isis::ZoomTool::zoomFitWidth(), and Isis::ZoomTool::zoomManual().
|
protectedvirtualinherited |
Process arrow keystrokes on cube.
e |
Definition at line 1761 of file CubeViewport.cpp.
References Isis::Cube::fileName(), Isis::CubeViewport::moveCursor(), Isis::CubeViewport::p_cube, Isis::CubeViewport::p_scale, Isis::CubeViewport::scale(), and Isis::CubeViewport::setScale().
|
signalinherited |
Emitted when mouse button pressed.
Referenced by Isis::CubeViewport::eventFilter().
|
signalinherited |
Emitted when mouse button released.
Referenced by Isis::CubeViewport::eventFilter().
|
signalinherited |
Emitted when double click happens.
Referenced by Isis::CubeViewport::eventFilter().
|
signalinherited |
Emitted when the mouse enters the viewport.
Referenced by Isis::CubeViewport::eventFilter().
|
signalinherited |
Emitted when the mouse leaves the viewport.
Referenced by Isis::CubeViewport::eventFilter().
|
signalinherited |
Emitted when the mouse moves.
Referenced by Isis::CubeViewport::eventFilter().
|
signalinherited |
Emitted when the mouse moves.
|
inherited |
Move the cursor by x,y if possible.
x | |
y |
Definition at line 1849 of file CubeViewport.cpp.
Referenced by Isis::CubeViewport::keyPressEvent().
|
slotinherited |
This updates the progress bar visually.
Conceptually it emits the progressChanged signal with the current progress.
Definition at line 273 of file CubeViewport.cpp.
References Isis::ViewportBuffer::currentProgress(), Isis::CubeViewport::p_blueBuffer, Isis::CubeViewport::p_grayBuffer, Isis::CubeViewport::p_greenBuffer, Isis::CubeViewport::p_progressTimer, Isis::CubeViewport::p_redBuffer, Isis::CubeViewport::progressChanged(), Isis::CubeViewport::progressComplete(), Isis::CubeViewport::screenPixelsChanged(), and Isis::ViewportBuffer::working().
Referenced by Isis::CubeViewport::CubeViewport().
|
virtual |
Repaint the viewport.
e | [in] (QPaintEvent *) event |
Reimplemented from Isis::CubeViewport.
Definition at line 106 of file MdiCubeViewport.cpp.
References Isis::CubeViewport::p_pixmap, Isis::CubeViewport::paintEvent(), and Isis::CubeViewport::viewportUpdated().
|
inherited |
Paint the whole pixmap.
Definition at line 1139 of file CubeViewport.cpp.
References Isis::CubeViewport::p_image.
Referenced by Isis::CubeViewport::bufferUpdated(), Isis::CubeViewport::paintPixmapRects(), Isis::CubeViewport::resizeEvent(), Isis::CubeViewport::scrollContentsBy(), Isis::CubeViewport::setScale(), Isis::CubeViewport::shiftPixmap(), Isis::CubeViewport::showEvent(), Isis::CubeViewport::stretchBlue(), Isis::CubeViewport::stretchGray(), Isis::CubeViewport::stretchGreen(), and Isis::CubeViewport::stretchRed().
|
inlineinherited |
Returns the pixmap.
Definition at line 411 of file CubeViewport.h.
References Isis::CubeViewport::p_pixmap.
Referenced by Isis::BlinkTool::eventFilter().
|
signalinherited |
Emitted with current progress (0 to 100) when working.
Referenced by Isis::CubeViewport::enableProgress(), and Isis::CubeViewport::onProgressTimer().
|
signalinherited |
Emitted when the current progress is complete (100)
Referenced by Isis::CubeViewport::onProgressTimer().
|
inlineinherited |
Definition at line 353 of file CubeViewport.h.
References Isis::CubeViewport::p_projection.
Referenced by Isis::FeatureNomenclatureTool::findMissingNomenclature(), Isis::MeasureTool::rubberBandComplete(), Isis::MeasureTool::updateDist(), Isis::TrackTool::updateLabels(), Isis::AdvancedTrackTool::updateRow(), and Isis::FindTool::updateTool().
|
inlineinherited |
Definition at line 209 of file CubeViewport.h.
References Isis::CubeViewport::BandInfo::band, and Isis::CubeViewport::p_red.
Referenced by Isis::BandTool::changeView(), Isis::BandTool::copyAllViewports(), Isis::BandTool::copyLinkedViewports(), Isis::SpectralPlotWindow::drawBandMarkers(), Isis::SpatialPlotTool::getSpatialStatistics(), Isis::SpatialPlotTool::refreshPlot(), Isis::StretchTool::stretchBand(), Isis::CubeViewport::stretchKnownGlobal(), Isis::CubeViewport::stretchRed(), Isis::AdvancedTrackTool::updateRow(), and Isis::BandTool::updateTool().
|
inlineinherited |
Returns the red viewport buffer (Will be NULL if in Gray mode.)
Definition at line 431 of file CubeViewport.h.
References Isis::CubeViewport::p_redBuffer.
Referenced by restretch(), Isis::StretchTool::setCubeViewport(), Isis::StretchTool::stretchRect(), Isis::StretchTool::stretchRequested(), Isis::StretchTool::updateAdvStretchDialogforAll(), Isis::StretchTool::updateHistograms(), and Isis::TrackTool::updateLabels().
|
inherited |
Gets the red pixel.
Return the red pixel value at a sample/line.
sample | The sample |
line | The line |
sample | |
line |
Definition at line 1608 of file CubeViewport.cpp.
References Isis::CubeViewport::BandInfo::band, Isis::CubeViewport::p_cube, Isis::CubeViewport::p_pntBrick, Isis::CubeViewport::p_red, Isis::Cube::read(), and Isis::Brick::SetBasePosition().
Referenced by Isis::AdvancedTrackTool::updateRow().
|
inherited |
Return the red band stretch.
Definition at line 1670 of file CubeViewport.cpp.
References Isis::CubeViewport::BandInfo::getStretch(), and Isis::CubeViewport::p_red.
Referenced by Isis::StretchTool::advancedStretchChanged(), Isis::SpecialPixelTool::apply(), Isis::StretchTool::changeStretch(), Isis::StretchTool::setCubeViewport(), Isis::StretchTool::setStretchAcrossBands(), Isis::StretchTool::setStretchAllViewports(), Isis::StretchTool::stretchBand(), Isis::StretchTool::stretchChanged(), Isis::StretchTool::stretchRect(), Isis::StretchTool::stretchRequested(), Isis::StretchTool::updateAdvStretchDialogforAll(), and Isis::AdvancedStretchDialog::updateStretch().
void Isis::MdiCubeViewport::registerTool | ( | Tool * | tool | ) |
Registers the tool given tool.
tool |
Definition at line 59 of file MdiCubeViewport.cpp.
Referenced by Isis::Tool::registerTool().
|
protectedvirtualinherited |
The viewport is being resized.
e |
Definition at line 1033 of file CubeViewport.cpp.
References Isis::CubeViewport::p_blueBuffer, Isis::CubeViewport::p_grayBuffer, Isis::CubeViewport::p_greenBuffer, Isis::CubeViewport::p_image, Isis::CubeViewport::p_paintPixmap, Isis::CubeViewport::p_pixmap, Isis::CubeViewport::p_redBuffer, Isis::CubeViewport::p_updatingBuffers, Isis::CubeViewport::p_viewportWhatsThisText, Isis::CubeViewport::paintPixmap(), Isis::CubeViewport::paintPixmapRects(), Isis::ViewportBuffer::resizedViewport(), Isis::CubeViewport::screenPixelsChanged(), and Isis::CubeViewport::updateScrollBars().
|
virtual |
This is called by internal viewport buffers when a stretch action should be performed.
The buffer passes itself as the argument.
buffer |
Implements Isis::CubeViewport.
Definition at line 138 of file MdiCubeViewport.cpp.
References Isis::StretchTool::Blue, Isis::CubeViewport::blueBuffer(), Isis::StretchTool::Gray, Isis::CubeViewport::grayBuffer(), Isis::StretchTool::Green, Isis::CubeViewport::greenBuffer(), Isis::StretchTool::Red, and Isis::CubeViewport::redBuffer().
|
signalinherited |
Emitted when changes should be saved.
Referenced by Isis::CubeViewport::confirmClose().
|
inlineinherited |
Definition at line 224 of file CubeViewport.h.
References Isis::CubeViewport::p_scale.
Referenced by Isis::FindTool::centerLinkedViewports(), Isis::CubeViewport::fitScale(), Isis::CubeViewport::fitScaleHeight(), Isis::CubeViewport::fitScaleWidth(), Isis::CubeViewport::keyPressEvent(), Isis::ZoomTool::rubberBandComplete(), Isis::ZoomTool::setScale(), Isis::CubeViewport::setScale(), Isis::MeasureTool::updateDist(), Isis::ZoomTool::updateTool(), and Isis::ZoomTool::zoomBy().
|
signalinherited |
Emitted when zoom factor changed just before the repaint event.
Referenced by Isis::CubeViewport::setScale(), and Isis::CubeViewport::updateScrollBars().
|
signalinherited |
Emitted when cube pixels that should be on the screen change.
Referenced by Isis::CubeViewport::center(), Isis::CubeViewport::onProgressTimer(), Isis::CubeViewport::resizeEvent(), Isis::CubeViewport::scrollContentsBy(), and Isis::CubeViewport::setScale().
|
slotinherited |
Move the scrollbars by dx/dy screen pixels.
dx | |
dy |
Definition at line 879 of file CubeViewport.cpp.
References Isis::CubeViewport::scrollContentsBy(), and Isis::CubeViewport::updateScrollBars().
|
protectedinherited |
Scroll the viewport contents by dx/dy screen pixels.
dx | |
dy |
Definition at line 919 of file CubeViewport.cpp.
References Isis::ViewportBuffer::bufferXYRect(), Isis::CubeViewport::p_blueBuffer, Isis::CubeViewport::p_grayBuffer, Isis::CubeViewport::p_greenBuffer, Isis::CubeViewport::p_pixmapPaintRects, Isis::CubeViewport::p_redBuffer, Isis::CubeViewport::p_updatingBuffers, Isis::CubeViewport::paintPixmap(), Isis::ViewportBuffer::pan(), Isis::CubeViewport::screenPixelsChanged(), Isis::CubeViewport::shiftPixmap(), and Isis::ViewportBuffer::working().
Referenced by Isis::CubeViewport::scrollBy().
|
inherited |
Sets a stretch for all bands.
stretch |
Definition at line 1985 of file CubeViewport.cpp.
References Isis::CubeViewport::p_knownStretches.
Referenced by Isis::StretchTool::setStretchAcrossBands().
|
inlineinherited |
Sets the background color.
color |
Definition at line 383 of file CubeViewport.h.
References Isis::CubeViewport::p_bgColor.
Referenced by Isis::SpecialPixelTool::apply().
|
inherited |
Change the caption on the viewport title bar.
Definition at line 995 of file CubeViewport.cpp.
References Isis::CubeViewport::BandInfo::band, Isis::Cube::fileName(), Isis::CubeViewport::p_blue, Isis::CubeViewport::p_color, Isis::CubeViewport::p_cube, Isis::CubeViewport::p_gray, Isis::CubeViewport::p_green, Isis::CubeViewport::p_red, Isis::CubeViewport::p_saveEnabled, Isis::CubeViewport::p_scale, and Isis::CubeViewport::windowTitleChanged().
Referenced by Isis::CubeViewport::CubeViewport(), Isis::EditTool::redoEdit(), Isis::EditTool::save(), Isis::CubeViewport::setCube(), Isis::CubeViewport::setScale(), Isis::EditTool::undoEdit(), Isis::CubeViewport::viewGray(), Isis::CubeViewport::viewRGB(), and Isis::EditTool::writeToCube().
|
inlineinherited |
Sets the band bin combo box count.
count |
Definition at line 392 of file CubeViewport.h.
References Isis::CubeViewport::p_comboCount.
Referenced by Isis::BandTool::setBandBin(), and Isis::BandTool::setList().
|
inlineinherited |
Sets the band bin combo box index.
index |
Definition at line 401 of file CubeViewport.h.
References Isis::CubeViewport::p_comboIndex.
Referenced by Isis::BandTool::setBandBin(), and Isis::BandTool::setList().
|
inherited |
This method sets the viewports cube.
cube | The cube to set the CubeViewport window to |
cube |
Definition at line 436 of file CubeViewport.cpp.
References Isis::CubeViewport::cube(), Isis::CubeViewport::p_cube, and Isis::CubeViewport::setCaption().
|
inherited |
Set the cursor position to x/y in the viewport.
x | |
y |
Definition at line 1876 of file CubeViewport.cpp.
|
slot |
Change the linked state of the viewport.
b |
Definition at line 70 of file MdiCubeViewport.cpp.
References Isis::FileName::expanded().
Referenced by Isis::FindTool::handleLinkClicked(), Isis::WindowTool::linkWindows(), Isis::BlinkTool::toggleLink(), and Isis::WindowTool::unlinkWindows().
|
slotinherited |
Change the scale of the cube to the given parameter value.
This method will reset the scale value if the value passed in is too large or too small.
scale | Value by which to scale the image. |
Definition at line 598 of file CubeViewport.cpp.
References Isis::CubeViewport::contentsToCube(), Isis::CubeViewport::cubeLines(), Isis::CubeViewport::cubeSamples(), Isis::CubeViewport::cubeToContents(), Isis::CubeViewport::p_blueBuffer, Isis::CubeViewport::p_grayBuffer, Isis::CubeViewport::p_greenBuffer, Isis::CubeViewport::p_redBuffer, Isis::CubeViewport::p_scale, Isis::CubeViewport::p_updatingBuffers, Isis::CubeViewport::paintPixmap(), Isis::CubeViewport::paintPixmapRects(), Isis::CubeViewport::scale(), Isis::ViewportBuffer::scaleChanged(), Isis::CubeViewport::scaleChanged(), Isis::CubeViewport::screenPixelsChanged(), Isis::CubeViewport::setCaption(), and Isis::CubeViewport::updateScrollBars().
Referenced by Isis::FindTool::centerLinkedViewports(), Isis::CubeViewport::keyPressEvent(), Isis::ZoomTool::setScale(), Isis::CubeViewport::setScale(), and Isis::CubeViewport::showEvent().
|
slotinherited |
Change the scale of the cube after moving samp/line to the center.
scale | |
sample | |
line |
Definition at line 681 of file CubeViewport.cpp.
References Isis::CubeViewport::center(), Isis::ViewportBuffer::enable(), Isis::ViewportBuffer::enabled(), Isis::CubeViewport::p_blueBuffer, Isis::CubeViewport::p_grayBuffer, Isis::CubeViewport::p_greenBuffer, Isis::CubeViewport::p_paintPixmap, Isis::CubeViewport::p_redBuffer, Isis::CubeViewport::paintPixmap(), Isis::CubeViewport::scale(), Isis::CubeViewport::screenPixelsChanged(), and Isis::CubeViewport::setScale().
|
slotinherited |
Change the scale of the cube after moving x,y to the center.
scale | |
x | |
y |
Definition at line 665 of file CubeViewport.cpp.
References Isis::CubeViewport::scale(), Isis::CubeViewport::setScale(), and Isis::CubeViewport::viewportToCube().
|
inherited |
Finds the Tracking group from p_cube and stores the tracking cube name so that we can grab it in AdvancedTrackTool and get mosaic information.
This way, we are not opening the tracking cube every time the cursor is moved.
Definition at line 2377 of file CubeViewport.cpp.
References Isis::Cube::fileName(), Isis::PvlContainer::findKeyword(), Isis::Cube::group(), Isis::CubeViewport::p_cube, and Isis::CubeViewport::trackingCube().
Referenced by Isis::CubeViewport::CubeViewport().
|
slotinherited |
This method is called to initially show the viewport.
It will set the scale to show the entire cube and enable the gray buffer.
event | Show event being received. |
Definition at line 243 of file CubeViewport.cpp.
References Isis::ViewportBuffer::addStretchAction(), Isis::CubeViewport::cubeLines(), Isis::CubeViewport::cubeSamples(), Isis::ViewportBuffer::enable(), Isis::ViewportBuffer::enabled(), Isis::CubeViewport::fitScale(), Isis::CubeViewport::p_grayBuffer, Isis::CubeViewport::p_paintPixmap, Isis::CubeViewport::p_scale, Isis::CubeViewport::paintPixmap(), and Isis::CubeViewport::setScale().
|
slotinherited |
|
slotinherited |
Apply stretch pairs to blue bands.
string |
Definition at line 2145 of file CubeViewport.cpp.
References Isis::Stretch::Parse().
Referenced by Isis::StretchTool::advancedStretchChanged(), Isis::SpecialPixelTool::apply(), Isis::StretchTool::changeStretch(), Isis::StretchTool::setStretchAcrossBands(), Isis::StretchTool::setStretchAllViewports(), Isis::StretchTool::stretchChanged(), Isis::CubeViewport::stretchKnownGlobal(), Isis::StretchTool::stretchRect(), and Isis::StretchTool::stretchRequested().
|
slotinherited |
Sets the stretch for blue in rgb mode.
stretch |
Definition at line 2252 of file CubeViewport.cpp.
References Isis::CubeViewport::blueBand(), Isis::CubeViewport::BandInfo::getStretch(), Isis::CubeViewport::p_blue, Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::paintPixmap(), Isis::Stretch::Pairs(), and Isis::CubeViewport::BandInfo::setStretch().
|
slotinherited |
Apply stretch pairs to gray band.
string |
Definition at line 2109 of file CubeViewport.cpp.
References Isis::Stretch::Parse().
Referenced by Isis::StretchTool::advancedStretchChanged(), Isis::StretchTool::changeStretch(), Isis::StretchTool::setStretchAllViewports(), Isis::StretchTool::stretchChanged(), Isis::CubeViewport::stretchKnownGlobal(), Isis::StretchTool::stretchRect(), Isis::StretchTool::stretchRequested(), and Isis::CubeViewport::viewGray().
|
slotinherited |
Sets the stretch for gray mode.
stretch |
Definition at line 2186 of file CubeViewport.cpp.
References Isis::Stretch::CopyPairs(), Isis::CubeViewport::BandInfo::getStretch(), Isis::CubeViewport::grayBand(), Isis::CubeViewport::p_blue, Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::p_gray, Isis::CubeViewport::p_green, Isis::CubeViewport::p_red, Isis::CubeViewport::paintPixmap(), Isis::Stretch::Pairs(), and Isis::CubeViewport::BandInfo::setStretch().
|
slotinherited |
Apply stretch pairs to green bands.
string | the stretch |
Definition at line 2133 of file CubeViewport.cpp.
References Isis::Stretch::Parse().
Referenced by Isis::StretchTool::advancedStretchChanged(), Isis::SpecialPixelTool::apply(), Isis::StretchTool::changeStretch(), Isis::StretchTool::setStretchAcrossBands(), Isis::StretchTool::setStretchAllViewports(), Isis::StretchTool::stretchChanged(), Isis::CubeViewport::stretchKnownGlobal(), Isis::StretchTool::stretchRect(), and Isis::StretchTool::stretchRequested().
|
slotinherited |
Sets the stretch for green in rgb mode.
stretch |
Definition at line 2234 of file CubeViewport.cpp.
References Isis::CubeViewport::BandInfo::getStretch(), Isis::CubeViewport::greenBand(), Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::p_green, Isis::CubeViewport::paintPixmap(), Isis::Stretch::Pairs(), and Isis::CubeViewport::BandInfo::setStretch().
|
slotinherited |
List<Tool *> p This stretches to the global stretch.
Definition at line 2155 of file CubeViewport.cpp.
References Isis::CubeViewport::blueBand(), Isis::CubeViewport::grayBand(), Isis::CubeViewport::greenBand(), Isis::CubeViewport::isGray(), Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::redBand(), Isis::CubeViewport::stretchBlue(), Isis::CubeViewport::stretchGray(), Isis::CubeViewport::stretchGreen(), and Isis::CubeViewport::stretchRed().
Referenced by Isis::StretchTool::stretchChanged(), and Isis::StretchTool::stretchGlobal().
|
slotinherited |
Apply stretch pairs to red bands.
string | The stretch |
Definition at line 2121 of file CubeViewport.cpp.
References Isis::Stretch::Parse().
Referenced by Isis::StretchTool::advancedStretchChanged(), Isis::SpecialPixelTool::apply(), Isis::StretchTool::changeStretch(), Isis::StretchTool::setStretchAcrossBands(), Isis::StretchTool::setStretchAllViewports(), Isis::StretchTool::stretchChanged(), Isis::CubeViewport::stretchKnownGlobal(), Isis::StretchTool::stretchRect(), and Isis::StretchTool::stretchRequested().
|
slotinherited |
Sets the stretch for red in rgb mode.
stretch |
Definition at line 2216 of file CubeViewport.cpp.
References Isis::CubeViewport::BandInfo::getStretch(), Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::p_red, Isis::CubeViewport::paintPixmap(), Isis::Stretch::Pairs(), Isis::CubeViewport::redBand(), and Isis::CubeViewport::BandInfo::setStretch().
|
inlineinherited |
Definition at line 368 of file CubeViewport.h.
Referenced by Isis::CubeViewport::setTrackingCube(), and Isis::AdvancedTrackTool::TrackMosaicOrigin().
|
inlineinherited |
Definition at line 363 of file CubeViewport.h.
References Isis::CubeViewport::p_groundMap.
Referenced by Isis::FindTool::centerLinkedViewports(), Isis::FindTool::distancePerPixel(), Isis::FeatureNomenclatureTool::FeaturePosition::FeaturePosition(), Isis::FeatureNomenclatureTool::findMissingNomenclature(), Isis::SpatialPlotTool::getSpatialStatistics(), Isis::FindTool::handleLinkClicked(), Isis::FindTool::handleRecordClicked(), Isis::ControlNetTool::mouseButtonRelease(), Isis::FindTool::mouseButtonRelease(), Isis::QnetTool::mouseButtonRelease(), Isis::FindTool::paintViewport(), Isis::SpatialPlotTool::updateTool(), and Isis::FindTool::updateTool().
|
signalinherited |
Emitted when viewport is closed.
|
inherited |
Turns a viewport into a cube.
Convert a viewport x/y to a cube sample/line (may be outside the cube)
x | |
y | |
sample | |
line |
Definition at line 825 of file CubeViewport.cpp.
References Isis::CubeViewport::contentsToCube().
Referenced by Isis::CubeViewport::center(), Isis::CubeViewport::getCubeArea(), Isis::SpatialPlotTool::getSpatialStatistics(), Isis::SpectralPlotTool::getSpectralStatistics(), Isis::StatisticsTool::getStatistics(), Isis::SunShadowTool::mouseButtonPress(), Isis::ControlNetTool::mouseButtonRelease(), Isis::EditTool::mouseButtonRelease(), Isis::FindTool::mouseButtonRelease(), Isis::MatchTool::mouseButtonRelease(), Isis::QnetTool::mouseButtonRelease(), Isis::SunShadowTool::mouseMove(), Isis::ScatterPlotWindow::paint(), Isis::ScatterPlotConfigDialog::range(), Isis::HistogramTool::refreshPlot(), Isis::EditTool::rubberBandComplete(), Isis::ScatterPlotWindow::setMousePosition(), Isis::CubeViewport::setScale(), Isis::HistogramItem::setVertices(), Isis::MeasureTool::updateDist(), Isis::TrackTool::updateLabels(), and Isis::AdvancedTrackTool::updateRow().
|
signalinherited |
Emitted when viewport updated.
Referenced by paintEvent().
|
signalinherited |
Emitted when window title changes.
Referenced by Isis::CubeViewport::setCaption().
Global stretches for each stretched band.
Definition at line 626 of file CubeViewport.h.
Referenced by Isis::CubeViewport::CubeViewport(), Isis::CubeViewport::stretchBlue(), Isis::CubeViewport::stretchGray(), Isis::CubeViewport::stretchGreen(), Isis::CubeViewport::stretchKnownGlobal(), Isis::CubeViewport::stretchRed(), and Isis::CubeViewport::~CubeViewport().
Stretches for each previously stretched band.
Definition at line 623 of file CubeViewport.h.
Referenced by Isis::CubeViewport::CubeViewport(), Isis::CubeViewport::forgetStretches(), Isis::CubeViewport::setAllBandStretches(), Isis::CubeViewport::viewGray(), Isis::CubeViewport::viewRGB(), and Isis::CubeViewport::~CubeViewport().
|
protectedinherited |
The qpixmap.
Definition at line 620 of file CubeViewport.h.
Referenced by paintEvent(), Isis::CubeViewport::paintPixmap(), Isis::CubeViewport::pixmap(), Isis::CubeViewport::resizeEvent(), and Isis::CubeViewport::shiftPixmap().