Panda3D

odeContact.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 odeContact.h
10 * @author joswilso
11 * @date 2006-12-27
12 */
13
14 #ifndef ODECONTACT_H
15 #define ODECONTACT_H
16
17 #include "pandabase.h"
18 #include "typedReferenceCount.h"
19 #include "luse.h"
20
21 #include "ode_includes.h"
22 #include "odeSurfaceParameters.h"
23 #include "odeContactGeom.h"
24
25
26 /**
27 *
28 */
29 class EXPCL_PANDAODE OdeContact : public TypedReferenceCount {
30 PUBLISHED:
31 OdeContact();
32 // OdeContact(const OdeContact &copy);
33 OdeContact(const dContact &contact);
34 virtual ~OdeContact();
35
36 INLINE OdeSurfaceParameters get_surface() const;
37 INLINE OdeContactGeom get_geom();
38 INLINE LVecBase3f get_fdir1() const;
39
40 INLINE void set_surface(const OdeSurfaceParameters &surface_parameters);
41 INLINE void set_geom(const OdeContactGeom &contact_geom);
42 INLINE void set_fdir1(const LVecBase3f &fdir1);
43
44 public:
45 void operator = (const OdeContact &copy);
46 bool operator == (const OdeContact &other);
47 const dContact* get_contact_ptr() const;
48
49 private:
50 dContact _contact;
51
52 public:
53 static TypeHandle get_class_type() {
54 return _type_handle;
55 }
56 static void init_type() {
57 TypedReferenceCount::init_type();
58 register_type(_type_handle, "OdeContact",
59 TypedReferenceCount::get_class_type());
60 }
61 virtual TypeHandle get_type() const {
62 return get_class_type();
63 }
64 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
65
66 private:
67 static TypeHandle _type_handle;
68 };
69
70 #include "odeContact.I"
71
72 #endif
OdeContactGeom
Definition: odeContactGeom.h:30
OdeContact
Definition: odeContact.h:29
OdeSurfaceParameters
Definition: odeSurfaceParameters.h:28
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
TypedReferenceCount
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
Definition: typedReferenceCount.h:31
luse.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
odeContactGeom.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
odeContact.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
odeSurfaceParameters.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
ode_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
register_type
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition: register_type.I:22
typedReferenceCount.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.