forked from panda3d/panda3d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathodeJointCollection.h
More file actions
53 lines (45 loc) · 1.39 KB
/
odeJointCollection.h
File metadata and controls
53 lines (45 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file odeJointCollection.h
* @author joswilso
* @date 2006-12-27
*/
#ifndef ODEJOINTCOLLECTION_H
#define ODEJOINTCOLLECTION_H
#include "odeJoint.h"
/**
*
*/
class EXPCL_PANDAODE OdeJointCollection {
PUBLISHED:
OdeJointCollection();
OdeJointCollection(const OdeJointCollection ©);
void operator = (const OdeJointCollection ©);
INLINE ~OdeJointCollection();
void add_joint(const OdeJoint &joint);
bool remove_joint(const OdeJoint &joint);
void add_joints_from(const OdeJointCollection &other);
void remove_joints_from(const OdeJointCollection &other);
void remove_duplicate_joints();
bool has_joint(const OdeJoint &joint) const;
void clear();
bool is_empty() const;
int get_num_joints() const;
OdeJoint get_joint(int index) const;
MAKE_SEQ(get_joints, get_num_joints, get_joint);
OdeJoint operator [] (int index) const;
int size() const;
INLINE void operator += (const OdeJointCollection &other);
INLINE OdeJointCollection operator + (const OdeJointCollection &other) const;
private:
typedef PTA(OdeJoint) Joints;
Joints _joints;
};
#include "odeJointCollection.I"
#endif