NvBlastTkAsset.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 NVBLASTTKASSET_H
30 #define NVBLASTTKASSET_H
31 
32 #include "NvBlastTkIdentifiable.h"
33 #include "NvBlastTypes.h"
34 #include "PxVec3.h"
35 
36 // Forward declarations
37 struct NvBlastAsset;
38 
39 
40 namespace Nv
41 {
42 namespace Blast
43 {
44 
49 {
50  uint32_t nodeIndices[2];
51  physx::PxVec3 attachPositions[2];
52 };
53 
54 
59 class TkAsset : public TkIdentifiable
60 {
61 public:
67  virtual const NvBlastAsset* getAssetLL() const = 0;
68 
76  virtual uint32_t getChunkCount() const = 0;
77 
85  virtual uint32_t getLeafChunkCount() const = 0;
86 
94  virtual uint32_t getBondCount() const = 0;
95 
103  virtual const NvBlastChunk* getChunks() const = 0;
104 
112  virtual const NvBlastBond* getBonds() const = 0;
113 
121  virtual const NvBlastSupportGraph getGraph() const = 0;
122 
130  virtual uint32_t getDataSize() const = 0;
131 
140  virtual uint32_t getJointDescCount() const = 0;
141 
147  virtual const TkAssetJointDesc* getJointDescs() const = 0;
148 };
149 
150 } // namespace Blast
151 } // namespace Nv
152 
153 
154 #endif // ifndef NVBLASTTKASSET_H
Definition: NvBlastTypes.h:244
Definition: NvBlastTypes.h:189
Definition: NvBlastTkAsset.h:59
Definition: NvBlastTkIdentifiable.h:50
Definition: NvBlastTypes.h:152
Definition: NvBlastTypes.h:286
physx::PxVec3 attachPositions[2]
The joint's attachment positions in asset-local space.
Definition: NvBlastTkAsset.h:51
Definition: NvBlastTkAsset.h:48
uint32_t nodeIndices[2]
The graph node indices corresponding to the support chunks joined by a joint.
Definition: NvBlastTkAsset.h:50
Definition: NvBlastExtAuthoring.h:34