Panda3D
panda
src
physx
physxForceFieldShapeDesc.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 physxForceFieldShapeDesc.h
10
* @author enn0x
11
* @date 2009-11-06
12
*/
13
14
#ifndef PHYSXFORCEFIELDSHAPEDESC_H
15
#define PHYSXFORCEFIELDSHAPEDESC_H
16
17
#include "
pandabase.h
"
18
#include "
luse.h
"
19
20
#include "
physx_includes.h
"
21
22
/**
23
* Abstract base class for descriptors for force field shapes descriptors.
24
*/
25
class
EXPCL_PANDAPHYSX
PhysxForceFieldShapeDesc
{
26
27
PUBLISHED:
28
virtual
void
set_to_default() = 0;
29
virtual
bool
is_valid()
const
= 0;
30
31
void
set_name(
const
char
*name);
32
void
set_pos(
const
LPoint3f &pos);
33
void
set_mat(
const
LMatrix4f &mat);
34
void
set_hpr(
float
h,
float
p,
float
r);
35
36
const
char
*get_name()
const
;
37
LPoint3f get_pos()
const
;
38
LMatrix4f get_mat()
const
;
39
40
public
:
41
virtual
NxForceFieldShapeDesc *ptr()
const
= 0;
42
43
private
:
44
std::string _name;
45
46
protected
:
47
INLINE
PhysxForceFieldShapeDesc
();
48
INLINE ~
PhysxForceFieldShapeDesc
();
49
};
50
51
#include "
physxForceFieldShapeDesc.I
"
52
53
#endif // PHYSXFORCEFIELDSHAPEDESC_H
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PhysxForceFieldShapeDesc
Abstract base class for descriptors for force field shapes descriptors.
Definition:
physxForceFieldShapeDesc.h:25
luse.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxForceFieldShapeDesc.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physx_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Sun Dec 27 2020 13:23:13 for Panda3D by
1.8.20