ModelView.GetViewHeight

This page contains reference documentation for the GetViewHeight function. This function returns the worksheet's height in pixels.

Prototype

int GetViewHeight()

Examples

Examples are as follows:

function void GetViewportCenter( ModelView activeView, Vec center )
{
    Vec end = new Vec;
    activeView.GetViewRay(
        activeView.GetViewWidth() * 0.5,
        activeView.GetViewHeight() * 0.5,
        center,
        end );
    center.Blend( end, 64.0f / ( center.GetDistance( end ) ) );
    delete end;
}

Working Sample Code

For sample code: