Class: Sketchup::Camera

Inherits:
Object show all
Defined in:
lib/camera.rb

Overview

Accessed via View#camera or a Page#camera

Instance Method Summary collapse

Instance Method Details

#aspect_ratio ⇒ Float

Returns the aspect ratio of the camera.

Returns:

  • (Float)


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

Parameters:

  • aspect_ratio (Float)

Returns:

  • (Float) —

    aspect ratio



14
15
16
# File 'lib/camera.rb', line 14

def aspect_ratio=(aspect_ratio)
  @aspect_ratio = aspect_ratio
end

#center_2d ⇒ Geom::Point3d

Returns:

Since:

  • SketchUp 2015



20
21
# File 'lib/camera.rb', line 20

def center_2d
end

#description ⇒ String

Returns A description of the camera.

Returns:

  • (String) —

    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.

Examples:

camera = Sketchup::Camera.new
description = camera.description = "35 mm Camera"

Parameters:

  • text (String) —

    A desription of the camera



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

Returns:

  • (Boolean)

Since:

  • SketchUp 2015



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

Returns:

  • (Boolean)

Since:

  • SketchUp 2015



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

Returns:

  • (Boolean)


71
72
# File 'lib/camera.rb', line 71

def perspective?
end

#scale_2d ⇒ Object

Since:

  • SketchUp 2015



75
76
# File 'lib/camera.rb', line 75

def scale_2d
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