Camera struct
From Solid Graphics Wiki
| ||||||||||||
The Camera struct defines a camera parameters.
Constructors
The Camera constructor moves camera eye point to (0, 0, -10), target point to (0, 0, 0), upDirection to (0, 1, 0), orthoProjection to false, aperture to 100.
Fields
| Field name | Type | Description |
| name | String | the camera name |
| position | Point | the camera "eye" position |
| targetPosition | Point | a point where the camera is pointing |
| upDirection | Vector | camera's up direction |
| orthoProjection | bool | true/false flag telling whether the camera uses orthographic projection |
| viewAngleY | 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 XmlReader object. |
| SaveToXML | saves camera position to MemoryBuffer object as XML |
Operators
The Camera class has no operators.
See Also
SolidKit Library Documentation
