USGS

Isis 3.0 Application Source Code Reference

Home

QnetTool Class Reference

Qnet tool operations. More...

#include <QnetTool.h>

List of all members.

Public Types

enum  MeasureColumns {
  FILENAME, CUBESN, SAMPLE, LINE,
  APRIORISAMPLE, APRIORILINE, SAMPLERESIDUAL, LINERESIDUAL,
  RESIDUALMAGNITUDE, SAMPLESHIFT, LINESHIFT, PIXELSHIFT,
  GOODNESSOFFIT, IGNORED, EDITLOCK, TYPE
}

Public Slots

void updateList ()
void updateNet (QString cNetFileName)
 Updates the Control Network displayed in the Qnet Tool title bar.
void createPoint (double lat, double lon)
 Create new control point.
void createFixedPoint (double lat, double lon)
 Create new Fixed control point.
void modifyPoint (ControlPoint *point)
 Modify control point.
void deletePoint (ControlPoint *point)
 Delete control point.
void updatePointInfo (QString pointId)
 Update the current editPoint information in the Point Editor labels.
void refresh ()
 Refresh all necessary widgets in QnetTool including the PointEditor and CubeViewports.

Signals

void qnetToolSave ()
void qnetToolSaveAs ()
void refreshNavList ()
void editPointChanged (QString pointId)
void netChanged ()
void ignorePointChanged ()
void ignoreLeftChanged ()
void ignoreRightChanged ()
void showNavTool ()
void newControlNetwork (ControlNet *)
void stretchChipViewport (Stretch *, CubeViewport *)
void measureChanged ()

Public Member Functions

 QnetTool (QWidget *parent)
 Consructs the Qnet Tool window.
virtual ~QnetTool ()
void paintViewport (MdiCubeViewport *cvp, QPainter *painter)
 Take care of drawing things on a viewPort.
QString measureColumnToString (MeasureColumns column)

Static Public Attributes

static const int NUMCOLUMNS = 16

Protected Slots

void mouseButtonRelease (QPoint p, Qt::MouseButton s)
 Handle mouse events on CubeViewport.
QWidgetcreateToolBarWidget (QStackedWidget *parent)
 This method creates the widgets for the tool bar.

Protected Member Functions

QAction * toolPadAction (ToolPad *pad)
 Adds the Tie tool action to the tool pad.
bool eventFilter (QObject *o, QEvent *e)
 Event filter for QnetTool.

Detailed Description

Qnet tool operations.

Author:
????-??-?? Unknown

Definition at line 196 of file QnetTool.h.


Member Enumeration Documentation

Enumerator:
FILENAME 
CUBESN 
SAMPLE 
LINE 
APRIORISAMPLE 
APRIORILINE 
SAMPLERESIDUAL 
LINERESIDUAL 
RESIDUALMAGNITUDE 
SAMPLESHIFT 
LINESHIFT 
PIXELSHIFT 
GOODNESSOFFIT 
IGNORED 
EDITLOCK 
TYPE 

Definition at line 205 of file QnetTool.h.


Constructor & Destructor Documentation

QnetTool ( QWidget parent  ) 

Consructs the Qnet Tool window.

Parameters:
parent Pointer to the parent widget for the Qnet tool

Definition at line 61 of file QnetTool.cpp.

~QnetTool (  )  [virtual]

Definition at line 113 of file QnetTool.cpp.


Member Function Documentation

void paintViewport ( MdiCubeViewport *  vp,
QPainter *  painter 
)

Take care of drawing things on a viewPort.

This is overiding the parents paintViewport member.

Parameters:
vp Pointer to Viewport to be painted
painter 

Definition at line 2888 of file QnetTool.cpp.

QString measureColumnToString ( QnetTool::MeasureColumns  column  ) 

Definition at line 2364 of file QnetTool.cpp.

