Class: Sketchup::RenderingOptionsObserver Abstract

Inherits:
Object
  • Object
show all

Overview

This class is abstract.

To implement this observer, create a Ruby class of this type, implement the desired methods, and add an instance of the observer to the objects of interests.

This observer interface is implemented to react to rendering options events.

Examples:

# This is an example of an observer that watches the rendering options
# for changes.
class MyRenderingOptionsObserver < Sketchup::RenderingOptionsObserver
  def onRenderingOptionsChanged(rendering_options, type)
    puts "onRenderingOptionsChanged(#{rendering_options}, #{type})"
  end
end

# Attach the observer.
rendering_options = Sketchup.active_model.rendering_options
rendering_options.add_observer(MyRenderingOptionsObserver.new)

Instance Method Summary # collapse

Instance Method Details

#onRenderingOptionsChanged(rendering_options, type) ⇒ Object

The onRenderingOptionsChanged method is invoked whenever the user changes their rendering options.

Examples:

def onRenderingOptionsChanged(rendering_options, type)
  puts "onRenderingOptionsChanged(#{rendering_options}, #{type})"
end

Parameters:

Version:

  • SketchUp 6.0