/usr/include/ossim/base/ossimMatrixProperty.h is in libossim-dev 2.2.2-1.
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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts (gpotts@imagelinks.com)
//
//*************************************************************************
// $Id: ossimMatrixProperty.h 17074 2010-04-14 18:49:11Z dburken $
#ifndef ossimMatrixProperty_HEADER
#define ossimMatrixProperty_HEADER
#include <vector>
#include <ossim/base/ossimProperty.h>
class OSSIMDLLEXPORT ossimMatrixProperty : public ossimProperty
{
public:
ossimMatrixProperty(const ossimString& name=ossimString(""),
const std::vector<double>& values = std::vector<double>(),
int numberOfRows = 0,
int numberOfColumns = 0);
ossimMatrixProperty(const ossimMatrixProperty& rhs);
virtual ~ossimMatrixProperty();
virtual ossimObject* dup()const;
virtual const ossimProperty& assign(const ossimProperty& rhs);
virtual bool setValue(const ossimString& value);
virtual void valueToString(ossimString& valueResult)const;
void resize(int numberOfRows,
int numberOfColumns);
double& operator ()(int rowIdx,
int colIdx);
const double& operator()(int rowIdx,
int colIdx)const;
int getNumberOfRows()const;
int getNumberOfCols()const;
void clearConstraints();
/*!
* If any of the constraints are set to something < 0 then it means there
* isn't a constraint for that value. So if you give a min value of -1
* and a max value of 10 then the column can grow from 10 downto 0.
*/
void setColConstraints(int minNumberOfColumns,
int maxNumberOfColumns);
/*!
* If any of the contraints are set to something < 0 then it means there
* isn't a constraint for that value. So if you give a min value of -1
* and a max value of 10 then the row can grow from 10 downto 0.
*/
void setRowConstraints(int minNumberOfRows,
int maxNumberOfRows);
void getColConstraints(int& minNumberOfColumns,
int& maxNumberOfColumns) const;
void getRowConstraints(int& minNumberOfRows,
int& maxNumberOfRows) const;
void normalize();
void zero();
protected:
std::vector< std::vector<double> > theValueArray;
int theMinNumberOfCols;
int theMaxNumberOfCols;
int theMinNumberOfRows;
int theMaxNumberOfRows;
double density()const;
TYPE_DATA
};
#endif
|