File failed to load: https://isis.astrogeology.usgs.gov/9.0.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
Isis::MdiCubeViewport Class Reference

Cube display widget for certain Isis MDI applications. More...

#include <MdiCubeViewport.h>

Inheritance diagram for Isis::MdiCubeViewport:
Inheritance graph
Collaboration diagram for Isis::MdiCubeViewport:
Collaboration graph

Public Slots

void setLinked (bool b)
 Change the linked state of the viewport.
 
void viewGray (int band)
 
void viewRGB (int red, int green, int blue)
 
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.
 
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 showEvent (QShowEvent *)
 This method is called to initially show the viewport.
 
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 linkChanging (bool)
 
void requestRestretch (MdiCubeViewport *, int)
 
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 progressComplete ()
 Emitted when the current progress is complete (100)
 
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

 MdiCubeViewport (Cube *cube, Isis::CubeDataThread *cdt=0, QWidget *parent=0)
 
void forceAbstract ()
 
bool isLinked () const
 Is the viewport linked with other viewports.
 
void registerTool (Tool *tool)
 Registers the tool given tool.
 
void paintEvent (QPaintEvent *e)
 Repaint the viewport.
 
void restretch (ViewportBuffer *buffer)
 This is called by internal viewport buffers when a stretch action should be performed.
 
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
 
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.
 
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
 Turns a viewport into a cube.
 
void cubeToViewport (double sample, double line, int &x, int &y) const
 Turns a cube into a viewport.
 
void contentsToCube (int x, int y, double &sample, double &line) const
 Turns contents to a cube.
 
void cubeToContents (double sample, double line, int &x, int &y) const
 Turns a cube into contents.
 
double redPixel (int sample, int line)
 Gets the red pixel.
 
double greenPixel (int sample, int line)
 Gets the green pixel.
 
double bluePixel (int sample, int line)
 Gets the blue pixel.
 
double grayPixel (int sample, int line)
 Gets the gray pixel.
 
CubeStretch grayStretch () const
 Return the gray band stretch.
 
CubeStretch redStretch () const
 Return the red band stretch.
 
CubeStretch greenStretch () const
 Return the green band stretch.
 
CubeStretch blueStretch () const
 Return the blue band stretch.
 
Cubecube () const
 
Projectionprojection () const
 
Cameracamera () const
 
UniversalGroundMapuniversalGroundMap () const
 
CubetrackingCube () const
 
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.
 
void setComboCount (int count)
 Sets the band bin combo box count.
 
void setComboIndex (int index)
 Sets the band bin combo box index.
 
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.
 
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.
 

Protected Slots

