Choreonoid  1.8
Public Member Functions | Static Public Member Functions | List of all members
cnoid::BodyOverwriteAddon Class Reference

#include <BodyOverwriteAddon.h>

Inheritance diagram for cnoid::BodyOverwriteAddon:
cnoid::ItemAddon cnoid::Referenced

Public Member Functions

 BodyOverwriteAddon ()
 
virtual bool setOwnerItem (Item *item) override
 
bool checkIfSingleShapeBody ()
 
LinkShapeOverwriteItemfindLinkShapeOverwriteItem (Link *link)
 
LinkShapeOverwriteItemgetOrCreateLinkShapeOverwriteItem (Link *link)
 
bool registerLinkShapeOverwriteItem (Link *link, LinkShapeOverwriteItem *item)
 
void unregisterLinkShapeOverwriteItem (LinkShapeOverwriteItem *item)
 
ItemList< DeviceOverwriteItemextractDevicesAsOverwriteItems (std::function< bool(Device *device)> predicate)
 
template<class DeviceType >
ItemList< DeviceOverwriteItemdeviceOverwriteItems ()
 
DeviceOverwriteItemfindDeviceOverwriteItem (Device *device)
 
bool addDeviceOverwriteItem (DeviceOverwriteItem *item)
 
void removeDeviceOverwriteItem (DeviceOverwriteItem *item)
 
void clearOverwriteItems ()
 
virtual bool store (Archive &archive) override
 
virtual bool restore (const Archive &archive) override
 
- Public Member Functions inherited from cnoid::ItemAddon
 ItemAddon ()
 
 ItemAddon (const ItemAddon &org)
 
virtual ItemownerItem ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Static Public Member Functions

static void initializeClass (ExtensionManager *ext)
 

Additional Inherited Members

- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
int refCount () const
 

Constructor & Destructor Documentation

◆ BodyOverwriteAddon()

BodyOverwriteAddon::BodyOverwriteAddon ( )

Member Function Documentation

◆ addDeviceOverwriteItem()

bool BodyOverwriteAddon::addDeviceOverwriteItem ( DeviceOverwriteItem item)

◆ checkIfSingleShapeBody()

bool BodyOverwriteAddon::checkIfSingleShapeBody ( )

◆ clearOverwriteItems()

void BodyOverwriteAddon::clearOverwriteItems ( )
Note
Currently this function only clears LinkShapeOverwriteItems. It does not clear DeviceOverwriteItems because outputting overwritten devices into a body file is not yet supported.

◆ deviceOverwriteItems()

template<class DeviceType >
ItemList<DeviceOverwriteItem> cnoid::BodyOverwriteAddon::deviceOverwriteItems ( )
inline

◆ extractDevicesAsOverwriteItems()

ItemList< DeviceOverwriteItem > BodyOverwriteAddon::extractDevicesAsOverwriteItems ( std::function< bool(Device *device)>  predicate)

◆ findDeviceOverwriteItem()

DeviceOverwriteItem * BodyOverwriteAddon::findDeviceOverwriteItem ( Device device)

◆ findLinkShapeOverwriteItem()

LinkShapeOverwriteItem * BodyOverwriteAddon::findLinkShapeOverwriteItem ( Link link)

◆ getOrCreateLinkShapeOverwriteItem()

LinkShapeOverwriteItem * BodyOverwriteAddon::getOrCreateLinkShapeOverwriteItem ( Link link)

◆ initializeClass()

void BodyOverwriteAddon::initializeClass ( ExtensionManager ext)
static

◆ registerLinkShapeOverwriteItem()

bool BodyOverwriteAddon::registerLinkShapeOverwriteItem ( Link link,
LinkShapeOverwriteItem item 
)

◆ removeDeviceOverwriteItem()

void BodyOverwriteAddon::removeDeviceOverwriteItem ( DeviceOverwriteItem item)

◆ restore()

bool BodyOverwriteAddon::restore ( const Archive archive)
overridevirtual

Reimplemented from cnoid::ItemAddon.

◆ setOwnerItem()

bool BodyOverwriteAddon::setOwnerItem ( Item item)
overridevirtual

Reimplemented from cnoid::ItemAddon.

◆ store()

bool BodyOverwriteAddon::store ( Archive archive)
overridevirtual

Reimplemented from cnoid::ItemAddon.

◆ unregisterLinkShapeOverwriteItem()

void BodyOverwriteAddon::unregisterLinkShapeOverwriteItem ( LinkShapeOverwriteItem item)

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