Main Page Class List Class Members

NvBlastExtAuthoringPatternGeneratorImpl.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 NVBLASTEXTAUTHORINGPATTERNGENERATORIMPL_H
30 #define NVBLASTEXTAUTHORINGPATTERNGENERATORIMPL_H
31
32 #include "NvBlastExtAuthoringTypes.h"
33 #include "NvBlastExtAuthoringPatternGenerator.h"
34
35
36 namespace Nv
37 {
38 namespace Blast
39 {
40
41 class PatternGeneratorImpl : public PatternGenerator
42 {
43 public:
44 virtual DamagePattern* generateUniformPattern(const UniformPatternDesc* desc) override;
45 virtual DamagePattern* generateBeamPattern(const BeamPatternDesc* desc) override;
46 virtual DamagePattern* generateRegularRadialPattern(const RegularRadialPatternDesc* desc) override;
47 virtual void release() override;
48
49 virtual DamagePattern* generateVoronoiPattern(uint32_t pointCount, const NvcVec3* points, int32_t interiorMaterialId) override;
50 private:
51 DamagePattern* generateVoronoiPatternInternal(uint32_t pointCount, const NvcVec3* points, int32_t interiorMaterialId, float angle = 0.0f);
52 };
53
54
55 } // namespace Blast
56 } // namespace Nv
57
58 #endif // ifndef NVBLASTEXTAUTHORINGMESHCLEANER_H
NvBlastExtAuthoringPatternGenerator.h
Nv::Blast::PatternGeneratorImpl::generateVoronoiPattern
virtual DamagePattern * generateVoronoiPattern(uint32_t pointCount, const NvcVec3 *points, int32_t interiorMaterialId) override
Nv::Blast::UniformPatternDesc
Definition: NvBlastExtAuthoringPatternGenerator.h:47
NvBlastExtAuthoringTypes.h
Nv::Blast::PatternGeneratorImpl::generateBeamPattern
virtual DamagePattern * generateBeamPattern(const BeamPatternDesc *desc) override
Nv::Blast::RegularRadialPatternDesc
Definition: NvBlastExtAuthoringPatternGenerator.h:66
Nv::Blast::PatternGeneratorImpl
Definition: NvBlastExtAuthoringPatternGeneratorImpl.h:41
Nv::Blast::BeamPatternDesc
Definition: NvBlastExtAuthoringPatternGenerator.h:58
Nv::Blast::DamagePattern
Definition: NvBlastExtAuthoringPatternGenerator.h:85
Nv::Blast::PatternGeneratorImpl::release
virtual void release() override
angle
SIMD_FORCE_INLINE btScalar angle(const btVector3 &v) const
Return the angle between this and another vector.
Definition: btVector3.h:177
Nv::Blast::PatternGenerator
Definition: NvBlastExtAuthoringPatternGenerator.h:108
Nv::Blast::PatternGeneratorImpl::generateUniformPattern
virtual DamagePattern * generateUniformPattern(const UniformPatternDesc *desc) override
Nv::Blast::PatternGeneratorImpl::generateRegularRadialPattern
virtual DamagePattern * generateRegularRadialPattern(const RegularRadialPatternDesc *desc) override
Nv
Definition: NvBlastArray.h:37
NvcVec3
Definition: NvCTypes.h:49