All files / core/src/types ICamera.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39                                                                             
import type Point3 from './Point3';
import type Point2 from './Point2';
 
/**
 * Camera Interface. See {@link https://kitware.github.io/vtk-examples/site/VTKBook/03Chapter3/#35-cameras} if you
 * want to know more about the camera.
 */
interface ICamera {
  /** Camera Focal point */
  focalPoint?: Point3;
  /** Camera Parallel Projection flag - whether camera is using parallel projection */
  parallelProjection?: boolean;
  /** Camera parallel scale - used for parallel projection zoom, smaller values zoom in */
  parallelScale?: number;
  /**
   * Scale factor for the camera, it is the ratio of how much an image pixel takes
   * up one screen pixel
   */
  scale?: number;
  /** Camera position */
  position?: Point3;
  /** Camera view angle - 90 degrees is orthographic */
  viewAngle?: number;
  /** Camera viewPlaneNormal - negative of the direction the camera is pointing or directionOfProjection*/
  viewPlaneNormal?: Point3;
  /** Camera viewUp - the direction of viewUP in camera */
  viewUp?: Point3;
  /** rotation  */
  rotation?: number;
  /** flip Horizontal */
  flipHorizontal?: boolean;
  /** flip Vertical */
  flipVertical?: boolean;
  /** clipping range */
  clippingRange?: Point2;
}
 
export type { ICamera as default };