virtual void cubeDataChanged (int cubeId, const Isis::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 bool eventFilter (QObject *o, QEvent *e)
 Event filter to watch for mouse events on viewport.
 
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 Member Functions

void paintPixmap (QRect rect)
 Paint a region of the pixmap.
 
void shiftPixmap (int dx, int dy)
 Shifts the pixels on the pixmap without reading new data.
 
void updateScrollBars (int x, int y)
 Update the scroll bar.
 
void paintPixmapRects ()
 Goes through the list of requested paints, from the viewport buffer, and paints them.
 
void updateWhatsThis ()
 Update the What's This text.
 

Private Attributes

bool p_linked
 
QList< Tool * > p_toolList
 
ViewportBufferp_grayBuffer
 Viewport Buffer to manage gray band.
 
ViewportBufferp_redBuffer
 Viewport Buffer to manage red band.
 
ViewportBufferp_greenBuffer
 Viewport Buffer to manage green band.
 
ViewportBufferp_blueBuffer
 Viewport Buffer to manage blue band.
 
QColor p_bgColor
 The color to paint the background of the viewport.
 
Cubep_cube
 The cube associated with the viewport.
 
Camerap_camera
 The camera from the cube.
 
Projectionp_projection
 The projection from the cube.
 
UniversalGroundMapp_groundMap
 The universal ground map from the cube.
 
Cubep_trackingCube
 
QTimer * p_progressTimer
 Activated to update progress bar.
 
double p_scale
 The scale number.
 
bool p_color
 Is the viewport in color?
 
BandInfo p_gray
 Gray band info.
 
BandInfo p_red
 Red band info.
 
BandInfo p_green
 Green band info.
 
BandInfo p_blue
 Blue band info.
 
int p_comboCount
 Number of elements in band bin combo box.
 
int p_comboIndex
 Current element chosen from combo box.
 
Brickp_redBrick
 Bricks for every color.
 
Brickp_grnBrick
 Bricks for every color.
 
Brickp_bluBrick
 Bricks for every color.
 
Brickp_gryBrick
 Bricks for every color.
 
Brickp_pntBrick
 Bricks for every color.
 
bool p_saveEnabled
 Has the cube changed?
 
bool p_cubeShown
 Is the cube visible?
 
QImage * p_image
 The qimage.
 
bool p_paintPixmap
 Paint the pixmap?
 
bool p_updatingBuffers
 Changing RGB and need to not repaint pixmap?
 
QString p_whatsThisText
 The text for What's this.
 
QString p_cubeWhatsThisText
 The text for the cube's What's this.
 
QString p_viewportWhatsThisText
 The text for the viewport's what's this.
 
QList< QRect * > * p_pixmapPaintRects
 A list of rects that the viewport buffers have requested painted.
 
CubeDataThreadp_cubeData
 Does all the cube I/O.
 
int p_cubeId
 Cube ID given from cube data thread for I/O.
 
bool p_thisOwnsCubeData
 if true then this owns the CubeDataThread, and should thus delete it
 

Detailed Description

Cube display widget for certain Isis MDI applications.

Author
????-??-?? Eric Hyer - Moved MDI specific code here from CubeViewport
See also
Workspace CubeViewport
History
2012-03-22 Steven Lambright - Added Qt meta type declarations for QVariant.

Definition at line 39 of file MdiCubeViewport.h.

Constructor & Destructor Documentation

◆ MdiCubeViewport()

Isis::MdiCubeViewport::MdiCubeViewport ( Cube * cube,
Isis::CubeDataThread * cdt = 0,
QWidget * parent = 0 )

Definition at line 28 of file MdiCubeViewport.cpp.

◆ ~MdiCubeViewport()

Isis::MdiCubeViewport::~MdiCubeViewport ( )

Definition at line 38 of file MdiCubeViewport.cpp.

Member Function Documentation

◆ blueBand()

◆ blueBuffer()

ViewportBuffer * Isis::CubeViewport::blueBuffer ( )
inlineinherited

◆ bluePixel()

double Isis::CubeViewport::bluePixel ( int sample,
int line )
inherited

Gets the blue pixel.

Return the blue pixel value at a sample/line.

Parameters
sampleThe sample
lineThe line
Returns
The bluePixel value
Parameters
sample
line
Returns
double

Definition at line 1637 of file CubeViewport.cpp.

References p_blue, p_cube, and p_pntBrick.

◆ blueStretch()

◆ bufferUpdated()

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
rectArea to update screen

Definition at line 1103 of file CubeViewport.cpp.

References p_blueBuffer, p_grayBuffer, p_greenBuffer, p_redBuffer, and paintPixmap().

◆ camera()

◆ center [1/2]

void Isis::CubeViewport::center ( double sample,
double line )
slotinherited

Bring the cube sample/line the center.

Parameters
sampleValue of the sample to center on.
lineValue of the line to center on.

Definition at line 742 of file CubeViewport.cpp.

References cubeToContents(), p_blueBuffer, p_grayBuffer, p_greenBuffer, p_redBuffer, p_updatingBuffers, paintPixmapRects(), screenPixelsChanged(), shiftPixmap(), and updateScrollBars().

◆ center [2/2]

void Isis::CubeViewport::center ( int x,
int y )
slotinherited

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

Parameters
x
y

Definition at line 729 of file CubeViewport.cpp.

References center(), and viewportToCube().

Referenced by center(), and setScale().

◆ changeCursor

void Isis::CubeViewport::changeCursor ( QCursor cursor)
slotinherited

Allows users to change the cursor type on the viewport.

Parameters
cursor

Definition at line 2391 of file CubeViewport.cpp.

◆ comboCount()

int Isis::CubeViewport::comboCount ( ) const
inlineinherited
Returns
the BandBin combo box count

Definition at line 224 of file CubeViewport.h.

References p_comboCount.

Referenced by Isis::BandTool::setBandBin().

◆ comboIndex()

int Isis::CubeViewport::comboIndex ( ) const
inlineinherited
Returns
the BandBin combo box index

Definition at line 229 of file CubeViewport.h.

References p_comboIndex.

Referenced by Isis::BandTool::setBandBin().

◆ confirmClose()

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 524 of file CubeViewport.cpp.

References cube(), discardChanges(), p_saveEnabled, and saveChanges().

◆ contentsToCube()

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

Turns contents to a cube.

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

Parameters
x
y
sample
line

Definition at line 797 of file CubeViewport.cpp.

References p_scale.

Referenced by setScale(), and viewportToCube().

◆ cube()

Cube * Isis::CubeViewport::cube ( ) const
inlineinherited
Returns
The cube associated with viewport

Definition at line 338 of file CubeViewport.h.

References p_cube.

Referenced by confirmClose(), Isis::MatchTool::createPoint(), cubeContentsChanged(), cubeDataChanged(), Isis::Workspace::cubeToMdiWidget(), CubeViewport(), Isis::StretchTool::deleteFromCube(), Isis::FindTool::distancePerPixel(), Isis::ControlNetTool::drawAllMeasurements(), Isis::QnetTool::drawAllMeasurments(), Isis::FeatureNomenclatureTool::featuresForViewportFound(), Isis::FeatureNomenclatureTool::findMissingNomenclature(), Isis::SpatialPlotTool::getSpatialStatistics(), Isis::SpectralPlotTool::getSpectralStatistics(), Isis::StatisticsTool::getStatistics(), Isis::ScatterPlotWindow::isXCube(), Isis::ScatterPlotWindow::isYCube(), Isis::StretchTool::loadStretchFromCube(), 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::saveAsReducedCube(), Isis::StretchTool::saveStretchToCube(), Isis::ScatterPlotConfigDialog::ScatterPlotConfigDialog(), Isis::MatchTool::serialNumberList(), setCube(), Isis::StretchTool::stretchBand(), Isis::ChipViewport::stretchFromCubeViewport(), Isis::StretchTool::stretchMinMaxType(), Isis::AdvancedTrackTool::TrackMosaicOrigin(), Isis::EditTool::undoAll(), Isis::EditTool::undoEdit(), Isis::MeasureTool::updateDist(), Isis::AdvancedTrackTool::updateRow(), Isis::BandTool::updateTool(), Isis::SpectralPlotTool::updateTool(), Isis::SunShadowTool::updateTool(), Isis::CubeDnView::workspaceActiveCube(), Isis::EditTool::writeToCube(), Isis::ScatterPlotConfigDialog::xAxisCubeViewport(), and Isis::ScatterPlotConfigDialog::yAxisCubeViewport().

◆ cubeBands()

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

Return the number of bands in the cube.

Returns
The number of bands in the cube

Definition at line 444 of file CubeViewport.cpp.

References p_cube.

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

◆ cubeChanged

void Isis::CubeViewport::cubeChanged ( bool changed)
slotinherited

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

Parameters
changed

Definition at line 560 of file CubeViewport.cpp.

References p_saveEnabled.

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

◆ cubeContentsChanged()

void Isis::CubeViewport::cubeContentsChanged ( QRect rect)
inherited

Calle dhwen the contents of the cube changes.

Cube changed, repaint given area.

Parameters
rectThe QRect
rectRectangle containing portion of cube (sample/line) that changed.

Definition at line 2311 of file CubeViewport.cpp.

References cube(), cubeToViewport(), Isis::Cube::lineCount(), p_blueBuffer, p_grayBuffer, p_greenBuffer, p_redBuffer, p_updatingBuffers, paintPixmapRects(), and Isis::Cube::sampleCount().

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

◆ cubeDataChanged

void Isis::CubeViewport::cubeDataChanged ( int cubeId,
const Isis::Brick * data )
protectedvirtualslotinherited

This method updates the internal viewport buffer based on changes in cube DN values.

Parameters
cubeIdCube that the changed brick belongs to
*data New data

Definition at line 456 of file CubeViewport.cpp.

References cube(), cubeToViewport(), doneWithData(), Isis::Buffer::Line(), Isis::Cube::lineCount(), Isis::Buffer::LineDimension(), p_blueBuffer, p_cubeId, p_grayBuffer, p_greenBuffer, p_redBuffer, p_updatingBuffers, paintPixmapRects(), Isis::Buffer::Sample(), Isis::Cube::sampleCount(), and Isis::Buffer::SampleDimension().

Referenced by CubeViewport().

◆ cubeDataThread()

CubeDataThread * Isis::CubeViewport::cubeDataThread ( )
inlineinherited
Returns
this CubeViewport's CubeDataThread

Definition at line 473 of file CubeViewport.h.

References p_cubeData.

◆ cubeID()

int Isis::CubeViewport::cubeID ( )
inlineinherited
Returns
the CubeViewport's cube id

Definition at line 480 of file CubeViewport.h.

References p_cubeId.

◆ cubeLines()

◆ cubeSamples()

◆ cubeShown()

bool Isis::CubeViewport::cubeShown ( ) const
inlineinherited
Returns
if the cube is visible

Definition at line 219 of file CubeViewport.h.

References p_cubeShown.

◆ cubeToContents()

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

Turns a cube into contents.

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

Parameters
x
y
sample
line
sample
line
x
y

Definition at line 834 of file CubeViewport.cpp.

References p_scale.

Referenced by center(), cubeToViewport(), and setScale().

◆ cubeToViewport()

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

◆ cursorInside()

bool Isis::CubeViewport::cursorInside ( ) const
inherited

Is cursor inside viewport.

Returns
bool

Definition at line 1808 of file CubeViewport.cpp.

◆ cursorPosition()

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

Return the cursor position in the viewport.

Returns
QPoint

Definition at line 1833 of file CubeViewport.cpp.

◆ discardChanges

void Isis::CubeViewport::discardChanges ( CubeViewport * )
signalinherited

Emitted when changes should be discarded.

References CubeViewport().

Referenced by confirmClose().

◆ doneWithData

void Isis::CubeViewport::doneWithData ( int ,
const Isis::Brick *  )
signalinherited

Emitted when a brick is no longer needed, should only be sent to cube data thread.

References blueBand(), greenBand(), redBand(), and scale().

Referenced by cubeDataChanged(), and CubeViewport().

◆ enableProgress

void Isis::CubeViewport::enableProgress ( )
slotinherited

This restarts the progress bar.

Does nothing if already loading.

Definition at line 971 of file CubeViewport.cpp.

References p_progressTimer, and progressChanged().

◆ eventFilter()

bool Isis::CubeViewport::eventFilter ( QObject * o,
QEvent * e )
protectedvirtualinherited

Event filter to watch for mouse events on viewport.

Parameters
o
e
Returns
bool

Reimplemented in Isis::IndependentCubeViewport.

Definition at line 1693 of file CubeViewport.cpp.

References mouseButtonPress(), mouseButtonRelease(), mouseDoubleClick(), mouseEnter(), mouseLeave(), and mouseMove().

◆ fitScale()

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

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

Returns
The fitScale of the Viewport
The scale

Definition at line 2269 of file CubeViewport.cpp.

References cubeLines(), cubeSamples(), and scale().

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

◆ fitScaleHeight()

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

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

Returns
The height of the Viewport/
The scale for height

Definition at line 2297 of file CubeViewport.cpp.

References cubeLines(), and scale().

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

◆ fitScaleWidth()

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

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

Returns
The width of the Viewport
The scale for width

Definition at line 2284 of file CubeViewport.cpp.

References cubeSamples(), and scale().

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

◆ forceAbstract()

void Isis::MdiCubeViewport::forceAbstract ( )
inline

Definition at line 47 of file MdiCubeViewport.h.

◆ forgetStretches()

void Isis::CubeViewport::forgetStretches ( )
inherited

Resets all remembered stretches.

Definition at line 1972 of file CubeViewport.cpp.

References p_knownStretches.

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

◆ getAllWhatsThisInfo()

void Isis::CubeViewport::getAllWhatsThisInfo ( Pvl & pWhatsThisPvl)
inherited

Get All WhatsThis info - viewport, cube, area in PVL format.

Parameters
pWhatsThisPvl- Pvl for all whatsthis info
Author
Sharmila Prasad (4/5/2011)
Parameters
pWhatsThisPvl- Pvl for all whatsthis info

Definition at line 1371 of file CubeViewport.cpp.

References getBandFilterName(), getCubeArea(), p_blueBuffer, p_color, p_cube, p_grayBuffer, p_greenBuffer, p_redBuffer, Isis::PvlKeyword::size(), and Isis::toString().

Referenced by Isis::FileTool::saveInfo().

◆ getBandFilterName()

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
pFilterNameKey- FilterName keyword containing the corresponding keyword from the Isis Cube label

Definition at line 1473 of file CubeViewport.cpp.

References Isis::PvlObject::findGroup(), Isis::PvlContainer::findKeyword(), Isis::PvlObject::findObject(), Isis::PvlObject::hasGroup(), Isis::PvlContainer::hasKeyword(), and p_cube.

Referenced by getAllWhatsThisInfo(), and updateWhatsThis().

◆ getCubeArea()

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 1494 of file CubeViewport.cpp.

References cubeLines(), cubeSamples(), and viewportToCube().

Referenced by getAllWhatsThisInfo(), and updateWhatsThis().

◆ grayBand()

◆ grayBuffer()

ViewportBuffer * Isis::CubeViewport::grayBuffer ( )
inlineinherited

◆ grayPixel()

double Isis::CubeViewport::grayPixel ( int sample,
int line )
inherited

Gets the gray pixel.

Return the gray pixel value at a sample/line.

Parameters
sampleThe sample
lineThe line
Returns
The grayPixel value
Parameters
sample
line
Returns
double

Definition at line 1653 of file CubeViewport.cpp.

References p_cube, p_gray, and p_pntBrick.

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

◆ grayStretch()

◆ greenBand()

◆ greenBuffer()

ViewportBuffer * Isis::CubeViewport::greenBuffer ( )
inlineinherited

◆ greenPixel()

double Isis::CubeViewport::greenPixel ( int sample,
int line )
inherited

Gets the green pixel.

Return the green pixel value at a sample/line.

Parameters
sampleThe sample
lineThe line
Returns
The greenPixel value
Parameters
sample
line
Returns
double

Definition at line 1621 of file CubeViewport.cpp.

References p_cube, p_green, and p_pntBrick.

◆ greenStretch()

◆ isColor()

bool Isis::CubeViewport::isColor ( ) const
inlineinherited

◆ isGray()

◆ isLinked()

◆ keyPressEvent()

void Isis::CubeViewport::keyPressEvent ( QKeyEvent * e)
protectedvirtualinherited

Process arrow keystrokes on cube.

Parameters
e
History
2017-08-11 Adam Goins - Added the ability to ctrl + c to copy the filename of the current cube into the system's clipboard. Fixes #5098.

Definition at line 1758 of file CubeViewport.cpp.

References moveCursor(), p_cube, p_scale, scale(), and setScale().

◆ mouseButtonPress

void Isis::CubeViewport::mouseButtonPress ( QPoint ,
Qt::MouseButton  )
signalinherited

Emitted when mouse button pressed.

Referenced by eventFilter().

◆ mouseButtonRelease

void Isis::CubeViewport::mouseButtonRelease ( QPoint ,
Qt::MouseButton  )
signalinherited

Emitted when mouse button released.

Referenced by eventFilter().

◆ mouseDoubleClick

void Isis::CubeViewport::mouseDoubleClick ( QPoint )
signalinherited

Emitted when double click happens.

Referenced by eventFilter().

◆ mouseEnter

void Isis::CubeViewport::mouseEnter ( )
signalinherited

Emitted when the mouse enters the viewport.

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

◆ mouseLeave

void Isis::CubeViewport::mouseLeave ( )
signalinherited

Emitted when the mouse leaves the viewport.

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

◆ mouseMove [1/2]

void Isis::CubeViewport::mouseMove ( QPoint )
signalinherited

Emitted when the mouse moves.

Referenced by eventFilter().

◆ mouseMove [2/2]

void Isis::CubeViewport::mouseMove ( QPoint ,
Qt::MouseButton  )
signalinherited

Emitted when the mouse moves.

◆ moveCursor()

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

Move the cursor by x,y if possible.

Parameters
x
y

Definition at line 1846 of file CubeViewport.cpp.

Referenced by keyPressEvent().

◆ onProgressTimer

void Isis::CubeViewport::onProgressTimer ( )
slotinherited

This updates the progress bar visually.

Conceptually it emits the progressChanged signal with the current progress.

Definition at line 262 of file CubeViewport.cpp.

References p_blueBuffer, p_grayBuffer, p_greenBuffer, p_progressTimer, p_redBuffer, progressChanged(), progressComplete(), and screenPixelsChanged().

Referenced by CubeViewport().

◆ paintEvent()

void Isis::MdiCubeViewport::paintEvent ( QPaintEvent * e)
virtual

Repaint the viewport.

Parameters
e[in] (QPaintEvent *) event
History
2007-04-30 Tracie Sucharski - Add the QPainter to the call to Tool::paintViewport.

Reimplemented from Isis::CubeViewport.

Definition at line 94 of file MdiCubeViewport.cpp.

References Isis::CubeViewport::p_pixmap, Isis::CubeViewport::paintEvent(), paintEvent(), and Isis::CubeViewport::viewportUpdated().

Referenced by paintEvent().

◆ paintPixmap() [1/2]

void Isis::CubeViewport::paintPixmap ( )
inherited

◆ paintPixmap() [2/2]

void Isis::CubeViewport::paintPixmap ( QRect rect)
privateinherited

◆ paintPixmapRects()

void Isis::CubeViewport::paintPixmapRects ( )
privateinherited

Goes through the list of requested paints, from the viewport buffer, and paints them.

Definition at line 778 of file CubeViewport.cpp.

References p_pixmapPaintRects, and paintPixmap().

Referenced by center(), cubeContentsChanged(), cubeDataChanged(), resizeEvent(), and setScale().

◆ pixmap()

QPixmap Isis::CubeViewport::pixmap ( )
inlineinherited

Returns the pixmap.

Returns
QPixmap

Definition at line 401 of file CubeViewport.h.

References p_pixmap.

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

◆ progressChanged

void Isis::CubeViewport::progressChanged ( int )
signalinherited

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

Referenced by enableProgress(), and onProgressTimer().

◆ progressComplete

void Isis::CubeViewport::progressComplete ( )
signalinherited

Emitted when the current progress is complete (100)

Referenced by onProgressTimer().

◆ projection()

Projection * Isis::CubeViewport::projection ( ) const
inlineinherited

◆ redBand()

◆ redBuffer()

ViewportBuffer * Isis::CubeViewport::redBuffer ( )
inlineinherited

◆ redPixel()

double Isis::CubeViewport::redPixel ( int sample,
int line )
inherited

Gets the red pixel.

Return the red pixel value at a sample/line.

Parameters
sampleThe sample
lineThe line
Returns
The redPixel value
Parameters
sample
line
Returns
double

Definition at line 1605 of file CubeViewport.cpp.

References p_cube, p_pntBrick, and p_red.

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

◆ redStretch()

◆ registerTool()

void Isis::MdiCubeViewport::registerTool ( Tool * tool)

Registers the tool given tool.

Parameters
tool

Definition at line 47 of file MdiCubeViewport.cpp.

References registerTool().

Referenced by registerTool(), and Isis::Tool::registerTool().

◆ resizeEvent()

void Isis::CubeViewport::resizeEvent ( QResizeEvent * e)
protectedvirtualinherited

◆ restretch()

void Isis::MdiCubeViewport::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 126 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, Isis::CubeViewport::redBuffer(), and restretch().

Referenced by restretch().

◆ saveChanges

void Isis::CubeViewport::saveChanges ( CubeViewport * )
signalinherited

Emitted when changes should be saved.

References CubeViewport().

Referenced by confirmClose().

◆ scale()

◆ scaleChanged

void Isis::CubeViewport::scaleChanged ( )
signalinherited

Emitted when zoom factor changed just before the repaint event.

Referenced by setScale(), and updateScrollBars().

◆ screenPixelsChanged

void Isis::CubeViewport::screenPixelsChanged ( )
signalinherited

Emitted when cube pixels that should be on the screen change.

Referenced by center(), onProgressTimer(), resizeEvent(), scrollContentsBy(), setScale(), and setScale().

◆ scrollBy

void Isis::CubeViewport::scrollBy ( int dx,
int dy )
slotinherited

Move the scrollbars by dx/dy screen pixels.

Parameters
dx
dy

Definition at line 868 of file CubeViewport.cpp.

References scrollContentsBy(), and updateScrollBars().

◆ scrollContentsBy()

void Isis::CubeViewport::scrollContentsBy ( int dx,
int dy )
protectedinherited

Scroll the viewport contents by dx/dy screen pixels.

Parameters
dx
dy

Definition at line 908 of file CubeViewport.cpp.

References p_blueBuffer, p_grayBuffer, p_greenBuffer, p_pixmapPaintRects, p_redBuffer, p_updatingBuffers, paintPixmap(), screenPixelsChanged(), and shiftPixmap().

Referenced by scrollBy().

◆ setAllBandStretches()

void Isis::CubeViewport::setAllBandStretches ( Stretch stretch)
inherited

Sets a stretch for all bands.

Parameters
stretch

Definition at line 1982 of file CubeViewport.cpp.

References p_knownStretches.

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

◆ setBackground()

void Isis::CubeViewport::setBackground ( QColor color)
inlineinherited

Sets the background color.

Parameters
color

Definition at line 373 of file CubeViewport.h.

References p_bgColor.

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

◆ setCaption()

void Isis::CubeViewport::setCaption ( )
inherited

◆ setComboCount()

void Isis::CubeViewport::setComboCount ( int count)
inlineinherited

Sets the band bin combo box count.

Parameters
count

Definition at line 382 of file CubeViewport.h.

References p_comboCount.

Referenced by Isis::BandTool::setBandBin(), and Isis::BandTool::setList().

◆ setComboIndex()

void Isis::CubeViewport::setComboIndex ( int index)
inlineinherited

Sets the band bin combo box index.

Parameters
index

Definition at line 391 of file CubeViewport.h.

References p_comboIndex.

Referenced by Isis::BandTool::setBandBin(), and Isis::BandTool::setList().

◆ setCube()

void Isis::CubeViewport::setCube ( Cube * cube)
inherited

This method sets the viewports cube.

Parameters
cubeThe cube to set the CubeViewport window to
cube

Definition at line 425 of file CubeViewport.cpp.

References cube(), p_cube, and setCaption().

◆ setCursorPosition()

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 1873 of file CubeViewport.cpp.

◆ setLinked

void Isis::MdiCubeViewport::setLinked ( bool b)
slot

Change the linked state of the viewport.

Parameters
b

Definition at line 58 of file MdiCubeViewport.cpp.

References Isis::FileName::expanded(), and setLinked().

Referenced by Isis::FindTool::handleLinkClicked(), Isis::WindowTool::linkWindows(), setLinked(), Isis::BlinkTool::toggleLink(), and Isis::WindowTool::unlinkWindows().

◆ setScale [1/3]

void Isis::CubeViewport::setScale ( double scale)
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.

Parameters
scaleValue by which to scale the image.
History
2010-07-12 Jeannie Walldren - Changed scale maximum value from hard-coded 16 to the max of the viewport width and height. Added scale minimum value of 1/min(samps,lines).

Definition at line 587 of file CubeViewport.cpp.

References contentsToCube(), cubeLines(), cubeSamples(), cubeToContents(), p_blueBuffer, p_grayBuffer, p_greenBuffer, p_redBuffer, p_scale, p_updatingBuffers, paintPixmap(), paintPixmapRects(), scale(), scaleChanged(), screenPixelsChanged(), setCaption(), and updateScrollBars().

Referenced by Isis::FindTool::centerLinkedViewports(), keyPressEvent(), setScale(), setScale(), Isis::ZoomTool::setScale(), Isis::ZoomTool::setScale(), Isis::ZoomTool::setScale(), and showEvent().

◆ setScale [2/3]

void Isis::CubeViewport::setScale ( double scale,
double sample,
double line )
slotinherited

Change the scale of the cube after moving samp/line to the center.

Parameters
scale
sample
line

Definition at line 670 of file CubeViewport.cpp.

References center(), p_blueBuffer, p_grayBuffer, p_greenBuffer, p_paintPixmap, p_redBuffer, paintPixmap(), scale(), screenPixelsChanged(), and setScale().

◆ setScale [3/3]

void Isis::CubeViewport::setScale ( double scale,
int x,
int y )
slotinherited

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

Parameters
scale
x
y

Definition at line 654 of file CubeViewport.cpp.

References scale(), setScale(), and viewportToCube().

◆ setTrackingCube()

void Isis::CubeViewport::setTrackingCube ( )
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 2374 of file CubeViewport.cpp.

References Isis::PvlContainer::findKeyword(), p_cube, Isis::FileName::path(), and trackingCube().

◆ shiftPixmap()

void Isis::CubeViewport::shiftPixmap ( int dx,
int dy )
privateinherited

Shifts the pixels on the pixmap without reading new data.

Parameters
dx
dy

Definition at line 1291 of file CubeViewport.cpp.

References p_bgColor, p_paintPixmap, p_pixmap, and paintPixmap().

Referenced by center(), and scrollContentsBy().

◆ showEvent

void Isis::CubeViewport::showEvent ( QShowEvent * event)
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.

Parameters
eventShow event being received.
See also
http://doc.qt.io/qt-5/qwidget.html#showEvent

Definition at line 232 of file CubeViewport.cpp.

References cubeLines(), cubeSamples(), fitScale(), p_grayBuffer, p_paintPixmap, p_scale, paintPixmap(), and setScale().

◆ sizeHint

QSize Isis::CubeViewport::sizeHint ( ) const
slotinherited

Make viewports show up as 512 by 512.

Returns
QSize

Definition at line 570 of file CubeViewport.cpp.

◆ stretchBlue [1/2]

◆ stretchBlue [2/2]

void Isis::CubeViewport::stretchBlue ( const Stretch & stretch)
slotinherited

Sets the stretch for blue in rgb mode.

Parameters
stretch

Definition at line 2249 of file CubeViewport.cpp.

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

◆ stretchGray [1/2]

◆ stretchGray [2/2]

void Isis::CubeViewport::stretchGray ( const Stretch & stretch)
slotinherited

Sets the stretch for gray mode.

Parameters
stretch

Definition at line 2183 of file CubeViewport.cpp.

References Isis::Stretch::CopyPairs(), grayBand(), p_blue, p_globalStretches, p_gray, p_green, p_red, paintPixmap(), and Isis::Stretch::Pairs().

◆ stretchGreen [1/2]

◆ stretchGreen [2/2]

void Isis::CubeViewport::stretchGreen ( const Stretch & stretch)
slotinherited

Sets the stretch for green in rgb mode.

Parameters
stretch

Definition at line 2231 of file CubeViewport.cpp.

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

◆ stretchKnownGlobal

void Isis::CubeViewport::stretchKnownGlobal ( )
slotinherited

List<Tool *> p This stretches to the global stretch.

Definition at line 2152 of file CubeViewport.cpp.

References blueBand(), grayBand(), greenBand(), isGray(), p_globalStretches, redBand(), stretchBlue(), stretchGray(), stretchGreen(), and stretchRed().

Referenced by Isis::StretchTool::stretchChanged(), and Isis::StretchTool::stretchGlobal().

◆ stretchRed [1/2]

◆ stretchRed [2/2]

void Isis::CubeViewport::stretchRed ( const Stretch & stretch)
slotinherited

Sets the stretch for red in rgb mode.

Parameters
stretch

Definition at line 2213 of file CubeViewport.cpp.

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

◆ trackingCube()

Cube * Isis::CubeViewport::trackingCube ( ) const
inlineinherited
Returns
The tracking cube associated with p_cube (if it has one)

Definition at line 358 of file CubeViewport.h.

Referenced by setTrackingCube(), and Isis::AdvancedTrackTool::TrackMosaicOrigin().

◆ universalGroundMap()

◆ updateScrollBars()

void Isis::CubeViewport::updateScrollBars ( int x,
int y )
privateinherited

Update the scroll bar.

Parameters
x
y

Definition at line 1887 of file CubeViewport.cpp.

References cubeLines(), cubeSamples(), p_scale, and scaleChanged().

Referenced by center(), resizeEvent(), scrollBy(), and setScale().

◆ updateWhatsThis()

void Isis::CubeViewport::updateWhatsThis ( )
privateinherited

◆ viewGray

void Isis::MdiCubeViewport::viewGray ( int band)
slot

Definition at line 110 of file MdiCubeViewport.cpp.

◆ viewportClosed

void Isis::CubeViewport::viewportClosed ( CubeViewport * )
signalinherited

Emitted when viewport is closed.

References CubeViewport().

◆ viewportToCube()

◆ viewportUpdated

void Isis::CubeViewport::viewportUpdated ( )
signalinherited

Emitted when viewport updated.

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

◆ viewRGB

void Isis::MdiCubeViewport::viewRGB ( int red,
int green,
int blue )
slot

Definition at line 118 of file MdiCubeViewport.cpp.

◆ windowTitleChanged

void Isis::CubeViewport::windowTitleChanged ( )
signalinherited

Emitted when window title changes.

Referenced by setCaption().

Member Data Documentation

◆ p_bgColor

QColor Isis::CubeViewport::p_bgColor
privateinherited

The color to paint the background of the viewport.

Definition at line 625 of file CubeViewport.h.

Referenced by CubeViewport(), paintPixmap(), setBackground(), and shiftPixmap().

◆ p_bluBrick

Brick* Isis::CubeViewport::p_bluBrick
privateinherited

Bricks for every color.

Definition at line 649 of file CubeViewport.h.

Referenced by CubeViewport(), and ~CubeViewport().

◆ p_blue

BandInfo Isis::CubeViewport::p_blue
privateinherited

Blue band info.

Definition at line 642 of file CubeViewport.h.

Referenced by blueBand(), bluePixel(), blueStretch(), paintPixmap(), setCaption(), stretchBlue(), stretchGray(), and viewRGB().

◆ p_blueBuffer

◆ p_camera

Camera* Isis::CubeViewport::p_camera
privateinherited

The camera from the cube.

Definition at line 628 of file CubeViewport.h.

Referenced by camera(), CubeViewport(), viewGray(), and viewRGB().

◆ p_color

bool Isis::CubeViewport::p_color
privateinherited

Is the viewport in color?

Definition at line 638 of file CubeViewport.h.

Referenced by CubeViewport(), getAllWhatsThisInfo(), isColor(), isGray(), setCaption(), updateWhatsThis(), viewGray(), and viewRGB().

◆ p_comboCount

int Isis::CubeViewport::p_comboCount
privateinherited

Number of elements in band bin combo box.

Definition at line 644 of file CubeViewport.h.

Referenced by comboCount(), CubeViewport(), and setComboCount().

◆ p_comboIndex

int Isis::CubeViewport::p_comboIndex
privateinherited

Current element chosen from combo box.

Definition at line 645 of file CubeViewport.h.

Referenced by comboIndex(), CubeViewport(), and setComboIndex().

◆ p_cube

Cube* Isis::CubeViewport::p_cube
privateinherited

◆ p_cubeData

CubeDataThread* Isis::CubeViewport::p_cubeData
privateinherited

Does all the cube I/O.

Definition at line 666 of file CubeViewport.h.

Referenced by cubeDataThread(), CubeViewport(), viewGray(), viewRGB(), and ~CubeViewport().

◆ p_cubeId

int Isis::CubeViewport::p_cubeId
privateinherited

Cube ID given from cube data thread for I/O.

Definition at line 667 of file CubeViewport.h.

Referenced by cubeDataChanged(), cubeID(), CubeViewport(), viewGray(), and viewRGB().

◆ p_cubeShown

bool Isis::CubeViewport::p_cubeShown
privateinherited

Is the cube visible?

Definition at line 653 of file CubeViewport.h.

Referenced by cubeShown(), CubeViewport(), and paintEvent().

◆ p_cubeWhatsThisText

QString Isis::CubeViewport::p_cubeWhatsThisText
privateinherited

The text for the cube's What's this.

Definition at line 659 of file CubeViewport.h.

Referenced by CubeViewport(), and updateWhatsThis().

◆ p_globalStretches

QVector< Stretch * >* Isis::CubeViewport::p_globalStretches
protectedinherited

Global stretches for each stretched band.

Definition at line 616 of file CubeViewport.h.

Referenced by CubeViewport(), stretchBlue(), stretchGray(), stretchGreen(), stretchKnownGlobal(), stretchRed(), and ~CubeViewport().

◆ p_gray

BandInfo Isis::CubeViewport::p_gray
privateinherited

Gray band info.

Definition at line 639 of file CubeViewport.h.

Referenced by grayBand(), grayPixel(), grayStretch(), setCaption(), stretchGray(), and viewGray().

◆ p_grayBuffer

◆ p_green

BandInfo Isis::CubeViewport::p_green
privateinherited

Green band info.

Definition at line 641 of file CubeViewport.h.

Referenced by greenBand(), greenPixel(), greenStretch(), paintPixmap(), setCaption(), stretchGray(), stretchGreen(), and viewRGB().

◆ p_greenBuffer

◆ p_grnBrick

Brick* Isis::CubeViewport::p_grnBrick
privateinherited

Bricks for every color.

Definition at line 648 of file CubeViewport.h.

Referenced by CubeViewport(), and ~CubeViewport().

◆ p_groundMap

UniversalGroundMap* Isis::CubeViewport::p_groundMap
privateinherited

The universal ground map from the cube.

Definition at line 630 of file CubeViewport.h.

Referenced by CubeViewport(), universalGroundMap(), and ~CubeViewport().

◆ p_gryBrick

Brick* Isis::CubeViewport::p_gryBrick
privateinherited

Bricks for every color.

Definition at line 650 of file CubeViewport.h.

Referenced by CubeViewport(), and ~CubeViewport().

◆ p_image

QImage* Isis::CubeViewport::p_image
privateinherited

The qimage.

Definition at line 654 of file CubeViewport.h.

Referenced by CubeViewport(), paintPixmap(), paintPixmap(), resizeEvent(), and ~CubeViewport().

◆ p_knownStretches

QVector< Stretch * >* Isis::CubeViewport::p_knownStretches
protectedinherited

Stretches for each previously stretched band.

Definition at line 613 of file CubeViewport.h.

Referenced by CubeViewport(), forgetStretches(), setAllBandStretches(), viewGray(), viewRGB(), and ~CubeViewport().

◆ p_linked

bool Isis::MdiCubeViewport::p_linked
private

Definition at line 71 of file MdiCubeViewport.h.

◆ p_paintPixmap

bool Isis::CubeViewport::p_paintPixmap
privateinherited

Paint the pixmap?

Definition at line 655 of file CubeViewport.h.

Referenced by CubeViewport(), paintPixmap(), resizeEvent(), setScale(), shiftPixmap(), and showEvent().

◆ p_pixmap

QPixmap Isis::CubeViewport::p_pixmap
protectedinherited

◆ p_pixmapPaintRects

QList< QRect * >* Isis::CubeViewport::p_pixmapPaintRects
privateinherited

A list of rects that the viewport buffers have requested painted.

Definition at line 664 of file CubeViewport.h.

Referenced by CubeViewport(), paintPixmap(), paintPixmapRects(), scrollContentsBy(), and ~CubeViewport().

◆ p_pntBrick

Brick* Isis::CubeViewport::p_pntBrick
privateinherited

Bricks for every color.

Definition at line 651 of file CubeViewport.h.

Referenced by bluePixel(), CubeViewport(), grayPixel(), greenPixel(), redPixel(), and ~CubeViewport().

◆ p_progressTimer

QTimer* Isis::CubeViewport::p_progressTimer
privateinherited

Activated to update progress bar.

Definition at line 634 of file CubeViewport.h.

Referenced by CubeViewport(), enableProgress(), onProgressTimer(), and ~CubeViewport().

◆ p_projection

Projection* Isis::CubeViewport::p_projection
privateinherited

The projection from the cube.

Definition at line 629 of file CubeViewport.h.

Referenced by CubeViewport(), and projection().

◆ p_red

BandInfo Isis::CubeViewport::p_red
privateinherited

Red band info.

Definition at line 640 of file CubeViewport.h.

Referenced by paintPixmap(), redBand(), redPixel(), redStretch(), setCaption(), stretchGray(), stretchRed(), and viewRGB().

◆ p_redBrick

Brick* Isis::CubeViewport::p_redBrick
privateinherited

Bricks for every color.

Definition at line 647 of file CubeViewport.h.

Referenced by CubeViewport(), and ~CubeViewport().

◆ p_redBuffer

◆ p_saveEnabled

bool Isis::CubeViewport::p_saveEnabled
privateinherited

Has the cube changed?

Definition at line 652 of file CubeViewport.h.

Referenced by confirmClose(), cubeChanged(), CubeViewport(), and setCaption().

◆ p_scale

double Isis::CubeViewport::p_scale
privateinherited

◆ p_thisOwnsCubeData

bool Isis::CubeViewport::p_thisOwnsCubeData
privateinherited

if true then this owns the CubeDataThread, and should thus delete it

Definition at line 673 of file CubeViewport.h.

Referenced by CubeViewport(), and ~CubeViewport().

◆ p_toolList

QList<Tool *> Isis::MdiCubeViewport::p_toolList
private

Definition at line 72 of file MdiCubeViewport.h.

◆ p_trackingCube

Cube* Isis::CubeViewport::p_trackingCube
privateinherited

Definition at line 631 of file CubeViewport.h.

◆ p_updatingBuffers

bool Isis::CubeViewport::p_updatingBuffers
privateinherited

Changing RGB and need to not repaint pixmap?

Definition at line 656 of file CubeViewport.h.

Referenced by center(), cubeContentsChanged(), cubeDataChanged(), CubeViewport(), paintPixmap(), resizeEvent(), scrollContentsBy(), and setScale().

◆ p_viewportWhatsThisText

QString Isis::CubeViewport::p_viewportWhatsThisText
privateinherited

The text for the viewport's what's this.

Definition at line 660 of file CubeViewport.h.

Referenced by resizeEvent(), and updateWhatsThis().

◆ p_whatsThisText

QString Isis::CubeViewport::p_whatsThisText
privateinherited

The text for What's this.

Definition at line 658 of file CubeViewport.h.

Referenced by CubeViewport(), and updateWhatsThis().


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