14 #ifndef NODEPATHCOLLECTION_H 15 #define NODEPATHCOLLECTION_H 32 EXTENSION(PyObject *__reduce__(PyObject *
self)
const);
35 void add_path(
const NodePath &node_path);
36 bool remove_path(
const NodePath &node_path);
39 void remove_duplicate_paths();
40 bool has_path(
const NodePath &path)
const;
42 void reserve(
size_t num);
44 bool is_empty()
const;
45 int get_num_paths()
const;
47 MAKE_SEQ(get_paths, get_num_paths, get_path);
48 NodePath operator [] (
size_t index)
const;
54 INLINE
void append(
const NodePath &node_path);
58 INLINE
void ls()
const;
59 void ls(std::ostream &out,
int indent_level = 0)
const;
62 void reparent_to(
const NodePath &other);
63 void wrt_reparent_to(
const NodePath &other);
75 bool calc_tight_bounds(LPoint3 &min_point, LPoint3 &max_point)
const;
77 EXTENSION(PyObject *get_tight_bounds()
const);
79 void set_texture(
Texture *tex,
int priority = 0);
81 void set_texture_off(
int priority = 0);
82 void set_texture_off(
TextureStage *stage,
int priority = 0);
84 INLINE
void set_color(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a = 1.0,
86 void set_color(
const LColor &color,
int priority = 0);
88 INLINE
void set_color_scale(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a = 1.0,
90 void set_color_scale(
const LVecBase4 &scale,
int priority = 0);
92 INLINE
void compose_color_scale(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a = 1.0,
94 void compose_color_scale(
const LVecBase4 &scale,
int priority = 0);
96 void set_attrib(
const RenderAttrib *attrib,
int priority = 0);
98 void output(std::ostream &out)
const;
99 void write(std::ostream &out,
int indent_level = 0)
const;
103 NodePaths _node_paths;
This is our own Panda specialization on the default STL map.
This is the base class for a number of render attributes (other than transform) that may be set on sc...
static BitMask< WType, nbits > all_on()
Returns a BitMask whose bits are all on.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void output(std::ostream &out) const
Writes a brief one-line description of the NodePathCollection to the indicated output stream.
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
Defines the properties of a named stage of the multitexture pipeline.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a set of zero or more NodePaths.