void qnetToolSave (  )  [signal]
void qnetToolSaveAs (  )  [signal]
void refreshNavList (  )  [signal]
void editPointChanged ( QString  pointId  )  [signal]
void netChanged (  )  [signal]
void ignorePointChanged (  )  [signal]
void ignoreLeftChanged (  )  [signal]
void ignoreRightChanged (  )  [signal]
void showNavTool (  )  [signal]
void newControlNetwork ( ControlNet *   )  [signal]
void stretchChipViewport ( Stretch *  ,
CubeViewport *   
) [signal]
void measureChanged (  )  [signal]
void updateList (  )  [slot]

Definition at line 1365 of file QnetTool.cpp.

void updateNet ( QString  cNetFileName  )  [slot]

Updates the Control Network displayed in the Qnet Tool title bar.

This slot is connected to QnetFileTool's controlNetworkUpdated(QString cNetFileName) signal.

Parameters:
cNetFileName FileName of the most recently selected control network.
See also:
QnetFileTool

Definition at line 1388 of file QnetTool.cpp.

void createPoint ( double  lat,
double  lon 
) [slot]

Create new control point.

Parameters:
lat Latitude value of control point to be created.
lon Longitude value of control point to be created.

Definition at line 1561 of file QnetTool.cpp.

void createFixedPoint ( double  lat,
double  lon 
) [slot]

Create new Fixed control point.

Parameters:
lat Latitude value of control point to be created.
lon Longitude value of control point to be created.
Author:
2010-11-09 Tracie Sucharski

Definition at line 1676 of file QnetTool.cpp.

void modifyPoint ( ControlPoint *  point  )  [slot]

Modify control point.

Parameters:
point Pointer to control point to be modified.
History:
2009-09-15 Tracie Sucharski - Add error check for points with no measures.

Definition at line 1972 of file QnetTool.cpp.

void deletePoint ( ControlPoint *  point  )  [slot]

Delete control point.

Parameters:
point Pointer to control point (net memory) to be deleted.

Definition at line 1848 of file QnetTool.cpp.

void updatePointInfo ( QString  pointId  )  [slot]

Update the current editPoint information in the Point Editor labels.

Author:
2011-05-05 Tracie Sucharski

Instead of a single method, should slots be separate for each updated point parameter, ie. ignore, editLock, apriori, etc. This is not robust, if other point attributes are changed outside of QnetTool, this method will need to be updated. *** THIS METHOD SHOULD GO AWAY WHEN CONTROLpOINTEDITOR IS INCLUDED IN QNET ***

Definition at line 3287 of file QnetTool.cpp.

void refresh (  )  [slot]

Refresh all necessary widgets in QnetTool including the PointEditor and CubeViewports.

Author:
2008-12-09 Tracie Sucharski

Definition at line 3327 of file QnetTool.cpp.

QAction * toolPadAction ( ToolPad *  pad  )  [protected]

Adds the Tie tool action to the tool pad.

When the Tie tool is selected, the Navigation Tool will automatically open.

Parameters:
pad Tool pad
Returns:
QAction* Pointer to Tie tool action

Definition at line 1409 of file QnetTool.cpp.

bool eventFilter ( QObject o,
QEvent *  e 
) [protected]

Event filter for QnetTool.

Determines whether to update left or right measure info.

Parameters:
o Pointer to QObject
e Pointer to QEvent
Returns:
bool Indicates whether the event type is "Leave".

Definition at line 2867 of file QnetTool.cpp.

void mouseButtonRelease ( QPoint  p,
Qt::MouseButton  s 
) [protected, slot]

Handle mouse events on CubeViewport.

Parameters:
p[in] (QPoint) Point under cursor in cubeviewport
s[in] (Qt::MouseButton) Which mouse button was pressed

Definition at line 1444 of file QnetTool.cpp.

QWidget * createToolBarWidget ( QStackedWidget *  parent  )  [protected, slot]

This method creates the widgets for the tool bar.

A "Show Nav Tool" button is created so that the navigation tool may be reopened if it has been closed.

Parameters:
parent The parent QStackedWidget
Returns:
QWidget*

Definition at line 3379 of file QnetTool.cpp.


Member Data Documentation

const int NUMCOLUMNS = 16 [static]

Definition at line 223 of file QnetTool.h.


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