FormIt Plugin API
v23.0.0 (2023.0.0)
|
Functions | |
json | FormIt.Cameras.GetCameraData () |
json | FormIt.Cameras.GetCameraWorldForward () |
Get the vector of GetCameraWorldForward. More... | |
json | FormIt.Cameras.GetCameraWorldPosition () |
Get the position of the camera. More... | |
json | FormIt.Cameras.GetCameraWorldUp () |
Get the vector of GetCameraWorldUp. More... | |
json | FormIt.Cameras.SetCameraData (cameraData) |
Set the parameters that define the current camera. More... | |
json | FormIt.Cameras.AlignWithFace (facePath, withTransition) |
Set the camera to look straight at the given face and zoom to fit it. More... | |
json | FormIt.Cameras.GetViewportSize () |
Get the camera width and height Parameters: Out: width and height of the current viewport. More... | |
json | FormIt.Cameras.SetViewportSize (x, y) |
Set the parameters that define the current camera. More... | |
json | FormIt.Cameras.SetProjectionType (projectionType) |
Set the camera to perspective. More... | |
json | FormIt.Cameras.GetProjectionType () |
Get the camera to perspective. More... | |
json | FormIt.Cameras.SetPositionAndOrientation (aEye, aLook, aUp) |
Set the camera position and orientation. More... | |
json | FormIt.Cameras.SetWorldForward (forward) |
Set the camera direction. More... | |
json | FormIt.Cameras.SetFieldOfView (fieldOfView) |
Set the camera field of view (for perspective). More... | |
json FormIt.Cameras.AlignWithFace | ( | facePath | , |
withTransition | |||
) |
Set the camera to look straight at the given face and zoom to fit it.
[in] | facePath | face to align camera with |
[in] | withTransition | if true, camera trasition is animated |
json FormIt.Cameras.GetCameraData | ( | ) |
json FormIt.Cameras.GetCameraWorldForward | ( | ) |
Get the vector of GetCameraWorldForward.
json FormIt.Cameras.GetCameraWorldPosition | ( | ) |
Get the position of the camera.
json FormIt.Cameras.GetCameraWorldUp | ( | ) |
Get the vector of GetCameraWorldUp.
json FormIt.Cameras.GetProjectionType | ( | ) |
Get the camera to perspective.
Parameters: In: Out: projectionType
json FormIt.Cameras.GetViewportSize | ( | ) |
Get the camera width and height Parameters: Out: width and height of the current viewport.
json FormIt.Cameras.SetCameraData | ( | cameraData | ) |
Set the parameters that define the current camera.
See GetCameraData for getting FormIt.CameraData.
[in] | cameraData | FormIt.CameraData |
json FormIt.Cameras.SetFieldOfView | ( | fieldOfView | ) |
Set the camera field of view (for perspective).
Parameters: In: double fieldOfView Out:
[in] | fieldOfView | double |
json FormIt.Cameras.SetPositionAndOrientation | ( | aEye | , |
aLook | , | ||
aUp | |||
) |
Set the camera position and orientation.
Position is aEye. The view direction is defined by the vector from aEye to aLook. aUp is the up vector and should not contain any "roll", unless the camera points along the z direction (top or bottom view). It is actually ok to pass in (0,0,1) as the up vector for all cases, except when the view direction is pointing in the z direction. Parameters: In: WSM.Point3d aEye In: WSM.Point3d aLook In: WSM.Point3d aUp Out: bool true/false for success
[in] | aEye | WSM.Point3d |
[in] | aLook | WSM.Point3d |
[in] | aUp | WSM.Vector3d |
json FormIt.Cameras.SetProjectionType | ( | projectionType | ) |
Set the camera to perspective.
Parameters: In: projectionType Out:
[in] | projectionType | FormIt.CameraProjectionType |
json FormIt.Cameras.SetViewportSize | ( | x | , |
y | |||
) |
Set the parameters that define the current camera.
Parameters: In: x, y Out: bSuccess
[in] | x | int |
[in] | y | int |
json FormIt.Cameras.SetWorldForward | ( | forward | ) |
Set the camera direction.
Parameters: In: WSM.Vector3d forward Out:
[in] | forward | WSM.Vector3d |