OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimDoubleGridProperty.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: Garrett Potts (gpotts@imagelinks.com)
6 //
7 //*************************************************************************
8 // $Id: ossimDoubleGridProperty.h 9968 2006-11-29 14:01:53Z gpotts $
9 #ifndef ossimDoubleGridProperty_HEADER
10 #define ossimDoubleGridProperty_HEADER
12 
14 {
15 public:
17  int numberOfRows = 0,
18  int numberOfCols = 0,
19  const std::vector<double>& values = std::vector<double>());
21 
22  virtual ~ossimDoubleGridProperty();
23 
24  ossimObject* dup()const;
25 
26  virtual const ossimProperty& assign(const ossimProperty& rhs);
27 
28  virtual bool setValue(const ossimString& value);
29  virtual void valueToString(ossimString& valueResult)const;
30 
31  void clearConstraints();
40  void setColConstraints(int minNumberOfCols,
41  int maxNumberOfCols);
42 
43  void setRowConstraints(int minNumberOfRows,
44  int maxNumberOfRows);
45 
46  void setContraints(int minNumberOfRows,
47  int maxNumberOfRows,
48  int minNumberOfCols,
49  int maxNumberOfCols);
50 
51  ossim_uint32 getNumberOfRows()const;
52  ossim_uint32 getNumberOfCols()const;
53 
54  double getValue(ossim_uint32 row, ossim_uint32 col)const;
55 protected:
60  std::vector< std::vector<double> > theValues;
61 
62 
64 };
65 #endif
#define OSSIMDLLEXPORT
virtual const ossimProperty & assign(const ossimProperty &rhs)
virtual ossimString valueToString() const
std::vector< std::vector< double > > theValues
#define TYPE_DATA
Definition: ossimRtti.h:339
unsigned int ossim_uint32
virtual ossimObject * dup() const
Definition: ossimObject.cpp:29
virtual bool setValue(const ossimString &value)=0