Go to the documentation of this file.
6 #ifndef CNOID_BODY_MARKER_DEVICE_H
7 #define CNOID_BODY_MARKER_DEVICE_H
9 #include <cnoid/Device>
10 #include "exportdecl.h"
20 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
25 virtual const char* typeName()
const override;
26 void copyMarkerDeviceStateFrom(
const MarkerDevice& other);
27 virtual void copyStateFrom(
const DeviceState& other)
override;
29 virtual void forEachActualType(std::function<
bool(
const std::type_info& type)> func)
override;
30 virtual int stateSize()
const override;
31 virtual const double* readState(
const double* buf)
override;
32 virtual double* writeState(
double* out_buf)
const override;
34 bool readSpecifications(
const Mapping* node);
35 bool writeSpecifications(
Mapping* node)
const;
37 virtual bool on()
const override;
38 virtual void on(
bool on)
override;
53 const Vector3f&
color()
const {
return color_; }
54 void setColor(
const Vector3f& c) { color_ = c; }
void setEmission(float r)
Definition: MarkerDevice.h:56
Definition: ValueTree.h:253
float transparency() const
Definition: MarkerDevice.h:57
const Vector3f & color() const
Definition: MarkerDevice.h:53
int markerType() const
Definition: MarkerDevice.h:47
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
Definition: MarkerDevice.h:17
Eigen::Isometry3d Isometry3
Definition: EigenTypes.h:73
const Isometry3 & offsetPosition() const
Definition: MarkerDevice.h:60
double markerSize() const
Definition: MarkerDevice.h:50
Definition: Referenced.h:103
void setMarkerSize(double size)
Definition: MarkerDevice.h:51
void setColor(const Vector3f &c)
Definition: MarkerDevice.h:54
@ CROSS_MARKER
Definition: MarkerDevice.h:41
MarkerType
Definition: MarkerDevice.h:40
void setOffsetTranslation(const Vector3 &p)
Definition: MarkerDevice.h:62
ref_ptr< MarkerDevice > MarkerDevicePtr
Definition: MarkerDevice.h:77
Definition: AbstractSceneLoader.h:11
Definition: CloneMap.h:13
void setTransparency(float t)
Definition: MarkerDevice.h:58
@ AXES_MARKER
Definition: MarkerDevice.h:43
float emission() const
Definition: MarkerDevice.h:55
Definition: Referenced.h:54
@ SPHERE_MARKER
Definition: MarkerDevice.h:42
void setOffsetPosition(const Isometry3 &T)
Definition: MarkerDevice.h:61
void setMarkerType(int type)
Definition: MarkerDevice.h:48