Line data Source code
1 : /****************************************************************************** 2 : * 3 : * Purpose: PCIDSK PCT segment interface class. 4 : * 5 : ****************************************************************************** 6 : * Copyright (c) 2009 7 : * PCI Geomatics, 90 Allstate Parkway, Markham, Ontario, Canada. 8 : * 9 : * Permission is hereby granted, free of charge, to any person obtaining a 10 : * copy of this software and associated documentation files (the "Software"), 11 : * to deal in the Software without restriction, including without limitation 12 : * the rights to use, copy, modify, merge, publish, distribute, sublicense, 13 : * and/or sell copies of the Software, and to permit persons to whom the 14 : * Software is furnished to do so, subject to the following conditions: 15 : * 16 : * The above copyright notice and this permission notice shall be included 17 : * in all copies or substantial portions of the Software. 18 : * 19 : * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 20 : * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 21 : * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 22 : * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 23 : * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 24 : * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 25 : * DEALINGS IN THE SOFTWARE. 26 : ****************************************************************************/ 27 : #ifndef INCLUDE_PCIDSK_PCT_H 28 : #define INCLUDE_PCIDSK_PCT_H 29 : 30 : #include <string> 31 : #include <vector> 32 : 33 : namespace PCIDSK 34 : { 35 : /************************************************************************/ 36 : /* PCIDSK_PCT */ 37 : /************************************************************************/ 38 : 39 : //! Interface to PCIDSK pseudo-color segment. 40 : 41 : class PCIDSK_DLL PCIDSK_PCT 42 : { 43 : public: 44 2 : virtual ~PCIDSK_PCT() {} 45 : 46 : /** 47 : \brief Read a PCT Segment (SEG_PCT). 48 : 49 : @param pct Pseudo-Color Table buffer (768 entries) into which the 50 : pseudo-color table is read. It consists of the red gun output 51 : values (pct[0-255]), followed by the green gun output values (pct[256-511]) 52 : and ends with the blue gun output values (pct[512-767]). 53 : 54 : */ 55 : virtual void ReadPCT( unsigned char pct[768] ) = 0; 56 : 57 : /** 58 : \brief Write a PCT Segment. 59 : 60 : @param pct Pseudo-Color Table buffer (768 entries) from which the 61 : pseudo-color table is written. It consists of the red gun output 62 : values (pct[0-255]), followed by the green gun output values (pct[256-511]) 63 : and ends with the blue gun output values (pct[512-767]). 64 : 65 : */ 66 : virtual void WritePCT( unsigned char pct[768] ) = 0; 67 : }; 68 : } // end namespace PCIDSK 69 : 70 : #endif // INCLUDE_PCIDSK_PCT_H