42 const QString& default_value,
43 const QString& description,
46 bool include_fixed_frame_string,
47 const char *changed_slot,
50 , frame_manager_(
NULL )
51 , include_fixed_frame_string_( include_fixed_frame_string )
61 QString new_string = new_value.toString();
62 if( new_string.size() > 0 && new_string[ 0 ] ==
'/' )
64 new_string = new_string.right( new_string.size() - 1 );
88 std::vector<std::string> std_frames;
90 std::sort( std_frames.begin(), std_frames.end() );
97 for(
size_t i = 0; i < std_frames.size(); i++ )
105 QString frame =
getValue().toString();
void changed()
Emitted by setValue() just after the value has changed.
virtual void clearOptions()
virtual bool setValue(const QVariant &new_value)
Set the new value for this property. Returns true if the new value is different from the old value...
A single element of a property tree, with a name, value, description, and possibly children...
virtual bool setValue(const QVariant &new_value)
Override from Property to resolve the frame name on the way in.
virtual void addOption(const QString &option)
bool include_fixed_frame_string_
void addOptionStd(const std::string &option)
void handleFixedFrameChange()
If this property is currently set to FIXED_FRAME_STRING, this emits changed() to let users know that ...
Helper class for transforming data into Ogre's world frame (the fixed frame).
std::string getFrameStd() const
tf::TransformListener * getTFClient()
Return the tf::TransformListener used to receive transform data.
void requestOptions(EditableEnumProperty *property_in_need_of_options)
requestOptions() is emitted each time createEditor() is called.
const std::string & getFixedFrame()
Return the current fixed frame name.
static const QString FIXED_FRAME_STRING
virtual QVariant getValue() const
Return the value of this Property as a QVariant. If the value has never been set, an invalid QVariant...
void setFrameManager(FrameManager *frame_manager)
TfFrameProperty(const QString &name=QString(), const QString &default_value=QString(), const QString &description=QString(), Property *parent=0, FrameManager *frame_manager=0, bool include_fixed_frame_string=false, const char *changed_slot=0, QObject *receiver=0)
FrameManager * frame_manager_