The Viewport type exposes the following members.

Constructors

  NameDescription
ViewportOverloaded.

Methods

  NameDescription
CalcPosition
Calculates the position of the viewport (based on the pan field)
CalcSize
Calculates the size of the viewport (based on the zoom field)
Copy
Copies the parameters of a Viewport object into this except engine Needed at reading a new project
Equals (Inherited from Object.)
Finalize (Inherited from Object.)
GetHashCode (Inherited from Object.)
GetType (Inherited from Object.)
HeadViewport
sets the viewport corresponding to the head (central) eye
LeftViewport
sets the viewport corresponding to the left eye
MemberwiseClone (Inherited from Object.)
Resize
Recalculate the viewport based on the new width and height of the control
RightViewport
sets the viewport corresponding to the right eye
SetParams
This method sets the basic parameteres that a Viewport needs.
ToString (Inherited from Object.)

Fields

  NameDescription
_controlSize
Represents the OpenGL control size measured in pixels It changes if there is a window resize event
_displaySizeInPx
Represents the display size measured in pixels. This field states the ratio milimeters/pixel between OpenGL world and window world Usually it doesn't change.
_maxv
Maximum size of the viewport (OpenGl restrictions)
_pan
it is the pan
_paralax
it is the paralax: it´s positive with z positive
_zoom
it is the zoom

Properties

  NameDescription
Pan
Gets/sets the pan
Paralax
Gets/sets the paralax
SizeControl
Gets/sets the OpenGL control size
SizeDisplayInPixels
Gets/sets the desired OpenGL control size
Zoom
Gets/sets the zoom

See Also