SketchUp C API
|
References the camera object of a SketchUp model. More...
#include <SketchUpAPI/model/camera.h>
Related Functions | |
(Note that these are not member functions.) | |
enum SUResult | SUCameraCreate (SUCameraRef *camera) |
Creates a default camera object. More... | |
enum SUResult | SUCameraRelease (SUCameraRef *camera) |
Releases a camera object created by SUCameraCreate. More... | |
enum SUResult | SUCameraGetOrientation (SUCameraRef camera, struct SUPoint3D *position, struct SUPoint3D *target, struct SUVector3D *up_vector) |
Retrieves the orientation of a camera object. More... | |
enum SUResult | SUCameraSetOrientation (SUCameraRef camera, const struct SUPoint3D *position, const struct SUPoint3D *target, const struct SUVector3D *up_vector) |
Sets the position of a camera object. More... | |
enum SUResult | SUCameraGetViewTransformation (SUCameraRef camera, struct SUTransformation *transformation) |
Retrieves the look at matrix of the camera object. More... | |
enum SUResult | SUCameraSetPerspectiveFrustumFOV (SUCameraRef camera, double fov) |
Sets the field of view angle of a camera object. If the camera object is an orthographic camera, the camera object subsequently becomes a perspective camera. The field of view is measured along the vertical direction of the camera. More... | |
enum SUResult | SUCameraGetPerspectiveFrustumFOV (SUCameraRef camera, double *fov) |
Retrieves the field of view in degrees of a camera object. The field of view is measured along the vertical direction of the camera. More... | |
enum SUResult | SUCameraSetAspectRatio (SUCameraRef camera, double aspect_ratio) |
Sets the aspect ratio of a camera object. More... | |
enum SUResult | SUCameraGetAspectRatio (SUCameraRef camera, double *aspect_ratio) |
Retrieves the aspect ratio of a camera object. More... | |
enum SUResult | SUCameraSetOrthographicFrustumHeight (SUCameraRef camera, double height) |
Sets the height of a camera object which is used to calculate the orthographic projection of a camera object. If the camera object is a perspective camera, the camera subsequently becomes an orthographic camera. More... | |
enum SUResult | SUCameraGetOrthographicFrustumHeight (SUCameraRef camera, double *height) |
Retrieves the height of an orthographic camera object. More... | |
enum SUResult | SUCameraSetPerspective (SUCameraRef camera, bool perspective) |
Sets a camera object perspective or orthographic. More... | |
enum SUResult | SUCameraGetPerspective (SUCameraRef camera, bool *perspective) |
Retrieves whether a camera object is a perspective camera or not (i.e. orthographic). More... | |
enum SUResult | SUCameraGetClippingDistances (SUCameraRef camera, double *znear, double *zfar) |
Retrieves the near and far clipping distances of the camera object. More... | |
enum SUResult | SUCameraSetFOVIsHeight (SUCameraRef camera, bool is_fov_height) |
Sets whether the field of view value represents the camera view height. More... | |
enum SUResult | SUCameraGetFOVIsHeight (SUCameraRef camera, bool *is_fov_height) |
Retrieves whether the field of view value represents the camera view height. More... | |
enum SUResult | SUCameraSetImageWidth (SUCameraRef camera, double width) |
Sets the size of the image on the "film" for a perspective camera. The value is given in millimeters. It is used in the conversions between field of view and focal length. More... | |
enum SUResult | SUCameraGetImageWidth (SUCameraRef camera, double *width) |
Retrieves the size of the image on the image plane of the Camera. By default, this value is not set. If it is set, it is used in the calculation of the focal length from the field of view. Unlike most length values in SketchUp, this width is specified in millimeters rather than in inches. More... | |
enum SUResult | SUCameraSetDescription (SUCameraRef camera, const char *desc) |
Sets the description of a camera object. More... | |
enum SUResult | SUCameraGetDescription (SUCameraRef camera, SUStringRef *desc) |
Retrieves the description of a camera object. More... | |
enum SUResult | SUCameraGetDirection (SUCameraRef camera, struct SUVector3D *direction) |
Retrieves the camera's direction vector. More... | |
enum SUResult | SUCameraSet2D (SUCameraRef camera, bool make_2d) |
Sets whether a camera is two dimensional. 2 point perspective mode and PhotoMatch mode are 2d cameras. More... | |
enum SUResult | SUCameraGet2D (SUCameraRef camera, bool *is_2d) |
Retrieves whether a camera object is two dimensional. More... | |
enum SUResult | SUCameraSetScale2D (SUCameraRef camera, double scale) |
Sets the camera's 2D scale factor. More... | |
enum SUResult | SUCameraGetScale2D (SUCameraRef camera, double *scale) |
Retrieves the camera's 2D scale factor. More... | |
enum SUResult | SUCameraSetCenter2D (SUCameraRef camera, const struct SUPoint3D *center) |
Sets the camera's 2D center point. The point coordinates are in screen space. Since this is setting the 2D center point the z component of the provided point is ignored. More... | |
enum SUResult | SUCameraGetCenter2D (SUCameraRef camera, struct SUPoint3D *center) |
Retrieves the camera's 2D center point. Since this is accessing a 2D point with a 3D point structure the z coordinate is always set to 0.0. More... | |
References the camera object of a SketchUp model.
|
related |
Creates a default camera object.
[out] | camera | The camera object created. |
|
related |
Retrieves whether a camera object is two dimensional.
[in] | camera | The camera object. |
[out] | is_2d | The 2D flag retrieved. |
|
related |
Retrieves the aspect ratio of a camera object.
[in] | camera | The camera object. |
[out] | aspect_ratio | The aspect ratio retrieved. |
|
related |
Retrieves the camera's 2D center point. Since this is accessing a 2D point with a 3D point structure the z coordinate is always set to 0.0.
[in] | camera | The camera object. |
[out] | center | The center point retrieved. |
|
related |
Retrieves the near and far clipping distances of the camera object.
[in] | camera | The camera object. |
[out] | znear | The near clipping distance. |
[out] | zfar | The far clipping distance. |
|
related |
Retrieves the description of a camera object.
[in] | camera | The camera object. |
[out] | desc | The description retrieved. |
|
related |
Retrieves the camera's direction vector.
[in] | camera | The camera object. |
[out] | direction | The direction vector retrieved. |
|
related |
Retrieves whether the field of view value represents the camera view height.
[in] | camera | The camera object. |
[out] | is_fov_height | The field of view flag retrieved. |
|
related |
Retrieves the size of the image on the image plane of the Camera. By default, this value is not set. If it is set, it is used in the calculation of the focal length from the field of view. Unlike most length values in SketchUp, this width is specified in millimeters rather than in inches.
[in] | camera | The camera object. |
[out] | width | The image width retrieved. |
|
related |
Retrieves the orientation of a camera object.
[in] | camera | The camera object. |
[out] | position | The position retrieved. |
[out] | target | The target retrieved. |
[out] | up_vector | The up direction retrieved. |
|
related |
Retrieves the height of an orthographic camera object.
[in] | camera | The camera object. |
[out] | height | The height retrieved. |
|
related |
Retrieves whether a camera object is a perspective camera or not (i.e. orthographic).
[in] | camera | The camera object. |
[out] | perspective | The perspective flag retrieved. |
|
related |
Retrieves the field of view in degrees of a camera object. The field of view is measured along the vertical direction of the camera.
[in] | camera | The camera object. |
[out] | fov | The field of view retrieved. |
|
related |
Retrieves the camera's 2D scale factor.
[in] | camera | The camera object. |
[out] | scale | The scale factor retrieved. |
|
related |
Retrieves the look at matrix of the camera object.
[in] | camera | The camera object. |
[out] | transformation | The look at matrix retrieved. |
|
related |
Releases a camera object created by SUCameraCreate.
[in] | camera | The camera object. |
|
related |
Sets whether a camera is two dimensional. 2 point perspective mode and PhotoMatch mode are 2d cameras.
[in] | camera | The camera object. |
[in] | make_2d | The flag for specifying if the camera should be 2D. |
|
related |
Sets the aspect ratio of a camera object.
[in] | camera | The camera object. |
[out] | aspect_ratio | The aspect ratio to be set. |
|
related |
Sets the camera's 2D center point. The point coordinates are in screen space. Since this is setting the 2D center point the z component of the provided point is ignored.
[in] | camera | The camera object. |
[in] | center | The center to be set. |
|
related |
Sets the description of a camera object.
[in] | camera | The camera object. |
[in] | desc | The description to be set. Assumed to be UTF-8 encoded. |
|
related |
Sets whether the field of view value represents the camera view height.
[in] | camera | The camera object. |
[in] | is_fov_height | The field of view flag set. |
|
related |
Sets the size of the image on the "film" for a perspective camera. The value is given in millimeters. It is used in the conversions between field of view and focal length.
[in] | camera | The camera object. |
[in] | width | The width set in millimeters. |
|
related |
Sets the position of a camera object.
[in] | camera | The camera object. |
[in] | position | The new eye position. |
[in] | target | The new target position. |
[in] | up_vector | The new up direction. |
|
related |
Sets the height of a camera object which is used to calculate the orthographic projection of a camera object. If the camera object is a perspective camera, the camera subsequently becomes an orthographic camera.
[in] | camera | The camera object. |
[in] | height | The height of the camera view. |
|
related |
Sets a camera object perspective or orthographic.
[in] | camera | The camera object. |
[in] | perspective | The perspective flag. |
|
related |
Sets the field of view angle of a camera object. If the camera object is an orthographic camera, the camera object subsequently becomes a perspective camera. The field of view is measured along the vertical direction of the camera.
[in] | camera | The camera object. |
[in] | fov | The field of view angle in degrees. |
|
related |
Sets the camera's 2D scale factor.
[in] | camera | The camera object. |
[in] | scale | The scale to be set. |