#include <quality.h>
Public Types | |
enum | QualityEnums { QualityGuideLayer = (-1), QualityMax = 110, QualityDefault = 100 } |
enum | Line { NoLine, BlackLine, ThinLine, FullLine } |
enum | Fill { NoFill, Bitmaps, Solid, Graduated } |
enum | Blend { NoBlend, StartAndEnd, FullBlend } |
enum | Antialias { NoAntialias, FullAntialias } |
enum | Transparency { NoTransparency, FullTransparency } |
Public Member Functions | |
Quality (QualityEnums quality=QualityDefault) | |
~Quality () | |
Quality & | operator= (const Quality &Other) |
INT32 | operator== (const Quality &Other) |
INT32 | operator!= (const Quality &Other) |
Line | GetLineQuality () const |
Determines how lines should be rendered based on the quality. Returns Quality::NoLine, ThinLine or FullLine. | |
Fill | GetFillQuality () const |
Determines how fills should be rendered based on the quality. Returns Quality::NoFill, Solid or Graduated. | |
Blend | GetBlendQuality () const |
Determines how Blends should be rendered based on the quality. Returns Quality::NoBlend, StartAndEnd or FullBlend. | |
Antialias | GetAntialiasQuality () const |
Determines how Antialiass should be rendered based on the quality. Returns Quality::NoAntialias, or FullAntialias. | |
Transparency | GetTransparencyQuality () const |
Determines how Transparencys should be rendered based on the quality. Returns Quality::NoTransparency, or FullTransparency. NOTE: ALWAYS NOTRANS currently. | |
void | SetDefault () |
Resets value to the default value, whatever that might be. | |
BOOL | SetQuality (INT32) |
Sets numeric value for quality. You should be using this, except in very special situations. | |
INT32 | GetQuality () const |
You should use the GetxxxQuality fns. Only in very special situations are you allowed to call this function. It was Protected to stop you from using it, but this has had to change for technical reasons. So, what does this function actually do. It tells you the numical value of the quality. | |
Static Public Attributes | |
static Quality | DefaultQuality |
The quality level to give to new views. | |
Private Attributes | |
INT32 | QualityValue |
Friends | |
class | OpQuality |
class | QualitySliderDescriptor |
Definition at line 114 of file quality.h.
|
Definition at line 184 of file quality.h. 00185 { 00186 NoAntialias, 00187 FullAntialias 00188 };
|
|
Definition at line 177 of file quality.h. 00178 { 00179 NoBlend, 00180 StartAndEnd, 00181 FullBlend 00182 };
|
|
Definition at line 169 of file quality.h.
|
|
Definition at line 161 of file quality.h.
|
|
Definition at line 134 of file quality.h. 00135 { 00136 QualityGuideLayer = QUALITY_GUIDELAYER, 00137 QualityMax=QUALITY_MAX, 00138 QualityDefault=QUALITY_DEFAULT 00139 };
|
|
Definition at line 190 of file quality.h. 00191 { 00192 NoTransparency, 00193 FullTransparency 00194 };
|
|
Definition at line 141 of file quality.h. 00141 { QualityValue=quality; }
|
|
Definition at line 142 of file quality.h.
|
|
Determines how Antialiass should be rendered based on the quality. Returns Quality::NoAntialias, or FullAntialias.
Definition at line 249 of file quality.cpp. 00250 { 00251 if (QualityValue <= 100) 00252 return (enum Quality::Antialias) NoAntialias; 00253 else 00254 return (enum Quality::Antialias) FullAntialias; 00255 }
|
|
Determines how Blends should be rendered based on the quality. Returns Quality::NoBlend, StartAndEnd or FullBlend.
Definition at line 207 of file quality.cpp. 00208 { 00209 if (QualityValue <= 20) 00210 return (enum Quality::Blend) StartAndEnd; 00211 else 00212 return (enum Quality::Blend) FullBlend; 00213 }
|
|
Determines how fills should be rendered based on the quality. Returns Quality::NoFill, Solid or Graduated.
Definition at line 181 of file quality.cpp. 00182 { 00183 if (QualityValue >= 60) 00184 return (enum Quality::Fill) Graduated; 00185 else if (QualityValue > 30) 00186 return (enum Quality::Fill) Solid; 00187 else if (QualityValue > 10) 00188 return (enum Quality::Fill) Bitmaps; 00189 else 00190 return (enum Quality::Fill) NoFill; 00191 }
|
|
Determines how lines should be rendered based on the quality. Returns Quality::NoLine, ThinLine or FullLine.
Definition at line 157 of file quality.cpp. 00158 { 00159 if (QualityValue > 50 || QualityValue == QualityGuideLayer) 00160 return ((enum Quality::Line) FullLine); 00161 else if (QualityValue > 30) 00162 return (enum Quality::Line) ThinLine; 00163 else 00164 return (enum Quality::Line) BlackLine; 00165 }
|
|
You should use the GetxxxQuality fns. Only in very special situations are you allowed to call this function. It was Protected to stop you from using it, but this has had to change for technical reasons. So, what does this function actually do. It tells you the numical value of the quality.
Definition at line 329 of file quality.cpp. 00330 { 00331 return QualityValue; 00332 }
|
|
Determines how Transparencys should be rendered based on the quality. Returns Quality::NoTransparency, or FullTransparency. NOTE: ALWAYS NOTRANS currently.
Definition at line 229 of file quality.cpp. 00230 { 00231 // don't know how this is going to work yet 00232 return (enum Quality::Transparency) NoTransparency; 00233 }
|
|
Definition at line 155 of file quality.h. 00156 { 00157 return QualityValue != Other.QualityValue; 00158 }
|
|
Definition at line 144 of file quality.h. 00145 { 00146 QualityValue = Other.QualityValue; 00147 return *this; 00148 }
|
|
Definition at line 150 of file quality.h. 00151 { 00152 return QualityValue == Other.QualityValue; 00153 }
|
|
Resets value to the default value, whatever that might be.
Definition at line 272 of file quality.cpp. 00273 { 00274 QualityValue = QUALITY_DEFAULT; 00275 }
|
|
Sets numeric value for quality. You should be using this, except in very special situations.
Definition at line 292 of file quality.cpp. 00293 { 00294 if ( (NewQuality < 0 || NewQuality > QUALITY_MAX) && NewQuality != QUALITY_GUIDELAYER) 00295 { 00296 ENSURE(FALSE, "Bad quality in SetQuality"); 00297 return FALSE; 00298 } 00299 else 00300 { 00301 if (QualityValue != NewQuality) 00302 { 00303 QualityValue = NewQuality; 00304 return TRUE; 00305 } 00306 else 00307 return FALSE; // not an error, just 'no-change' 00308 } 00309 }
|
|
|
|
|
|
The quality level to give to new views. Preference: DefaultQuality Section: Rendering Range: 10 to 110. |
|
|