31 using namespace GMap3d;
33 CParameterFace::CParameterFace(
int ANbRef) :
41 FBLFace (AParam.FBLFace),
42 FRandomCLFace (AParam.FRandomCLFace),
43 FRandomCLVolume (AParam.FRandomCLVolume),
44 FRandomColorGeometry(AParam.FRandomColorGeometry)
78 AStream<<
"CParameterFace:"<<endl;
80 AStream<<
" Color: "<<AParameter.FCLFace[0]<<
" "
81 <<AParameter.FCLFace[1]<<
" "<<AParameter.FCLFace[2]<<endl;
83 AStream<<
" Transparency: "<<AParameter.FBLFace<<endl;
85 AStream<<
" RandomColorFace: "<<AParameter.FRandomCLFace<<endl;
86 AStream<<
" RandomColorVolume: "<<AParameter.FRandomCLVolume<<endl;
87 AStream<<
" RandomColorGeometry: "<<AParameter.FRandomColorGeometry<<endl;
98 AStream>>tmp; assert ( !strcmp(tmp,
"CParameterFace:") );
100 AStream>>tmp; assert ( !strcmp(tmp,
"Color:") );
101 AStream>>AParameter.FCLFace[0]>>AParameter.FCLFace[1]
102 >>AParameter.FCLFace[2];
104 AStream>>tmp; assert ( !strcmp(tmp,
"Transparency:") );
105 AStream>>AParameter.FBLFace;
107 AStream>>tmp; assert ( !strcmp(tmp,
"RandomColorFace:") );
108 AStream>>AParameter.FRandomCLFace;
110 AStream>>tmp; assert ( !strcmp(tmp,
"RandomColorVolume:") );
111 AStream>>AParameter.FRandomCLVolume;
113 AStream>>tmp; assert ( !strcmp(tmp,
"RandomColorGeometry:") );
114 AStream>>AParameter.FRandomColorGeometry;
125 assert(0<=AIndice && AIndice<=2);
126 return FCLFace[AIndice];
130 assert(0<=AIndice && AIndice<=2);
131 if ( FCLFace[AIndice]!=AValue )
134 FCLFace[AIndice]= AValue;
141 if ( FCLFace[0]!=AValue0 ||
142 FCLFace[1]!=AValue1 ||
143 FCLFace[2]!=AValue2 )
158 if ( FBLFace!=AValue )
166 {
return FRandomCLFace; }
170 if ( FRandomCLFace!=AValue )
173 FRandomCLFace=AValue;
178 {
return FRandomCLVolume; }
182 if ( FRandomCLVolume!=AValue )
185 FRandomCLVolume = AValue;
190 {
return FRandomColorGeometry; }
194 if ( FRandomColorGeometry!=AValue )
197 FRandomColorGeometry = AValue;