/usr/include/rtd/ITTInfo.h is in skycat 3.1.2+starlink1~b-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | // -*-c++-*-
#ifndef _ITTInfo_h_
#define _ITTInfo_h_
/*
* E.S.O. - VLT project
* "@(#) $Id: ITTInfo.h,v 1.1.1.1 2009/03/31 14:11:52 cguirao Exp $"
*
* ITTInfo.h - class definitions for reading in ITT
* (intensity transfer table) files
*
* See the man page for a complete description.
*
* who when what
* -------------- -------- ----------------------------------------
* Allan Brighton 05/10/95 Created
* pbiereic 17/02/03 Added 'using namespace std'. Removed ::std specs.
*/
using namespace std;
#include <sys/types.h>
#include <iostream>
enum {MAX_ITT=256}; /* work with 8bit color */
// one of these is used to hold ITT info for each ITT
// file read
class ITTInfo {
private:
char* name_; // filename
double* value_; // array of ITT values
ITTInfo* next_; // pointer to next ITT
// copy constructor (not defined)
ITTInfo(const ITTInfo&);
public:
// constructor
ITTInfo(char* name, double* value);
// destructor
~ITTInfo();
// create and return ITT from a file description
static ITTInfo* get(char* filename);
// write a list of ITT files
static void list(ostream&);
// member access
const char* name() const {return name_;}
ITTInfo* next() {return next_;}
// Copy the rgb color values from src to dest and interpolate based
// on the ITT table and the count of available colors
void interpolate(XColor* src, XColor* dest, int colorCount);
// Copy the rgb color values from src to dest as above,
// and also scale the ITT values by the given amount
void scale(int amount, XColor* src, XColor* dest, int colorCount);
};
#endif /* _ITTInfo_h_ */
|