| 1 | /****************************************************************************** |
| 2 | * |
| 3 | * Purpose: Declaration of access to a PCIDSK GCP2 Segment |
| 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_SEGMENT_CPCIDSKGCP2SEGMENT_H |
| 12 | #define INCLUDE_SEGMENT_CPCIDSKGCP2SEGMENT_Hcxx . . $ `frmts/pcidsk/sdk/segment/cpcidskgcp2segment.h:12:9`! |
| 13 | |
| 14 | #include "pcidsk_gcp.h"cxx . . $ `<file>/frmts/pcidsk/sdk/pcidsk_gcp.h`/ |
| 15 | #include "pcidsk_gcpsegment.h"cxx . . $ `<file>/frmts/pcidsk/sdk/pcidsk_gcpsegment.h`/ |
| 16 | #include "segment/cpcidsksegment.h"cxx . . $ `<file>/frmts/pcidsk/sdk/segment/cpcidsksegment.h`/ |
| 17 | |
| 18 | namespace PCIDSKcxx . . $ PCIDSK/ { |
| 19 | class CPCIDSKGCP2Segmentcxx . . $ PCIDSK/CPCIDSKGCP2Segment# final: virtual public PCIDSKGCPSegmentcxx . . $ PCIDSK/PCIDSKGCPSegment#, |
| 20 | public CPCIDSKSegmentcxx . . $ PCIDSK/CPCIDSKSegment# |
| 21 | { |
| 22 | public: |
| 23 | CPCIDSKGCP2Segmentcxx . . $ PCIDSK/CPCIDSKGCP2Segment#CPCIDSKGCP2Segment(d0bdcc742655b657).(PCIDSKFilecxx . . $ PCIDSK/PCIDSKFile# *file, int segment,const char *segment_pointer); |
| 24 | ~cxx . . $ PCIDSK/CPCIDSKGCP2Segment#`~CPCIDSKGCP2Segment`(ced63f7c635d850d).CPCIDSKGCP2Segmentcxx . . $ PCIDSK/CPCIDSKGCP2Segment#() override; |
| 25 | |
| 26 | // Return all GCPs in the segment |
| 27 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<PCIDSKcxx . . $ PCIDSK/::GCPcxx . . $ PCIDSK/GCP#> const& GetGCPscxx . . $ PCIDSK/CPCIDSKGCP2Segment#GetGCPs(cb6b10befd8ca2ed).(void) const override; |
| 28 | |
| 29 | // Write the given GCPs to the segment. If the segment already |
| 30 | // exists, it will be replaced with this one. |
| 31 | void SetGCPscxx . . $ PCIDSK/CPCIDSKGCP2Segment#SetGCPs(a6215e5baa751c22).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<PCIDSKcxx . . $ PCIDSK/::GCPcxx . . $ PCIDSK/GCP#> const& gcps) override; |
| 32 | |
| 33 | // Return the count of GCPs in the segment |
| 34 | unsigned int GetGCPCountcxx . . $ PCIDSK/CPCIDSKGCP2Segment#GetGCPCount(ddd8539a2fcdd4ce).(void) const override; |
| 35 | |
| 36 | // Clear a GCP Segment |
| 37 | void ClearGCPscxx . . $ PCIDSK/CPCIDSKGCP2Segment#ClearGCPs(49f6e7a06ebc5aa8).(void) override; |
| 38 | |
| 39 | void Synchronizecxx . . $ PCIDSK/CPCIDSKGCP2Segment#Synchronize(49f6e7a06ebc5aa8).() override; |
| 40 | private: |
| 41 | void Loadcxx . . $ PCIDSK/CPCIDSKGCP2Segment#Load(49f6e7a06ebc5aa8).(); |
| 42 | void RebuildSegmentDatacxx . . $ PCIDSK/CPCIDSKGCP2Segment#RebuildSegmentData(49f6e7a06ebc5aa8).(void); |
| 43 | bool loaded_cxx . . $ PCIDSK/CPCIDSKGCP2Segment#loaded_.; |
| 44 | |
| 45 | struct PCIDSKGCP2SegInfocxx . . $ PCIDSK/CPCIDSKGCP2Segment#PCIDSKGCP2SegInfo# |
| 46 | { |
| 47 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<PCIDSKcxx . . $ PCIDSK/::GCPcxx . . $ PCIDSK/GCP#> gcpscxx . . $ PCIDSK/CPCIDSKGCP2Segment#PCIDSKGCP2SegInfo#gcps.; |
| 48 | unsigned int num_gcpscxx . . $ PCIDSK/CPCIDSKGCP2Segment#PCIDSKGCP2SegInfo#num_gcps.; |
| 49 | PCIDSKBuffercxx . . $ PCIDSK/PCIDSKBuffer# seg_datacxx . . $ PCIDSK/CPCIDSKGCP2Segment#PCIDSKGCP2SegInfo#seg_data.; |
| 50 | |
| 51 | stdcxx . . $ std/::stringcxx . . $ std/string# map_unitscxx . . $ PCIDSK/CPCIDSKGCP2Segment#PCIDSKGCP2SegInfo#map_units.; ///< PCI mapunits string |
| 52 | stdcxx . . $ std/::stringcxx . . $ std/string# proj_parmscxx . . $ PCIDSK/CPCIDSKGCP2Segment#PCIDSKGCP2SegInfo#proj_parms.; ///< Additional projection parameters |
| 53 | unsigned int num_projcxx . . $ PCIDSK/CPCIDSKGCP2Segment#PCIDSKGCP2SegInfo#num_proj.; |
| 54 | bool changedcxx . . $ PCIDSK/CPCIDSKGCP2Segment#PCIDSKGCP2SegInfo#changed.; |
| 55 | }; |
| 56 | |
| 57 | PCIDSKGCP2SegInfocxx . . $ PCIDSK/CPCIDSKGCP2Segment#PCIDSKGCP2SegInfo#* pimpl_cxx . . $ PCIDSK/CPCIDSKGCP2Segment#pimpl_.; |
| 58 | }; |
| 59 | } |
| 60 | |
| 61 | #endif // INCLUDE_SEGMENT_CPCIDSKGCP2SEGMENT_H |
| 62 |