Class: Lightwave::LightwaveObject::TextureFalloff
- Inherits:
-
Object
- Object
- Lightwave::LightwaveObject::TextureFalloff
- Defined in:
- lib/lightwave.rb
Constant Summary collapse
- FALLOFF_TYPES =
[:cubic, :spherical, :linear_x, :linear_y, :linear_z]
Instance Attribute Summary collapse
-
#envelope ⇒ Object
Returns the value of attribute envelope.
-
#type ⇒ Object
Returns the value of attribute type.
-
#vector ⇒ Object
Returns the value of attribute vector.
Instance Method Summary collapse
-
#initialize(strio) ⇒ TextureFalloff
constructor
A new instance of TextureFalloff.
Constructor Details
#initialize(strio) ⇒ TextureFalloff
Returns a new instance of TextureFalloff.
201 202 203 |
# File 'lib/lightwave.rb', line 201 def initialize(strio) @type, @vector = FALLOFF_TYPES[strio.read_u2], strio.read_vector end |
Instance Attribute Details
#envelope ⇒ Object
Returns the value of attribute envelope.
200 201 202 |
# File 'lib/lightwave.rb', line 200 def envelope @envelope end |
#type ⇒ Object
Returns the value of attribute type.
200 201 202 |
# File 'lib/lightwave.rb', line 200 def type @type end |
#vector ⇒ Object
Returns the value of attribute vector.
200 201 202 |
# File 'lib/lightwave.rb', line 200 def vector @vector end |