Isis 3 Programmer Reference
Isis::ControlNetGraphicsItem Class Reference

Control Network Display on Mosaic Scene. More...

#include <ControlNetGraphicsItem.h>

Inheritance diagram for Isis::ControlNetGraphicsItem:
Inheritance graph
Collaboration diagram for Isis::ControlNetGraphicsItem:
Collaboration graph

Public Slots

void buildChildren ()
 Call this to re-calculate where control points ought to lie. More...
 
void clearControlPointGraphicsItem (QString pointId)
 

Public Member Functions

 ControlNetGraphicsItem (ControlNet *controlNet, MosaicSceneWidget *mosaicScene)
 
QRectF boundingRect () const
 
void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=0)
 
QString snToFileName (QString sn)
 
void setArrowsVisible (bool visible, bool colorByMeasureCount, int measureCount, bool colorByJigsawError, double residualMagnitude)
 Enable/disable and configure movement arrows for all CP displays in the network. More...
 
ControlPointfindClosestControlPoint (QPointF locationPoint)
 Return the closest control point to the pointLocation. More...
 

Private Member Functions

QPair< QPointF, QPointF > pointToScene (ControlPoint *)
 

Private Attributes

ControlNetm_controlNet
 
MosaicSceneWidgetm_mosaicScene
 
QMap< ControlPoint *, QPair< QPointF, QPointF > > * m_pointToScene
 
QMap< QString, UniversalGroundMap * > * m_cubeToGroundMap
 
SerialNumberListm_serialNumbers
 

Detailed Description

Control Network Display on Mosaic Scene.

Author
2011-05-07 Steven Lambright
History:
2011-05-10 Steven Lambright - Added arrow capabilities for CPs
History:
2012-04-16 Jeannie Backer - Added #include for Pvl class in implementation file.
History:
2013-01-02 Steven Lambright - Updated setArrowVisible() to support new coloring options. The design of this configuration is wrong/needs fixed, but I'm leaving it alone due to time constraints. Fixes #479.
History:
2014-06-02 Tracie Sucharski - Added documentation to the header file regarding pointToScene method and member variable.
History:
2016-10-20 Tracie Sucharski & Kim Oyama - Added functionality for IPCE, including findClosestControlPoint method and making buildChildren and clearControlPointGraphicsItem public slots. Fixes #4479
History:
2017-08-15 Tracie Sucharski - Fixed possible seg fault in findClosestControlPoint() when clicking away from a control point. Changed findClosestControlPoint to take the point location to search for a control point. Removed mouseReleaseEvent as it is not being used.

Definition at line 37 of file ControlNetGraphicsItem.h.

Member Function Documentation

◆ buildChildren

void Isis::ControlNetGraphicsItem::buildChildren ( )
slot

Call this to re-calculate where control points ought to lie.

This creates a new cube list and re-projects everything

Definition at line 240 of file ControlNetGraphicsItem.cpp.

References Isis::SerialNumberList::add(), Isis::ControlNet::GetNumPoints(), and Isis::ProgressBar::setText().

Referenced by Isis::MosaicControlNetTool::rebuildPointGraphics().

◆ findClosestControlPoint()

ControlPoint * Isis::ControlNetGraphicsItem::findClosestControlPoint ( QPointF  locationPoint)

Return the closest control point to the pointLocation.

Parameters
locationPoint(QPointF) The location point to search for a control point
Returns
ControlPoint * The closest control point found, which is NULL if no control point found

Definition at line 302 of file ControlNetGraphicsItem.cpp.

◆ setArrowsVisible()

void Isis::ControlNetGraphicsItem::setArrowsVisible ( bool  visible,
bool  colorByMeasureCount,
int  maxMeasureCount,
bool  colorByJigsawError,
double  maxResidualMagnitude 
)

Enable/disable and configure movement arrows for all CP displays in the network.

See also
ControlPointGraphicsItem::setArrowsVisible()
MosaicControlNetTool::setMovementArrowColorSource()

Definition at line 224 of file ControlNetGraphicsItem.cpp.

Referenced by Isis::MosaicControlNetTool::setMovementArrowColorSource().


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