USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::IndependentCubeViewport Class Reference

General purpose Cube display widget. More...

#include <IndependentCubeViewport.h>

Inheritance diagram for Isis::IndependentCubeViewport:
Inheritance graph
[legend]
Collaboration diagram for Isis::IndependentCubeViewport:
Collaboration graph
[legend]

List of all members.

Public Slots

void resetKnownGlobal ()
QSize sizeHint () const
 Make viewports show up as 512 by 512.
void setScale (double scale)
 Change the scale of the cube to the given parameter value.
void setScale (double scale, double sample, double line)
 Change the scale of the cube after moving samp/line to the center.
void setScale (double scale, int x, int y)
 Change the scale of the cube after moving x,y to the center.
void center (int x, int y)
 Bring the cube pixel under viewport x/y to the center.
void center (double sample, double line)
 Bring the cube sample/line the center.
virtual void viewRGB (int redBand, int greenBand, int blueBand)
 View cube as color.
virtual void viewGray (int band)
 View cube as gray.
void stretchGray (const QString &string)
 Apply stretch pairs to gray band.
void stretchGray (const Stretch &stretch)
 Sets the stretch for gray mode.
void stretchRed (const QString &string)
 Apply stretch pairs to red bands.
void stretchRed (const Stretch &stretch)
 Sets the stretch for red in rgb mode.
void stretchGreen (const QString &string)
 Apply stretch pairs to green bands.
void stretchGreen (const Stretch &stretch)
 Sets the stretch for green in rgb mode.
void stretchBlue (const QString &string)
 Apply stretch pairs to blue bands.
void stretchBlue (const Stretch &stretch)
 Sets the stretch for blue in rgb mode.
void stretchKnownGlobal ()
 List<Tool *> p This stretches to the global stretch.
void cubeChanged (bool changed)
 This method is called when the cube has changed or changes have been finalized.
void scrollBy (int dx, int dy)
 Move the scrollbars by dx/dy screen pixels.
void changeCursor (QCursor cursor)
 Allows users to change the cursor type on the viewport.
void onProgressTimer ()
 This updates the progress bar visually.
void enableProgress ()
 This restarts the progress bar.

Signals

void synchronize (IndependentCubeViewport *)
void trackingChanged (double sample, double line, double lat, double lon, double dn, IndependentCubeViewport *)
void trackingChanged (double samp, double line, double dn, IndependentCubeViewport *)
void cantTrack (QString, IndependentCubeViewport *)
void viewportUpdated ()
 Emitted when viewport updated.
void viewportClosed (CubeViewport *)
 Emitted when viewport is closed.
void mouseEnter ()
 Emitted when the mouse enters the viewport.
void mouseMove (QPoint)
 Emitted when the mouse moves.
void mouseMove (QPoint, Qt::MouseButton)
 Emitted when the mouse moves.
void mouseLeave ()
 Emitted when the mouse leaves the viewport.
void mouseButtonPress (QPoint, Qt::MouseButton)
 Emitted when mouse button pressed.
void mouseButtonRelease (QPoint, Qt::MouseButton)
 Emitted when mouse button released.
void mouseDoubleClick (QPoint)
 Emitted when double click happens.
void windowTitleChanged ()
 Emitted when window title changes.
void scaleChanged ()
 Emitted when zoom factor changed just before the repaint event.
void saveChanges (CubeViewport *)
 Emitted when changes should be saved.
void discardChanges (CubeViewport *)
 Emitted when changes should be discarded.
void screenPixelsChanged ()
 Emitted when cube pixels that should be on the screen change.
void progressChanged (int)
 Emitted with current progress (0 to 100) when working.
void doneWithData (int, const Isis::Brick *)
 Emitted when a brick is no longer needed, should only be sent to cube data thread.

Public Member Functions

 IndependentCubeViewport (Cube *cube, CubeDataThread *cdt=0, QWidget *parent=0)
bool eventFilter (QObject *o, QEvent *e)
 Event filter to watch for mouse events on viewport.
void paintEvent (QPaintEvent *e)
 Repaint the viewport.
void restretch (ViewportBuffer *)
 This is called by internal viewport buffers when a stretch action should be performed.
