17 INLINE ClipPlaneAttrib::
19 _off_all_planes =
false;
26 INLINE ClipPlaneAttrib::
28 _on_planes(copy._on_planes),
29 _off_planes(copy._off_planes),
30 _off_all_planes(copy._off_all_planes)
37 INLINE
int ClipPlaneAttrib::
38 get_num_on_planes()
const {
39 return _on_planes.
size();
57 return _on_planes.find(plane) != _on_planes.
end();
63 INLINE
int ClipPlaneAttrib::
64 get_num_off_planes()
const {
65 return _off_planes.
size();
75 return _off_planes[n];
84 return _off_planes.find(plane) != _off_planes.
end() ||
94 return _off_all_planes;
103 return _on_planes.
empty() && _off_planes.
empty() && !_off_all_planes;
112 INLINE
void ClipPlaneAttrib::
113 check_filtered()
const {
bool has_off_plane(const NodePath &plane) const
Returns true if the indicated plane is disabled by the attrib, false otherwise.
size_type_0 size() const
Returns the number of elements in the ordered vector.
bool is_identity() const
Returns true if this is an identity attrib: it does not change the set of planes in use.
bool has_all_off() const
Returns true if this attrib disables all planes (although it may also enable some).
This functions similarly to a LightAttrib.
iterator_0 end()
Returns the iterator that marks the end of the ordered vector.
bool empty() const
Returns true if the ordered vector is empty, false otherwise.
get_off_plane
Returns the nth plane disabled by the attribute, sorted in arbitrary (pointer) order.
static UpdateSeq get_sort_seq()
Returns a global sequence number that is incremented any time any PlaneNode in the world changes sort...
static NodePath fail()
Creates a NodePath with the ET_fail error type set.
bool has_on_plane(const NodePath &plane) const
Returns true if the indicated plane is enabled by the attrib, false otherwise.
get_on_plane
Returns the nth plane enabled by the attribute, sorted in render order.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...