Main Page Class List Class Members

NvBlastTkFamily.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 NVBLASTTKFAMILY_H
30 #define NVBLASTTKFAMILY_H
31
32 #include "NvBlastTkIdentifiable.h"
33
34
35 // Forward declarations
36 struct NvBlastFamily;
37
38
39 namespace Nv
40 {
41 namespace Blast
42 {
43
44 // Forward declarations
45 class TkActor;
46 class TkAsset;
47 class TkEventListener;
48
49
55 class TkFamily : public TkIdentifiable
56 {
57 public:
63 virtual const NvBlastFamily* getFamilyLL() const = 0;
64
70 virtual const TkAsset* getAsset() const = 0;
71
77 virtual uint32_t getActorCount() const = 0;
78
88 virtual uint32_t getActors(TkActor** buffer, uint32_t bufferSize, uint32_t indexStart = 0) const = 0;
89
97 virtual void addListener(TkEventListener& l) = 0;
98
104 virtual void removeListener(TkEventListener& l) = 0;
105
111 virtual void applyFracture(const NvBlastFractureBuffers* commands) = 0;
112
121 virtual void reinitialize(const NvBlastFamily* newFamily, TkGroup* group = nullptr) = 0;
122 };
123
124 } // namespace Blast
125 } // namespace Nv
126
127
128 #endif // ifndef NVBLASTTKFAMILY_H
Nv::Blast::TkFamily
Definition: NvBlastTkFamily.h:55
Nv::Blast::TkFamily::getAsset
virtual const TkAsset * getAsset() const =0
Nv::Blast::TkActor
Definition: NvBlastTkActor.h:57
Nv::Blast::TkAsset
Definition: NvBlastTkAsset.h:59
Nv::Blast::TkFamily::reinitialize
virtual void reinitialize(const NvBlastFamily *newFamily, TkGroup *group=nullptr)=0
Nv::Blast::TkIdentifiable
Definition: NvBlastTkIdentifiable.h:50
Nv::Blast::TkEventListener
Definition: NvBlastTkEvent.h:168
NvBlastTkIdentifiable.h
Nv::Blast::TkFamily::applyFracture
virtual void applyFracture(const NvBlastFractureBuffers *commands)=0
Nv::Blast::TkFamily::getFamilyLL
virtual const NvBlastFamily * getFamilyLL() const =0
NvBlastFractureBuffers
Definition: NvBlastTypes.h:468
Nv::Blast::TkFamily::getActors
virtual uint32_t getActors(TkActor **buffer, uint32_t bufferSize, uint32_t indexStart=0) const =0
Nv::Blast::TkFamily::getActorCount
virtual uint32_t getActorCount() const =0
Nv::Blast::TkFamily::removeListener
virtual void removeListener(TkEventListener &l)=0
Nv::Blast::TkGroup
Definition: NvBlastTkGroup.h:101
Nv
Definition: NvBlastArray.h:37
NvBlastFamily
Definition: NvBlastTypes.h:376
Nv::Blast::TkFamily::addListener
virtual void addListener(TkEventListener &l)=0