22 INLINE ClipPlaneAttrib::
24 _off_all_planes =
false;
34 INLINE ClipPlaneAttrib::
36 _on_planes(copy._on_planes),
37 _off_planes(copy._off_planes),
38 _off_all_planes(copy._off_all_planes)
50 return _on_planes.
size();
73 return _on_planes.find(plane) != _on_planes.
end();
84 return _off_planes.
size();
96 return _off_planes[n];
107 return _off_planes.find(plane) != _off_planes.
end() ||
119 return _off_all_planes;
130 return _on_planes.
empty() && _off_planes.
empty() && !_off_all_planes;
143 INLINE
void ClipPlaneAttrib::
144 check_filtered()
const {
bool empty() const
Returns true if the ordered vector is empty, false otherwise.
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 has_on_plane(const NodePath &plane) const
Returns true if the indicated plane is enabled by the attrib, false otherwise.
bool has_off_plane(const NodePath &plane) const
Returns true if the indicated plane is disabled by the attrib, false otherwise.
static UpdateSeq get_sort_seq()
Returns a global sequence number that is incremented any time any PlaneNode in the world changes sort...
int get_num_off_planes() const
Returns the number of planes that are disabled by the attribute.
static NodePath fail()
Creates a NodePath with the ET_fail error type set.
bool is_identity() const
Returns true if this is an identity attrib: it does not change the set of planes in use...
NodePath get_off_plane(int n) const
Returns the nth plane disabled by the attribute, sorted in arbitrary (pointer) order.
NodePath get_on_plane(int n) const
Returns the nth plane enabled by the attribute, sorted in render order.
int get_num_on_planes() const
Returns the number of planes that are enabled by the attribute.
size_type_0 size() const
Returns the number of elements in the ordered vector.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...