31class EXPCL_PANDA_PGRAPH AuxSceneData :
public TypedReferenceCount {
33 INLINE AuxSceneData(
double duration = 0.0);
44 virtual void output(std::ostream &out)
const;
45 virtual void write(std::ostream &out,
int indent_level = 0)
const;
49 double _last_render_time;
55 static void init_type() {
56 TypedReferenceCount::init_type();
58 TypedReferenceCount::get_class_type());
61 return get_class_type();
63 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
69INLINE std::ostream &operator << (std::ostream &out,
const AuxSceneData &data);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a base class for a generic data structure that can be attached per- instance to the camera,...
void set_last_render_time(double render_time)
Should be called with the current frame_time each time the AuxSceneData is used during traversal.
double get_expiration_time() const
Returns the frame_time at which this AuxSceneData object is currently scheduled to be removed from th...
void set_duration(double duration)
Specifies the minimum length in time, in seconds, to keep this AuxSceneData object around in the scen...
double get_last_render_time() const
Returns the last time this object was used during traversal (according to set_last_render_time()).
double get_duration() const
Returns the minimum length in time, in seconds, to keep this AuxSceneData object around in the scene ...
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.
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.