Isis 3 Programmer Reference
|
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. More... | |
void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=0) |
This virtual paint method is called anytime an update() or paintEvent() is called. More... | |
ControlPoint * | controlPoint () |
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. More... | |
bool | m_colorByResidualMagnitude |
Are we coloring the movement arrow based on max CM residual magnitude. More... | |
int | m_measureCount |
Measure count threshold for colored vs. black. More... | |
double | m_residualMagnitude |
Residual magnitude threshold for colored vs. black. More... | |
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.
Definition at line 45 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 33 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.
void Isis::ControlPointGraphicsItem::paint | ( | QPainter * | painter, |
const QStyleOptionGraphicsItem * | style, | ||
QWidget * | widget = 0 |
||
) |
This virtual paint method is called anytime an update() or paintEvent() is called.
painter | (QPainter *) Painter used to draw |
style | (QStyleOptionGraphicsItem *) Describes parameters used to draw a QGraphicsItem |
widget | (QWidget *) Optional argument which indicates the widget that is being painted on |
Definition at line 99 of file ControlPointGraphicsItem.cpp.
References Isis::Statistics::AddData(), Isis::Statistics::Average(), Isis::Directory::editPointId(), Isis::ControlPoint::GetId(), Isis::ControlPoint::getMeasures(), Isis::ControlMeasure::GetResidualMagnitude(), Isis::IsSpecial(), m_colorByMeasureCount, m_colorByResidualMagnitude, m_measureCount, m_residualMagnitude, Isis::Statistics::Maximum(), and Isis::Null.
|
private |
Are we coloring the movement arrow based on CP measure count.
Definition at line 75 of file ControlPointGraphicsItem.h.
Referenced by ControlPointGraphicsItem(), and paint().
|
private |
Are we coloring the movement arrow based on max CM residual magnitude.
Definition at line 77 of file ControlPointGraphicsItem.h.
Referenced by ControlPointGraphicsItem(), and paint().
|
private |
Measure count threshold for colored vs. black.
Definition at line 79 of file ControlPointGraphicsItem.h.
Referenced by ControlPointGraphicsItem(), and paint().
|
private |
Residual magnitude threshold for colored vs. black.
Definition at line 81 of file ControlPointGraphicsItem.h.
Referenced by ControlPointGraphicsItem(), and paint().