OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimAdjustmentInfo.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: ossimAdjustmentInfo.h 23258 2015-04-15 15:54:10Z dburken $
9 #ifndef ossimAdjustmentInfo_HEADER
10 #define ossimAdjustmentInfo_HEADER
11 #include <vector>
13 #include <ossim/base/ossimString.h>
15 
17 {
18 public:
19  friend std::ostream& operator <<(std::ostream& out, const ossimAdjustmentInfo& data);
20 
21 
22  ossimAdjustmentInfo(int numberOfAdjustableParameters=0);
24 
25  void setNumberOfAdjustableParameters(ossim_uint32 numberOfAdjustableParameters);
26  ossim_uint32 getNumberOfAdjustableParameters()const;
28  void setDescription(const ossimString& description);
29  bool isDirty()const;
30  void setDirtyFlag(bool flag=true);
31  void setLockParameterFlag(bool flag,
32  ossim_uint32 idx);
33  void keep();
34 
35  std::vector<ossimAdjustableParameterInfo>& getParameterList();
36  const std::vector<ossimAdjustableParameterInfo>& getParameterList()const;
37  void setLockFlag(bool flag,ossim_uint32 idx);
38 
39  bool saveState(ossimKeywordlist& kwl,
40  const ossimString& prefix=ossimString(""))const;
41  bool loadState(const ossimKeywordlist& kwl,
42  const ossimString& prefix=ossimString(""));
43 
44 private:
45  std::vector<ossimAdjustableParameterInfo> theParameterList;
47  mutable bool theDirtyFlag;
48 };
49 
50 #endif
Represents serializable keyword/value map.
ostream & operator<<(ostream &out, const ossimAxes &axes)
Definition: ossimAxes.h:88
unsigned int ossim_uint32
#define OSSIM_DLL
std::vector< ossimAdjustableParameterInfo > theParameterList
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
const char * getDescription()