SketchUp SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
camera.h
Go to the documentation of this file.
1 // Copyright 2013 Trimble Navigation Ltd. All Rights Reserved.
2 #ifndef SLAPI_MODEL_CAMERA_H_
3 #define SLAPI_MODEL_CAMERA_H_
4 
5 #include <slapi/geometry.h>
6 #include <slapi/slapi.h>
7 #include <slapi/unicodestring.h>
8 #include <slapi/model/defs.h>
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
30 SU_RESULT SUCameraGetOrientation(SUCameraRef camera,
31  struct SUPoint3D* position,
32  struct SUPoint3D* target,
33  struct SUVector3D* up_vector);
34 
46 SU_RESULT SUCameraSetOrientation(SUCameraRef camera,
47  const struct SUPoint3D* position,
48  const struct SUPoint3D* target,
49  const struct SUVector3D* up_vector);
50 
62 SU_RESULT SUCameraSetPerspectiveFrustumFOV(SUCameraRef camera, double fov);
63 
76 SU_RESULT SUCameraGetPerspectiveFrustumFOV(SUCameraRef camera, double* fov);
77 
88 SU_RESULT SUCameraGetAspectRatio(SUCameraRef camera, double* aspect_ratio);
89 
102  double height);
103 
116  double* height);
117 
126 SU_RESULT SUCameraSetPerspective(SUCameraRef camera, bool perspective);
127 
138 SU_RESULT SUCameraGetPerspective(SUCameraRef camera, bool* perspective);
139 
140 #ifdef __cplusplus
141 } // extern "C"
142 #endif
143 
144 #endif // SLAPI_MODEL_CAMERA_H_