KitchenDraw SDK 2
Show / Hide Table of Contents

Class Scene.ViewPoint

Represents a viewpoint, which can be considered as persistent set of camera position, direction, and field of view.

Inheritance
object
Scene.ViewPoint
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: KD.SDK2
Assembly: KD.SDK2.dll
Syntax
public class Scene.ViewPoint
Remarks

A viewpoint can be set as current observer (camera) in the scene, as well as it can be created or updated from it. In essence, viewpoints are the way to name and store particular observer settings.

Properties

Name Description
AngleXY

The angle (degrees) in the horizontal plane corresponding to the direction of the observer’s look (which can be considered as current camera position).

AngleYZ

The angle (degrees) in the vertical plane corresponding to the direction of the observer’s look (which can be considered as current camera position).

FieldOfView

Field of view (or angle of view in other words) of the viewpoint.

Name

Name of the viewpoint.

PositionX

Position of the observer (which can be considered as current camera) on the X axis of the scene, in scene measurement units.

PositionY

Position of the observer (which can be considered as current camera) on the Y axis of the scene, in scene measurement units.

PositionZ

Position of the observer (which can be considered as current camera) on the Z axis of the scene, in scene measurement units.

Rank

Rank of the view point in the scene's registered view points list.

Methods

Name Description
GetInfo(int)

Gets a value from arbitrary datafield specified by the infoType parameter.

GetInfoAsDouble(int)

Gets a value from arbitrary datafield specified by the infoType parameter.

SetAsCurrentObserver()

Sets the observer of the scene view as it is defined in the viewpoint.

SetFromCurrentObserver()

Updates parameters of the viewpoint from the observer of the scene view.

SetInfo(int, double)

Writes the value to the arbitrary datafield specified by the infoType parameter.

SetInfo(int, string)

Writes the value to the arbitrary datafield specified by the infoType parameter.

TrySetInfo(int, double)

Writes the value to the arbitrary datafield specified by the infoType parameter.

TrySetInfo(int, string)

Writes the value to the arbitrary datafield specified by the infoType parameter.

In this article
Back to top Generated by DocFX