C++ SDK Reference  12.5
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
diguyViewCameraSettings.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (C) 1992-2013 Boston Dynamics
4  * ALL RIGHTS RESERVED.
5  *
6  * These coded instructions, statements, and computer programs
7  * contain unpublished proprietary information of Boston Dynamics
8  * and are protected by Copyright Laws of the United States.
9  * They may not be used, duplicated, or disclosed in any form, in
10  * whole or in part, without the prior written consent from Boston
11  * Dynamics.
12  *
13  * RESTRICTED RIGHTS LEGEND
14  * Use, duplication, or disclosure by the government is subject
15  * to restrictions as set forth in FAR 52.227.19(c)(2) or
16  * subparagraph (c)(1)(ii) of the Rights in Technical Data and
17  * Computer Software clause at DFARS 252.227-7013 and/or in
18  * similar or successor clauses in the FAR, or the DOD or NASA
19  * FAR Supplement, or to subparagraphs (c)(1) and (c)(2) of the
20  * Commercial Computer Software--Restricted Rights at 48 CFR
21  * 52.227-19, as applicable. Unpublished-rights reserved under
22  * the Copyright Laws of the United States.
23  * Contractor/Manufacturer is:
24  * Boston Dynamics/78 Fourth Avenue/Waltham MA 02451.
25  */
26 
27 
28 
29 #ifndef __diguyViewCameraSettings_H
30 #define __diguyViewCameraSettings_H
31 
32 #ifdef SWIG
34 #else
35 #define CPLUSPLUS_ONLY
36 #endif
37 
38 #ifdef CPLUSPLUS_ONLY
39 class bdiCamera;
41 
42 #include <diguy_constants.h>
43 
44 #endif
45 
46 
47 #include <declspec_diguy.h>
48 
49 /*********************************************************************/
67 class BDI_DECLSPEC_diguy diguyViewCameraSettings
68 {
69 
70 public:
71 
72 /*****************************************************************************/
78  /*l
79  *b Description:
80  **
81  ** The diguyViewCameraSettings equivalent of
82  ** diguyViewCamera::get_name().
83  */
84  const char* get_name();
85 
86  /*l
87  *b Description:
88  **
89  ** The diguyViewCameraSettings equivalent of
90  ** diguyViewCamera::get_type_name().
91  */
92  const char* get_type_name();
93 
94  /*l
95  *b Description:
96  **
97  ** The diguyViewCameraSettings equivalent of
98  ** diguyViewCamera::set_near_plane().
99  */
100  void set_near_plane(float near_plane);
101 
102  /*l
103  *b Description:
104  **
105  ** The diguyViewCameraSettings equivalent of
106  ** diguyViewCamera::get_near_plane().
107  */
108  float get_near_plane();
109 
110  /*l
111  *b Description:
112  **
113  ** The diguyViewCameraSettings equivalent of
114  ** diguyViewCamera::set_far_plane().
115  */
116  void set_far_plane(float far_plane);
117 
118  /*l
119  *b Description:
120  **
121  ** The diguyViewCameraSettings equivalent of
122  ** diguyViewCamera::get_far_plane().
123  */
124  float get_far_plane();
125 
126  /*l
127  *b Description:
128  **
129  ** The diguyViewCameraSettings equivalent of
130  ** diguyViewCamera::set_fov().
131  */
132  void set_fov(float fov);
133 
134  /*l
135  *b Description:
136  **
137  ** The diguyViewCameraSettings equivalent of
138  ** diguyViewCamera::get_fov().
139  */
140  float get_fov();
141 
142  /*l
143  *b Description:
144  **
145  ** The diguyViewCameraSettings equivalent of
146  ** diguyViewCamera::set_min_fov().
147  */
148  void set_min_fov(float fov);
149 
150  /*l
151  *b Description:
152  **
153  ** The diguyViewCameraSettings equivalent of
154  ** diguyViewCamera::set_max_fov().
155  */
156  void set_max_fov(float fov);
157 
158  /*l
159  *b Description:
160  **
161  ** The diguyViewCameraSettings equivalent of
162  ** diguyViewCamera::get_min_fov().
163  */
164  float get_min_fov();
165 
166  /*l
167  *b Description:
168  **
169  ** The diguyViewCameraSettings equivalent of
170  ** diguyViewCamera::get_max_fov().
171  */
172  float get_max_fov();
173 
174  /*l
175  *b Description:
176  **
177  ** The diguyViewCameraSettings equivalent of
178  ** diguyViewCamera::set_aspect().
179  */
180  void set_aspect(float aspect);
181 
182  /*l
183  *b Description:
184  **
185  ** The diguyViewCameraSettings equivalent of
186  ** diguyViewCamera::get_aspect().
187  */
188  float get_aspect();
189 
190  /*l
191  *b Description:
192  **
193  ** The diguyViewCameraSettings equivalent of
194  ** diguyViewCamera::set_position().
195  */
196  void set_position(float x, float y, float z);
197 
198  /*l
199  *b Description:
200  **
201  ** The diguyViewCameraSettings equivalent of
202  ** diguyViewCamera::get_position_x().
203  */
204  float get_position_x();
205 
206  /*l
207  *b Description:
208  **
209  ** The diguyViewCameraSettings equivalent of
210  ** diguyViewCamera::get_position_y().
211  */
212  float get_position_y();
213 
214  /*l
215  *b Description:
216  **
217  ** The diguyViewCameraSettings equivalent of
218  ** diguyViewCamera::get_position_z().
219  */
220  float get_position_z();
221 
222  /*l
223  *b Description:
224  **
225  ** The diguyViewCameraSettings equivalent of
226  ** diguyViewCamera::set_orientation().
227  */
228  void set_orientation(float yaw, float roll, float pitch);
229 
230  /*l
231  *b Description:
232  **
233  ** The diguyViewCameraSettings equivalent of
234  ** diguyViewCamera::set_orientation_roll().
235  */
236  void set_orientation_roll(float r);
237 
238  /*l
239  *b Description:
240  **
241  ** The diguyViewCameraSettings equivalent of
242  ** diguyViewCamera::get_orientation_yaw().
243  */
244  float get_orientation_yaw();
245 
246  /*l
247  *b Description:
248  **
249  ** The diguyViewCameraSettings equivalent of
250  ** diguyViewCamera::get_orientation_roll().
251  */
252  float get_orientation_roll();
253 
254  /*l
255  *b Description:
256  **
257  ** The diguyViewCameraSettings equivalent of
258  ** diguyViewCamera::get_orientation_pitch().
259  */
260  float get_orientation_pitch();
261 
262  /*l
263  *b Description:
264  **
265  ** The diguyViewCameraSettings equivalent of
266  ** diguyViewCamera::set_pitch_lower_limit().
267  */
268  void set_pitch_lower_limit(float limit);
269 
270  /*l
271  *b Description:
272  **
273  ** The diguyViewCameraSettings equivalent of
274  ** diguyViewCamera::set_pitch_upper_limit().
275  */
276  void set_pitch_upper_limit(float limit);
277 
278  /*l
279  *b Description:
280  **
281  ** The diguyViewCameraSettings equivalent of
282  ** diguyViewCamera::get_pitch_lower_limit().
283  */
284  float get_pitch_lower_limit();
285 
286  /*l
287  *b Description:
288  **
289  ** The diguyViewCameraSettings equivalent of
290  ** diguyViewCamera::get_pitch_upper_limit().
291  */
292  float get_pitch_upper_limit();
293 
294  /*l
295  *b Description:
296  **
297  ** The diguyViewCameraSettings equivalent of
298  ** diguyViewCamera::get_pitch_has_limits().
299  */
300  int get_pitch_has_limits();
301 
302  /*l
303  *b Description:
304  **
305  ** The diguyViewCameraSettings equivalent of
306  ** diguyViewCamera::set_distance().
307  */
308  void set_distance(float distance);
309 
310  /*l
311  *b Description:
312  **
313  ** The diguyViewCameraSettings equivalent of
314  ** diguyViewCamera::get_distance().
315  */
316  float get_distance();
317 
318  /*l
319  *b Description:
320  **
321  ** The diguyViewCameraSettings equivalent of
322  ** diguyViewCamera::set_fix().
323  */
324  void set_fix(float x, float y, float z);
325 
326  /*l
327  *b Description:
328  **
329  ** The diguyViewCameraSettings equivalent of
330  ** diguyViewCamera::get_fix_x().
331  */
332  float get_fix_x();
333 
334  /*l
335  *b Description:
336  **
337  ** The diguyViewCameraSettings equivalent of
338  ** diguyViewCamera::get_fix_y().
339  */
340  float get_fix_y();
341 
342  /*l
343  *b Description:
344  **
345  ** The diguyViewCameraSettings equivalent of
346  ** diguyViewCamera::get_fix_z().
347  */
348  float get_fix_z();
349 
350  /*l
351  *b Description:
352  **
353  ** The diguyViewCameraSettings equivalent of
354  ** diguyViewCamera::set_move_mode().
355  */
356  int set_move_mode(diguyViewCameraMoveMode move_mode);
357 
358  /*l
359  *b Description:
360  **
361  ** The diguyViewCameraSettings equivalent of
362  ** diguyViewCamera::get_move_mode().
363  */
364  diguyViewCameraMoveMode get_move_mode();
365 
366  /*l
367  *b Description:
368  **
369  ** The diguyViewCameraSettings equivalent of
370  ** diguyViewCamera::set_projection_mode().
371  */
372  int set_projection_mode(diguyViewCameraProjectionMode projection_mode);
373 
374  /*l
375  *b Description:
376  **
377  ** The diguyViewCameraSettings equivalent of
378  ** diguyViewCamera::get_projection_mode().
379  */
380  diguyViewCameraProjectionMode get_projection_mode();
381 
382  /*l
383  *b Description:
384  **
385  ** The diguyViewCameraSettings equivalent of
386  ** diguyViewCamera::set_speed().
387  */
388  int set_speed(float speed);
389 
390  /*l
391  *b Description:
392  **
393  ** The diguyViewCameraSettings equivalent of
394  ** diguyViewCamera::get_speed().
395  */
396  float get_speed();
397 
398 
399 /*****************************************************************************/
405  /*l
406  *b Description:
407  **
408  ** The diguyViewCameraSettings equivalent of
409  ** diguyViewCamera::set_track_name().
410  */
411  void set_track_name(const char* track_name);
412 
413  /*l
414  *b Description:
415  **
416  ** The diguyViewCameraSettings equivalent of
417  ** diguyViewCamera::get_track_name().
418  */
419  const char* get_track_name();
420 
421  /*l
422  *b Description:
423  **
424  ** The diguyViewCameraSettings equivalent of
425  ** diguyViewCamera::set_track_link_name().
426  */
427  void set_track_link_name(const char* track_link_name);
428 
429  /*l
430  *b Description:
431  **
432  ** The diguyViewCameraSettings equivalent of
433  ** diguyViewCamera::get_track_link_name().
434  */
435  const char* get_track_link_name();
436 
437  /*l
438  *b Description:
439  **
440  ** The diguyViewCameraSettings equivalent of
441  ** diguyViewCamera::set_track_offset().
442  */
443  void set_track_offset(float x, float y, float z);
444 
445  /*l
446  *b Description:
447  **
448  ** The diguyViewCameraSettings equivalent of
449  ** diguyViewCamera::get_track_offset_x().
450  */
451  float get_track_offset_x();
452 
453  /*l
454  *b Description:
455  **
456  ** The diguyViewCameraSettings equivalent of
457  ** diguyViewCamera::get_track_offset_y().
458  */
459  float get_track_offset_y();
460 
461  /*l
462  *b Description:
463  **
464  ** The diguyViewCameraSettings equivalent of
465  ** diguyViewCamera::get_track_offset_z().
466  */
467  float get_track_offset_z();
468 
469  /*l
470  *b Description:
471  **
472  ** The diguyViewCameraSettings equivalent of
473  ** diguyViewCamera::set_track_offset_is_in_world_coordinates().
474  */
475  void set_track_offset_is_in_world_coordinates(int value);
476 
477  /*l
478  *b Description:
479  **
480  ** The diguyViewCameraSettings equivalent of
481  ** diguyViewCamera::get_track_offset_is_in_world_coordinates().
482  */
483  int get_track_offset_is_in_world_coordinates();
484 
485  /*l
486  *b Description:
487  **
488  ** The diguyViewCameraSettings equivalent of
489  ** diguyViewCamera::set_dolly_name().
490  */
491  void set_dolly_name(const char* dolly_name);
492 
493  /*l
494  *b Description:
495  **
496  ** The diguyViewCameraSettings equivalent of
497  ** diguyViewCamera::get_dolly_name().
498  */
499  const char* get_dolly_name();
500 
501  /*l
502  *b Description:
503  **
504  ** The diguyViewCameraSettings equivalent of
505  ** diguyViewCamera::set_dolly_link_name().
506  */
507  void set_dolly_link_name(const char* dolly_link_name);
508 
509  /*l
510  *b Description:
511  **
512  ** The diguyViewCameraSettings equivalent of
513  ** diguyViewCamera::get_dolly_link_name().
514  */
515  const char* get_dolly_link_name();
516 
517  /*l
518  *b Description:
519  **
520  ** The diguyViewCameraSettings equivalent of
521  ** diguyViewCamera::set_dolly_offset().
522  */
523  void set_dolly_offset(float x, float y, float z);
524 
525  /*l
526  *b Description:
527  **
528  ** The diguyViewCameraSettings equivalent of
529  ** diguyViewCamera::get_dolly_offset_x().
530  */
531  float get_dolly_offset_x();
532 
533  /*l
534  *b Description:
535  **
536  ** The diguyViewCameraSettings equivalent of
537  ** diguyViewCamera::get_dolly_offset_y().
538  */
539  float get_dolly_offset_y();
540 
541  /*l
542  *b Description:
543  **
544  ** The diguyViewCameraSettings equivalent of
545  ** diguyViewCamera::get_dolly_offset_z().
546  */
547  float get_dolly_offset_z();
548 
549  /*l
550  *b Description:
551  **
552  ** The diguyViewCameraSettings equivalent of
553  ** diguyViewCamera::set_dolly_offset_is_in_world_coordinates().
554  */
555  void set_dolly_offset_is_in_world_coordinates(int value);
556 
557  /*l
558  *b Description:
559  **
560  ** The diguyViewCameraSettings equivalent of
561  ** diguyViewCamera::get_dolly_offset_is_in_world_coordinates().
562  */
563  int get_dolly_offset_is_in_world_coordinates();
564 
565 
566 /****************************************************************************/
567 /****************************************************************************/
568 /****************************************************************************/
575 /****************************************************************************/
576 /****************************************************************************/
577 /****************************************************************************/
578 
579  /*l
580  ** The diguyViewCameraSettings equivalent of
581  ** the diguyViewCamera function with the same name.
582  */
583  void set_speed_fov_degrees_per_wheel_click(float fov_change);
584 
585  /*l
586  ** The diguyViewCameraSettings equivalent of
587  ** the diguyViewCamera function with the same name.
588  */
589  float get_speed_fov_degrees_per_wheel_click();
590 
591  /*l
592  ** The diguyViewCameraSettings equivalent of
593  ** the diguyViewCamera function with the same name.
594  */
595  void set_speed_meters_per_second(float speed);
596 
597  /*l
598  ** The diguyViewCameraSettings equivalent of
599  ** the diguyViewCamera function with the same name.
600  */
601  float get_speed_meters_per_second();
602 
603  /*l
604  ** The diguyViewCameraSettings equivalent of
605  ** the diguyViewCamera function with the same name.
606  */
607  void set_require_smooth_servo(int require);
608 
609  /*l
610  ** The diguyViewCameraSettings equivalent of
611  ** the diguyViewCamera function with the same name.
612  */
613  int get_require_smooth_servo();
614 
615  /*l
616  ** The diguyViewCameraSettings equivalent of
617  ** the diguyViewCamera function with the same name.
618  */
619  void set_track_camera_avoids_obstacles(int avoid);
620 
621  /*l
622  ** The diguyViewCameraSettings equivalent of
623  ** the diguyViewCamera function with the same name.
624  */
625  int get_track_camera_avoids_obstacles();
626 
627  /*l
628  ** The diguyViewCameraSettings equivalent of
629  ** the diguyViewCamera function with the same name.
630  */
631  void set_ignore_mouse_drags(int ignore);
632 
633  /*l
634  ** The diguyViewCameraSettings equivalent of
635  ** the diguyViewCamera function with the same name.
636  */
637  int get_ignore_mouse_drags();
638 
639 
644 #ifdef CPLUSPLUS_ONLY
645 
646  bdiCamera* get_scripted_object() {return m_camera;}
647 
648 private:
649 
650  /*l
651  ** A private constructor.
652  */
653  diguyViewCameraSettings(bdiCamera* camera);
654 
655  /*l
656  ** A pointer to internal data.
657  */
658  bdiCamera* m_camera;
659 
660  friend class bdiCamera;
661 
662 #endif
663 
664 };
665 
666 #endif /* __diguyViewCameraSettings_H */
667