Click or drag to resize
SbViewportRegion Methods

The SbViewportRegion type exposes the following members.

Methods
  NameDescription
Public methodEquals
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns the hash code for the value of this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetPixelsPerInch
Returns the pixel-per-inch ratio for the display device the viewport is part of.
Public methodGetPixelsPerPoint
Convenience function that returns number of pixels per printer's point.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetViewportAspectRatio Obsolete.
Use ViewportAspectRatio property instead.
Public methodGetViewportOrigin Obsolete.
Use ViewportOrigin property instead.
Public methodGetViewportOriginPixels_i32 Obsolete.
Use ViewportOriginPixelsI32 property instead.
Public methodGetViewportSize Obsolete.
Use ViewportSize property instead.
Public methodGetViewportSizePixels Obsolete.
Use ViewportSizePixels property instead.
Public methodGetViewportSizePixels_i32 Obsolete.
Use ViewportSizePixelsI32 property instead.
Public methodGetWindowSize Obsolete.
Use WindowSize property instead.
Public methodGetWindowSize_i32 Obsolete.
Use WindowSizeI32 property instead.
Public methodNormalize
Compute the normalized coordinates of the specified position, relative to this viewport region.
Public methodScaleHeight
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.
Public methodScaleWidth
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.
Public methodSetPixelsPerInch
Sets the pixel-per-inch ratio for the display device the viewport is part of. The default value is 72 (1 pixel per printer's point).
Public methodSetViewport(SbVec2f, SbVec2f)
Sets viewport to region with given origin (lower-left corner) and size, given as normalized coordinate vectors.
Public methodSetViewport(SbVec2f, SbVec2f)
Sets viewport to region with given origin (lower-left corner) and size, given as normalized coordinate vectors.
Public methodSetViewport(Single, Single, Single, Single)
Sets viewport to given region, specified as normalized window coordinates: (0,0) is the lower-left corner, (1,1) is the upper-right.
Public methodSetViewportPixels(SbVec2i32, SbVec2i32)
Sets viewport to region with given origin (lower-left corner) and size, given as pixel coordinates.
Public methodSetViewportPixels(SbVec2i32, SbVec2i32)
Sets viewport to region with given origin (lower-left corner) and size, given as pixel coordinates.
Public methodSetViewportPixels(SbVec2s, SbVec2s)
Sets viewport to region with given origin (lower-left corner) and size, given as pixel coordinates.
Public methodSetViewportPixels(SbVec2s, SbVec2s)
Sets viewport to region with given origin (lower-left corner) and size, given as pixel coordinates.
Public methodSetViewportPixels(Int16, Int16, Int16, Int16)
Sets viewport to given region, specified as pixel coordinates in window: (0,0) is the lower-left corner.
Public methodSetWindowSize(SbVec2i32)
Changes window size to given width and height in pixels, given as SbVec2i32.
Public methodSetWindowSize(SbVec2i32)
Changes window size to given width and height in pixels, given as SbVec2i32.
Public methodSetWindowSize(SbVec2s)
Changes window size to given width and height in pixels, given as SbVec2s.
Public methodSetWindowSize(SbVec2s)
Changes window size to given width and height in pixels, given as SbVec2s.
Public methodSetWindowSize(Int16, Int16)
Changes window size to given width and height in pixels.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
See Also