33 virtual void output(std::ostream &out)
const;
36 INLINE
void set_fade_time(PN_stdfloat t);
37 INLINE PN_stdfloat get_fade_time()
const;
38 MAKE_PROPERTY(fade_time, get_fade_time, set_fade_time);
40 void set_fade_bin(
const std::string &name,
int draw_order);
41 INLINE
const std::string &get_fade_bin_name()
const;
42 INLINE
int get_fade_bin_draw_order()
const;
43 MAKE_PROPERTY(fade_bin_name, get_fade_bin_name);
44 MAKE_PROPERTY(fade_bin_draw_order, get_fade_bin_draw_order);
46 void set_fade_state_override(
int override);
47 INLINE
int get_fade_state_override()
const;
48 MAKE_PROPERTY(fade_state_override, get_fade_state_override,
49 set_fade_state_override);
53 CPT(
RenderState) get_fade_1_new_state(PN_stdfloat in_alpha);
54 CPT(
RenderState) get_fade_2_old_state(PN_stdfloat out_alpha);
58 PN_stdfloat _fade_time;
59 std::string _fade_bin_name;
60 int _fade_bin_draw_order;
61 int _fade_state_override;
80 static void init_type() {
83 LODNode::get_class_type());
86 return get_class_type();
88 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
A basic node of the scene graph or data graph.
virtual PandaNode * make_copy() const
Returns a newly-allocated Node that is a shallow copy of this one.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data)
This function will be called during the cull traversal to perform any additional operations that shou...
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 LODNode.
A Level-of-Detail node with alpha based switching.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
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.
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
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,...