Panda3D
Public Member Functions

CDistributedSmoothNodeBase Class Reference

This class defines some basic methods of DistributedSmoothNodeBase which have been moved into C++ as a performance optimization. More...

#include "cDistributedSmoothNodeBase.h"

List of all members.

Public Member Functions

void broadcast_pos_hpr_full ()
 Examines the complete pos/hpr information to see which of the six elements have changed, and broadcasts the appropriate messages.
void broadcast_pos_hpr_xy ()
 Examines only X and Y of the pos/hpr information, and broadcasts the appropriate messages.
void broadcast_pos_hpr_xyh ()
 Examines only X, Y, and H of the pos/hpr information, and broadcasts the appropriate messages.
void initialize (const NodePath &node_path, DCClass *dclass, CHANNEL_TYPE do_id)
 Initializes the internal structures from some constructs that are normally stored only in Python.
void print_curr_l ()
void send_everything ()
 Broadcasts the current pos/hpr in its complete form.
void set_curr_l (PN_uint64 l)
 Appends the timestamp and sends the update.
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.

Detailed Description

This class defines some basic methods of DistributedSmoothNodeBase which have been moved into C++ as a performance optimization.

Definition at line 34 of file cDistributedSmoothNodeBase.h.


Member Function Documentation

void CDistributedSmoothNodeBase::broadcast_pos_hpr_full ( )

Examines the complete pos/hpr information to see which of the six elements have changed, and broadcasts the appropriate messages.

Definition at line 95 of file cDistributedSmoothNodeBase.cxx.

References NodePath::get_hpr(), and NodePath::get_pos().

void CDistributedSmoothNodeBase::broadcast_pos_hpr_xy ( )

Examines only X and Y of the pos/hpr information, and broadcasts the appropriate messages.

Definition at line 254 of file cDistributedSmoothNodeBase.cxx.

References NodePath::get_pos().

void CDistributedSmoothNodeBase::broadcast_pos_hpr_xyh ( )

Examines only X, Y, and H of the pos/hpr information, and broadcasts the appropriate messages.

Definition at line 202 of file cDistributedSmoothNodeBase.cxx.

References NodePath::get_hpr(), and NodePath::get_pos().

void CDistributedSmoothNodeBase::initialize ( const NodePath node_path,
DCClass dclass,
CHANNEL_TYPE  do_id 
)

Initializes the internal structures from some constructs that are normally stored only in Python.

Also reads the current node's pos & hpr values in preparation for transmitting them via one of the broadcast_pos_hpr_*() methods.

Definition at line 63 of file cDistributedSmoothNodeBase.cxx.

References NodePath::get_hpr(), NodePath::get_pos(), and NodePath::is_empty().

void CDistributedSmoothNodeBase::send_everything ( )

Broadcasts the current pos/hpr in its complete form.

Definition at line 81 of file cDistributedSmoothNodeBase.cxx.

void CDistributedSmoothNodeBase::set_curr_l ( PN_uint64  l)

Appends the timestamp and sends the update.

Definition at line 388 of file cDistributedSmoothNodeBase.cxx.

void CDistributedSmoothNodeBase::set_repository ( CConnectionRepository repository,
bool  is_ai,
CHANNEL_TYPE  ai_id 
) [inline]

Tells the C++ instance definition about the AI or Client repository, used for sending datagrams.

Definition at line 23 of file cDistributedSmoothNodeBase.I.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations