Panda3D
Loading...
Searching...
No Matches
physxForceFieldShapeGroupDesc.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 physxForceFieldShapeGroupDesc.h
10 * @author enn0x
11 * @date 2009-11-11
12 */
13
14#ifndef PHYSXFORCEFIELDSHAPEGROUPDESC_H
15#define PHYSXFORCEFIELDSHAPEGROUPDESC_H
16
17#include "pandabase.h"
18
19#include "physxEnums.h"
20#include "physx_includes.h"
21
23
24/**
25 *
26 */
27class EXPCL_PANDAPHYSX PhysxForceFieldShapeGroupDesc : public PhysxEnums {
28
29PUBLISHED:
30 INLINE PhysxForceFieldShapeGroupDesc();
31 INLINE ~PhysxForceFieldShapeGroupDesc();
32
33 INLINE void set_to_default();
34 INLINE bool is_valid() const;
35
37
38 void set_name(const char *name);
39 void set_flag(PhysxForceFieldShapeGroupFlag flag, bool value);
40
41 const char *get_name() const;
42 bool get_flag(PhysxForceFieldShapeGroupFlag flag) const;
43
44public:
45 NxForceFieldShapeGroupDesc _desc;
46
47private:
48 std::string _name;
49};
50
52
53#endif // PHYSXFORCEFIELDSHAPEGROUPDESC_H
This class exists just to provide scoping for the enums shared by PhysX classes.
Definition physxEnums.h:355
Abstract base class for descriptors for force field shapes descriptors.
bool is_valid() const
Returns true if the descriptor is valid.
const char * get_name() const
Returns the optional debug name for this force field shape group.
void add_shape(PhysxForceFieldShapeDesc &desc)
Adds a shape to the list of force field shapes composing this shape group.
bool get_flag(PhysxForceFieldShapeGroupFlag flag) const
Returns the specified force field shape group flag.
void set_name(const char *name)
Sets the optional debug name for the force field shape group.
void set_flag(PhysxForceFieldShapeGroupFlag flag, bool value)
Raise or lower individual force field shape group flags.
void set_to_default()
(re)sets the structure to the default.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.