SolidKit3D.Camera class

From Solid Graphics Wiki

Jump to: navigation, search
SolidKit3D.Camera class
Namespace: SolidKit3D
Base type: (None)
Assembly: [[{{{assembly}}}]]
Platform: .NET

The Camera class defines a camera parameters.


Constructors

The Camera constructor moves camera eye point to (0, 0, -10), target point to (0, 0, 0), up direction to (0, 1, 0), orthoProjection to false, vertical view angle to 45 degrees, aperture to 100.

Fields

Field name Type Description
Name string the camera name
Position SolidKit3D.Point the camera "eye" position
TargetPosition SolidKit3D.Point a point where the camera is pointing
UpDirection SolidKit3D.Vector camera's up direction
OrthoProjection bool true/false flag telling whether the camera uses orthographic projection
VerticalViewAngle float camera's vertical view angle
Aperture float camera's aperture

Methods

Method name Description
ImportPosition imports position, target point and up direction information from other Camera object
FitObject points the camera on the object and moves to such distance that the whole object is visible in the camera
LoadFromXML loads camera parameters from a System.Xml.XmlReader object.
SaveToXML saves camera position to System.Xml.XmlWriter object as XML

Operators

The Camera class has no operators.

See Also


   


SolidKit Library Documentation

Personal tools