Class to intelligently handle Image Transforms.
More...
#include <View.h>
Public Member Functions |
| | View () |
| | Number of quality layers.
|
| void | setContrast (float c) |
| | Set the contrast adjustment.
|
| void | setMaxSize (unsigned int m) |
| | Set the maximum view port dimension.
|
| void | setMaxResolutions (unsigned int r) |
| | Set the maximum view port dimension.
|
|
unsigned int | getRequestWidth () |
| | Get the size of the requested width.
|
| void | setRequestWidth (unsigned int w) |
| | Set the size of the requested width.
|
|
unsigned int | getRequestHeight () |
| | Get the size of the requested height.
|
| void | setRequestHeight (unsigned int h) |
| | Set the size of the requested height.
|
|
unsigned int | getResolution () |
| | Return the requested resolution.
|
|
float | getScale () |
| | Return the scaling required in case our requested width or height is in between available resolutions.
|
| void | setViewLeft (float x) |
| | Set the left co-ordinate of the viewport.
|
| void | setViewTop (float y) |
| | Set the top co-ordinate of the viewport.
|
| void | setViewWidth (float w) |
| | Set the width co-ordinate of the viewport.
|
| void | setViewHeight (float h) |
| | Set the height co-ordinate of the viewport.
|
| void | setImageSize (unsigned int w, unsigned int h) |
| | Set the source image pixel size.
|
| void | setMaxLayers (int l) |
| | Limit the maximum number of quality layers we are allowed to decode.
|
| void | setLayers (int l) |
| | Set the number of quality layers to decode, limiting to our max value.
|
|
unsigned int | getLayers () |
| | Return the number of layers to decode.
|
|
float | getContrast () |
| | Return the contrast adjustment.
|
|
unsigned int | getImageWidth () |
| | Return the image width at our requested resolution.
|
|
unsigned int | getImageHeight () |
| | Return the image height at our requested resolution.
|
|
unsigned int | getViewLeft () |
| | Return the left pixel of the viewport.
|
|
unsigned int | getViewTop () |
| | Return the top pixel of the viewport.
|
|
unsigned int | getViewWidth () |
| | Return the pixel width of the viewport.
|
|
unsigned int | getViewHeight () |
| | Return the pixel height of the viewport.
|
|
bool | viewPortSet () |
| | Indicate whether the viewport has been set.
|
Public Attributes |
|
int | xangle |
|
int | yangle |
| | Horizontal View.
|
|
bool | shaded |
| | Vertical View.
|
|
int | shade [3] |
| | Whether to use shading view.
|
|
int | max_layers |
| | Shading incident light angles (x,y,z)
|
|
int | layers |
| | Maximum number of quality layers allowed.
|
Detailed Description
Class to intelligently handle Image Transforms.
Constructor & Destructor Documentation
Member Function Documentation
| void View::setContrast |
( |
float |
c | ) |
|
|
inline |
Set the contrast adjustment.
- Parameters
-
| c | contrast (where 1.0 is no adjustment) |
| void View::setImageSize |
( |
unsigned int |
w, |
|
|
unsigned int |
h |
|
) |
| |
|
inline |
Set the source image pixel size.
- Parameters
-
| w | pixel width |
| h | pixel height |
| void View::setLayers |
( |
int |
l | ) |
|
|
inline |
Set the number of quality layers to decode, limiting to our max value.
- Parameters
-
| l | Number of layers to decode |
References layers, and max_layers.
| void View::setMaxLayers |
( |
int |
l | ) |
|
|
inline |
Limit the maximum number of quality layers we are allowed to decode.
- Parameters
-
| l | Max number of layers to decode |
References max_layers.
| void View::setMaxResolutions |
( |
unsigned int |
r | ) |
|
|
inline |
Set the maximum view port dimension.
- Parameters
-
| r | number of availale resolutions |
| void View::setMaxSize |
( |
unsigned int |
m | ) |
|
|
inline |
Set the maximum view port dimension.
- Parameters
-
| m | maximum viewport dimension |
| void View::setRequestHeight |
( |
unsigned int |
h | ) |
|
|
inline |
Set the size of the requested height.
- Parameters
-
| void View::setRequestWidth |
( |
unsigned int |
w | ) |
|
|
inline |
Set the size of the requested width.
- Parameters
-
| void View::setViewHeight |
( |
float |
h | ) |
|
Set the height co-ordinate of the viewport.
- Parameters
-
| h | height resolution independent co-ordinate |
| void View::setViewLeft |
( |
float |
x | ) |
|
Set the left co-ordinate of the viewport.
- Parameters
-
| x | left resolution independent co-ordinate |
| void View::setViewTop |
( |
float |
y | ) |
|
Set the top co-ordinate of the viewport.
- Parameters
-
| y | top resolution independent co-ordinate |
| void View::setViewWidth |
( |
float |
w | ) |
|
Set the width co-ordinate of the viewport.
- Parameters
-
| w | width resolution independent co-ordinate |
The documentation for this class was generated from the following file: