CARLA
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
AStaticMeshCollection Class Reference

Holds static mesh instatiators. More...

#include <StaticMeshCollection.h>

+ Inheritance diagram for AStaticMeshCollection:
+ Collaboration diagram for AStaticMeshCollection:

Public Member Functions

 AStaticMeshCollection (const FObjectInitializer &ObjectInitializer)
 

Protected Member Functions

void AddInstance (uint32 i, const FTransform &Transform)
 
void ClearInstances ()
 
void ClearInstantiators ()
 Clear the instances too. More...
 
uint32 GetNumberOfInstantiators () const
 
void PushBackInstantiator (UStaticMesh *Mesh)
 
void SetStaticMesh (uint32 i, UStaticMesh *Mesh)
 

Private Attributes

TArray< UInstancedStaticMeshComponent * > MeshInstantiators
 

Detailed Description

Holds static mesh instatiators.

Definition at line 16 of file StaticMeshCollection.h.

Constructor & Destructor Documentation

◆ AStaticMeshCollection()

AStaticMeshCollection::AStaticMeshCollection ( const FObjectInitializer &  ObjectInitializer)

Definition at line 13 of file StaticMeshCollection.cpp.

Member Function Documentation

◆ AddInstance()

void AStaticMeshCollection::AddInstance ( uint32  i,
const FTransform &  Transform 
)
protected

Definition at line 41 of file StaticMeshCollection.cpp.

References GetNumberOfInstantiators(), and MeshInstantiators.

+ Here is the call graph for this function:

◆ ClearInstances()

void AStaticMeshCollection::ClearInstances ( )
protected

Definition at line 48 of file StaticMeshCollection.cpp.

References MeshInstantiators.

Referenced by ClearInstantiators().

+ Here is the caller graph for this function:

◆ ClearInstantiators()

void AStaticMeshCollection::ClearInstantiators ( )
protected

Clear the instances too.

Definition at line 57 of file StaticMeshCollection.cpp.

References ClearInstances(), and MeshInstantiators.

+ Here is the call graph for this function:

◆ GetNumberOfInstantiators()

uint32 AStaticMeshCollection::GetNumberOfInstantiators ( ) const
inlineprotected

Definition at line 26 of file StaticMeshCollection.h.

Referenced by AddInstance(), and SetStaticMesh().

+ Here is the caller graph for this function:

◆ PushBackInstantiator()

void AStaticMeshCollection::PushBackInstantiator ( UStaticMesh *  Mesh)
protected

Definition at line 23 of file StaticMeshCollection.cpp.

References MeshInstantiators.

◆ SetStaticMesh()

void AStaticMeshCollection::SetStaticMesh ( uint32  i,
UStaticMesh *  Mesh 
)
protected

Definition at line 34 of file StaticMeshCollection.cpp.

References GetNumberOfInstantiators(), and MeshInstantiators.

+ Here is the call graph for this function:

Member Data Documentation

◆ MeshInstantiators

TArray<UInstancedStaticMeshComponent *> AStaticMeshCollection::MeshInstantiators
private

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