Choreonoid  1.8
Public Types | Public Member Functions | Protected Member Functions | List of all members
cnoid::TargetItemPicker< ItemType > Class Template Reference

#include <TargetItemPicker.h>

Inheritance diagram for cnoid::TargetItemPicker< ItemType >:
cnoid::TargetItemPickerBase

Public Types

typedef ref_ptr< ItemType > ItemTypePtr
 

Public Member Functions

 TargetItemPicker ()
 
 TargetItemPicker (View *view)
 
void setTargetPredicate (std::function< bool(ItemType *item)> predicate)
 
template<class Interface >
void setTargetInterface ()
 
ItemType * currentItem ()
 
const ItemList< ItemType > & selectedItems ()
 
SignalProxy< void(ItemType *targetItem)> sigTargetItemSpecified ()
 
SignalProxy< void(ItemType *targetItem)> sigTargetItemChanged ()
 
SignalProxy< void(const ItemList< ItemType > &selected)> sigSelectedItemsChanged ()
 
- Public Member Functions inherited from cnoid::TargetItemPickerBase
 TargetItemPickerBase (View *view=nullptr)
 
 ~TargetItemPickerBase ()
 
void setEnabled (bool on)
 
void clearTargetItem ()
 
void refresh ()
 
void storeTargetItem (Archive &archive, const std::string &key)
 
void restoreTargetItem (const Archive &archive, const std::string &key)
 
void restoreTargetItemLater (const Archive &archive, const std::string &key)
 

Protected Member Functions

virtual ItemextractTargetItemCandidates (ItemList<> &io_items, Item *preferred, bool selectionChanged) override
 
virtual bool targetPredicate (Item *item) override
 
virtual void onTargetItemSpecified (Item *item, bool isChanged) override
 
virtual void onDeactivated () override
 
- Protected Member Functions inherited from cnoid::TargetItemPickerBase
ItemgetTargetItem ()
 

Member Typedef Documentation

◆ ItemTypePtr

template<class ItemType >
typedef ref_ptr<ItemType> cnoid::TargetItemPicker< ItemType >::ItemTypePtr

Constructor & Destructor Documentation

◆ TargetItemPicker() [1/2]

template<class ItemType >
cnoid::TargetItemPicker< ItemType >::TargetItemPicker ( )
inline

◆ TargetItemPicker() [2/2]

template<class ItemType >
cnoid::TargetItemPicker< ItemType >::TargetItemPicker ( View view)
inline

Member Function Documentation

◆ currentItem()

template<class ItemType >
ItemType* cnoid::TargetItemPicker< ItemType >::currentItem ( )
inline

◆ extractTargetItemCandidates()

template<class ItemType >
virtual Item* cnoid::TargetItemPicker< ItemType >::extractTargetItemCandidates ( ItemList<> &  io_items,
Item preferred,
bool  selectionChanged 
)
inlineoverrideprotectedvirtual

◆ onDeactivated()

template<class ItemType >
virtual void cnoid::TargetItemPicker< ItemType >::onDeactivated ( )
inlineoverrideprotectedvirtual

◆ onTargetItemSpecified()

template<class ItemType >
virtual void cnoid::TargetItemPicker< ItemType >::onTargetItemSpecified ( Item item,
bool  isChanged 
)
inlineoverrideprotectedvirtual

◆ selectedItems()

template<class ItemType >
const ItemList<ItemType>& cnoid::TargetItemPicker< ItemType >::selectedItems ( )
inline

◆ setTargetInterface()

template<class ItemType >
template<class Interface >
void cnoid::TargetItemPicker< ItemType >::setTargetInterface ( )
inline

◆ setTargetPredicate()

template<class ItemType >
void cnoid::TargetItemPicker< ItemType >::setTargetPredicate ( std::function< bool(ItemType *item)>  predicate)
inline

◆ sigSelectedItemsChanged()

template<class ItemType >
SignalProxy<void(const ItemList<ItemType>& selected)> cnoid::TargetItemPicker< ItemType >::sigSelectedItemsChanged ( )
inline

◆ sigTargetItemChanged()

template<class ItemType >
SignalProxy<void(ItemType* targetItem)> cnoid::TargetItemPicker< ItemType >::sigTargetItemChanged ( )
inline

◆ sigTargetItemSpecified()

template<class ItemType >
SignalProxy<void(ItemType* targetItem)> cnoid::TargetItemPicker< ItemType >::sigTargetItemSpecified ( )
inline

◆ targetPredicate()

template<class ItemType >
virtual bool cnoid::TargetItemPicker< ItemType >::targetPredicate ( Item item)
inlineoverrideprotectedvirtual

The documentation for this class was generated from the following file: