32 using namespace GMap3d;
34 CParameterSpamod::CParameterSpamod(
int ANbRef) :
36 FViewMode (SPAMOD_TOPOLOGICAL)
38 FEuclidianParam[0] =
true;
39 FEuclidianParam[1] =
true;
41 FAnalyticParam [0] =
true;
42 FAnalyticParam [1] =
true;
43 FAnalyticParam [2] =
true;
44 FAnalyticParam [3] =
true;
46 FVoxelParam [0] =
true;
47 FVoxelParam [1] =
true;
48 FVoxelParam [2] =
true;
55 CParameterSpamod::CParameterSpamod(
const CParameterSpamod & AParam) :
57 FViewMode (AParam.FViewMode)
59 FEuclidianParam[0] = AParam.FEuclidianParam[0];
60 FEuclidianParam[1] = AParam.FEuclidianParam[1];
62 FAnalyticParam [0] = AParam.FAnalyticParam [0];
63 FAnalyticParam [1] = AParam.FAnalyticParam [1];
64 FAnalyticParam [2] = AParam.FAnalyticParam [2];
65 FAnalyticParam [3] = AParam.FAnalyticParam [3];
67 FVoxelParam [0] = AParam.FVoxelParam [0];
68 FVoxelParam [1] = AParam.FVoxelParam [1];
69 FVoxelParam [2] = AParam.FVoxelParam [2];
71 FK2Param [0] = AParam.FK2Param [0];
72 FK2Param [1] = AParam.FK2Param [1];
73 FK2Param [2] = AParam.FK2Param [2];
76 CParameterSpamod::~CParameterSpamod()
80 {
return new CParameterSpamod(*
this); }
82 void CParameterSpamod::save(ostream& )
85 void CParameterSpamod::load(istream& )
88 void CParameterSpamod::reinit()
91 int CParameterSpamod::getType()
const
93 return PARAMETER_SPAMOD;
96 void CParameterSpamod::setViewMode(TSpamodViewMode AMode)
98 if ( FViewMode!=AMode )
101 putAllNeedToUpdate();
105 void CParameterSpamod::setNextViewMode()
107 if (FViewMode==SPAMOD_K2) FViewMode=SPAMOD_TOPOLOGICAL;
108 else FViewMode = 1+(int)FViewMode;
109 putAllNeedToUpdate();
112 TSpamodViewMode CParameterSpamod::getViewMode()
const
117 bool CParameterSpamod::getEuclidianParam(
int AIndex)
119 assert(0<=AIndex && AIndex<=1);
120 return FEuclidianParam[AIndex];
123 void CParameterSpamod::setEuclidianParam(
int AIndex,
bool AValue)
125 assert(0<=AIndex && AIndex<=1);
126 FEuclidianParam[AIndex] = AValue;
129 bool CParameterSpamod::getAnalyticParam(
int AIndex)
131 assert(0<=AIndex && AIndex<=3);
132 return FAnalyticParam[AIndex];
135 void CParameterSpamod::setAnalyticParam(
int AIndex,
bool AValue)
137 assert(0<=AIndex && AIndex<=1);
138 FAnalyticParam[AIndex] = AValue;
141 bool CParameterSpamod::getVoxelParam(
int AIndex)
143 assert(0<=AIndex && AIndex<=2);
144 return FVoxelParam[AIndex];
147 void CParameterSpamod::setVoxelParam(
int AIndex,
bool AValue)
149 assert(0<=AIndex && AIndex<=1);
150 FVoxelParam[AIndex] = AValue;
153 bool CParameterSpamod::getK2Param(
int AIndex)
155 assert(0<=AIndex && AIndex<=2);
156 return FK2Param[AIndex];
159 void CParameterSpamod::setK2Param(
int AIndex,
bool AValue)
161 assert(0<=AIndex && AIndex<=1);
162 FK2Param[AIndex] = AValue;
165 #endif // MODULE_SPAMOD