Class: Lightwave::LightwaveObject::TextureHeader

Inherits:
ChunkReader
  • Object
show all
Defined in:
lib/lightwave.rb

Instance Attribute Summary collapse

Attributes inherited from ChunkReader

#errors

Instance Method Summary collapse

Methods inherited from ChunkReader

chunk_map, #initialize, #process_tags, set_chunk_length

Constructor Details

This class inherits a constructor from Lightwave::LightwaveObject::ChunkReader

Instance Attribute Details

#channelObject

Returns the value of attribute channel.



180
181
182
# File 'lib/lightwave.rb', line 180

def channel
  @channel
end

#displacement_axisObject

Returns the value of attribute displacement_axis.



180
181
182
# File 'lib/lightwave.rb', line 180

def displacement_axis
  @displacement_axis
end

#enabledObject Also known as: enabled?

Returns the value of attribute enabled.



180
181
182
# File 'lib/lightwave.rb', line 180

def enabled
  @enabled
end

#negativeObject

Returns the value of attribute negative.



180
181
182
# File 'lib/lightwave.rb', line 180

def negative
  @negative
end

#opacityObject

Returns the value of attribute opacity.



180
181
182
# File 'lib/lightwave.rb', line 180

def opacity
  @opacity
end

Instance Method Details

#make_defaultsObject



187
188
189
190
191
192
193
194
195
# File 'lib/lightwave.rb', line 187

def make_defaults
  if !@opacity
    @opacity = Opacity.new
    @opacity.type=:additive
    @opacity.opacity = 1.0
  end
  if @enabled.nil? then @enabled = true end
  if @negative.nil? then @negative = false end
end