Isis 3.0
Back | Home
Isis::ControlPointGraphicsItem Class Reference

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

#include <ControlPointGraphicsItem.h>

Inherits QGraphicsRectItem.

Public Member Functions

 ControlPointGraphicsItem (QPointF center, QPointF apriori, ControlPoint *cp, SerialNumberList *snList, MosaicSceneWidget *scene, QGraphicsItem *parent)
 Create a CP graphics item. More...
 
virtual ~ControlPointGraphicsItem ()
 
void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=0)
 
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

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, Isis::ControlPoint::GetType(), Isis::ControlPoint::IsEditLocked(), Isis::ControlPoint::IsIgnored(), and Isis::Null.

Isis::ControlPointGraphicsItem::~ControlPointGraphicsItem ( )
virtual

Member Function Documentation

void Isis::ControlPointGraphicsItem::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  event)
protected
ControlPoint * Isis::ControlPointGraphicsItem::controlPoint ( )
void Isis::ControlPointGraphicsItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  style,
QWidget widget = 0 
)
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:

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:36:00