OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimAdjustableParameterInfo.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: ossimAdjustableParameterInfo.h 9968 2006-11-29 14:01:53Z gpotts $
9 #ifndef ossimAdjustableParameterInfo_HEADER
10 #define ossimAdjustableParameterInfo_HEADER
11 #include <iostream>
13 #include <ossim/base/ossimString.h>
15 
17 {
18 public:
20 
22  : theParameter(0.0),
23  theSigma(0.0),
24  theCenter(0.0),
25  theUnit(OSSIM_UNIT_UNKNOWN),
26  theDescription(""),
27  theLockFlag(false)
28  {
29  }
31  :theParameter(rhs.theParameter),
32  theSigma(rhs.theSigma),
33  theCenter(rhs.theCenter),
34  theUnit(rhs.theUnit),
36  theLockFlag(rhs.theLockFlag)
37  {
38  }
39  double getParameter()const
40  {
41  return theParameter;
42  }
43  void setParameter(double parameter)
44  {
45  if(!theLockFlag)
46  {
47  theParameter = parameter;
48  }
49  }
50  double getSigma()const
51  {
52  return theSigma;
53  }
54  void setSigma(double sigma)
55  {
56  if(!theLockFlag)
57  {
58  theSigma = sigma;
59  }
60  }
62  {
63  return theDescription;
64  }
65 
66  void setDescription(const ossimString& description)
67  {
68  if(!theLockFlag)
69  {
70  theDescription = description;
71  }
72  }
73 
75  {
76  return theUnit;
77  }
79  {
80  theUnit = unit;
81  }
82  ossimString getUnitAsString()const;
83 
84  void setCenter(double center);
85  double getCenter()const;
86 
87  void setOffset(ossim_float64 value);
88 
92  double computeOffset()const;
93 
94  void setLockFlag(bool flag)
95  {
96  theLockFlag = flag;
97  }
98  bool getLockFlag()const
99  {
100  return theLockFlag;
101  }
102 
103  bool loadState(const ossimKeywordlist& kwl,
104  const ossimString& prefix=ossimString(""));
105 
106  bool saveState(ossimKeywordlist& kwl,
107  const ossimString& prefix=ossimString(""))const;
108 protected:
109  double theParameter;
110  double theSigma;
111  double theCenter;
115 };
116 
117 #endif
ossimUnitType
Represents serializable keyword/value map.
ossimAdjustableParameterInfo(const ossimAdjustableParameterInfo &rhs)
double ossim_float64
ostream & operator<<(ostream &out, const ossimAxes &axes)
Definition: ossimAxes.h:88
#define OSSIM_DLL
ossimString theDescription
const ossimString & getDescription() const
void setDescription(const ossimString &description)
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23