DG Kernel Documentation


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


IViewPoint Interface

Store
SetCurrent
GetViewVolumeDimensions
SetViewVolumeDimensions
SetCurrent2

IViewPoint interface provides programmatic access to a viewpoint..

IViewPoint can be obtained from the IViewPointArray interface with a call to GetAt method.

Query path: DG Kernel > GetView > IViewPointArray > GetAt > IViewPoint.

Alternative Path:

DG Kernel > GetView > IPropertyArray > IPropertyArray.GetProperty("ViewPoints") > IArray2 > GetAt > IViewPoint.

See also Concepts of 3D Graphics, PointOfView Sample, Interface List


HRESULT Store( )

Remarks:

The method stores configuration of view currently displayed in 3D window in members of this viewpoint.


HRESULT SetCurrent( )

Remarks:

The method restores configuration of view which was current at the moment when the Store() method was called or set programmatically in properties of the viewpoint. The method does not repaint the view automatically. Call UpdateView to redraw the window.


HRESULT GetViewVolumeDimensions(double* sx, double* sy, double* sz)

Parameters

sx,sy,sz- [out] - The current dimension of the Viewing Volume

Remarks:

The method returns dimensions of the Viewing Volume stored in this viewpoint. Z dimension is a read-only property.


HRESULT SetViewVolumeDimensions(double sx, double sy)

Remarks:

The method modifies dimension  of the Viewing Volume stored in this viewpoint. Z dimension is a read-only property. It is updated by software automatically.


HRESULT SetCurrent2(int transitionMilliseconds)

Parameters

transitionMilliseconds- [in] - Length of the animation in milliseconds (1/1000 of a second)

Remarks:

Similarly to SetCurrent the method activates the configuration of view stored in this view point. The difference is that the transition is performed in smooth animated way. The parameter specifies duration of the transition from the configuration currently displayed by the view to configuration stored in this view point