Isis Developer Reference
AbstractPointItem.h
Go to the documentation of this file.
1 #ifndef AbstractPointItem_H
2 #define AbstractPointItem_H
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 #include "AbstractTreeItem.h"
13 
14 
15 class QString;
16 class QVariant;
17 
18 
19 namespace Isis {
20  class ControlPoint;
21  class Distance;
22  class Latitude;
23  class Longitude;
24  class SurfacePoint;
25  class TableColumnList;
26 
40  class AbstractPointItem : public virtual AbstractTreeItem {
41  public:
42  // If a column is added or removed then make sure you also update
43  // the COLS constant that immediately follows this enum.
44  enum Column {
45  Id = 0,
46  PointType = 1,
48  DateTime = 3,
49  EditLock = 4,
50  Ignored = 5,
51  Reference = 6,
68  JigsawRejected = 23
69  };
70  static const int COLS = 24;
71 
72  static QString getColumnName(Column);
73  static Column getColumn(QString);
75 
76 
77  public:
78  AbstractPointItem(ControlPoint *cp, int avgCharWidth,
80  virtual ~AbstractPointItem();
81 
82  QVariant getData() const;
83  QVariant getData(QString columnTitle) const;
84  void setData(QString const &columnTitle, QString const &newData);
85  bool isDataEditable(QString columnTitle) const;
86  void deleteSource();
88  void *getPointer() const;
89  bool hasPoint(ControlPoint *) const;
90 
91 
92  protected:
93  virtual void sourceDeleted();
94 
95 
96  private:
98  const AbstractPointItem &operator=(const AbstractPointItem &other);
99 
100  SurfacePoint prepareSigmas(Distance, SurfacePoint);
101  SurfacePoint prepareSurfacePoint(Latitude, SurfacePoint);
102  SurfacePoint prepareSurfacePoint(Longitude, SurfacePoint);
103  SurfacePoint prepareSurfacePoint(Distance, SurfacePoint);
104  SurfacePoint prepareSurfacePoint(SurfacePoint);
105 
106 
107  private:
108  ControlPoint *m_point;
109  };
110 }
111 
112 #endif
Isis::AbstractPointItem::AdjustedSPRadius
@ AdjustedSPRadius
Definition: AbstractPointItem.h:54
Isis::AbstractPointItem::AdjustedSPLonSigma
@ AdjustedSPLonSigma
Definition: AbstractPointItem.h:56
Isis::Angle::Degrees
@ Degrees
Degrees are generally considered more human readable, 0-360 is one circle, however most math does not...
Definition: Angle.h:56
Isis::AbstractPointItem::sourceDeleted
virtual void sourceDeleted()
Definition: AbstractPointItem.cpp:479
Isis::AbstractTreeItem::Point
@ Point
Definition: AbstractTreeItem.h:46
Isis::AbstractPointItem::EditLock
@ EditLock
Definition: AbstractPointItem.h:49
Isis::AbstractTreeItem::parent
AbstractTreeItem * parent() const
Definition: AbstractTreeItem.cpp:46
TableColumn.h
Isis::ControlPoint::SetAprioriRadiusSourceFile
Status SetAprioriRadiusSourceFile(QString sourceFile)
This updates the filename of the DEM that the apriori radius came from.
Definition: ControlPoint.cpp:755
Isis::ControlPoint::SetIgnored
Status SetIgnored(bool newIgnoreStatus)
Set whether to ignore or use control point.
Definition: ControlPoint.cpp:653
Isis::Latitude
This class is designed to encapsulate the concept of a Latitude.
Definition: Latitude.h:51
Isis::ControlPoint::SetChooserName
Status SetChooserName(QString name)
Set the point's chooser name.
Definition: ControlPoint.cpp:487
Isis::ControlPoint::GetChooserName
QString GetChooserName() const
Definition: ControlPoint.cpp:1242
Isis::AbstractPointItem::APrioriRadiusSourceFile
@ APrioriRadiusSourceFile
Definition: AbstractPointItem.h:67
Isis::SurfacePoint::GetLonSigmaDistance
Distance GetLonSigmaDistance() const
Return the longitude sigma in meters.
Definition: SurfacePoint.cpp:1763
Isis::CnetDisplayProperties::getInstance
static CnetDisplayProperties * getInstance()
Definition: CnetDisplayProperties.cpp:39
Isis::AbstractPointItem::APrioriSPSource
@ APrioriSPSource
Definition: AbstractPointItem.h:64
Isis::ControlPoint::SetEditLock
Status SetEditLock(bool editLock)
Set the EditLock state.
Definition: ControlPoint.cpp:522
Isis::AbstractPointItem::Ignored
@ Ignored
Definition: AbstractPointItem.h:50
Isis::AbstractPointItem::DateTime
@ DateTime
Definition: AbstractPointItem.h:48
Isis::ControlPoint::GetAdjustedSurfacePoint
SurfacePoint GetAdjustedSurfacePoint() const
Definition: ControlPoint.cpp:1282
Isis::AbstractPointItem::~AbstractPointItem
virtual ~AbstractPointItem()
Definition: AbstractPointItem.cpp:165
Isis::AbstractPointItem::getPointerType
InternalPointerType getPointerType() const
Definition: AbstractPointItem.cpp:465
Isis::ControlPoint::SetAdjustedSurfacePoint
Status SetAdjustedSurfacePoint(SurfacePoint newSurfacePoint)
Set or update the surface point relating to this control point.
Definition: ControlPoint.cpp:692
Isis::SurfacePoint::GetLatSigmaDistance
Distance GetLatSigmaDistance() const
Return the latitude sigma as a Distance.
Definition: SurfacePoint.cpp:1747
Isis::ControlPoint::GetNumMeasures
int GetNumMeasures() const
Definition: ControlPoint.cpp:1702
CnetDisplayProperties.h
AbstractPointItem.h
Isis::AbstractPointItem::hasPoint
bool hasPoint(ControlPoint *) const
Definition: AbstractPointItem.cpp:475
Isis::AbstractPointItem::isDataEditable
bool isDataEditable(QString columnTitle) const
Definition: AbstractPointItem.cpp:431
Longitude.h
Isis::TableColumnList::append
void append(TableColumn *newCol)
Definition: TableColumnList.cpp:72
Isis::AbstractPointItem::AdjustedSPLatSigma
@ AdjustedSPLatSigma
Definition: AbstractPointItem.h:55
Isis::ControlPoint::GetAprioriSurfacePoint
SurfacePoint GetAprioriSurfacePoint() const
Definition: ControlPoint.cpp:1566
Isis::AbstractPointItem::getColumnName
static QString getColumnName(Column)
Definition: AbstractPointItem.cpp:30
Isis::SurfacePoint::GetLatitude
Latitude GetLatitude() const
Return the body-fixed latitude for the surface point.
Definition: SurfacePoint.cpp:1665
Isis::ControlPoint::IsEditLocked
bool IsEditLocked() const
Definition: ControlPoint.cpp:1272
Isis::TableColumn
Definition: TableColumn.h:26
Isis::ControlPoint::GetId
QString GetId() const
Return the Id of the control point.
Definition: ControlPoint.cpp:1306
Isis::ControlPoint::GetDateTime
QString GetDateTime() const
Definition: ControlPoint.cpp:1262
Isis::AbstractPointItem::APrioriSPRadiusSigma
@ APrioriSPRadiusSigma
Definition: AbstractPointItem.h:63
Isis::AbstractPointItem::APrioriRadiusSource
@ APrioriRadiusSource
Definition: AbstractPointItem.h:66
Isis::ControlPoint::SetAprioriSurfacePointSourceFile
Status SetAprioriSurfacePointSourceFile(QString sourceFile)
This updates the filename of where the apriori surface point came from.
Definition: ControlPoint.cpp:839
Isis::ControlPoint::GetAprioriRadiusSourceFile
QString GetAprioriRadiusSourceFile() const
Definition: ControlPoint.cpp:1676
Isis::AbstractPointItem::setData
void setData(QString const &columnTitle, QString const &newData)
Definition: AbstractPointItem.cpp:270
Isis::Distance
Distance measurement, usually in meters.
Definition: Distance.h:34
Isis::Longitude
This class is designed to encapsulate the concept of a Longitude.
Definition: Longitude.h:40
Isis::ControlPoint::GetRadiusSourceString
QString GetRadiusSourceString() const
Obtain a string representation of the RadiusSource.
Definition: ControlPoint.cpp:1480
Isis::AbstractPointItem::getColumn
static Column getColumn(QString)
Definition: AbstractPointItem.cpp:87
Isis::AbstractPointItem::APrioriSPSourceFile
@ APrioriSPSourceFile
Definition: AbstractPointItem.h:65
Isis::ControlMeasure::GetCubeSerialNumber
QString GetCubeSerialNumber() const
Return the serial number of the cube containing the coordinate.
Definition: ControlMeasure.cpp:557
Isis::ControlPoint
A single control point.
Definition: ControlPoint.h:354
Isis::Distance::Meters
@ Meters
The distance is being specified in meters.
Definition: Distance.h:43
Isis::AbstractPointItem::AbstractPointItem
AbstractPointItem(ControlPoint *cp, int avgCharWidth, AbstractTreeItem *parent=0)
Definition: AbstractPointItem.cpp:154
Isis::AbstractPointItem::Column
Column
Definition: AbstractPointItem.h:44
ControlNet.h
Latitude.h
Isis::AbstractTreeItem::calcDataWidth
virtual void calcDataWidth(int avgCharWidth)
Definition: AbstractTreeItem.cpp:194
Isis::ControlPoint::SetRefMeasure
Status SetRefMeasure(ControlMeasure *cm)
Set the point's reference measure.
Definition: ControlPoint.cpp:570
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::AbstractPointItem::JigsawRejected
@ JigsawRejected
Definition: AbstractPointItem.h:68
Isis::ControlPoint::SetAprioriSurfacePoint
Status SetAprioriSurfacePoint(SurfacePoint aprioriSP)
This updates the apriori surface point.
Definition: ControlPoint.cpp:779
Isis::ControlPoint::SetType
Status SetType(PointType newType)
Updates the control point's type.
Definition: ControlPoint.cpp:709
Isis::TableColumnList
Definition: TableColumnList.h:30
Isis::ControlPoint::GetSurfacePointSourceString
QString GetSurfacePointSourceString() const
Obtain a string representation of the SurfacePointSource.
Definition: ControlPoint.cpp:1561
Isis::ControlPoint::GetNumLockedMeasures
int GetNumLockedMeasures() const
Returns the number of locked control measures.
Definition: ControlPoint.cpp:1728
AbstractTreeItem.h
Isis::ControlPoint::SetId
Status SetId(QString id)
Sets the Id of the control point.
Definition: ControlPoint.cpp:552
Isis::ControlPoint::StringToSurfacePointSource
static SurfacePointSource::Source StringToSurfacePointSource(QString str)
Obtain a SurfacePoint::Source from a string.
Definition: ControlPoint.cpp:1530
Isis::ControlPoint::StringToRadiusSource
static RadiusSource::Source StringToRadiusSource(QString str)
Obtain a RadiusSource::Source from a string.
Definition: ControlPoint.cpp:1448
Isis::ControlPoint::SetDateTime
Status SetDateTime(QString newDateTime)
Set the point's last modified time.
Definition: ControlPoint.cpp:504
Isis::AbstractPointItem::COLS
static const int COLS
Definition: AbstractPointItem.h:70
Isis::AbstractPointItem
Base class for a point item in the tree.
Definition: AbstractPointItem.h:40
Isis::Distance::isValid
bool isValid() const
Test if this distance has been initialized or not.
Definition: Distance.cpp:192
Isis::AbstractPointItem::APrioriSPRadius
@ APrioriSPRadius
Definition: AbstractPointItem.h:60
Isis::AbstractPointItem::APrioriSPLat
@ APrioriSPLat
Definition: AbstractPointItem.h:58
Isis::AbstractPointItem::APrioriSPLatSigma
@ APrioriSPLatSigma
Definition: AbstractPointItem.h:61
ControlPoint.h
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::ControlPoint::GetAprioriSurfacePointSourceFile
QString GetAprioriSurfacePointSourceFile() const
Definition: ControlPoint.cpp:1697
ASSERT
#define ASSERT(x)
Definition: IsisDebug.h:134
Isis::SurfacePoint::GetLongitude
Longitude GetLongitude() const
Return the body-fixed longitude for the surface point.
Definition: SurfacePoint.cpp:1685
Isis::ControlPoint::Parent
ControlNet * Parent()
Definition: ControlPoint.h:466
Isis::ControlPoint::IsRejected
bool IsRejected() const
Definition: ControlPoint.cpp:1277
Isis::AbstractTreeItem::getFormattedData
virtual QString getFormattedData() const
Definition: AbstractTreeItem.cpp:66
Isis::AbstractPointItem::APrioriSPLonSigma
@ APrioriSPLonSigma
Definition: AbstractPointItem.h:62
Isis::AbstractPointItem::getData
QVariant getData() const
Definition: AbstractPointItem.cpp:170
Isis::AbstractPointItem::getPointer
void * getPointer() const
Definition: AbstractPointItem.cpp:470
IException.h
Isis::SurfacePoint::GetLocalRadius
Distance GetLocalRadius() const
Return the radius of the surface point.
Definition: SurfacePoint.cpp:1732
Isis::IException::Programmer
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
Isis::ControlPoint::GetRefMeasure
const ControlMeasure * GetRefMeasure() const
Get the reference control measure.
Definition: ControlPoint.cpp:457
Isis::SurfacePoint::SetSphericalCoordinates
void SetSphericalCoordinates(const Latitude &lat, const Longitude &lon, const Distance &radius)
Update spherical coordinates (lat/lon/radius)
Definition: SurfacePoint.cpp:553
Isis::AbstractTreeItem::catchNull
static double catchNull(QString)
Definition: AbstractTreeItem.cpp:224
Isis::Distance::meters
double meters() const
Get the distance in meters.
Definition: Distance.cpp:85
Isis::ControlNet::DeletePoint
int DeletePoint(ControlPoint *point)
Delete a ControlPoint from the network by the point's address.
Definition: ControlNet.cpp:879
Isis::AbstractPointItem::AdjustedSPLat
@ AdjustedSPLat
Definition: AbstractPointItem.h:52
Isis::Angle::degrees
double degrees() const
Get the angle in units of Degrees.
Definition: Angle.h:232
Isis::ControlPoint::IsIgnored
bool IsIgnored() const
Definition: ControlPoint.cpp:1311
Isis::ControlPoint::SetAprioriSurfacePointSource
Status SetAprioriSurfacePointSource(SurfacePointSource::Source source)
This updates the source of the surface point.
Definition: ControlPoint.cpp:821
Isis::ControlPoint::HasSerialNumber
bool HasSerialNumber(QString serialNumber) const
Return true if given serial number exists in point.
Definition: ControlPoint.cpp:1746
QObject
Isis::AbstractPointItem::Id
@ Id
Definition: AbstractPointItem.h:45
Isis::SurfacePoint::SetSphericalSigmasDistance
void SetSphericalSigmasDistance(const Distance &latSigma, const Distance &lonSigma, const Distance &radiusSigma)
Set the spherical sigmas (in Distance units) into the spherical variance/covariance matrix.
Definition: SurfacePoint.cpp:617
Isis::AbstractPointItem::APrioriSPLon
@ APrioriSPLon
Definition: AbstractPointItem.h:59
Isis::AbstractPointItem::createColumns
static TableColumnList * createColumns()
Definition: AbstractPointItem.cpp:99
IsisDebug.h
Isis::AbstractPointItem::AdjustedSPRadiusSigma
@ AdjustedSPRadiusSigma
Definition: AbstractPointItem.h:57
Isis::AbstractPointItem::PointType
@ PointType
Definition: AbstractPointItem.h:46
Isis::ControlPoint::StringToPointType
static PointType StringToPointType(QString pointTypeString)
Obtain a PointType given a string representation of it.
Definition: ControlPoint.cpp:1359
TableColumnList.h
Isis::AbstractTreeItem
Base class for an item in the tree.
Definition: AbstractTreeItem.h:39
Isis::SurfacePoint
This class defines a body-fixed surface point.
Definition: SurfacePoint.h:132
Isis::AbstractTreeItem::InternalPointerType
InternalPointerType
Definition: AbstractTreeItem.h:44
Isis::SurfacePoint::GetLocalRadiusSigma
Distance GetLocalRadiusSigma() const
Definition: SurfacePoint.cpp:1776
Isis::AbstractPointItem::ChooserName
@ ChooserName
Definition: AbstractPointItem.h:47
Isis::AbstractPointItem::AdjustedSPLon
@ AdjustedSPLon
Definition: AbstractPointItem.h:53
ControlMeasure.h
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::ControlPoint::GetPointTypeString
QString GetPointTypeString() const
Obtain a string representation of the PointType.
Definition: ControlPoint.cpp:1392
Isis::ControlPoint::SetAprioriRadiusSource
Status SetAprioriRadiusSource(RadiusSource::Source source)
This updates the source of the radius of the apriori surface point.
Definition: ControlPoint.cpp:736
Isis::IException::User
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126
Isis::AbstractPointItem::deleteSource
void deleteSource()
Definition: AbstractPointItem.cpp:445
Isis::AbstractPointItem::Reference
@ Reference
Definition: AbstractPointItem.h:51