Class: Conreality::Camera

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

Overview

Represents a Conreality camera.

Constant Summary collapse

TABLE =
:object_camera
KEY =
:uuid

Constants inherited from Database::Row

Database::Row::SCHEMA

Instance Attribute Summary collapse

Attributes inherited from Object

#color, #group, #label, #mass, #orientation, #position, #radius, #theater, #type, #uuid

Instance Method Summary collapse

Methods inherited from Object

#as_asset, #as_camera, #as_player, #inspect, #is_asset?, #is_camera?, #is_player?, #is_target?, #send_message

Methods inherited from Database::Row

attr_accessor, attr_reader, attr_wrapper, attr_writer, #get, #key, key_attr, #set!, table_name

Constructor Details

#initialize(client, uuid) ⇒ Camera

Returns a new instance of Camera.

Parameters:

  • client (Client)
  • uuid (#to_s)

35
36
37
# File 'lib/conreality/camera.rb', line 35

def initialize(client, uuid)
  super(client, uuid)
end

Instance Attribute Details

#fnumberInteger

The camera's f-number (the f/N focal ratio).

Returns:

  • (Integer)

30
31
32
# File 'lib/conreality/camera.rb', line 30

def fnumber
  @fnumber
end

#formatString

The camera's image format.

Returns:

  • (String)

18
19
20
# File 'lib/conreality/camera.rb', line 18

def format
  @format
end

#fpsInteger

The camera's frame rate (per second).

Returns:

  • (Integer)

24
25
26
# File 'lib/conreality/camera.rb', line 24

def fps
  @fps
end

#resolutionArray(Integer, Integer)

The camera's resolution (in 2D pixels).

Returns:

  • (Array(Integer, Integer))

12
13
14
# File 'lib/conreality/camera.rb', line 12

def resolution
  @resolution
end