|
iipsrv
1.0
|
Class to intelligently handle Image Transforms. More...
#include <View.h>
Public Member Functions | |
| View () | |
| Indicate whether aspect ratio should be maintained. More... | |
| void | setContrast (float c) |
| Set the contrast adjustment. More... | |
| void | setMaxSize (unsigned int m) |
| Set the maximum view port dimension. More... | |
| unsigned int | getMaxSize () |
| Get the maximum allowed output size. | |
| void | setMaxResolutions (unsigned int r) |
| Set the maximum view port dimension. More... | |
| unsigned int | getRequestWidth () |
| Get the size of the requested width. | |
| void | setRequestWidth (unsigned int w) |
| Set the size of the requested width. More... | |
| unsigned int | getRequestHeight () |
| Get the size of the requested height. | |
| void | setRequestHeight (unsigned int h) |
| Set the size of the requested height. More... | |
| 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. More... | |
| void | setViewTop (float y) |
| Set the top co-ordinate of the viewport. More... | |
| void | setViewWidth (float w) |
| Set the width co-ordinate of the viewport. More... | |
| void | setViewHeight (float h) |
| Set the height co-ordinate of the viewport. More... | |
| void | setImageSize (unsigned int w, unsigned int h) |
| Set the source image pixel size. More... | |
| void | setMaxLayers (int l) |
| Limit the maximum number of quality layers we are allowed to decode. More... | |
| void | setLayers (int l) |
| Set the number of quality layers to decode, limiting to our max value. More... | |
| 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. | |
| void | setGamma (float g) |
| Set gamma. More... | |
| float | getGamma () |
| Get gamma. | |
| void | setRotation (float r) |
| Set rotation. More... | |
| float | getRotation () |
| Get rotation. | |
| bool | floatProcessing () |
| Whether view requires floating point processing. | |
Public Attributes | |
| int | xangle |
| int | yangle |
| Horizontal View. | |
| bool | shaded |
| Vertical View. | |
| int | shade [3] |
| Whether to use shading view. | |
| bool | cmapped |
| Shading incident light angles (x,y,z) | |
| enum cmap_type | cmap |
| Whether to modify colormap. | |
| bool | inverted |
| colormap | |
| int | max_layers |
| Whether to invert colormap. | |
| int | layers |
| Maximum number of quality layers allowed. | |
| ColourSpaces | colourspace |
| Number of quality layers. | |
| std::vector< std::vector< float > > | ctw |
| Requested colourspace. | |
| int | flip |
| Colour twist matrix. | |
| bool | maintain_aspect |
| Flip (1=horizontal, 2=vertical) | |
Class to intelligently handle Image Transforms.
|
inline |
Indicate whether aspect ratio should be maintained.
Constructor
|
inline |
Set the contrast adjustment.
| c | contrast (where 1.0 is no adjustment) |
|
inline |
Set gamma.
| g | gamma value |
|
inline |
Set the source image pixel size.
| w | pixel width |
| h | pixel height |
|
inline |
Set the number of quality layers to decode, limiting to our max value.
| l | Number of layers to decode |
|
inline |
Limit the maximum number of quality layers we are allowed to decode.
| l | Max number of layers to decode |
|
inline |
Set the maximum view port dimension.
| r | number of availale resolutions |
|
inline |
Set the maximum view port dimension.
| m | maximum viewport dimension |
|
inline |
Set the size of the requested height.
| h | requested image height |
|
inline |
Set the size of the requested width.
| w | requested image width |
|
inline |
Set rotation.
| r | angle of rotation in degrees |
| void View::setViewHeight | ( | float | h | ) |
Set the height co-ordinate of the viewport.
| h | height resolution independent co-ordinate |
| void View::setViewLeft | ( | float | x | ) |
Set the left co-ordinate of the viewport.
| x | left resolution independent co-ordinate |
| void View::setViewTop | ( | float | y | ) |
Set the top co-ordinate of the viewport.
| y | top resolution independent co-ordinate |
| void View::setViewWidth | ( | float | w | ) |
Set the width co-ordinate of the viewport.
| w | width resolution independent co-ordinate |