27 #include "transformation-matrix.hh"
28 #include "geometry.hh"
30 using namespace GMap3d;
32 CParameterObjectScale::CParameterObjectScale(
int ANbRef) :
37 FCoef (CVertex(1.0,1.0,1.0)),
45 FScaleType (AParam.FScaleType),
46 FCenter (AParam.FCenter),
47 FVector (AParam.FVector),
49 FPonderation(AParam.FPonderation),
50 FIsoScale (AParam.FIsoScale)
76 if (FScaleType != AScaleType)
79 FScaleType = AScaleType;
93 if (FCenter != ACenter)
107 if (FVector != AVector && !AVector.isNull())
120 {
return FIsoScale; }
131 { FCoef.setXYZ(AValue,AValue,AValue); }
135 assert( FCoef.getX()==FCoef.getY() && FCoef.getY()==FCoef.getZ() );
158 assert(0 <= ADim && ADim < 3);
159 return FCoef.getCoord(ADim);
164 if (FPonderation != AActive)
167 FPonderation = AActive;