Isis Developer 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. | |
virtual | ~ControlPointGraphicsItem () |
void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=0) |
This virtual paint method is called anytime an update() or paintEvent() is called. | |
ControlPoint * | controlPoint () |
void | setArrowVisible (bool visible, bool colorByMeasureCount, int measureCount, bool colorByResidualMagnitude, double residualMagnitude) |
Protected Member Functions | |
void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) |
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.
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.
References Isis::ControlPoint::Constrained, Isis::ControlPoint::Fixed, and Isis::Null.
|
virtual |
|
protected |
References Isis::ControlPoint::GetId().
ControlPoint * Isis::ControlPointGraphicsItem::controlPoint | ( | ) |
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 |
References Isis::Statistics::AddData(), Isis::MosaicSceneWidget::directory(), Isis::Directory::editPointId(), Isis::ControlPoint::GetId(), Isis::ControlPoint::getMeasures(), Isis::IsSpecial(), and Isis::Null.
void Isis::ControlPointGraphicsItem::setArrowVisible | ( | bool | visible, |
bool | colorByMeasureCount, | ||
int | measureCount, | ||
bool | colorByResidualMagnitude, | ||
double | residualMagnitude ) |