14#ifndef SCENEGRAPHANALYZERMETER_H
15#define SCENEGRAPHANALYZERMETER_H
39class EXPCL_PANDA_GRUTIL SceneGraphAnalyzerMeter :
public TextNode {
41 explicit SceneGraphAnalyzerMeter(
const std::string &name, PandaNode *node);
42 virtual ~SceneGraphAnalyzerMeter();
53 INLINE
void set_node(PandaNode *node);
62 void do_update(
Thread *current_thread);
70 double _update_interval;
75 PN_stdfloat _last_aspect_ratio;
84 static void init_type() {
85 TextNode::init_type();
87 TextNode::get_class_type());
90 return get_class_type();
92 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
A ClockObject keeps track of elapsed real time and discrete time.
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
A rectangular subregion within a window for rendering into.
This is a base class for the various different classes that represent the result of a frame of render...
A lightweight class that represents a single element that may be timed and/or counted via stats.
A basic node of the scene graph or data graph.
void setup_window(GraphicsOutput *window)
Sets up the frame rate meter to create a DisplayRegion to render itself into the indicated window.
void clear_window()
Undoes the effect of a previous call to setup_window().
GraphicsOutput * get_window() const
Returns the GraphicsOutput that was passed to setup_window(), or NULL if setup_window() has not been ...
double get_update_interval() const
Returns the number of seconds that will elapse between updates to the frame rate indication.
PandaNode * get_node() const
Returns the node to be analyzed.
void set_update_interval(double update_interval)
Specifies the number of seconds that should elapse between updates to the meter.
void set_node(PandaNode *node)
Sets the node to be analyzed.
DisplayRegion * get_display_region() const
Returns the DisplayRegion that the meter has created to render itself into the window to setup_window...
A handy class that can scrub over a scene graph and collect interesting statistics on it.
void update()
Can be called after the TextNode has been fully configured, to force the node to recompute its text i...
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data)
This function will be called during the cull traversal to perform any additional operations that shou...
A thread; that is, a lightweight process.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.