Classes | Public Member Functions | Private Attributes | Friends | List of all members
FRuntimeMeshSection Class Reference

#include <RuntimeMeshSection.h>

Classes

struct  FSectionColorVertexBuffer
 
struct  FSectionIndexBuffer
 
struct  FSectionPositionVertexBuffer
 
struct  FSectionTangentsVertexBuffer
 
struct  FSectionUVsVertexBuffer
 
struct  FSectionVertexBuffer
 

Public Member Functions

bool CastsShadow () const
 
bool CheckIndexBufferSize (bool b32BitIndices) const
 
bool CheckTangentBuffer (bool bInUseHighPrecision) const
 
bool CheckUVBuffer (bool bInUseHighPrecision, int32 InNumUVs) const
 
 FRuntimeMeshSection (FArchive &Ar)
 
 FRuntimeMeshSection (bool bInUseHighPrecisionTangents, bool bInUseHighPrecisionUVs, int32 InNumUVs, bool b32BitIndices, EUpdateFrequency InUpdateFrequency)
 
FBox GetBoundingBox () const
 
int32 GetCollisionData (TArray< FVector > &OutPositions, TArray< FTriIndices > &OutIndices, TArray< FVector2D > &OutUVs)
 
int32 GetNumIndices () const
 
int32 GetNumVertices () const
 
TSharedPtr< struct FRuntimeMeshSectionCreationParams, ESPMode::NotThreadSafe > GetSectionCreationParams ()
 
TSharedPtr< FRuntimeMeshAccessorGetSectionMeshAccessor ()
 
TUniquePtr< FRuntimeMeshScopedUpdaterGetSectionMeshUpdater (const FRuntimeMeshDataPtr &ParentData, int32 SectionIndex, ESectionUpdateFlags UpdateFlags, FRuntimeMeshLockProvider *LockProvider, bool bIsReadonly)
 
TSharedPtr< struct FRuntimeMeshSectionPropertyUpdateParams, ESPMode::NotThreadSafe > GetSectionPropertyUpdateData ()
 
TSharedPtr< struct FRuntimeMeshSectionUpdateParams, ESPMode::NotThreadSafe > GetSectionUpdateData (ERuntimeMeshBuffersToUpdate BuffersToUpdate)
 
TSharedPtr< FRuntimeMeshIndicesAccessorGetTessellationIndexAccessor ()
 
EUpdateFrequency GetUpdateFrequency () const
 
bool HasValidMeshData () const
 
bool IsCollisionEnabled () const
 
bool IsVisible () const
 
void SetBoundingBox (const FBox &InBoundingBox)
 
void SetCastsShadow (bool bNewCastsShadow)
 
void SetCollisionEnabled (bool bNewCollision)
 
void SetVisible (bool bNewVisible)
 
bool ShouldRender () const
 
template<typename IndexType >
void UpdateAdjacencyIndexBuffer (const TArray< IndexType > &InIndices)
 
void UpdateBoundingBox ()
 
void UpdateColorBuffer (TArray< uint8 > &InVertices, bool bUseMove)
 
template<typename VertexType >
void UpdateColorBuffer (const TArray< VertexType > &InVertices)
 
void UpdateIndexBuffer (TArray< uint8 > &InIndices, bool bUseMove)
 
template<typename IndexType >
void UpdateIndexBuffer (const TArray< IndexType > &InIndices)
 
void UpdatePositionBuffer (TArray< uint8 > &InVertices, bool bUseMove)
 
template<typename VertexType >
void UpdatePositionBuffer (const TArray< VertexType > &InVertices, const FBox *BoundingBox=nullptr)
 
void UpdateTangentsBuffer (TArray< uint8 > &InVertices, bool bUseMove)
 
template<typename VertexType >
void UpdateTangentsBuffer (const TArray< VertexType > &InVertices)
 
void UpdateUVsBuffer (TArray< uint8 > &InVertices, bool bUseMove)
 
template<typename VertexType >
void UpdateUVsBuffer (const TArray< VertexType > &InVertices)
 

Private Attributes

FSectionIndexBuffer AdjacencyIndexBuffer
 
bool bCastsShadow
 
bool bCollisionEnabled
 
bool bIsVisible
 
FSectionColorVertexBuffer ColorBuffer
 
FSectionIndexBuffer IndexBuffer
 
FBox LocalBoundingBox
 
FSectionPositionVertexBuffer PositionBuffer
 
FSectionTangentsVertexBuffer TangentsBuffer
 
const EUpdateFrequency UpdateFrequency
 
FSectionUVsVertexBuffer UVsBuffer
 

Friends

FArchive & operator<< (FArchive &Ar, FRuntimeMeshSection &MeshData)
 

