DG Kernel Documentation


Skip Navigation Links.
Skip Navigation LinksHome Page > API Reference > View > IView_DG Search Documentation


IView_DG Interface

IView_DG can be obtained from the DG Kernel Control using query DGKernelControl.GetView() >  IView_DG

Interfaces, which can be queried from IView_DG: IPick_DG, IView, IView2, IViewModal, IPropertyArray, ILook, ILookEx, IFrame, IViewPoint, IViewPointArray, IVirtualView, ISelection_KC, ISmartLabelManager_KC, IDynamicScreenItemManager_KC, IKCContext, IKCContext2, IPrint_KC, IMenu_KC, IGlobalAPI_KC, IModel, IDIObjGenerator

Methods:

Update
Reset
ShowHideAll
GoTo
LookAt
GetModel
IsVisibleGlobalAxes
ShowGlobalAxes
GetBackColor
SetBackColor
GetRenderType
SetRenderType
GetViewType
SetViewType
GetViewMode
SetViewMode
GetProjectionType
SetProjectionType
GetBoolAttribute
SetBoolAttribute
Translate
Rotate
Zoom
ZoomEx
GetEyeFrame
GetViewingVolume
SetViewingVolume
ScreenTo3D
ScreenTo3DEx
ProjectToScreen
ScreenToEyeFrame
GetPixelSize
GetWindowSize

void Update()

Checks for any modifications and updates internal structures, if necessary. Redraws the window.


void Reset(bool redraw, bool includeOrientation)


void ShowHideAll(bool show)


void GoTo(IEntity_DG entity)


void LookAt(Point_DG point, Vect_DG directionUp)


void GetModel(IModel_DG model)


bool IsVisibleGlobalAxes()


void ShowGlobalAxes(bool show)


void GetBackColor(out float red, out float green, out float blue, float alpha)


void SetBackColor(float red, float green, float blue, float alpha)


RenderType_DG GetRenderType()


void SetRenderType(RenderType_DG type)


ViewType_DG GetViewType()


void SetViewType(ViewType_DG type)


ViewMode_DG GetViewMode()


void SetViewMode(ViewMode_DG mode)


ProjectionType_DG GetProjectionType()


void SetProjectionType(ProjectionType_DG type)


void GetBoolAttribute(ViewBoolAttribute_DG attribute, bool val)


void SetBoolAttribute(ViewBoolAttribute_DG attribute, bool val)


void Translate(double vx, double vy, double vz)


void Rotate(double angle, double vx, double vy, double vz)


void Zoom(double scale)


void ZoomEx(double scale, double centerx, double centery, double centerz)


IFrame_DG GetEyeFrame()


void GetViewingVolume(out Box_DG box)


void SetViewingVolume(Box_DG box)

If x and y dimensions of box have different aspect ratio then the window, its dimentions will be adjusted using an internal algorithm


Point_DG ScreenTo3D(int xWnd, int yWnd)


Point_DG ScreenTo3DEx(int xWnd, int yWnd, double dist)


void ProjectToScreen(Point_DG point3D, out int xWnd, out int yWnd)


void ScreenToEyeFrame(int xWnd, int yWnd, out double x, out double y)


double GetPixelSize()

Returns geometric size correspondent to a screen pixel. The returned value depends on the current zoom


void GetWindowSize(out int* widthPixels, out int* heightPixels)

Returns size of the window of the control