virtual void showEvent (QShowEvent *e)
 This method is called to initially show the viewport.
void setCube (Cube *cube)
 This method sets the viewports cube.
int cubeSamples () const
 Return the number of samples in the cube.
int cubeLines () const
 Return the number of lines in the cube.
int cubeBands () const
 Return the number of bands in the cube.
bool isColor () const
 Is the viewport shown in 3-band color.
bool isGray () const
 Is the viewport shown in gray / b&w.
int grayBand () const
 Return the gray band currently viewed.
int redBand () const
 Return the red band currently viewed.
int greenBand () const
 Return the green band currently viewed.
int blueBand () const
 Return the blue band currently viewed.
double scale () const
 Return the scale.
bool cubeShown () const
 Return if the cube is visible.
void cubeContentsChanged (QRect rect)
 Cube changed, repaint given area.
double fitScale () const
 Determine the scale that causes the full cube to fit in the viewport.
double fitScaleWidth () const
 Determine the scale of cube in the width to fit in the viewport.
double fitScaleHeight () const
 Determine the scale of cube in heighth to fit in the viewport.
void viewportToCube (int x, int y, double &sample, double &line) const
 Convert a viewport x/y to a cube sample/line (may be outside the cube).
void cubeToViewport (double sample, double line, int &x, int &y) const
 Convert a cube sample/line to a viewport x/y (may be outside the viewport).
void contentsToCube (int x, int y, double &sample, double &line) const
 Convert a contents x/y to a cube sample/line (may be outside the cube).
void cubeToContents (double sample, double line, int &x, int &y) const
 Convert a cube sample/line to a contents x/y (should not be outside).
double redPixel (int sample, int line)
 Return the red pixel value at a sample/line.
double greenPixel (int sample, int line)
 Return the green pixel value at a sample/line.
double bluePixel (int sample, int line)
 Return the blue pixel value at a sample/line.
double grayPixel (int sample, int line)
 Return the gray pixel value at a sample/line.
Stretch grayStretch () const
 Return the gray band stretch.
Stretch redStretch () const
 Return the red band stretch.
Stretch greenStretch () const
 Return the green band stretch.
Stretch blueStretch () const
 Return the blue band stretch.
Cubecube () const
 Return the cube associated with viewport.
Projectionprojection () const
 Return the projection associated with cube (NULL implies none).
Cameracamera () const
 Return the camera associated with the cube (NULL implies none).
UniversalGroundMapuniversalGroundMap () const
 Return the universal ground map associated with the cube (NULL implies none).
void moveCursor (int x, int y)
 Move the cursor by x,y if possible.
bool cursorInside () const
 Is cursor inside viewport.
QPoint cursorPosition () const
 Return the cursor position in the viewport.
void setCursorPosition (int x, int y)
 Set the cursor position to x/y in the viewport.
void setCaption ()
 Change the caption on the viewport title bar.
void setBackground (QColor color)
 Sets the background color.
QPixmap pixmap ()
 Returns the pixmap.
ViewportBuffergrayBuffer ()
 Returns the gray viewport buffer (Will be NULL if in RGB mode.
ViewportBufferredBuffer ()
 Returns the red viewport buffer (Will be NULL if in Gray mode.
ViewportBuffergreenBuffer ()
 Returns the green viewport buffer (Will be NULL if in Gray mode.
ViewportBufferblueBuffer ()
 Returns the blue viewport buffer (Will be NULL if in Gray mode.
void bufferUpdated (QRect rect)
 This method is called by ViewportBuffer upon successful completion of all operations and gives the appropriate rect to be repainted.
void paintPixmap ()
 Paint the whole pixmap.
void forgetStretches ()
 Resets all remembered stretches.
void setAllBandStretches (Stretch stretch)
 Sets a stretch for all bands.
CubeDataThreadcubeDataThread ()
int cubeID ()
void getAllWhatsThisInfo (Pvl &pWhatsThisPvl)
 Get All WhatsThis info - viewport, cube, area in PVL format.
void getBandFilterName (PvlKeyword &pFilterNameKey)
 Get Band Filter name from the Isis cube label.
void getCubeArea (double &pdStartSample, double &pdEndSample, double &pdStartLine, double &pdEndLine)
 Get Cube area corresponding to the viewport's dimension.
bool confirmClose ()
 This method should be called during a close event that would cause this viewport to close.

Protected Slots

virtual void cubeDataChanged (int cubeId, const Brick *)
 This method updates the internal viewport buffer based on changes in cube DN values.

Protected Member Functions

void scrollContentsBy (int dx, int dy)
 Scroll the viewport contents by dx/dy screen pixels.
virtual void resizeEvent (QResizeEvent *e)
 The viewport is being resized.
virtual void keyPressEvent (QKeyEvent *e)
 Process arrow keystrokes on cube.

Protected Attributes

QPixmap p_pixmap
 The qpixmap.
QVector< Stretch * > * p_knownStretches
 Stretches for each previously stretched band.
QVector< Stretch * > * p_globalStretches
 Global stretches for each stretched band.

Private Slots

void handleMouseMove (QPoint)
void handleMousePress (QPoint, Qt::MouseButton b)
void handleMouseRelease (QPoint)
void handleSynchronization (IndependentCubeViewport *)

Private Member Functions

QRect bandingRect ()
void stretch ()
void track (const QPoint &)
void zoom ()
bool trackBuffer (ViewportBuffer *, const QPoint &, double &)

Private Attributes

bool banding
bool panning
bool stretching
bool zooming
bool leftClick
QPoint * bandingPoint1
QPoint * bandingPoint2
QPoint * panningPrevPoint

Detailed Description

General purpose Cube display widget.

Author:
????-??-?? Eric Hyer

For internal use only.

See also:
CubeViewport

Definition at line 58 of file IndependentCubeViewport.h.


Member Function Documentation

int Isis::CubeViewport::blueBand (  )  const [inline, inherited]
ViewportBuffer* Isis::CubeViewport::blueBuffer (  )  [inline, inherited]
double Isis::CubeViewport::bluePixel ( int  sample,
int  line 
) [inherited]

Return the blue pixel value at a sample/line.

Parameters:
sample 
line 
Returns:
double

Definition at line 1624 of file CubeViewport.cpp.

References Isis::CubeViewport::p_blue, Isis::CubeViewport::p_cube, Isis::CubeViewport::p_pntBrick, Isis::Cube::read(), and Isis::Brick::SetBasePosition().

Stretch Isis::CubeViewport::blueStretch (  )  const [inherited]
void Isis::CubeViewport::bufferUpdated ( QRect  rect  )  [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.

Parameters:
rect Area to update screen

Definition at line 1099 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().

Referenced by Isis::ViewportBuffer::doQueuedActions().

Camera* Isis::CubeViewport::camera (  )  const [inline, inherited]
void Isis::CubeViewport::center ( double  sample,
double  line 
) [slot, inherited]
void Isis::CubeViewport::center ( int  x,
int  y 
) [slot, inherited]

Bring the cube pixel under viewport x/y to the center.

Parameters:
x 
y 

Definition at line 721 of file CubeViewport.cpp.

References line, sample, and Isis::CubeViewport::viewportToCube().

Referenced by Isis::PanTool::mouseButtonRelease(), and Isis::CubeViewport::setScale().

void Isis::CubeViewport::changeCursor ( QCursor  cursor  )  [slot, inherited]

Allows users to change the cursor type on the viewport.

Parameters:
cursor 

Definition at line 2347 of file CubeViewport.cpp.

bool Isis::CubeViewport::confirmClose (  )  [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.

Returns:
True if closing is OK, false if it needs to be cancelled.

Definition at line 515 of file CubeViewport.cpp.

References Isis::CubeViewport::cube(), Isis::CubeViewport::discardChanges(), Isis::CubeViewport::p_saveEnabled, and Isis::CubeViewport::saveChanges().

void Isis::CubeViewport::contentsToCube ( int  x,
int  y,
double &  sample,
double &  line 
) const [inherited]

Convert a contents x/y to a cube sample/line (may be outside the cube).

Parameters:
x 
y 
sample 
line 

Definition at line 793 of file CubeViewport.cpp.

References Isis::CubeViewport::p_scale.

Referenced by Isis::CubeViewport::setScale(), and Isis::CubeViewport::viewportToCube().

Cube* Isis::CubeViewport::cube (  )  const [inline, inherited]

Return the cube associated with viewport.

Definition at line 213 of file CubeViewport.h.

References Isis::CubeViewport::p_cube.

Referenced by Isis::CubeViewport::confirmClose(), Isis::MatchTool::createPoint(), Isis::CubeViewport::cubeContentsChanged(), Isis::CubeViewport::cubeDataChanged(), Isis::SpectralPlotWindow::drawBandMarkers(), 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::MatchTool::mouseButtonRelease(), Isis::EditTool::mouseButtonRelease(), 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::StretchTool::stretchBand(), Isis::AdvancedTrackTool::TrackMosaicOrigin(), Isis::EditTool::undoAll(), Isis::EditTool::undoEdit(), Isis::MeasureTool::updateDist(), Isis::AdvancedTrackTool::updateRow(), Isis::SunShadowTool::updateTool(), Isis::SpectralPlotTool::updateTool(), Isis::BandTool::updateTool(), Isis::EditTool::writeToCube(), Isis::ScatterPlotConfigDialog::xAxisCubeViewport(), and Isis::ScatterPlotConfigDialog::yAxisCubeViewport().

int Isis::CubeViewport::cubeBands (  )  const [inherited]

Return the number of bands in the cube.

Definition at line 435 of file CubeViewport.cpp.

References Isis::Cube::bandCount(), and Isis::CubeViewport::p_cube.

Referenced by Isis::BandTool::copyAllViewports(), and Isis::BandTool::copyLinkedViewports().

void Isis::CubeViewport::cubeChanged ( bool  changed  )  [slot, inherited]

This method is called when the cube has changed or changes have been finalized.

Parameters:
changed 

Definition at line 551 of file CubeViewport.cpp.

References Isis::CubeViewport::p_saveEnabled.

Referenced by Isis::EditTool::redoEdit(), Isis::EditTool::save(), Isis::EditTool::undoEdit(), and Isis::EditTool::writeToCube().

void Isis::CubeViewport::cubeContentsChanged ( QRect  cubeRect  )  [inherited]
void Isis::IndependentCubeViewport::cubeDataChanged ( int  cubeId,
const Brick data 
) [protected, virtual, slot]
CubeDataThread* Isis::CubeViewport::cubeDataThread (  )  [inline, inherited]
Returns:
this CubeViewport's CubeDataThread

Definition at line 325 of file CubeViewport.h.

References Isis::CubeViewport::p_cubeData.

int Isis::CubeViewport::cubeID (  )  [inline, inherited]
Returns:
the CubeViewport's cube id

Definition at line 332 of file CubeViewport.h.

References Isis::CubeViewport::p_cubeId.

Referenced by cubeDataChanged().

int Isis::CubeViewport::cubeLines (  )  const [inherited]
int Isis::CubeViewport::cubeSamples (  )  const [inherited]
bool Isis::CubeViewport::cubeShown (  )  const [inline, inherited]

Return if the cube is visible.

Definition at line 183 of file CubeViewport.h.

References Isis::CubeViewport::p_cubeShown.

void Isis::CubeViewport::cubeToContents ( double  sample,
double  line,
int &  x,
int &  y 
) const [inherited]

Convert a cube sample/line to a contents x/y (should not be outside).

Parameters:
sample 
line 
x 
y 

Definition at line 830 of file CubeViewport.cpp.

References Isis::CubeViewport::p_scale.

Referenced by Isis::CubeViewport::center(), Isis::CubeViewport::cubeToViewport(), and Isis::CubeViewport::setScale().

void Isis::CubeViewport::cubeToViewport ( double  sample,
double  line,
int &  x,
int &  y 
) const [inherited]
bool Isis::CubeViewport::cursorInside (  )  const [inherited]

Is cursor inside viewport.

Returns:
bool

Definition at line 1780 of file CubeViewport.cpp.

References g.

QPoint Isis::CubeViewport::cursorPosition (  )  const [inherited]

Return the cursor position in the viewport.

Returns:
QPoint

Definition at line 1805 of file CubeViewport.cpp.

References g.

void Isis::CubeViewport::discardChanges ( CubeViewport  )  [signal, inherited]

Emitted when changes should be discarded.

Referenced by Isis::CubeViewport::confirmClose().

void Isis::CubeViewport::doneWithData ( int  ,
const Isis::Brick  
) [signal, inherited]

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().

void Isis::CubeViewport::enableProgress (  )  [slot, inherited]

This restarts the progress bar.

Does nothing if already loading.

Definition at line 967 of file CubeViewport.cpp.

References Isis::CubeViewport::p_progressTimer, and Isis::CubeViewport::progressChanged().

Referenced by Isis::ViewportBuffer::enqueueAction().

bool Isis::IndependentCubeViewport::eventFilter ( QObject o,
QEvent *  e 
) [virtual]

Event filter to watch for mouse events on viewport.

Parameters:
o 
e 
Returns:
bool

Reimplemented from Isis::CubeViewport.

Definition at line 86 of file IndependentCubeViewport.cpp.

References Isis::CubeViewport::mouseEnter(), and Isis::CubeViewport::mouseLeave().

double Isis::CubeViewport::fitScale (  )  const [inherited]

Determine the scale that causes the full cube to fit in the viewport.

Returns:
The scale

For internal use only.

Definition at line 2241 of file CubeViewport.cpp.

References Isis::CubeViewport::cubeLines(), Isis::CubeViewport::cubeSamples(), and Isis::CubeViewport::scale().

Referenced by Isis::CubeViewport::showEvent(), and Isis::ZoomTool::zoomFit().

double Isis::CubeViewport::fitScaleHeight (  )  const [inherited]

Determine the scale of cube in heighth to fit in the viewport.

Returns:
The scale for height

Definition at line 2269 of file CubeViewport.cpp.

References Isis::CubeViewport::cubeLines(), and Isis::CubeViewport::scale().

Referenced by Isis::ZoomTool::zoomFitHeight().

double Isis::CubeViewport::fitScaleWidth (  )  const [inherited]

Determine the scale of cube in the width to fit in the viewport.

Returns:
The scale for width

Definition at line 2256 of file CubeViewport.cpp.

References Isis::CubeViewport::cubeSamples(), and Isis::CubeViewport::scale().

Referenced by Isis::ZoomTool::zoomFitWidth().

void Isis::CubeViewport::forgetStretches (  )  [inherited]

Resets all remembered stretches.

Definition at line 1944 of file CubeViewport.cpp.

References Isis::CubeViewport::p_knownStretches, and stretch.

Referenced by Isis::StretchTool::stretchGlobalAllBands().

void Isis::CubeViewport::getAllWhatsThisInfo ( Pvl pWhatsThisPvl  )  [inherited]
void Isis::CubeViewport::getBandFilterName ( PvlKeyword pFilterNameKey  )  [inherited]

Get Band Filter name from the Isis cube label.

Parameters:
pFilterNameKey - FilterName keyword containing the corresponding keyword from the Isis Cube label
Author:
Sharmila Prasad (4/5/2011)
Parameters:
PvlKeyword& pFilterNameKey - FilterName keyword containing the corresponding keyword from the Isis Cube label

Definition at line 1461 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().

void Isis::CubeViewport::getCubeArea ( double &  pdStartSample,
double &  pdEndSample,
double &  pdStartLine,
double &  pdEndLine 
) [inherited]

Get Cube area corresponding to the viewport's dimension.

Parameters:
pdStartSample - Cube Start Sample
pdEndSample - Cube End Sample
pdStartLine - Cube Start Line
pdEndLine - Cube End Line

Definition at line 1482 of file CubeViewport.cpp.

References Isis::CubeViewport::cubeLines(), Isis::CubeViewport::cubeSamples(), and Isis::CubeViewport::viewportToCube().

Referenced by Isis::CubeViewport::getAllWhatsThisInfo(), Isis::FileTool::saveAs_FullResolution(), Isis::FileTool::saveAsCubeByOption(), Isis::FileTool::saveAsEnlargedCube(), Isis::FileTool::saveAsReducedCube(), and Isis::CubeViewport::updateWhatsThis().

int Isis::CubeViewport::grayBand (  )  const [inline, inherited]
ViewportBuffer* Isis::CubeViewport::grayBuffer (  )  [inline, inherited]
double Isis::CubeViewport::grayPixel ( int  sample,
int  line 
) [inherited]

Return the gray pixel value at a sample/line.

Parameters:
sample 
line 
Returns:
double

Definition at line 1640 of file CubeViewport.cpp.

References Isis::CubeViewport::p_cube, Isis::CubeViewport::p_gray, Isis::CubeViewport::p_pntBrick, Isis::Cube::read(), and Isis::Brick::SetBasePosition().

Referenced by Isis::AdvancedTrackTool::updateRow().

Stretch Isis::CubeViewport::grayStretch (  )  const [inherited]
int Isis::CubeViewport::greenBand (  )  const [inline, inherited]
ViewportBuffer* Isis::CubeViewport::greenBuffer (  )  [inline, inherited]
double Isis::CubeViewport::greenPixel ( int  sample,
int  line 
) [inherited]

Return the green pixel value at a sample/line.

Parameters:
sample 
line 
Returns:
double

Definition at line 1608 of file CubeViewport.cpp.

References Isis::CubeViewport::p_cube, Isis::CubeViewport::p_green, Isis::CubeViewport::p_pntBrick, Isis::Cube::read(), and Isis::Brick::SetBasePosition().

Stretch Isis::CubeViewport::greenStretch (  )  const [inherited]
bool Isis::CubeViewport::isColor (  )  const [inline, inherited]
bool Isis::CubeViewport::isGray (  )  const [inline, inherited]
void Isis::CubeViewport::keyPressEvent ( QKeyEvent *  e  )  [protected, virtual, inherited]

Process arrow keystrokes on cube.

Parameters:
e 

Definition at line 1741 of file CubeViewport.cpp.

References Isis::CubeViewport::moveCursor(), Isis::CubeViewport::p_scale, Isis::CubeViewport::scale(), and Isis::CubeViewport::setScale().

void Isis::CubeViewport::mouseButtonPress ( QPoint  ,
Qt::MouseButton   
) [signal, inherited]

Emitted when mouse button pressed.

Referenced by Isis::CubeViewport::eventFilter().

void Isis::CubeViewport::mouseButtonRelease ( QPoint  ,
Qt::MouseButton   
) [signal, inherited]

Emitted when mouse button released.

Referenced by Isis::CubeViewport::eventFilter().

void Isis::CubeViewport::mouseDoubleClick ( QPoint   )  [signal, inherited]

Emitted when double click happens.

Referenced by Isis::CubeViewport::eventFilter().

void Isis::CubeViewport::mouseEnter (  )  [signal, inherited]

Emitted when the mouse enters the viewport.

Referenced by eventFilter(), and Isis::CubeViewport::eventFilter().

void Isis::CubeViewport::mouseLeave (  )  [signal, inherited]

Emitted when the mouse leaves the viewport.

Referenced by eventFilter(), and Isis::CubeViewport::eventFilter().

void Isis::CubeViewport::mouseMove ( QPoint  ,
Qt::MouseButton   
) [signal, inherited]

Emitted when the mouse moves.

void Isis::CubeViewport::mouseMove ( QPoint   )  [signal, inherited]

Emitted when the mouse moves.

Referenced by Isis::CubeViewport::eventFilter().

void Isis::CubeViewport::moveCursor ( int  x,
int  y 
) [inherited]

Move the cursor by x,y if possible.

Parameters:
x 
y 

Definition at line 1818 of file CubeViewport.cpp.

References g.

Referenced by Isis::CubeViewport::keyPressEvent().

void Isis::CubeViewport::onProgressTimer (  )  [slot, inherited]
void Isis::IndependentCubeViewport::paintEvent ( QPaintEvent *  e  )  [virtual]

Repaint the viewport.

Parameters:
e [in] (QPaintEvent *) event

For internal use only.

History:
2007-04-30 Tracie Sucharski - Add the QPainter to the call to Tool::paintViewport.

Reimplemented from Isis::CubeViewport.

Definition at line 142 of file IndependentCubeViewport.cpp.

References Isis::CubeViewport::p_pixmap.

void Isis::CubeViewport::paintPixmap (  )  [inherited]
QPixmap Isis::CubeViewport::pixmap (  )  [inline, inherited]

Returns the pixmap.

Returns:
QPixmap

Definition at line 253 of file CubeViewport.h.

References Isis::CubeViewport::p_pixmap.

Referenced by Isis::BlinkTool::eventFilter().

void Isis::CubeViewport::progressChanged ( int   )  [signal, inherited]

Emitted with current progress (0 to 100) when working.

Referenced by Isis::CubeViewport::enableProgress(), and Isis::CubeViewport::onProgressTimer().

Projection* Isis::CubeViewport::projection (  )  const [inline, inherited]
int Isis::CubeViewport::redBand (  )  const [inline, inherited]
ViewportBuffer* Isis::CubeViewport::redBuffer (  )  [inline, inherited]
double Isis::CubeViewport::redPixel ( int  sample,
int  line 
) [inherited]

Return the red pixel value at a sample/line.

Parameters:
sample 
line 
Returns:
double

Definition at line 1592 of file CubeViewport.cpp.

References Isis::CubeViewport::p_cube, Isis::CubeViewport::p_pntBrick, Isis::CubeViewport::p_red, Isis::Cube::read(), and Isis::Brick::SetBasePosition().

Referenced by Isis::AdvancedTrackTool::updateRow().

Stretch Isis::CubeViewport::redStretch (  )  const [inherited]
void Isis::CubeViewport::resizeEvent ( QResizeEvent *  e  )  [protected, virtual, inherited]
void Isis::IndependentCubeViewport::restretch ( ViewportBuffer buffer  )  [virtual]

This is called by internal viewport buffers when a stretch action should be performed.

The buffer passes itself as the argument.

Parameters:
buffer 

Implements Isis::CubeViewport.

Definition at line 161 of file IndependentCubeViewport.cpp.

References Isis::Stretch::CopyPairs(), Isis::StretchTool::Gray, Isis::CubeViewport::grayStretch(), Isis::StretchTool::stretchBand(), and Isis::CubeViewport::stretchGray().

Referenced by showEvent().

void Isis::CubeViewport::saveChanges ( CubeViewport  )  [signal, inherited]

Emitted when changes should be saved.

Referenced by Isis::CubeViewport::confirmClose().

double Isis::CubeViewport::scale (  )  const [inline, inherited]
void Isis::CubeViewport::scaleChanged (  )  [signal, inherited]

Emitted when zoom factor changed just before the repaint event.

Referenced by Isis::CubeViewport::setScale(), and Isis::CubeViewport::updateScrollBars().

void Isis::CubeViewport::screenPixelsChanged (  )  [signal, inherited]
void Isis::CubeViewport::scrollBy ( int  dx,
int  dy 
) [slot, inherited]

Move the scrollbars by dx/dy screen pixels.

Parameters:
dx 
dy 

Definition at line 864 of file CubeViewport.cpp.

References maximum, Isis::CubeViewport::scrollContentsBy(), Isis::CubeViewport::updateScrollBars(), x, and y.

void Isis::CubeViewport::scrollContentsBy ( int  dx,
int  dy 
) [protected, inherited]
void Isis::CubeViewport::setAllBandStretches ( Stretch  stretch  )  [inherited]

Sets a stretch for all bands.

Parameters:
stretch 

Definition at line 1954 of file CubeViewport.cpp.

References Isis::CubeViewport::p_knownStretches.

Referenced by Isis::StretchTool::setStretchAcrossBands().

void Isis::CubeViewport::setBackground ( QColor  color  )  [inline, inherited]

Sets the background color.

Parameters:
color 

Definition at line 243 of file CubeViewport.h.

References Isis::CubeViewport::p_bgColor.

Referenced by Isis::SpecialPixelTool::apply().

void Isis::CubeViewport::setCaption (  )  [inherited]
void Isis::CubeViewport::setCube ( Cube cube  )  [inherited]

This method sets the viewports cube.

Parameters:
cube 

Definition at line 416 of file CubeViewport.cpp.

References Isis::CubeViewport::p_cube, and Isis::CubeViewport::setCaption().

void Isis::CubeViewport::setCursorPosition ( int  x,
int  y 
) [inherited]

Set the cursor position to x/y in the viewport.

Parameters:
x 
y 

Definition at line 1845 of file CubeViewport.cpp.

References g.

void Isis::CubeViewport::setScale ( double  scale,
int  x,
int  y 
) [slot, inherited]

Change the scale of the cube after moving x,y to the center.

Parameters:
scale 
x 
y 

Definition at line 645 of file CubeViewport.cpp.

References line, Isis::CubeViewport::setScale(), and Isis::CubeViewport::viewportToCube().

void Isis::CubeViewport::setScale ( double  scale,
double  sample,
double  line 
) [slot, inherited]
void Isis::CubeViewport::setScale ( double  scale  )  [slot, inherited]
void Isis::IndependentCubeViewport::showEvent ( QShowEvent *  event  )  [virtual]

This method is called to initially show the viewport.

It will set the scale to show the entire cube and enable the gray buffer.

Reimplemented from Isis::CubeViewport.

Definition at line 169 of file IndependentCubeViewport.cpp.

References Isis::CubeViewport::grayBuffer(), and restretch().

QSize Isis::CubeViewport::sizeHint (  )  const [slot, inherited]

Make viewports show up as 512 by 512.

Returns:
QSize

Definition at line 561 of file CubeViewport.cpp.

void Isis::CubeViewport::stretchBlue ( const Stretch stretch  )  [slot, inherited]

Sets the stretch for blue in rgb mode.

Parameters:
stretch 

Definition at line 2221 of file CubeViewport.cpp.

References Isis::CubeViewport::blueBand(), Isis::CubeViewport::p_blue, Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::paintPixmap(), and Isis::Stretch::Pairs().

void Isis::CubeViewport::stretchBlue ( const QString &  string  )  [slot, inherited]
void Isis::CubeViewport::stretchGray ( const Stretch stretch  )  [slot, inherited]
void Isis::CubeViewport::stretchGray ( const QString &  string  )  [slot, inherited]
void Isis::CubeViewport::stretchGreen ( const Stretch stretch  )  [slot, inherited]

Sets the stretch for green in rgb mode.

Parameters:
stretch 

Definition at line 2203 of file CubeViewport.cpp.

References Isis::CubeViewport::greenBand(), Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::p_green, Isis::CubeViewport::paintPixmap(), and Isis::Stretch::Pairs().

void Isis::CubeViewport::stretchGreen ( const QString &  string  )  [slot, inherited]
void Isis::CubeViewport::stretchKnownGlobal (  )  [slot, inherited]
void Isis::CubeViewport::stretchRed ( const Stretch stretch  )  [slot, inherited]

Sets the stretch for red in rgb mode.

Parameters:
stretch 

Definition at line 2185 of file CubeViewport.cpp.

References Isis::CubeViewport::p_globalStretches, Isis::CubeViewport::p_red, Isis::CubeViewport::paintPixmap(), Isis::Stretch::Pairs(), and Isis::CubeViewport::redBand().

void Isis::CubeViewport::stretchRed ( const QString &  string  )  [slot, inherited]
UniversalGroundMap* Isis::CubeViewport::universalGroundMap (  )  const [inline, inherited]
void Isis::CubeViewport::viewGray ( int  band  )  [virtual, slot, inherited]
void Isis::CubeViewport::viewportClosed ( CubeViewport  )  [signal, inherited]

Emitted when viewport is closed.

void Isis::CubeViewport::viewportToCube ( int  x,
int  y,
double &  sample,
double &  line 
) const [inherited]
void Isis::CubeViewport::viewportUpdated (  )  [signal, inherited]

Emitted when viewport updated.

Referenced by Isis::MdiCubeViewport::paintEvent().

void Isis::CubeViewport::viewRGB ( int  rband,
int  gband,
int  bband 
) [virtual, slot, inherited]
void Isis::CubeViewport::windowTitleChanged (  )  [signal, inherited]

Emitted when window title changes.

Referenced by Isis::CubeViewport::setCaption().


Member Data Documentation

QVector< Stretch * >* Isis::CubeViewport::p_globalStretches [protected, inherited]
QVector< Stretch * >* Isis::CubeViewport::p_knownStretches [protected, inherited]
QPixmap Isis::CubeViewport::p_pixmap [protected, inherited]

The documentation for this class was generated from the following files: