Main Page Class List Class Members

NvBlastExtPxStressSolverImpl.h
Go to the documentation of this file.
1 // This code contains NVIDIA Confidential Information and is disclosed to you
2 // under a form of NVIDIA software license agreement provided separately to you.
3 //
4 // Notice
5 // NVIDIA Corporation and its licensors retain all intellectual property and
6 // proprietary rights in and to this software and related documentation and
7 // any modifications thereto. Any use, reproduction, disclosure, or
8 // distribution of this software and related documentation without an express
9 // license agreement from NVIDIA Corporation is strictly prohibited.
10 //
11 // ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES
12 // NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
13 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT,
14 // MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.
15 //
16 // Information and code furnished is believed to be accurate and reliable.
17 // However, NVIDIA Corporation assumes no responsibility for the consequences of use of such
18 // information or for any infringement of patents or other rights of third parties that may
19 // result from its use. No license is granted by implication or otherwise under any patent
20 // or patent rights of NVIDIA Corporation. Details are subject to change without notice.
21 // This code supersedes and replaces all information previously supplied.
22 // NVIDIA Corporation products are not authorized for use as critical
23 // components in life support devices or systems without express written approval of
24 // NVIDIA Corporation.
25 //
26 // Copyright (c) 2016-2020 NVIDIA Corporation. All rights reserved.
27
28
29 #ifndef NVBLASTEXTPXSTRESSSOLVERIMPL_H
30 #define NVBLASTEXTPXSTRESSSOLVERIMPL_H
31
32 #include "NvBlastExtPxStressSolver.h"
33 #include "NvBlastExtPxListener.h"
34 #include "NvBlastArray.h"
35 #include "NvBlastHashSet.h"
36
37 namespace Nv
38 {
39 namespace Blast
40 {
41
42
43 class ExtPxStressSolverImpl final : public ExtPxStressSolver, ExtPxListener
44 {
45 NV_NOCOPY(ExtPxStressSolverImpl)
46
47 public:
48 ExtPxStressSolverImpl(ExtPxFamily& family, ExtStressSolverSettings settings);
49
50
52
53 virtual void release() override;
54
55 virtual ExtStressSolver& getSolver() const override
56 {
57 return *m_solver;
58 }
59
60 virtual void update(bool doDamage) override;
61
62
64
65 virtual void onActorCreated(ExtPxFamily& family, ExtPxActor& actor) final;
66
67 virtual void onActorDestroyed(ExtPxFamily& family, ExtPxActor& actor) final;
68
69
70 private:
71 ~ExtPxStressSolverImpl();
72
73
75
76 ExtPxFamily& m_family;
77 ExtStressSolver* m_solver;
78 HashSet<ExtPxActor*>::type m_actors;
79 };
80
81
82 } // namespace Blast
83 } // namespace Nv
84
85
86 #endif // ifndef NVBLASTEXTPXSTRESSSOLVERIMPL_H
NvBlastArray.h
Nv::Blast::HashSet::type
physx::shdfnd::HashSet< Key, HashFn, Allocator > type
Definition: NvBlastHashSet.h:47
Nv::Blast::ExtStressSolverSettings
Definition: NvBlastExtStressSolver.h:56
Nv::Blast::ExtPxStressSolverImpl::onActorCreated
virtual void onActorCreated(ExtPxFamily &family, ExtPxActor &actor) final
Nv::Blast::ExtPxStressSolver
Definition: NvBlastExtPxStressSolver.h:53
Nv::Blast::ExtPxListener
Definition: NvBlastExtPxListener.h:48
Nv::Blast::ExtPxStressSolverImpl::update
virtual void update(bool doDamage) override
Nv::Blast::ExtPxStressSolverImpl::getSolver
virtual ExtStressSolver & getSolver() const override
Definition: NvBlastExtPxStressSolverImpl.h:55
Nv::Blast::ExtStressSolver
Definition: NvBlastExtStressSolver.h:104
Nv::Blast::ExtPxActor
Definition: NvBlastExtPxActor.h:57
NvBlastHashSet.h
Nv::Blast::ExtPxStressSolverImpl
Definition: NvBlastExtPxStressSolverImpl.h:43
NvBlastExtPxListener.h
Nv::Blast::ExtPxFamily
Definition: NvBlastExtPxFamily.h:105
NvBlastExtPxStressSolver.h
Nv::Blast::ExtPxStressSolverImpl::release
virtual void release() override
NV_NOCOPY
#define NV_NOCOPY(Class)
Definition: NvPreprocessor.h:527
Nv
Definition: NvBlastArray.h:37
Nv::Blast::ExtPxStressSolverImpl::onActorDestroyed
virtual void onActorDestroyed(ExtPxFamily &family, ExtPxActor &actor) final
Nv::Blast::ExtPxStressSolverImpl::ExtPxStressSolverImpl
ExtPxStressSolverImpl(ExtPxFamily &family, ExtStressSolverSettings settings)