Line data Source code
1 : /****************************************************************************** 2 : * 3 : * Purpose: Interface through which a PCIDSK GCP Segment would be accessed 4 : * 5 : ****************************************************************************** 6 : * Copyright (c) 2009 7 : * PCI Geomatics, 90 Allstate Parkway, Markham, Ontario, Canada. 8 : * 9 : * SPDX-License-Identifier: MIT 10 : ****************************************************************************/ 11 : #ifndef INCLUDE_PCIDSK_PCIDSK_GCPSEGMENT_H 12 : #define INCLUDE_PCIDSK_PCIDSK_GCPSEGMENT_H 13 : 14 : #include "pcidsk_gcp.h" 15 : 16 : #include <vector> 17 : 18 : namespace PCIDSK { 19 : 20 : //! Interface to PCIDSK GCP segment. 21 : class PCIDSKGCPSegment 22 : { 23 : public: 24 : //! Return all GCPs in the segment 25 : virtual std::vector<PCIDSK::GCP> const& GetGCPs(void) const = 0; 26 : 27 : //! Write the given GCPs to the segment. If the segment already exists, it will be replaced with this one. 28 : virtual void SetGCPs(std::vector<PCIDSK::GCP> const& gcps) = 0; 29 : 30 : //! Return the count of GCPs in the segment 31 : virtual unsigned int GetGCPCount(void) const = 0; 32 : 33 : //! Clear a GCP Segment 34 : virtual void ClearGCPs(void) = 0; 35 : 36 : //! Virtual Destructor 37 0 : virtual ~PCIDSKGCPSegment(void) {} 38 : }; 39 : } // end namespace PCIDSK 40 : 41 : 42 : #endif // INCLUDE_PCIDSK_PCIDSK_GCPSEGMENT_H 43 :