Class: Sketchup::Camera
Overview
Accessed via View#camera or a Page#camera
Instance Method Summary collapse
-
#aspect_ratio ⇒ Float
Returns the aspect ratio of the camera.
-
#aspect_ratio=(aspect_ratio) ⇒ Float
Set the camera aspect ratio.
- #center_2d ⇒ Geom::Point3d
-
#description ⇒ String
A description of the camera.
- #description=(text) ⇒ void
- #direction ⇒ Object
- #eye ⇒ Object
- #focal_length ⇒ Object
- #focal_length= ⇒ Object
- #fov ⇒ Object
- #fov= ⇒ Object
- #fov_is_height? ⇒ Boolean
- #height ⇒ Object
- #height= ⇒ Object
- #image_width ⇒ Object
- #image_width= ⇒ Object
- #is_2d? ⇒ Boolean
- #new ⇒ Object
- #perspective= ⇒ Object
- #perspective? ⇒ Boolean
- #scale_2d ⇒ Object
- #set ⇒ Object
- #target ⇒ Object
- #up ⇒ Object
- #xaxis ⇒ Object
- #yaxis ⇒ Object
- #zaxis ⇒ Object
Instance Method Details
#aspect_ratio ⇒ Float
Returns the aspect ratio of the camera.
7 8 9 |
# File 'lib/camera.rb', line 7 def aspect_ratio return @ascpect_ratio end |
#aspect_ratio=(aspect_ratio) ⇒ Float
Set the camera aspect ratio
14 15 16 |
# File 'lib/camera.rb', line 14 def aspect_ratio=(aspect_ratio) @aspect_ratio = aspect_ratio end |
#description ⇒ String
Returns A description of the camera.
24 25 26 |
# File 'lib/camera.rb', line 24 def description return @description end |
#description=(text) ⇒ void
This method returns an undefined value.
33 34 35 |
# File 'lib/camera.rb', line 33 def description=(text) @description = text end |
#direction ⇒ Object
37 38 |
# File 'lib/camera.rb', line 37 def direction end |
#eye ⇒ Object
39 40 |
# File 'lib/camera.rb', line 39 def eye end |
#focal_length ⇒ Object
41 42 |
# File 'lib/camera.rb', line 41 def focal_length end |
#focal_length= ⇒ Object
43 44 |
# File 'lib/camera.rb', line 43 def focal_length= end |
#fov ⇒ Object
45 46 |
# File 'lib/camera.rb', line 45 def fov end |
#fov= ⇒ Object
47 48 |
# File 'lib/camera.rb', line 47 def fov= end |
#fov_is_height? ⇒ Boolean
51 52 |
# File 'lib/camera.rb', line 51 def fov_is_height? end |
#height ⇒ Object
54 55 |
# File 'lib/camera.rb', line 54 def height end |
#height= ⇒ Object
56 57 |
# File 'lib/camera.rb', line 56 def height= end |
#image_width ⇒ Object
63 64 |
# File 'lib/camera.rb', line 63 def image_width end |
#image_width= ⇒ Object
65 66 |
# File 'lib/camera.rb', line 65 def image_width= end |
#is_2d? ⇒ Boolean
60 61 |
# File 'lib/camera.rb', line 60 def is_2d? end |
#new ⇒ Object
67 68 |
# File 'lib/camera.rb', line 67 def new end |
#perspective= ⇒ Object
69 70 |
# File 'lib/camera.rb', line 69 def perspective= end |
#perspective? ⇒ Boolean
71 72 |
# File 'lib/camera.rb', line 71 def perspective? end |
#set ⇒ Object
78 79 |
# File 'lib/camera.rb', line 78 def set end |
#target ⇒ Object
80 81 |
# File 'lib/camera.rb', line 80 def target end |
#up ⇒ Object
82 83 |
# File 'lib/camera.rb', line 82 def up end |
#xaxis ⇒ Object
84 85 |
# File 'lib/camera.rb', line 84 def xaxis end |
#yaxis ⇒ Object
86 87 |
# File 'lib/camera.rb', line 86 def yaxis end |
#zaxis ⇒ Object
88 89 |
# File 'lib/camera.rb', line 88 def zaxis end |