00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "controler-gmap-types.hh"
00026 #include "parameter-gmap-vertex.hh"
00027 #include <cassert>
00028 using namespace std;
00029 using namespace GMap3d;
00030
00031 CParameterGMapVertex::CParameterGMapVertex(CGMapVertex* AGMap, int ANbRef) :
00032 CParameter (ANbRef),
00033 FMap (AGMap),
00034 FChanged (false),
00035 FPartialChanged (false),
00036 FMarkPartialChanged(-1),
00037 FBlocked (false)
00038 {}
00039
00040 CParameterGMapVertex::
00041 CParameterGMapVertex(const CParameterGMapVertex & AParam) :
00042 FMap (AParam.FMap),
00043 FChanged (false),
00044 FPartialChanged (false),
00045 FMarkPartialChanged(-1),
00046 FBlocked (false)
00047 {}
00048
00049 CParameterGMapVertex::~CParameterGMapVertex()
00050 {}
00051
00052 CParameter * CParameterGMapVertex::copy() const
00053 { return new CParameterGMapVertex(*this); }
00054
00055 void CParameterGMapVertex::save(ostream& AStream)
00056 {}
00057
00058 void CParameterGMapVertex::load(istream& AStream)
00059 {}
00060
00061 void CParameterGMapVertex::reinit()
00062 {}
00063
00064 CGMapVertex* CParameterGMapVertex::getMap() const
00065 { return FMap; }
00066
00067 void CParameterGMapVertex::setMap(CGMapVertex* AMap)
00068 {
00069 if ( AMap!=FMap )
00070 {
00071 FMap = AMap;
00072 setChanged();
00073 }
00074 }
00075
00076 bool CParameterGMapVertex::getChanged() const
00077 { return FChanged; }
00078
00079 void CParameterGMapVertex::setChanged()
00080 {
00081 if ( !FChanged )
00082 {
00083 FChanged = true;
00084 putAllNeedToUpdate();
00085 }
00086 }
00087
00088 void CParameterGMapVertex::unsetChanged()
00089 {
00090 FChanged = false;
00091 FPartialChanged = false;
00092 }
00093
00094 bool CParameterGMapVertex::getPartialChanged() const
00095 { return FPartialChanged; }
00096
00097 void CParameterGMapVertex::setPartialChanged()
00098 {
00099 if ( !FPartialChanged && !FChanged )
00100 {
00101 FPartialChanged = true;
00102 putAllNeedToUpdate();
00103 }
00104 }
00105
00106 void CParameterGMapVertex::unsetPartialChanged()
00107 { FPartialChanged = false; }
00108
00109 bool CParameterGMapVertex::getBlocked() const
00110 { return FBlocked; }
00111
00112 void CParameterGMapVertex::setBlocked()
00113 { FBlocked = true; }
00114
00115 void CParameterGMapVertex::unsetBlocked()
00116 {
00117 if ( FBlocked )
00118 {
00119 FBlocked = false;
00120 putAllNeedToUpdate();
00121 }
00122 }
00123
00124 void CParameterGMapVertex::setBurstMethod(TBurstMethod AMethod)
00125 {
00126 if (AMethod != getBurstMethod())
00127 {
00128 FMap->setBurstMethod(AMethod);
00129 FChanged = true;
00130 putAllNeedToUpdate();
00131 }
00132 }
00133
00134 TBurstMethod CParameterGMapVertex::getBurstMethod() const
00135 { return FMap->getBurstMethod(); }
00136
00137 int CParameterGMapVertex::getMarkPartialChanged() const
00138 { return FMarkPartialChanged; }
00139
00140 void CParameterGMapVertex::setMarkPartialChanged(int AValue)
00141 { FMarkPartialChanged = AValue; }
00142
00143 int CParameterGMapVertex::getType() const
00144 { return PARAMETER_GMAP_VERTEX; }
00145