Isis 3.0 Object Programmers' Reference |
Home |
The visual display of a single control point. More...
#include <ControlPointGraphicsItem.h>
Public Member Functions | |
ControlPointGraphicsItem (QPointF center, QPointF apriori, ControlPoint *cp, SerialNumberList *snList, MosaicSceneWidget *scene, QGraphicsItem *parent) | |
Create a CP graphics item. | |
void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=0) |
void | setArrowVisible (bool visible, bool colorByMeasureCount, int measureCount, bool colorByResidualMagnitude, double residualMagnitude) |
Protected Member Functions | |
void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) |
Private Member Functions | |
QRectF | calcRect () const |
QRectF | calcCrosshairRect () const |
QPolygonF | calcArrowHead () const |
QString | makeToolTip (SerialNumberList *snlist) |
Private Attributes | |
QPointF * | m_centerPoint |
QPointF * | m_origPoint |
MosaicSceneWidget * | m_mosaicScene |
ControlPoint * | m_controlPoint |
bool | m_showArrow |
bool | m_colorByMeasureCount |
Are we coloring the movement arrow based on CP measure count. | |
bool | m_colorByResidualMagnitude |
Are we coloring the movement arrow based on max CM residual magnitude. | |
int | m_measureCount |
Measure count threshold for colored vs. black. | |
double | m_residualMagnitude |
Residual magnitude threshold for colored vs. black. | |
The visual display of a single control point.
The control point tries to always draw itself at a constant size and uses the scene pointer to accomplish this.
2011-05-09 Steven Lambright - Fixed known issue with paint() when zoomed in.
2011-05-10 Steven Lambright - Added arrow capabilities, fixed problem with boundingRect() that seemed to cause a crash.
2011-06-07 Debbie A. Cook and Tracie Sucharski - Modified point types Ground ---—> Fixed Tie-------—> Free
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. Updated paint() method to appropriately apply colors. Fixes #479.
Definition at line 35 of file ControlPointGraphicsItem.h.
Isis::ControlPointGraphicsItem::ControlPointGraphicsItem | ( | QPointF | center, |
QPointF | apriori, | ||
ControlPoint * | cp, | ||
SerialNumberList * | snList, | ||
MosaicSceneWidget * | boundingRectSrc, | ||
QGraphicsItem * | parent | ||
) |
Create a CP graphics item.
This will colorize and set the appropriate toolTip for this control point.
Definition at line 29 of file ControlPointGraphicsItem.cpp.
References Isis::ControlPoint::Constrained, Isis::ControlPoint::Fixed, Isis::ControlPoint::GetType(), m_colorByMeasureCount, m_colorByResidualMagnitude, m_measureCount, m_residualMagnitude, and Isis::Null.
|
private |
Are we coloring the movement arrow based on CP measure count.
Definition at line 73 of file ControlPointGraphicsItem.h.
Referenced by ControlPointGraphicsItem().
|
private |
Are we coloring the movement arrow based on max CM residual magnitude.
Definition at line 75 of file ControlPointGraphicsItem.h.
Referenced by ControlPointGraphicsItem().
|
private |
Measure count threshold for colored vs. black.
Definition at line 77 of file ControlPointGraphicsItem.h.
Referenced by ControlPointGraphicsItem().
|
private |
Residual magnitude threshold for colored vs. black.
Definition at line 79 of file ControlPointGraphicsItem.h.
Referenced by ControlPointGraphicsItem().