17 INLINE FindApproxPath::
19 _return_hidden =
true;
20 _return_stashed =
false;
21 _case_insensitive =
false;
38 nassertr(index >= 0 && index < (
int)_path.size(),
false);
39 return (_path[index]._type == CT_match_many);
48 nassertr(index >= 0 && index < (
int)_path.size(),
false);
49 return (_path[index].matches(node));
58 if (index >= 0 && index < (
int)_path.size()) {
59 return ((_path[index]._flags & CF_stashed) != 0);
71 return _return_hidden;
80 return _return_stashed;
89 return _case_insensitive;
97 nassertv(index >= 0 && index < (
int)_path.size());
A basic node of the scene graph or data graph.
bool case_insensitive() const
Returns true if the search is case-insensitive, false if it is case- sensitive.
bool matches_stashed(int index) const
Returns true if the nth component of the path matches a stashed node only, false otherwise.
bool return_stashed() const
Returns true if this path allows returning of stashed nodes, false otherwise.
bool is_component_match_many(int index) const
Returns true if the nth component is of type match_many, which will require special handling.
void output_component(std::ostream &out, int index) const
Formats the nth component of the path to the indicated output stream.
int get_num_components() const
Returns the number of components in the path.
bool return_hidden() const
Returns true if this path allows returning of hidden nodes, false otherwise.
bool matches_component(int index, PandaNode *node) const
Returns true if the nth component of the path matches the indicated node, false otherwise.