Panda3D
panda
src
chan
partSubset.h
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file partSubset.h
10
* @author drose
11
* @date 2006-01-19
12
*/
13
14
#ifndef PARTSUBSET_H
15
#define PARTSUBSET_H
16
17
#include "
pandabase.h
"
18
#include "
globPattern.h
"
19
20
/**
21
* This class is used to define a subset of part names to apply to the
22
* PartBundle::bind_anim() operation. Only those part names within the subset
23
* will be included in the bind.
24
*/
25
class
EXPCL_PANDA_CHAN
PartSubset
{
26
PUBLISHED:
27
PartSubset
();
28
PartSubset
(
const
PartSubset
©);
29
void
operator = (
const
PartSubset
©);
30
31
void
add_include_joint(
const
GlobPattern
&name);
32
void
add_exclude_joint(
const
GlobPattern
&name);
33
34
void
append(
const
PartSubset
&other);
35
36
void
output(std::ostream &out)
const
;
37
38
bool
is_include_empty()
const
;
39
bool
matches_include(
const
std::string &joint_name)
const
;
40
bool
matches_exclude(
const
std::string &joint_name)
const
;
41
42
private
:
43
typedef
pvector<GlobPattern>
Joints
;
44
Joints
_include_joints;
45
Joints
_exclude_joints;
46
};
47
48
INLINE std::ostream &operator << (std::ostream &out,
const
PartSubset
&subset) {
49
subset.output(out);
50
return
out;
51
}
52
53
#include "
partSubset.I
"
54
55
#endif
pvector< GlobPattern >
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
partSubset.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
globPattern.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PartSubset
This class is used to define a subset of part names to apply to the PartBundle::bind_anim() operation...
Definition:
partSubset.h:25
GlobPattern
This class can be used to test for string matches against standard Unix- shell filename globbing conv...
Definition:
globPattern.h:32
Generated on Sat Jan 11 2020 15:14:44 for Panda3D by
1.8.17