Detailed Description

Definition at line 16 of file RuntimeMeshSection.h.

Constructor & Destructor Documentation

FRuntimeMeshSection::FRuntimeMeshSection ( FArchive &  Ar)

Definition at line 119 of file RuntimeMeshSection.cpp.

FRuntimeMeshSection::FRuntimeMeshSection ( bool  bInUseHighPrecisionTangents,
bool  bInUseHighPrecisionUVs,
int32  InNumUVs,
bool  b32BitIndices,
EUpdateFrequency  InUpdateFrequency 
)

Definition at line 103 of file RuntimeMeshSection.cpp.

Member Function Documentation

bool FRuntimeMeshSection::CastsShadow ( ) const
inline

Definition at line 267 of file RuntimeMeshSection.h.

bool FRuntimeMeshSection::CheckIndexBufferSize ( bool  b32BitIndices) const
inline

Definition at line 406 of file RuntimeMeshSection.h.

bool FRuntimeMeshSection::CheckTangentBuffer ( bool  bInUseHighPrecision) const
inline

Definition at line 396 of file RuntimeMeshSection.h.

bool FRuntimeMeshSection::CheckUVBuffer ( bool  bInUseHighPrecision,
int32  InNumUVs 
) const
inline

Definition at line 401 of file RuntimeMeshSection.h.

FBox FRuntimeMeshSection::GetBoundingBox ( ) const
inline

Definition at line 269 of file RuntimeMeshSection.h.

int32 FRuntimeMeshSection::GetCollisionData ( TArray< FVector > &  OutPositions,
TArray< FTriIndices > &  OutIndices,
TArray< FVector2D > &  OutUVs 
)

Definition at line 209 of file RuntimeMeshSection.cpp.

int32 FRuntimeMeshSection::GetNumIndices ( ) const
inline

Definition at line 272 of file RuntimeMeshSection.h.

int32 FRuntimeMeshSection::GetNumVertices ( ) const
inline

Definition at line 271 of file RuntimeMeshSection.h.

FRuntimeMeshSectionCreationParamsPtr FRuntimeMeshSection::GetSectionCreationParams ( )

Definition at line 133 of file RuntimeMeshSection.cpp.

TSharedPtr<FRuntimeMeshAccessor> FRuntimeMeshSection::GetSectionMeshAccessor ( )
inline

Definition at line 372 of file RuntimeMeshSection.h.

TUniquePtr<FRuntimeMeshScopedUpdater> FRuntimeMeshSection::GetSectionMeshUpdater ( const FRuntimeMeshDataPtr ParentData,
int32  SectionIndex,
ESectionUpdateFlags  UpdateFlags,
FRuntimeMeshLockProvider LockProvider,
bool  bIsReadonly 
)
inline

Definition at line 378 of file RuntimeMeshSection.h.

TSharedPtr< struct FRuntimeMeshSectionPropertyUpdateParams, ESPMode::NotThreadSafe > FRuntimeMeshSection::GetSectionPropertyUpdateData ( )

Definition at line 192 of file RuntimeMeshSection.cpp.

FRuntimeMeshSectionUpdateParamsPtr FRuntimeMeshSection::GetSectionUpdateData ( ERuntimeMeshBuffersToUpdate  BuffersToUpdate)

Definition at line 153 of file RuntimeMeshSection.cpp.

TSharedPtr<FRuntimeMeshIndicesAccessor> FRuntimeMeshSection::GetTessellationIndexAccessor ( )
inline

Definition at line 384 of file RuntimeMeshSection.h.

EUpdateFrequency FRuntimeMeshSection::GetUpdateFrequency ( ) const
inline

Definition at line 268 of file RuntimeMeshSection.h.

bool FRuntimeMeshSection::HasValidMeshData ( ) const
inline

Definition at line 274 of file RuntimeMeshSection.h.

bool FRuntimeMeshSection::IsCollisionEnabled ( ) const
inline

Definition at line 264 of file RuntimeMeshSection.h.

bool FRuntimeMeshSection::IsVisible ( ) const
inline

Definition at line 265 of file RuntimeMeshSection.h.

void FRuntimeMeshSection::SetBoundingBox ( const FBox &  InBoundingBox)
inline

Definition at line 420 of file RuntimeMeshSection.h.

void FRuntimeMeshSection::SetCastsShadow ( bool  bNewCastsShadow)
inline

Definition at line 292 of file RuntimeMeshSection.h.

void FRuntimeMeshSection::SetCollisionEnabled ( bool  bNewCollision)
inline

Definition at line 296 of file RuntimeMeshSection.h.

