module Ui::PlanDisplay::SvgObjectMapper

Module used to extend the SVG items that represent a task in the plan

The #real_object method can then be used to get the actual plan object out of the SVG item

Attributes

plan_display[RW]

The PlanDisplay object to which we are attached

Public Instance Methods

real_object() click to toggle source

The task object that is represented by this SVG item

# File lib/orocos/roby/gui/plan_display.rb, line 317
def real_object
    id = data(Qt::UserRole)
    if id.valid?
        id = id.to_int
        plan_display.index_to_object[id]
    end
end