Class: OpenUSD::Schema::Camera
- Defined in:
- lib/openusd/schema/camera.rb
Overview
Convenience API for common Camera attributes.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#clipping_range ⇒ Array<Float>?
Near and far clipping distances.
-
#clipping_range=(value) ⇒ Object
Author near and far clipping distances.
-
#focal_length ⇒ Float?
Focal length in tenths of a scene unit.
-
#focal_length=(value) ⇒ Object
Author the focal length.
Methods inherited from Base
define, get, #initialize, #path, schema_type, #stage
Constructor Details
This class inherits a constructor from OpenUSD::Schema::Base
Instance Method Details
#clipping_range ⇒ Array<Float>?
Returns near and far clipping distances.
20 21 22 |
# File 'lib/openusd/schema/camera.rb', line 20 def clipping_range get("clippingRange") end |
#clipping_range=(value) ⇒ Object
Author near and far clipping distances.
25 26 27 |
# File 'lib/openusd/schema/camera.rb', line 25 def clipping_range=(value) set("clippingRange", "float2", value) end |
#focal_length ⇒ Float?
Returns focal length in tenths of a scene unit.
10 11 12 |
# File 'lib/openusd/schema/camera.rb', line 10 def focal_length get("focalLength") end |
#focal_length=(value) ⇒ Object
Author the focal length.
15 16 17 |
# File 'lib/openusd/schema/camera.rb', line 15 def focal_length=(value) set("focalLength", "float", value) end |