31 using namespace GMap3d;
33 CParameterPreview::CParameterPreview(
int ANbRef) :
42 FLWPreview (AParam.FLWPreview),
43 FLWPreviewPoint(AParam.FLWPreviewPoint)
78 AStream<<
"CParameterPreview:"<<endl;
80 AStream<<
" LineWidth: "<<AParameter.FLWPreview<<endl;
82 AStream<<
" PointLineWidth: "<<AParameter.FLWPreviewPoint<<endl;
84 AStream<<
" Color: "<<AParameter.FCLPreview[0]<<
" "
85 <<AParameter.FCLPreview[1]<<
" "<<AParameter.FCLPreview[2]<<endl;
87 AStream<<
" ColorBad: "<<AParameter.FCLPreviewBad[0]<<
" "
88 <<AParameter.FCLPreviewBad[1]<<
" "<<AParameter.FCLPreviewBad[2]<<endl;
99 AStream>>tmp; assert ( !strcmp(tmp,
"CParameterPreview:") );
101 AStream>>tmp; assert ( !strcmp(tmp,
"LineWidth:") );
102 AStream>>AParameter.FLWPreview;
104 AStream>>tmp; assert ( !strcmp(tmp,
"PointLineWidth:") );
105 AStream>>AParameter.FLWPreviewPoint;
107 AStream>>tmp; assert ( !strcmp(tmp,
"Color:") );
108 AStream>>AParameter.FCLPreview[0]>>AParameter.FCLPreview[1]
109 >>AParameter.FCLPreview[2];
111 AStream>>tmp; assert ( !strcmp(tmp,
"ColorBad:") );
112 AStream>>AParameter.FCLPreviewBad[0]>>AParameter.FCLPreviewBad[1]
113 >>AParameter.FCLPreviewBad[2];
123 {
return FLWPreview; }
126 if ( FLWPreview!=AValue )
134 {
return FLWPreviewPoint; }
137 if ( FLWPreviewPoint!=AValue )
140 FLWPreviewPoint = AValue;
146 assert(0<=AIndice && AIndice<=2);
147 return FCLPreview[AIndice];
151 assert(0<=AIndice && AIndice<=2);
152 if ( FCLPreview[AIndice]!=AValue )
155 FCLPreview[AIndice]= AValue;
159 {
return FCLPreview; }
162 if ( FCLPreview[0]!=AValue0 ||
163 FCLPreview[1]!=AValue1 ||
164 FCLPreview[2]!=AValue2 )
167 FCLPreview[0]= AValue0;
168 FCLPreview[1]= AValue1;
169 FCLPreview[2]= AValue2;
177 assert(0<=AIndice && AIndice<=2);
178 return FCLPreviewBad[AIndice];
182 assert(0<=AIndice && AIndice<=2);
183 if ( FCLPreviewBad[AIndice]!=AValue )
186 FCLPreviewBad[AIndice]= AValue;
190 {
return FCLPreviewBad; }
193 if ( FCLPreviewBad[0]!=AValue0 ||
194 FCLPreviewBad[1]!=AValue1 ||
195 FCLPreviewBad[2]!=AValue2 )
198 FCLPreviewBad[0]= AValue0;
199 FCLPreviewBad[1]= AValue1;
200 FCLPreviewBad[2]= AValue2;