An official website of the United States government
Here’s how you know
Official websites use .gov
A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS
A
lock
( ) or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
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 1285 of file FeatureNomenclatureTool.cpp.
References m_edgePoints, m_fullDisplayRect, and m_textRect.
Referenced by FeatureDisplayPosition(), operator=(), and swap().
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 1306 of file FeatureNomenclatureTool.cpp.
References edgePoints(), m_edgePoints, m_fullDisplayRect, and m_textRect.
Isis::FeatureNomenclatureTool::FeatureDisplayPosition::FeatureDisplayPosition | ( | const FeatureDisplayPosition & | other | ) |
Copy a feature display position.
other | The position to copy |
Definition at line 1322 of file FeatureNomenclatureTool.cpp.
References FeatureDisplayPosition(), m_edgePoints, m_fullDisplayRect, and m_textRect.
Isis::FeatureNomenclatureTool::FeatureDisplayPosition::~FeatureDisplayPosition | ( | ) |
Free the allocated memory.
Definition at line 1337 of file FeatureNomenclatureTool.cpp.
References m_edgePoints, m_fullDisplayRect, and m_textRect.
QRect Isis::FeatureNomenclatureTool::FeatureDisplayPosition::displayArea | ( | ) | const |
Get the screen pixel rect in viewport screen coordinates that encapsulates the entire feature.
Definition at line 1366 of file FeatureNomenclatureTool.cpp.
References m_fullDisplayRect.
Referenced by Isis::FeatureNomenclatureTool::ViewportFeatureDisplay::paint().
QList< QPoint > Isis::FeatureNomenclatureTool::FeatureDisplayPosition::edgePoints | ( | ) | const |
Get the edge screen pixel points in viewport screen coordinates that circle the feature.
Definition at line 1377 of file FeatureNomenclatureTool.cpp.
References m_edgePoints.
Referenced by FeatureDisplayPosition(), and Isis::FeatureNomenclatureTool::ViewportFeatureDisplay::paint().
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 1405 of file FeatureNomenclatureTool.cpp.
References FeatureDisplayPosition(), and swap().
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 1389 of file FeatureNomenclatureTool.cpp.
References FeatureDisplayPosition(), m_edgePoints, m_fullDisplayRect, and m_textRect.
Referenced by operator=().
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 1355 of file FeatureNomenclatureTool.cpp.
References m_textRect.
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.
Referenced by edgePoints(), FeatureDisplayPosition(), FeatureDisplayPosition(), FeatureDisplayPosition(), swap(), and ~FeatureDisplayPosition().
|
private |
The viewport screen pixel rect which the entire display will use.
Definition at line 256 of file FeatureNomenclatureTool.h.
Referenced by displayArea(), FeatureDisplayPosition(), FeatureDisplayPosition(), FeatureDisplayPosition(), swap(), and ~FeatureDisplayPosition().
|
private |
The viewport screen pixel rect which the text will consume.
Definition at line 254 of file FeatureNomenclatureTool.h.
Referenced by FeatureDisplayPosition(), FeatureDisplayPosition(), FeatureDisplayPosition(), swap(), textArea(), and ~FeatureDisplayPosition().