24 bool is_ai, CHANNEL_TYPE ai_id) {
25 _repository = repository;
37 INLINE
void CDistributedSmoothNodeBase::
38 set_clock_delta(PyObject *clock_delta) {
39 _clock_delta = clock_delta;
51 INLINE
bool CDistributedSmoothNodeBase::
52 only_changed(
int flags,
int compare) {
53 return (flags & compare) != 0 && (flags & ~compare) == 0;
61 INLINE
void CDistributedSmoothNodeBase::
65 begin_send_update(packer,
"setSmStop");
66 finish_send_update(packer);
74 INLINE
void CDistributedSmoothNodeBase::
75 d_setSmH(PN_stdfloat h) {
78 begin_send_update(packer,
"setSmH");
80 finish_send_update(packer);
88 INLINE
void CDistributedSmoothNodeBase::
89 d_setSmZ(PN_stdfloat z) {
92 begin_send_update(packer,
"setSmZ");
94 finish_send_update(packer);
102 INLINE
void CDistributedSmoothNodeBase::
103 d_setSmXY(PN_stdfloat x, PN_stdfloat y) {
106 begin_send_update(packer,
"setSmXY");
109 finish_send_update(packer);
117 INLINE
void CDistributedSmoothNodeBase::
118 d_setSmXZ(PN_stdfloat x, PN_stdfloat z) {
121 begin_send_update(packer,
"setSmXZ");
124 finish_send_update(packer);
132 INLINE
void CDistributedSmoothNodeBase::
133 d_setSmPos(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
136 begin_send_update(packer,
"setSmPos");
140 finish_send_update(packer);
148 INLINE
void CDistributedSmoothNodeBase::
149 d_setSmHpr(PN_stdfloat h, PN_stdfloat p, PN_stdfloat r) {
152 begin_send_update(packer,
"setSmHpr");
156 finish_send_update(packer);
164 INLINE
void CDistributedSmoothNodeBase::
165 d_setSmXYH(PN_stdfloat x, PN_stdfloat y, PN_stdfloat h) {
168 begin_send_update(packer,
"setSmXYH");
172 finish_send_update(packer);
180 INLINE
void CDistributedSmoothNodeBase::
181 d_setSmXYZH(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z, PN_stdfloat h) {
184 begin_send_update(packer,
"setSmXYZH");
189 finish_send_update(packer);
197 INLINE
void CDistributedSmoothNodeBase::
198 d_setSmPosHpr(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z, PN_stdfloat h, PN_stdfloat p, PN_stdfloat r) {
201 begin_send_update(packer,
"setSmPosHpr");
208 finish_send_update(packer);
217 INLINE
void CDistributedSmoothNodeBase::
218 d_setSmPosHprL(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z, PN_stdfloat h, PN_stdfloat p, PN_stdfloat r, PN_uint64 l) {
221 begin_send_update(packer,
"setSmPosHprL");
229 finish_send_update(packer);
This class can be used for packing a series of numeric and string data into a binary stream...
void pack_double(double value)
Packs the indicated numeric or string value into the stream.
void set_repository(CConnectionRepository *repository, bool is_ai, CHANNEL_TYPE ai_id)
Tells the C++ instance definition about the AI or Client repository, used for sending datagrams...
This class implements the C++ side of the ConnectionRepository object.
void pack_uint64(PN_uint64 value)
Packs the indicated numeric or string value into the stream.