lib/quake.rb
def draw_for_picking(index, buffer)
    buffer.push_matrix
    buffer.translate @x, @y, @z
    buffer.fill $app.index_to_color(index)
    buffer.rotate_y @longitude_radians
    buffer.rotate_x -@latitude_radians
    buffer.ellipse 0, 0, @size, @size
    buffer.pop_matrix
  end
# Draw the earthquakes into the picking buffer for selection.
Draw the earthquakes into the picking buffer for selection.
Draw the earthquakes into the picking buffer for selection .
def draw_for_picking(index, buffer)
    buffer.push_matrix
    buffer.translate @x, @y, @z
    buffer.fill $app.index_to_color(index)
    buffer.rotate_y @longitude_radians
    buffer.rotate_x -@latitude_radians
    buffer.ellipse 0, 0, @size, @size
    buffer.pop_matrix
  end
def draw_for_picking ( index , buffer ) buffer . push_matrix buffer . translate @x , @y , @z buffer . fill $app . index_to_color ( index ) buffer . rotate_y @longitude_radians buffer . rotate_x - @latitude_radians buffer . ellipse 0 , 0 , @size , @size buffer . pop_matrix end
Draw the earthquakes into the picking buffer for selection.
Draw the earthquakes into the picking buffer for selection .
index
buffer