Main Page Class List Class Members

NvBlastTkActor.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 NVBLASTTKACTOR_H
30 #define NVBLASTTKACTOR_H
31
32 #include "NvBlastTkObject.h"
33 #include "NvBlastTypes.h"
34
35 // Forward declarations
36 struct NvBlastActor;
37 struct NvBlastFamily;
38
39
40 namespace Nv
41 {
42 namespace Blast
43 {
44
45 // Forward declarations
46 class TkAsset;
47 class TkFamily;
48 class TkGroup;
49 class TkJoint;
50
51
57 class TkActor : public TkObject
58 {
59 public:
65 virtual const NvBlastActor* getActorLL() const = 0;
66
73 virtual TkFamily& getFamily() const = 0;
74
78 virtual uint32_t getIndex() const = 0;
79
84 virtual TkGroup* getGroup() const = 0;
85
91 virtual TkGroup* removeFromGroup() = 0;
92
98 virtual const TkAsset* getAsset() const = 0;
99
107 virtual uint32_t getVisibleChunkCount() const = 0;
108
119 virtual uint32_t getVisibleChunkIndices(uint32_t* visibleChunkIndices, uint32_t visibleChunkIndicesSize) const = 0;
120
128 virtual uint32_t getGraphNodeCount() const = 0;
129
140 virtual uint32_t getGraphNodeIndices(uint32_t* graphNodeIndices, uint32_t graphNodeIndicesSize) const = 0;
141
149 virtual const float* getBondHealths() const = 0;
150
158 virtual uint32_t getSplitMaxActorCount() const = 0;
159
165 virtual bool isPending() const = 0;
166
177 virtual void damage(const NvBlastDamageProgram& program, const void* programParams) = 0;
178
191 virtual void generateFracture(NvBlastFractureBuffers* commands, const NvBlastDamageProgram& program, const void* programParams) const = 0;
192
202 virtual void applyFracture(NvBlastFractureBuffers* eventBuffers, const NvBlastFractureBuffers* commands) = 0;
203
209 virtual uint32_t getJointCount() const = 0;
210
219 virtual uint32_t getJoints(TkJoint** joints, uint32_t jointsSize) const = 0;
220
228 virtual bool isBoundToWorld() const = 0;
229 };
230
231 } // namespace Blast
232 } // namespace Nv
233
234
235 #endif // ifndef NVBLASTTKACTOR_H
Nv::Blast::TkFamily
Definition: NvBlastTkFamily.h:55
Nv::Blast::TkActor::getIndex
virtual uint32_t getIndex() const =0
Nv::Blast::TkActor::getJoints
virtual uint32_t getJoints(TkJoint **joints, uint32_t jointsSize) const =0
Nv::Blast::TkActor::getActorLL
virtual const NvBlastActor * getActorLL() const =0
Nv::Blast::TkJoint
Definition: NvBlastTkJoint.h:63
NvBlastTkObject.h
NvBlastTypes.h
Nv::Blast::TkActor::getGroup
virtual TkGroup * getGroup() const =0
Nv::Blast::TkActor::isPending
virtual bool isPending() const =0
Nv::Blast::TkActor
Definition: NvBlastTkActor.h:57
Nv::Blast::TkAsset
Definition: NvBlastTkAsset.h:59
Nv::Blast::TkObject
Definition: NvBlastTkObject.h:41
Nv::Blast::TkActor::getJointCount
virtual uint32_t getJointCount() const =0
Nv::Blast::TkActor::getGraphNodeIndices
virtual uint32_t getGraphNodeIndices(uint32_t *graphNodeIndices, uint32_t graphNodeIndicesSize) const =0
NvBlastDamageProgram
Definition: NvBlastTypes.h:584
Nv::Blast::TkActor::generateFracture
virtual void generateFracture(NvBlastFractureBuffers *commands, const NvBlastDamageProgram &program, const void *programParams) const =0
Nv::Blast::TkActor::getVisibleChunkCount
virtual uint32_t getVisibleChunkCount() const =0
Nv::Blast::TkActor::getBondHealths
virtual const float * getBondHealths() const =0
Nv::Blast::TkActor::getFamily
virtual TkFamily & getFamily() const =0
Nv::Blast::TkActor::getAsset
virtual const TkAsset * getAsset() const =0
Nv::Blast::TkActor::damage
virtual void damage(const NvBlastDamageProgram &program, const void *programParams)=0
NvBlastFractureBuffers
Definition: NvBlastTypes.h:468
Nv::Blast::TkActor::getVisibleChunkIndices
virtual uint32_t getVisibleChunkIndices(uint32_t *visibleChunkIndices, uint32_t visibleChunkIndicesSize) const =0
Nv::Blast::TkActor::isBoundToWorld
virtual bool isBoundToWorld() const =0
Nv::Blast::TkGroup
Definition: NvBlastTkGroup.h:101
Nv::Blast::TkActor::getGraphNodeCount
virtual uint32_t getGraphNodeCount() const =0
Nv::Blast::TkActor::removeFromGroup
virtual TkGroup * removeFromGroup()=0
Nv::Blast::TkActor::applyFracture
virtual void applyFracture(NvBlastFractureBuffers *eventBuffers, const NvBlastFractureBuffers *commands)=0
Nv
Definition: NvBlastArray.h:37
Nv::Blast::TkActor::getSplitMaxActorCount
virtual uint32_t getSplitMaxActorCount() const =0
NvBlastActor
Definition: NvBlastTypes.h:387
NvBlastFamily
Definition: NvBlastTypes.h:376