void FRuntimeMeshSection::SetVisible ( bool  bNewVisible)
inline

Definition at line 288 of file RuntimeMeshSection.h.

bool FRuntimeMeshSection::ShouldRender ( ) const
inline

Definition at line 266 of file RuntimeMeshSection.h.

template<typename IndexType >
void FRuntimeMeshSection::UpdateAdjacencyIndexBuffer ( const TArray< IndexType > &  InIndices)
inline

Definition at line 367 of file RuntimeMeshSection.h.

void FRuntimeMeshSection::UpdateBoundingBox ( )

Definition at line 202 of file RuntimeMeshSection.cpp.

void FRuntimeMeshSection::UpdateColorBuffer ( TArray< uint8 > &  InVertices,
bool  bUseMove 
)
inline

Definition at line 344 of file RuntimeMeshSection.h.

template<typename VertexType >
void FRuntimeMeshSection::UpdateColorBuffer ( const TArray< VertexType > &  InVertices)
inline

Definition at line 350 of file RuntimeMeshSection.h.

void FRuntimeMeshSection::UpdateIndexBuffer ( TArray< uint8 > &  InIndices,
bool  bUseMove 
)
inline

Definition at line 355 of file RuntimeMeshSection.h.

template<typename IndexType >
void FRuntimeMeshSection::UpdateIndexBuffer ( const TArray< IndexType > &  InIndices)
inline

Definition at line 361 of file RuntimeMeshSection.h.

void FRuntimeMeshSection::UpdatePositionBuffer ( TArray< uint8 > &  InVertices,
bool  bUseMove 
)
inline

Definition at line 301 of file RuntimeMeshSection.h.

template<typename VertexType >
void FRuntimeMeshSection::UpdatePositionBuffer ( const TArray< VertexType > &  InVertices,
const FBox *  BoundingBox = nullptr 
)
inline

Definition at line 308 of file RuntimeMeshSection.h.

void FRuntimeMeshSection::UpdateTangentsBuffer ( TArray< uint8 > &  InVertices,
bool  bUseMove 
)
inline

Definition at line 322 of file RuntimeMeshSection.h.

template<typename VertexType >
void FRuntimeMeshSection::UpdateTangentsBuffer ( const TArray< VertexType > &  InVertices)
inline

Definition at line 328 of file RuntimeMeshSection.h.

void FRuntimeMeshSection::UpdateUVsBuffer ( TArray< uint8 > &  InVertices,
bool  bUseMove 
)
inline

Definition at line 333 of file RuntimeMeshSection.h.

template<typename VertexType >
void FRuntimeMeshSection::UpdateUVsBuffer ( const TArray< VertexType > &  InVertices)
inline

Definition at line 339 of file RuntimeMeshSection.h.

Friends And Related Function Documentation

FArchive& operator<< ( FArchive &  Ar,
FRuntimeMeshSection MeshData 
)
friend

Definition at line 425 of file RuntimeMeshSection.h.

Member Data Documentation

FSectionIndexBuffer FRuntimeMeshSection::AdjacencyIndexBuffer
private

Definition at line 242 of file RuntimeMeshSection.h.

bool FRuntimeMeshSection::bCastsShadow
private

Definition at line 250 of file RuntimeMeshSection.h.

bool FRuntimeMeshSection::bCollisionEnabled
private

Definition at line 246 of file RuntimeMeshSection.h.

bool FRuntimeMeshSection::bIsVisible
private

Definition at line 248 of file RuntimeMeshSection.h.

FSectionColorVertexBuffer FRuntimeMeshSection::ColorBuffer
private

Vertex buffer containing the colors for this section

Definition at line 239 of file RuntimeMeshSection.h.

FSectionIndexBuffer FRuntimeMeshSection::IndexBuffer
private

Definition at line 241 of file RuntimeMeshSection.h.

FBox FRuntimeMeshSection::LocalBoundingBox
private

Definition at line 244 of file RuntimeMeshSection.h.

FSectionPositionVertexBuffer FRuntimeMeshSection::PositionBuffer
private

Vertex buffer containing the positions for this section

Definition at line 230 of file RuntimeMeshSection.h.

FSectionTangentsVertexBuffer FRuntimeMeshSection::TangentsBuffer
private

Vertex buffer containing the tangents for this section

Definition at line 233 of file RuntimeMeshSection.h.

const EUpdateFrequency FRuntimeMeshSection::UpdateFrequency
private

Definition at line 227 of file RuntimeMeshSection.h.

FSectionUVsVertexBuffer FRuntimeMeshSection::UVsBuffer
private

Vertex buffer containing the UVs for this section

Definition at line 236 of file RuntimeMeshSection.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:32