Isis 3 Programmer Reference
|
A named feature's position in a viewport. More...
Public Member Functions | |
FeatureDisplayPosition () | |
Instantiate a blank feature display position. | |
FeatureDisplayPosition (QRect textRect, QRect fullDisplayRect, QList< QPoint > edgePoints) | |
Instantiate a feature display position with the given data. | |
FeatureDisplayPosition (const FeatureDisplayPosition &other) | |
Copy a feature display position. | |
~FeatureDisplayPosition () | |
Free the allocated memory. | |
QRect | textArea () const |
Get the screen pixel rect in viewport screen coordinates that ought to be filled with the textual name. | |
QRect | displayArea () const |
Get the screen pixel rect in viewport screen coordinates that encapsulates the entire feature. | |
QList< QPoint > | edgePoints () const |
Get the edge screen pixel points in viewport screen coordinates that circle the feature. | |
void | swap (FeatureDisplayPosition &other) |
Swap member data with another instance of this class. | |
FeatureDisplayPosition & | operator= (const FeatureDisplayPosition &rhs) |
Assign the state of rhs to this.This is exception-safe. | |
Private Attributes | |
QRect * | m_textRect |
The viewport screen pixel rect which the text will consume. | |
QRect * | m_fullDisplayRect |
The viewport screen pixel rect which the entire display will use. | |
QList< QPoint > * | m_edgePoints |
The viewport screen pixel points which the edges are at. | |
A named feature's position in a viewport.
This class encapsulates the screen x,y boxes, extents, and edge points of a named feature in a viewport.
Definition at line 236 of file FeatureNomenclatureTool.h.
Isis::FeatureNomenclatureTool::FeatureDisplayPosition::FeatureDisplayPosition | ( | ) |
Instantiate a blank feature display position.
Definition at line 1284 of file FeatureNomenclatureTool.cpp.
Isis::FeatureNomenclatureTool::FeatureDisplayPosition::FeatureDisplayPosition | ( | QRect | textRect, |
QRect | fullDisplayRect, | ||
QList< QPoint > | edgePoints ) |
Instantiate a feature display position with the given data.
textRect | The screen pixel rect in viewport screen coordinates that ought to be filled with the textual name. |
fullDisplayRect | The screen pixel rect in viewport screen coordinates that encapsulates the entire feature. |
edgePoints | The edge screen pixel points in viewport screen coordinates that circle the feature. |
Definition at line 1305 of file FeatureNomenclatureTool.cpp.
Isis::FeatureNomenclatureTool::FeatureDisplayPosition::FeatureDisplayPosition | ( | const FeatureDisplayPosition & | other | ) |
Copy a feature display position.
other | The position to copy |
Definition at line 1321 of file FeatureNomenclatureTool.cpp.
Isis::FeatureNomenclatureTool::FeatureDisplayPosition::~FeatureDisplayPosition | ( | ) |
Free the allocated memory.
Definition at line 1336 of file FeatureNomenclatureTool.cpp.
QRect Isis::FeatureNomenclatureTool::FeatureDisplayPosition::displayArea | ( | ) | const |
Get the screen pixel rect in viewport screen coordinates that encapsulates the entire feature.
Definition at line 1365 of file FeatureNomenclatureTool.cpp.
QList< QPoint > Isis::FeatureNomenclatureTool::FeatureDisplayPosition::edgePoints | ( | ) | const |
Get the edge screen pixel points in viewport screen coordinates that circle the feature.
Definition at line 1376 of file FeatureNomenclatureTool.cpp.
FeatureNomenclatureTool::FeatureDisplayPosition & Isis::FeatureNomenclatureTool::FeatureDisplayPosition::operator= | ( | const FeatureDisplayPosition & | rhs | ) |
Assign the state of rhs to this.This is exception-safe.
rhs | The position on the right hand side of the '=' operator |
Definition at line 1404 of file FeatureNomenclatureTool.cpp.
void Isis::FeatureNomenclatureTool::FeatureDisplayPosition::swap | ( | FeatureDisplayPosition & | other | ) |
Swap member data with another instance of this class.
This trades the state of this with other and will never throw an exception.
other | The instance to trade state with |
Definition at line 1388 of file FeatureNomenclatureTool.cpp.
QRect Isis::FeatureNomenclatureTool::FeatureDisplayPosition::textArea | ( | ) | const |
Get the screen pixel rect in viewport screen coordinates that ought to be filled with the textual name.
Definition at line 1354 of file FeatureNomenclatureTool.cpp.
Referenced by Isis::FeatureNomenclatureTool::ViewportFeatureDisplay::paint().
|
private |
The viewport screen pixel points which the edges are at.
Definition at line 258 of file FeatureNomenclatureTool.h.
|
private |
The viewport screen pixel rect which the entire display will use.
Definition at line 256 of file FeatureNomenclatureTool.h.
|
private |
The viewport screen pixel rect which the text will consume.
Definition at line 254 of file FeatureNomenclatureTool.h.