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_ratioFloat

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_2dGeom::Point3d

Returns:

Since:

  • SketchUp 2015



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

def center_2d
end

#descriptionString

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

#directionObject



37
38
# File 'lib/camera.rb', line 37

def direction
end

#eyeObject



39
40
# File 'lib/camera.rb', line 39

def eye
end

#focal_lengthObject



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

#fovObject



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

#heightObject



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_widthObject



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

#newObject



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_2dObject

Since:

  • SketchUp 2015



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

def scale_2d
end

#setObject



78
79
# File 'lib/camera.rb', line 78

def set
end

#targetObject



80
81
# File 'lib/camera.rb', line 80

def target
end

#upObject



82
83
# File 'lib/camera.rb', line 82

def up
end

#xaxisObject



84
85
# File 'lib/camera.rb', line 84

def xaxis
end

#yaxisObject



86
87
# File 'lib/camera.rb', line 86

def yaxis
end

#zaxisObject



88
89
# File 'lib/camera.rb', line 88

def zaxis
end