Go to the documentation of this file. 1 #ifndef CNOID_BODY_HOLDER_DEVICE_H
2 #define CNOID_BODY_HOLDER_DEVICE_H
5 #include "exportdecl.h"
9 class AttachmentDevice;
19 virtual const char* typeName()
const override;
20 void copyHolderDeviceStateFrom(
const HolderDevice* other);
21 virtual void copyStateFrom(
const DeviceState& other)
override;
24 virtual bool copyFrom(
const Device* other)
override;
25 virtual void forEachActualType(std::function<
bool(
const std::type_info& type)> func)
override;
26 virtual int stateSize()
const override;
27 virtual const double* readState(
const double* buf)
override;
28 virtual double* writeState(
double* out_buf)
const override;
30 virtual bool on()
const override;
31 virtual void on(
bool on)
override;
33 std::string category()
const;
34 void setCategory(
const std::string& category);
37 int holdCondition()
const;
38 void setHoldCondition(
int condition);
39 double maxHoldDistance()
const;
40 void setMaxHoldDistance(
double distance);
41 const std::string& holdTargetName()
const;
42 void setHoldTargetName(
const std::string& name);
44 int numAttachments()
const;
47 void removeAttachment(
int index);
49 void clearAttachments();
51 bool readDescription(
const Mapping* info);
52 bool writeDescription(
Mapping* info)
const;
Definition: ValueTree.h:253
Definition: Referenced.h:103
Definition: AbstractSceneLoader.h:11
Definition: HolderDevice.h:13
Definition: Collision.h:14
Definition: CloneMap.h:13
ref_ptr< AttachmentDevice > AttachmentDevicePtr
Definition: AttachmentDevice.h:56
Definition: AttachmentDevice.h:13
ref_ptr< HolderDevice > HolderDevicePtr
Definition: HolderDevice.h:64
Definition: Referenced.h:54
HoldCondition
Definition: HolderDevice.h:36