CARLA
Public Member Functions | Public Attributes | List of all members
FDenseTile Struct Reference

#include <CustomTerrainPhysicsComponent.h>

+ Collaboration diagram for FDenseTile:

Public Member Functions

 FDenseTile ()
 
 FDenseTile (const FDenseTile &Origin)
 
 FDenseTile (FDenseTile &&Origin)
 
void GetAllParticles (std::vector< FParticle *> &ParticlesInRadius)
 
void GetParticlesInBox (const FOrientedBox &OBox, std::vector< FParticle *> &ParticlesInRadius)
 
std::vector< FParticle * > GetParticlesInRadius (FDVector Position, float Radius)
 
void GetParticlesInRadius (FDVector Position, float Radius, std::vector< FParticle *> &ParticlesInRadius)
 
void InitializeDataStructure ()
 
void InitializeTile (uint32_t TextureSize, float AffectedRadius, float ParticleSize, float Depth, FDVector TileOrigin, FDVector TileEnd, const FString &SavePath, const FHeightMapData &HeightMap)
 
FDenseTileoperator= (FDenseTile &&Origin)
 
void UpdateLocalHeightmap ()
 
 ~FDenseTile ()
 

Public Attributes

bool bHeightmapNeedToUpdate = false
 
bool bParticlesZOrderedInitialized = false
 
uint32_t PartialHeightMapSize = 0
 
std::vector< FParticleParticles
 
std::vector< float > ParticlesHeightMap
 
std::vector< std::multiset< float, std::greater< float > > > ParticlesZOrdered
 
FString SavePath
 
FDVector TilePosition
 
uint32_t TileSize = 0
 

Detailed Description

Definition at line 83 of file CustomTerrainPhysicsComponent.h.

Constructor & Destructor Documentation

◆ FDenseTile() [1/3]

FDenseTile::FDenseTile ( )

Definition at line 141 of file CustomTerrainPhysicsComponent.cpp.

◆ ~FDenseTile()

FDenseTile::~FDenseTile ( )

Definition at line 149 of file CustomTerrainPhysicsComponent.cpp.

◆ FDenseTile() [2/3]

FDenseTile::FDenseTile ( const FDenseTile Origin)

◆ FDenseTile() [3/3]

FDenseTile::FDenseTile ( FDenseTile &&  Origin)

Definition at line 167 of file CustomTerrainPhysicsComponent.cpp.

Member Function Documentation

◆ GetAllParticles()

void FDenseTile::GetAllParticles ( std::vector< FParticle *> &  ParticlesInRadius)

Definition at line 324 of file CustomTerrainPhysicsComponent.cpp.

◆ GetParticlesInBox()

void FDenseTile::GetParticlesInBox ( const FOrientedBox &  OBox,
std::vector< FParticle *> &  ParticlesInRadius 
)

Definition at line 308 of file CustomTerrainPhysicsComponent.cpp.

References SIToUEFrame().

+ Here is the call graph for this function:

◆ GetParticlesInRadius() [1/2]

std::vector< FParticle * > FDenseTile::GetParticlesInRadius ( FDVector  Position,
float  Radius 
)

Definition at line 294 of file CustomTerrainPhysicsComponent.cpp.

Referenced by GetParticlesInRadius().

+ Here is the caller graph for this function:

◆ GetParticlesInRadius() [2/2]

void FDenseTile::GetParticlesInRadius ( FDVector  Position,
float  Radius,
std::vector< FParticle *> &  ParticlesInRadius 
)

Definition at line 282 of file CustomTerrainPhysicsComponent.cpp.

References GetParticlesInRadius().

+ Here is the call graph for this function:

◆ InitializeDataStructure()

void FDenseTile::InitializeDataStructure ( )

◆ InitializeTile()

void FDenseTile::InitializeTile ( uint32_t  TextureSize,
float  AffectedRadius,
float  ParticleSize,
float  Depth,
FDVector  TileOrigin,
FDVector  TileEnd,
const FString &  SavePath,
const FHeightMapData HeightMap 
)

Definition at line 187 of file CustomTerrainPhysicsComponent.cpp.

References FHeightMapData::GetHeight(), ReadFVector(), FDVector::ToString(), FDVector::X, FDVector::Y, and FDVector::Z.

Referenced by FSparseHighDetailMap::InitializeRegion(), and FSparseHighDetailMap::InitializeRegionInCache().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

FDenseTile & FDenseTile::operator= ( FDenseTile &&  Origin)

Definition at line 176 of file CustomTerrainPhysicsComponent.cpp.

References TilePosition.

◆ UpdateLocalHeightmap()

void FDenseTile::UpdateLocalHeightmap ( )

Definition at line 332 of file CustomTerrainPhysicsComponent.cpp.

References FSparseHighDetailMap::GetParticlesInRadius().

+ Here is the call graph for this function:

Member Data Documentation

◆ bHeightmapNeedToUpdate

bool FDenseTile::bHeightmapNeedToUpdate = false

Definition at line 106 of file CustomTerrainPhysicsComponent.h.

Referenced by FSparseHighDetailMap::SaveMap().

◆ bParticlesZOrderedInitialized

bool FDenseTile::bParticlesZOrderedInitialized = false

Definition at line 103 of file CustomTerrainPhysicsComponent.h.

Referenced by FSparseHighDetailMap::SaveMap().

◆ PartialHeightMapSize

uint32_t FDenseTile::PartialHeightMapSize = 0

Definition at line 107 of file CustomTerrainPhysicsComponent.h.

◆ Particles

std::vector<FParticle> FDenseTile::Particles

Definition at line 100 of file CustomTerrainPhysicsComponent.h.

Referenced by FDenseTile().

◆ ParticlesHeightMap

std::vector<float> FDenseTile::ParticlesHeightMap

Definition at line 101 of file CustomTerrainPhysicsComponent.h.

Referenced by FDenseTile(), and FSparseHighDetailMap::SaveMap().

◆ ParticlesZOrdered

std::vector<std::multiset<float,std::greater<float> > > FDenseTile::ParticlesZOrdered

Definition at line 102 of file CustomTerrainPhysicsComponent.h.

Referenced by FDenseTile(), and FSparseHighDetailMap::SaveMap().

◆ SavePath

FString FDenseTile::SavePath

Definition at line 105 of file CustomTerrainPhysicsComponent.h.

Referenced by FDenseTile().

◆ TilePosition

FDVector FDenseTile::TilePosition

◆ TileSize

uint32_t FDenseTile::TileSize = 0

Definition at line 108 of file CustomTerrainPhysicsComponent.h.


The documentation for this struct was generated from the following files: