20 bool is_ai, CHANNEL_TYPE ai_id) {
21 _repository = repository;
30 INLINE
void CDistributedSmoothNodeBase::
31 set_clock_delta(PyObject *clock_delta) {
32 _clock_delta = clock_delta;
41 INLINE
bool CDistributedSmoothNodeBase::
42 only_changed(
int flags,
int compare) {
43 return (flags & compare) != 0 && (flags & ~compare) == 0;
49 INLINE
void CDistributedSmoothNodeBase::
53 begin_send_update(packer,
"setSmStop");
54 finish_send_update(packer);
60 INLINE
void CDistributedSmoothNodeBase::
61 d_setSmH(PN_stdfloat h) {
64 begin_send_update(packer,
"setSmH");
66 finish_send_update(packer);
72 INLINE
void CDistributedSmoothNodeBase::
73 d_setSmZ(PN_stdfloat z) {
76 begin_send_update(packer,
"setSmZ");
78 finish_send_update(packer);
84 INLINE
void CDistributedSmoothNodeBase::
85 d_setSmXY(PN_stdfloat x, PN_stdfloat y) {
88 begin_send_update(packer,
"setSmXY");
91 finish_send_update(packer);
97 INLINE
void CDistributedSmoothNodeBase::
98 d_setSmXZ(PN_stdfloat x, PN_stdfloat z) {
101 begin_send_update(packer,
"setSmXZ");
104 finish_send_update(packer);
110 INLINE
void CDistributedSmoothNodeBase::
111 d_setSmPos(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
114 begin_send_update(packer,
"setSmPos");
118 finish_send_update(packer);
124 INLINE
void CDistributedSmoothNodeBase::
125 d_setSmHpr(PN_stdfloat h, PN_stdfloat p, PN_stdfloat r) {
128 begin_send_update(packer,
"setSmHpr");
132 finish_send_update(packer);
138 INLINE
void CDistributedSmoothNodeBase::
139 d_setSmXYH(PN_stdfloat x, PN_stdfloat y, PN_stdfloat h) {
142 begin_send_update(packer,
"setSmXYH");
146 finish_send_update(packer);
152 INLINE
void CDistributedSmoothNodeBase::
153 d_setSmXYZH(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z, PN_stdfloat h) {
157 begin_send_update(packer,
"setSmXYZH");
162 finish_send_update(packer);
168 INLINE
void CDistributedSmoothNodeBase::
169 d_setSmPosHpr(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z, PN_stdfloat h, PN_stdfloat p, PN_stdfloat r) {
173 begin_send_update(packer,
"setSmPosHpr");
180 finish_send_update(packer);
186 INLINE
void CDistributedSmoothNodeBase::
187 d_setSmPosHprL(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z, PN_stdfloat h, PN_stdfloat p, PN_stdfloat r, uint64_t l) {
191 begin_send_update(packer,
"setSmPosHprL");
199 finish_send_update(packer);
void pack_uint64(uint64_t value)
Packs the indicated numeric or string value into the stream.
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.