Isis Developer Reference
Isis::ControlPointGraphicsItem Class Reference

The visual display of a single control point. More...

#include <ControlPointGraphicsItem.h>

Inheritance diagram for Isis::ControlPointGraphicsItem:
Inheritance graph
Collaboration diagram for Isis::ControlPointGraphicsItem:
Collaboration graph

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.
 
ControlPointcontrolPoint ()
 
void setArrowVisible (bool visible, bool colorByMeasureCount, int measureCount, bool colorByResidualMagnitude, double residualMagnitude)
 

Protected Member Functions

void contextMenuEvent (QGraphicsSceneContextMenuEvent *event)
 

Detailed Description

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.

Author
2011-05-07 Steven Lambright

Constructor & Destructor Documentation

◆ ControlPointGraphicsItem()

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.

◆ ~ControlPointGraphicsItem()

Isis::ControlPointGraphicsItem::~ControlPointGraphicsItem ( )
virtual

Member Function Documentation

◆ contextMenuEvent()

void Isis::ControlPointGraphicsItem::contextMenuEvent ( QGraphicsSceneContextMenuEvent * event)
protected

◆ controlPoint()

ControlPoint * Isis::ControlPointGraphicsItem::controlPoint ( )

◆ paint()

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.

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

◆ setArrowVisible()

void Isis::ControlPointGraphicsItem::setArrowVisible ( bool visible,
bool colorByMeasureCount,
int measureCount,
bool colorByResidualMagnitude,
double residualMagnitude )

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