7 #ifndef PhotoBlock_HEADER 8 #define PhotoBlock_HEADER 1 26 public std::enable_shared_from_this<PhotoBlock>
41 std::shared_ptr<Image>
getImage(
const std::string& imageId);
42 std::shared_ptr<TiePoint>
getTiePoint(
unsigned int tpId);
43 std::shared_ptr<GroundControlPoint>
getGroundPoint(
const std::string& gpId);
57 unsigned int addImage(std::shared_ptr<Image> image);
64 unsigned int addGroundPoint(std::shared_ptr<GroundControlPoint> groundPoint);
71 unsigned int addTiePoint(std::shared_ptr<TiePoint> tiepoint);
83 virtual void loadJSON(
const Json::Value& json);
89 virtual void saveJSON(Json::Value& json)
const;
94 std::vector<std::shared_ptr<GroundControlPoint> >
m_gcpList;
std::vector< std::shared_ptr< TiePoint > > m_tiePointList
std::vector< std::shared_ptr< Image > > m_imageList
This code was derived from https://gist.github.com/mshockwave.
PhotoBlock()
Initialize the photoblock from a prior saved session.
PhotoBlock & operator=(const PhotoBlock ©this)
std::vector< std::shared_ptr< Image > > ImageList
Class for representing MSP PhotoBlock.
ImageList & getImageList()
void addTiePoints(TiePointList &tiepointList)
Adds the list of tiepoints to the PB.
std::vector< std::shared_ptr< TiePoint > > TiePointList
unsigned int addTiePoint(std::shared_ptr< TiePoint > tiepoint)
Adds the tiepoint to the PB.
virtual void loadJSON(const Json::Value &json)
std::vector< std::shared_ptr< GroundControlPoint > > & getGroundPointList()
Pure virtual interface for classes implementing JSON-based load/save state.
std::shared_ptr< TiePoint > getTiePoint(unsigned int tpId)
unsigned int addGroundPoint(std::shared_ptr< GroundControlPoint > groundPoint)
Adds the image to the photoblock at last position.
TiePointList & getTiePointList()
virtual void saveJSON(Json::Value &json) const
unsigned int addImage(std::shared_ptr< Image > image)
Adds the image to the photoblock at last position.
std::vector< std::shared_ptr< GroundControlPoint > > m_gcpList
std::shared_ptr< GroundControlPoint > getGroundPoint(const std::string &gpId)
std::shared_ptr< Image > getImage(const std::string &imageId)