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.
 
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.
 
ControlPointfindClosestControlPoint (QPointF locationPoint)
 Return the closest control point to the pointLocation.
 

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

2012-04-16 Jeannie Backer - Added #include for Pvl class in implementation file.

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.

2014-06-02 Tracie Sucharski - Added documentation to the header file regarding pointToScene method and member variable.

2016-10-20 Tracie Sucharski & Kim Oyama - Added functionality for IPCE, including findClosestControlPoint method and making buildChildren and clearControlPointGraphicsItem public slots. Fixes #4479

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.

Constructor & Destructor Documentation

◆ ControlNetGraphicsItem()

Isis::ControlNetGraphicsItem::ControlNetGraphicsItem ( ControlNet * controlNet,
MosaicSceneWidget * mosaicScene )

Definition at line 30 of file ControlNetGraphicsItem.cpp.

◆ ~ControlNetGraphicsItem()

Isis::ControlNetGraphicsItem::~ControlNetGraphicsItem ( )
virtual

Definition at line 50 of file ControlNetGraphicsItem.cpp.

Member Function Documentation

◆ boundingRect()

QRectF Isis::ControlNetGraphicsItem::boundingRect ( ) const

Definition at line 72 of file ControlNetGraphicsItem.cpp.

◆ 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::ProgressBar::setText().

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

◆ clearControlPointGraphicsItem

void Isis::ControlNetGraphicsItem::clearControlPointGraphicsItem ( QString pointId)
slot

Definition at line 188 of file ControlNetGraphicsItem.cpp.

◆ 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.

◆ paint()

void Isis::ControlNetGraphicsItem::paint ( QPainter * painter,
const QStyleOptionGraphicsItem * style,
QWidget * widget = 0 )

Definition at line 77 of file ControlNetGraphicsItem.cpp.

◆ pointToScene()

QPair< QPointF, QPointF > Isis::ControlNetGraphicsItem::pointToScene ( ControlPoint * cp)
private

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

◆ snToFileName()

QString Isis::ControlNetGraphicsItem::snToFileName ( QString sn)

Definition at line 203 of file ControlNetGraphicsItem.cpp.

Member Data Documentation

◆ m_controlNet

ControlNet* Isis::ControlNetGraphicsItem::m_controlNet
private

Definition at line 63 of file ControlNetGraphicsItem.h.

◆ m_cubeToGroundMap

QMap<QString, UniversalGroundMap *>* Isis::ControlNetGraphicsItem::m_cubeToGroundMap
private

Definition at line 72 of file ControlNetGraphicsItem.h.

◆ m_mosaicScene

MosaicSceneWidget* Isis::ControlNetGraphicsItem::m_mosaicScene
private

Definition at line 65 of file ControlNetGraphicsItem.h.

◆ m_pointToScene

QMap<ControlPoint *, QPair<QPointF, QPointF> >* Isis::ControlNetGraphicsItem::m_pointToScene
private

Definition at line 70 of file ControlNetGraphicsItem.h.

◆ m_serialNumbers

SerialNumberList* Isis::ControlNetGraphicsItem::m_serialNumbers
private

Definition at line 73 of file ControlNetGraphicsItem.h.


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