  | 
  
    Isis 3 Programmer Reference
    
   | 
 
 
 
 
    1 #ifndef ControlPointGraphicsItem_h 
    2 #define ControlPointGraphicsItem_h 
    4 #include <QGraphicsRectItem> 
   10   class MosaicSceneWidget;
 
   11   class SerialNumberList;
 
   52       void paint(QPainter *, 
const QStyleOptionGraphicsItem *,
 
   57       void setArrowVisible(
bool visible, 
bool colorByMeasureCount, 
int measureCount,
 
   58                            bool colorByResidualMagnitude, 
double residualMagnitude);
 
   61       void contextMenuEvent(QGraphicsSceneContextMenuEvent * event);
 
   64       QRectF calcRect() 
const;
 
   65       QRectF calcCrosshairRect() 
const;
 
   66       QPolygonF calcArrowHead() 
const;
 
   69       QPointF *m_centerPoint;
 
 
 
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=0)
This virtual paint method is called anytime an update() or paintEvent() is called.
 
Serial Number list generator.
 
ControlPointGraphicsItem(QPointF center, QPointF apriori, ControlPoint *cp, SerialNumberList *snList, MosaicSceneWidget *scene, QGraphicsItem *parent)
Create a CP graphics item.
 
The visual display of a single control point.
 
bool m_colorByResidualMagnitude
Are we coloring the movement arrow based on max CM residual magnitude.
 
bool m_colorByMeasureCount
Are we coloring the movement arrow based on CP measure count.
 
double m_residualMagnitude
Residual magnitude threshold for colored vs. black.
 
This is free and unencumbered software released into the public domain.
 
int m_measureCount
Measure count threshold for colored vs. black.