|
| SbViewportRegion () |
| Constructors of various kinds. More...
|
|
| SbViewportRegion (short width, short height) |
| Constructors of various kinds. More...
|
|
| SbViewportRegion (SbVec2s winSize) |
| Constructors of various kinds. More...
|
|
| SbViewportRegion (const SbViewportRegion &vpReg) |
| Constructors of various kinds. More...
|
|
void | setWindowSize (short width, short height) |
| Changes window size to given width and height in pixels. More...
|
|
void | setWindowSize (SbVec2s winSize) |
| Changes window size to given width and height in pixels, given as SbVec2s. More...
|
|
void | setViewport (float left, float bottom, float width, float height) |
| Sets viewport to given region, specified as normalized window coordinates: (0,0) is the lower-left corner, (1,1) is the upper-right. More...
|
|
void | setViewport (SbVec2f origin, SbVec2f size) |
| Sets viewport to region with given origin (lower-left corner) and size, given as normalized coordinate vectors. More...
|
|
void | setViewportPixels (short left, short bottom, short width, short height) |
| Sets viewport to given region, specified as pixel coordinates in window: (0,0) is the lower-left corner. More...
|
|
void | setViewportPixels (SbVec2s origin, SbVec2s size) |
| Sets viewport to region with given origin (lower-left corner) and size, given as pixel coordinates. More...
|
|
const SbVec2s & | getWindowSize () const |
| Returns window size in pixels. More...
|
|
const SbVec2f & | getViewportOrigin () const |
| Returns viewport origin in normalized coordinates. More...
|
|
const SbVec2s & | getViewportOriginPixels () const |
| Returns viewport origin in pixels. More...
|
|
const SbVec2f & | getViewportSize () const |
| Returns viewport size in normalized coordinates. More...
|
|
const SbVec2s & | getViewportSizePixels () const |
| Returns viewport size in pixels. More...
|
|
float | getViewportAspectRatio () const |
| Returns aspect ratio (width/height) of viewport. More...
|
|
void | scaleWidth (float ratio) |
| Scales viewport within window to be the given ratio of its current width, leaving the resulting viewport centered about the same point as the current one. More...
|
|
void | scaleHeight (float ratio) |
| Scales viewport within window to be the given ratio of its current height, leaving the resulting viewport centered about the same point as the current one. More...
|
|
void | setPixelsPerInch (float ppi) |
| Sets/returns the pixel-per-inch ratio for the display device the viewport is part of. More...
|
|
float | getPixelsPerInch () const |
|
float | getPixelsPerPoint () const |
| Convenience function that returns number of pixels per printer's point. More...
|
|