33class EXPCL_PANDA_DEVICE TrackerNode :
public DataNode {
35 explicit TrackerNode(
ClientBase *client,
const std::string &device_name);
37 virtual ~TrackerNode();
41 INLINE
const LPoint3 &
get_pos()
const;
61 int _transform_output;
69 CoordinateSystem _tracker_cs, _graph_cs;
75 static void init_type() {
76 DataNode::init_type();
78 DataNode::get_class_type());
81 return get_class_type();
83 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
An abstract base class for a family of client device interfaces–including trackers,...
This object supervises the traversal of the data graph and the moving of data from one DataNode to it...
Encapsulates the data generated from (or sent into) any particular DataNode.
Stores the kinds of data that a tracker might output.
CoordinateSystem get_graph_coordinate_system() const
Returns the coordinate system that the TrackerNode will convert its transform into for passing down t...
CoordinateSystem get_tracker_coordinate_system() const
Returns the coordinate system that the tracker associated with this node will operate in.
bool has_time() const
True if this data comes with timestamps.
bool is_valid() const
Returns true if the TrackerNode is valid and connected to a server, false otherwise.
void set_graph_coordinate_system(CoordinateSystem cs)
Specifies the coordinate system that the TrackerNode will convert its transform into for passing down...
const LMatrix4 & get_transform() const
Returns the current position and orientation of the tracker, as a combined matrix.
const LOrientation & get_orient() const
Returns the current orientation of the tracker, if it is available.
double get_time() const
Returns the time of the tracker's last update.
const LPoint3 & get_pos() const
Returns the current position of the tracker, if it is available.
void set_tracker_coordinate_system(CoordinateSystem cs)
Specifies the coordinate system that the tracker associated with this node will operate in.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.