Class: Conreality::Camera
Overview
Represents a Conreality camera.
Constant Summary collapse
- TABLE =
:object_camera
- KEY =
:uuid
Instance Attribute Summary collapse
-
#fnumber ⇒ Integer
The camera’s f-number (the f/N focal ratio).
-
#format ⇒ String
The camera’s image format.
-
#fps ⇒ Integer
The camera’s frame rate (per second).
-
#resolution ⇒ Array(Integer, Integer)
The camera’s resolution (in 2D pixels).
Attributes inherited from Object
#color, #group, #label, #mass, #orientation, #position, #radius, #theater, #type, #uuid
Instance Method Summary collapse
-
#initialize(session, uuid) ⇒ Camera
constructor
A new instance of Camera.
Methods inherited from Object
#as_asset, #as_camera, #as_player, #inspect, #is_asset?, #is_camera?, #is_player?, #is_target?, #send_message
Constructor Details
#initialize(session, uuid) ⇒ Camera
Returns a new instance of Camera.
37 38 39 |
# File 'lib/conreality/camera.rb', line 37 def initialize(session, uuid) super(session, uuid) end |
Instance Attribute Details
#fnumber ⇒ Integer
The camera’s f-number (the f/N focal ratio).
32 33 34 |
# File 'lib/conreality/camera.rb', line 32 def fnumber @fnumber end |
#format ⇒ String
The camera’s image format.
20 21 22 |
# File 'lib/conreality/camera.rb', line 20 def format @format end |
#fps ⇒ Integer
The camera’s frame rate (per second).
26 27 28 |
# File 'lib/conreality/camera.rb', line 26 def fps @fps end |
#resolution ⇒ Array(Integer, Integer)
The camera’s resolution (in 2D pixels).
14 15 16 |
# File 'lib/conreality/camera.rb', line 14 def resolution @resolution end |