15 #ifndef NODEPATHCOLLECTION_H 16 #define NODEPATHCOLLECTION_H 18 #include "pandabase.h" 20 #include "pointerToArray.h" 38 EXTENSION(PyObject *__reduce__(PyObject *
self)
const);
41 void add_path(
const NodePath &node_path);
42 bool remove_path(
const NodePath &node_path);
45 void remove_duplicate_paths();
46 bool has_path(
const NodePath &path)
const;
48 void reserve(
size_t num);
50 bool is_empty()
const;
51 int get_num_paths()
const;
53 MAKE_SEQ(get_paths, get_num_paths, get_path);
54 NodePath operator [] (
int index)
const;
60 INLINE
void append(
const NodePath &node_path);
64 INLINE
void ls()
const;
65 void ls(ostream &out,
int indent_level = 0)
const;
68 void reparent_to(
const NodePath &other);
69 void wrt_reparent_to(
const NodePath &other);
81 bool calc_tight_bounds(
LPoint3 &min_point,
LPoint3 &max_point)
const;
83 EXTENSION(PyObject *get_tight_bounds()
const);
85 void set_texture(
Texture *tex,
int priority = 0);
87 void set_texture_off(
int priority = 0);
88 void set_texture_off(
TextureStage *stage,
int priority = 0);
90 INLINE
void set_color(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a = 1.0,
92 void set_color(
const LColor &
color,
int priority = 0);
94 INLINE
void set_color_scale(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a = 1.0,
96 void set_color_scale(
const LVecBase4 &scale,
int priority = 0);
98 INLINE
void compose_color_scale(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a = 1.0,
100 void compose_color_scale(
const LVecBase4 &scale,
int priority = 0);
102 void set_attrib(
const RenderAttrib *attrib,
int priority = 0);
104 void output(ostream &out)
const;
105 void write(ostream &out,
int indent_level = 0)
const;
109 NodePaths _node_paths;
120 #include "nodePathCollection.I" 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 TypeHandle none()
Returns a special zero-valued TypeHandle that is used to indicate no type.
static BitMask< PN_uint32, nbits > all_on()
Returns a BitMask whose bits are all on.
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
void output(ostream &out) const
Writes a brief one-line description of the NodePathCollection to the indicated output stream...
This is the base class for all three-component vectors and points.
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...
This is a set of zero or more NodePaths.