14 #ifndef UVSCROLLNODE_H 15 #define UVSCROLLNODE_H 28 INLINE
explicit UvScrollNode(
const std::string &name, PN_stdfloat u_speed, PN_stdfloat v_speed, PN_stdfloat w_speed, PN_stdfloat r_speed);
41 INLINE
void set_u_speed(PN_stdfloat u_speed);
42 INLINE
void set_v_speed(PN_stdfloat v_speed);
43 INLINE
void set_w_speed(PN_stdfloat w_speed);
44 INLINE
void set_r_speed(PN_stdfloat r_speed);
45 INLINE PN_stdfloat get_u_speed()
const;
46 INLINE PN_stdfloat get_v_speed()
const;
47 INLINE PN_stdfloat get_w_speed()
const;
48 INLINE PN_stdfloat get_r_speed()
const;
51 MAKE_PROPERTY(u_speed, get_u_speed, set_u_speed);
52 MAKE_PROPERTY(v_speed, get_v_speed, set_v_speed);
53 MAKE_PROPERTY(w_speed, get_w_speed, set_w_speed);
54 MAKE_PROPERTY(r_speed, get_r_speed, set_r_speed);
76 static void init_type() {
77 PandaNode::init_type();
79 PandaNode::get_class_type());
82 return get_class_type();
84 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A basic node of the scene graph or data graph.
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Base class for objects that can be written to and read from Bam files.
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.
This collects together the pieces of data that are accumulated for each node while walking the scene ...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
static void register_with_read_factory()
Tells the BamReader how to create objects of type PandaNode.
virtual bool safe_to_combine() const
Returns true if it is generally safe to combine this particular kind of PandaNode with other kinds of...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A class to retrieve the individual data elements previously stored in a Datagram.
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
virtual bool safe_to_flatten() const
Returns true if it is generally safe to flatten out this particular kind of PandaNode by duplicating ...