InlineCamera (object)

The InlineCamera object is used to send Camera information from the host application to the InlineDrawing system and the Manipulation system.

InlineCamera InlineCamera InlineCamera Camera Camera InlineCamera->Camera

Members

Scalar nearDistance near clipping distance
Scalar farDistance far clipping distance
Scalar focalDistance the focal distance, used to compute the center point for orbit operations.
Scalar orthographicFrustumH The height of the orthographic frustum in world units.
Mat44 projection A precomputed projection, identity by default
Vec3 goalLinearVelocity The goal linear velocity set by either a callback or a manipulator. It is the cameras responsibility to integrate these values in the update method.
Scalar linearVelocityAcceleration The acceleration used to modify the current linear velocity each update. It is the cameras responsibility to integrate these values in the update method.
Vec3 currLinearVelocity The current linear velocity computed based on the goalLinearVelocity and linearVelocityAcceleration. It is the cameras responsibility to integrate these values in the update method.
Vec3 goalAngularVelocity The goal angular velocity set by either a callback or a manipulator. It is the cameras responsibility to integrate these values in the update method.
Scalar angularVelocityAcceleration The acceleration used to modify the current angular velocity each update. It is the cameras responsibility to integrate these values in the update method.
Vec3 currAngularVelocity The current angular velocity computed based on the goalAngularVelocity and angularVelocityAcceleration. It is the cameras responsibility to integrate these values in the update method.

Methods

  InlineCamera ( in InlineCamera other )
  InlineCamera ( in Scalar fovY, in Scalar nearDistance, in Scalar farDistance, in Boolean isOrthographic )
  InlineCamera ()
InlineCamera clone ? ()
  getAxis ? ( io Vec3 xAxis, io Vec3 yAxis, io Vec3 zAxis )
Scalar getFarDistance ? ()
Scalar getFocalDistance ? ()
Scalar getFovY ? ()
Vec3 getGoalAngularVelocity ? ()
Vec3 getGoalLinearVelocity ? ()
Mat44 getMat44 ? ()
Scalar getNearDistance ? ()
Scalar getOrthographicFrustumHeight ? ()
Mat44 getProjection ? ()
Boolean isOrthographic ? ()
  setFarDistance ! ( in Scalar farDistance )
  setFocalDistance ! ( in Scalar focalDistance )
  setFovY ! ( in Scalar fovY )
  setFromMat44 ! ( in Mat44 mat44 )
  setFromPositionAndTarget ! ( in Vec3 position, in Vec3 target )
  setGoalAngularVelocity ! ( in Vec3 velocity )
  setGoalLinearVelocity ! ( in Vec3 velocity )
  setNearDistance ! ( in Scalar nearDistance )
  setOrthographic ! ( in Boolean ortho )
  setOrthographicFrustumHeight ! ( in Scalar height )
  update ! ()

Methods in detail

InlineCamera ( in InlineCamera other )

copy constructor


InlineCamera ( in Scalar fovY, in Scalar nearDistance, in Scalar farDistance, in Boolean isOrthographic )

standard constructor taking vertical field of view, near and far clipping plane and orthographic flag


InlineCamera ()

default constructor


InlineCamera InlineCamera.clone? ()

clone method


InlineCamera.getAxis? ( io Vec3 xAxis, io Vec3 yAxis, io Vec3 zAxis )


Scalar InlineCamera.getFarDistance? ()

returns the far plane distance


Scalar InlineCamera.getFocalDistance? ()

returns the focal distance


Scalar InlineCamera.getFovY? ()

returns the vertical field of view in radians


Vec3 InlineCamera.getGoalAngularVelocity? ()

Gets the goal angular velocity


Vec3 InlineCamera.getGoalLinearVelocity? ()

Gets the goal linear velocity


Mat44 InlineCamera.getMat44? ()

returns the world matrix of this camera


Scalar InlineCamera.getNearDistance? ()

returns the near plane distance


Scalar InlineCamera.getOrthographicFrustumHeight? ()

returns the orthographic frustrum height


Mat44 InlineCamera.getProjection? ()

returns the projection matrix of this camera


Boolean InlineCamera.isOrthographic? ()

returns true if this camera is orthographic


InlineCamera.setFarDistance! ( in Scalar farDistance )

sets the far plane distance


InlineCamera.setFocalDistance! ( in Scalar focalDistance )

sets the focal distance


InlineCamera.setFovY! ( in Scalar fovY )

sets the vertical field of view in radians


InlineCamera.setFromMat44! ( in Mat44 mat44 )

Set the current transform of the camera using a mat44.


InlineCamera.setFromPositionAndTarget! ( in Vec3 position, in Vec3 target )

Set the current transform of the camera using a position and target values.


InlineCamera.setGoalAngularVelocity! ( in Vec3 velocity )

Sets the goal angular velocity


InlineCamera.setGoalLinearVelocity! ( in Vec3 velocity )

Sets the goal linear velocity


InlineCamera.setNearDistance! ( in Scalar nearDistance )

sets the near plane distance


InlineCamera.setOrthographic! ( in Boolean ortho )

returns true if this camera is orthographic


InlineCamera.setOrthographicFrustumHeight! ( in Scalar height )

sets the orthographic frustrum height


InlineCamera.update! ()

Updates the cameras position using velocity values set by either callbacks or custom manipulators. Integrates the velicty to compute the new position of the camera.