Panda3D
Loading...
Searching...
No Matches
pStatView.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file pStatView.I
10 * @author drose
11 * @date 2000-07-12
12 */
13
14/**
15 * Returns the current PStatThreadData associated with the view. This was set
16 * by a previous call to set_thread_data().
17 */
20 return _thread_data;
21}
22
23/**
24 * Returns the current PStatClientData associated with the view. This was
25 * also set by a previous call to set_thread_data().
26 */
29 return _client_data;
30}
31
32
33/**
34 * Sets to a particular frame number (or the nearest available), extracted
35 * from the View's PStatThreadData pointer. See the comments in the other
36 * flavor of set_to_frame().
37 */
38INLINE void PStatView::
39set_to_frame(int frame_number) {
40 set_to_frame(_thread_data->get_frame(frame_number));
41}
42
43/**
44 * Sets to the frame that occurred at the indicated time (or the nearest
45 * available frame), extracted from the View's PStatThreadData pointer. See
46 * the comments in set_to_frame.
47 */
48INLINE void PStatView::
49set_to_time(double time) {
50 set_to_frame(_thread_data->get_frame_at_time(time));
51}
52
53/**
54 * Returns true if we are showing level data, false if time data.
55 */
56INLINE bool PStatView::
57get_show_level() const {
58 return _show_level;
59}
60
61/**
62 * Returns an index number that can be used to determine when the set of known
63 * levels has changed. Each time the set of levels in the view changes
64 * (because of new data arriving from the client, for instance), this number
65 * is incremented.
66 */
67INLINE int PStatView::
68get_level_index() const {
69 return _level_index;
70}
The data associated with a particular client, but not with any one particular frame or thread: the li...
A collection of FrameData structures for recently-received frames within a particular thread.
int get_level_index() const
Returns an index number that can be used to determine when the set of known levels has changed.
Definition pStatView.I:68
void set_to_frame(const PStatFrameData &frame_data)
Supplies the View with the data for the current frame.
void set_to_time(double time)
Sets to the frame that occurred at the indicated time (or the nearest available frame),...
Definition pStatView.I:49
bool get_show_level() const
Returns true if we are showing level data, false if time data.
Definition pStatView.I:57
const PStatThreadData * get_thread_data()
Returns the current PStatThreadData associated with the view.
Definition pStatView.I:19
const PStatClientData * get_client_data()
Returns the current PStatClientData associated with the view.
Definition pStatView.I:28