16 const std::vector<double>& values,
20 theMinNumberOfCols(-1),
21 theMaxNumberOfCols(-1),
22 theMinNumberOfRows(-1),
23 theMaxNumberOfRows(-1)
25 resize(numberOfRows, numberOfCols);
27 if((
int)values.size() == numberOfRows*numberOfCols)
46 theValueArray(rhs.theValueArray),
47 theMinNumberOfCols(rhs.theMinNumberOfCols),
48 theMaxNumberOfCols(rhs.theMaxNumberOfCols),
49 theMinNumberOfRows(rhs.theMaxNumberOfCols),
50 theMaxNumberOfRows(rhs.theMaxNumberOfRows)
88 in>>numberOfRows >> numberOfCols;
137 int tempNumberOfRows = numberOfRows;
138 int tempNumberOfCols = numberOfCols;
172 if((currentNumberOfRows != tempNumberOfRows) ||
173 (currentNumberOfCols != tempNumberOfCols))
175 std::vector< std::vector<double> > tempValue =
theValueArray;
179 int minCols =
ossim::min((
int)currentNumberOfCols,
180 (
int)tempNumberOfCols);
184 for(rowIdx = 0 ; rowIdx < tempNumberOfRows; ++rowIdx)
189 if(tempNumberOfRows < currentNumberOfRows)
191 for(colIdx = 0 ; colIdx < minCols; ++colIdx)
250 int& maxNumberOfCols)
const 257 int& maxNumberOfRows)
const 265 double densityValue =
density();
273 for(rowIdx = 0 ; rowIdx < (int)
theValueArray.size(); ++rowIdx)
287 for(rowIdx = 0 ; rowIdx < (int)
theValueArray.size(); ++rowIdx)
306 for(rowIdx = 0 ; rowIdx < (int)
theValueArray.size(); ++rowIdx)
int getNumberOfCols() const
void getColConstraints(int &minNumberOfColumns, int &maxNumberOfColumns) const
double & operator()(int rowIdx, int colIdx)
void resize(int numberOfRows, int numberOfColumns)
static ossimString toString(bool aValue)
Numeric to string methods.
virtual const ossimProperty & assign(const ossimProperty &rhs)
virtual const ossimProperty & assign(const ossimProperty &rhs)
std::vector< std::vector< double > > theValueArray
virtual ossimString valueToString() const
ossim_int32 toInt32() const
ossimMatrixProperty(const ossimString &name=ossimString(""), const std::vector< double > &values=std::vector< double >(), int numberOfRows=0, int numberOfColumns=0)
virtual ossimObject * dup() const
void getRowConstraints(int &minNumberOfRows, int &maxNumberOfRows) const
void setColConstraints(int minNumberOfColumns, int maxNumberOfColumns)
virtual bool setValue(const ossimString &value)
int getNumberOfRows() const
std::basic_istringstream< char > istringstream
Class for char input memory streams.
RTTI_DEF1(ossimMatrixProperty, "ossimMatrixProperty", ossimProperty)
void setRowConstraints(int minNumberOfRows, int maxNumberOfRows)
virtual ~ossimMatrixProperty()