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

#include <RuntimeMeshBuilder.h>

Inheritance diagram for FRuntimeMeshScopedUpdater:
Inheritance graph
[legend]

Public Member Functions

void Cancel ()
 
void Commit (bool bNeedsPositionUpdate=true, bool bNeedsNormalTangentUpdate=true, bool bNeedsColorUpdate=true, bool bNeedsUVUpdate=true, bool bNeedsIndexUpdate=true)
 
void Commit (const FBox &BoundingBox, bool bNeedsPositionUpdate=true, bool bNeedsNormalTangentUpdate=true, bool bNeedsColorUpdate=true, bool bNeedsUVUpdate=true, bool bNeedsIndexUpdate=true)
 
 ~FRuntimeMeshScopedUpdater ()
 
- Public Member Functions inherited from FRuntimeMeshAccessor
void CopyTo (const TSharedPtr< FRuntimeMeshAccessor > &Other, bool bClearDestination=false) const
 
 FRuntimeMeshAccessor (bool bInTangentsHighPrecision, bool bInUVsHighPrecision, int32 bInUVCount, bool bIn32BitIndices, TArray< uint8 > *PositionStreamData, TArray< uint8 > *TangentStreamData, TArray< uint8 > *UVStreamData, TArray< uint8 > *ColorStreamData, TArray< uint8 > *IndexStreamData, bool bInIsReadonly=false)
 
bool IsReadonly () const
 
void Unlink ()
 
virtual ~FRuntimeMeshAccessor () override
 
- Public Member Functions inherited from FRuntimeMeshVerticesAccessor
int32 AddVertex (FVector InPosition)
 
int32 AddVertex (const FRuntimeMeshAccessorVertex &Vertex)
 
template<typename VertexType0 >
void AddVertexByProperties (const VertexType0 &Vertex0)
 
template<typename VertexType0 , typename VertexType1 >
void AddVertexByProperties (const VertexType0 &Vertex0, const VertexType1 &Vertex1)
 
template<typename VertexType0 , typename VertexType1 , typename VertexType2 >
void AddVertexByProperties (const VertexType0 &Vertex0, const VertexType1 &Vertex1, const VertexType2 &Vertex2)
 
void EmptyVertices (int32 Slack=0)
 
 FRuntimeMeshVerticesAccessor (bool bInTangentsHighPrecision, bool bInUVsHighPrecision, int32 bInUVCount, TArray< uint8 > *PositionStreamData, TArray< uint8 > *TangentStreamData, TArray< uint8 > *UVStreamData, TArray< uint8 > *ColorStreamData, bool bInIsReadonly=false)
 
FColor GetColor (int32 Index) const
 
FVector4 GetNormal (int32 Index) const
 
FVector GetPosition (int32 Index) const
 
FVector GetTangent (int32 Index) const
 
FVector2D GetUV (int32 Index, int32 Channel=0) const
 
FRuntimeMeshAccessorVertex GetVertex (int32 Index) const
 
const bool IsReadonly () const
 
const bool IsUsingHighPrecisionTangents () const
 
const bool IsUsingHighPrecisionUVs () const
 
int32 NumUVChannels () const
 
int32 NumVertices () const
 
void SetColor (int32 Index, const FColor &Value)
 
bool SetColors (const int32 InsertAtIndex, const TArray< FColor > &Colors, const int32 Count, const bool bSizeToFit)
 
bool SetColors (const int32 InsertAtIndex, const FColor *const Colors, const int32 Count, const bool bSizeToFit)
 
void SetNormal (int32 Index, const FVector4 &Value)
 
void SetNormalTangent (int32 Index, FVector Normal, FRuntimeMeshTangent Tangent)
 
void SetNumVertices (int32 NewNum)
 
void SetPosition (int32 Index, const FVector &Value)
 
bool SetPositions (const int32 InsertAtIndex, const TArray< FVector > &Positions, const int32 Count, const bool bSizeToFit)
 
bool SetPositions (const int32 InsertAtIndex, const FVector *const Positions, const int32 Count, const bool bSizeToFit)
 
void SetTangent (int32 Index, const FVector &Value)
 
void SetTangent (int32 Index, const FRuntimeMeshTangent &Value)
 
void SetTangents (int32 Index, FVector TangentX, FVector TangentY, FVector TangentZ)
 
void SetUV (int32 Index, const FVector2D &Value)
 
void SetUV (int32 Index, int32 Channel, const FVector2D &Value)
 
bool SetUVs (const int32 InsertAtVertexIndex, const TArray< FVector2D > &UVs, const int32 CountVertices, const bool bSizeToFit)
 
bool SetUVs (const int32 InsertAtVertexIndex, const TArray< FVector2DHalf > &UVs, const int32 CountVertices, const bool bSizeToFit)
 
bool SetUVs (const int32 InsertAtVertexIndex, const FVector2D *const UVs, const int32 CountVertices, const bool bSizeToFit)
 
bool SetUVs (const int32 InsertAtVertexIndex, const FVector2DHalf *const UVs, const int32 CountVertices, const bool bSizeToFit)
 
void SetVertex (int32 Index, const FRuntimeMeshAccessorVertex &Vertex)
 
template<typename VertexType >
void SetVertexProperties (int32 Index, const VertexType &Vertex)
 
virtual ~FRuntimeMeshVerticesAccessor ()
 
- Public Member Functions inherited from FRuntimeMeshIndicesAccessor
int32 AddIndex (int32 NewIndex)
 
int32 AddTriangle (int32 Index0, int32 Index1, int32 Index2)
 
void EmptyIndices (int32 Slack=0)
 
 FRuntimeMeshIndicesAccessor (bool bIn32BitIndices, TArray< uint8 > *IndexStreamData, bool bInIsReadonly=false)
 
int32 GetIndex (int32 Index) const
 
const bool IsReadonly () const
 
bool IsUsing32BitIndices () const
 
int32 NumIndices () const
 
void SetIndex (int32 Index, int32 Value)
 
bool SetIndices (const int32 InsertAtIndex, const TArray< uint16 > &Indices, const int32 Count, const bool bSizeToFit)
 
bool SetIndices (const int32 InsertAtIndex, const uint16 *const Indices, const int32 Count, const bool bSizeToFit)
 
bool SetIndices (const int32 InsertAtIndex, const TArray< int32 > &Indices, const int32 Count, const bool bSizeToFit)
 
bool SetIndices (const int32 InsertAtIndex, const int32 *const Indices, const int32 Count, const bool bSizeToFit)
 
void SetNumIndices (int32 NewNum)
 
virtual ~FRuntimeMeshIndicesAccessor ()
 

Private Member Functions

 FRuntimeMeshScopedUpdater (const FRuntimeMeshDataPtr &InLinkedMeshData, int32 InSectionIndex, ESectionUpdateFlags InUpdateFlags, bool bInTangentsHighPrecision, bool bInUVsHighPrecision, int32 bInUVCount, bool bIn32BitIndices, TArray< uint8 > *PositionStreamData, TArray< uint8 > *TangentStreamData, TArray< uint8 > *UVStreamData, TArray< uint8 > *ColorStreamData, TArray< uint8 > *IndexStreamData, FRuntimeMeshLockProvider *InSyncObject, bool bIsReadonly)
 
- Private Member Functions inherited from FRuntimeMeshScopeLock
 FRuntimeMeshScopeLock (const FRuntimeMeshLockProvider *InSyncObject, bool bIsAlreadyLocked=false, bool bIgnoreThreadIfNullLock=false)
 
 FRuntimeMeshScopeLock (const TUniquePtr< FRuntimeMeshLockProvider > &InSyncObject, bool bIsAlreadyLocked=false, bool bIgnoreThreadIfNullLock=false)
 
void Unlock ()
 
 ~FRuntimeMeshScopeLock ()
 

Private Attributes

FRuntimeMeshDataPtr LinkedMeshData
 
int32 SectionIndex
 
ESectionUpdateFlags UpdateFlags
 

Friends

class FRuntimeMeshData
 
class FRuntimeMeshSection
 

Additional Inherited Members

- Protected Member Functions inherited from FRuntimeMeshAccessor
 FRuntimeMeshAccessor (TArray< uint8 > *PositionStreamData, TArray< uint8 > *TangentStreamData, TArray< uint8 > *UVStreamData, TArray< uint8 > *ColorStreamData, TArray< uint8 > *IndexStreamData, bool bInIsReadonly)
 
void Initialize (bool bInTangentsHighPrecision, bool bInUVsHighPrecision, int32 bInUVCount, bool bIn32BitIndices)
 
- Protected Member Functions inherited from FRuntimeMeshVerticesAccessor
int32 AddSingleVertex ()
 
 FRuntimeMeshVerticesAccessor (TArray< uint8 > *PositionStreamData, TArray< uint8 > *TangentStreamData, TArray< uint8 > *UVStreamData, TArray< uint8 > *ColorStreamData, bool bInIsReadonly)
 
void Initialize (bool bInTangentsHighPrecision, bool bInUVsHighPrecision, int32 bInUVCount)
 
void Unlink ()
 
- Protected Member Functions inherited from FRuntimeMeshIndicesAccessor
 FRuntimeMeshIndicesAccessor (TArray< uint8 > *IndexStreamData, bool bInIsReadonly)
 
FORCEINLINE int32 GetIndexStride () const
 
void Initialize (bool bIn32BitIndices)
 
void Unlink ()
 

Detailed Description

Definition at line 490 of file RuntimeMeshBuilder.h.

Constructor & Destructor Documentation

FRuntimeMeshScopedUpdater::FRuntimeMeshScopedUpdater ( const FRuntimeMeshDataPtr InLinkedMeshData,
int32  InSectionIndex,
ESectionUpdateFlags  InUpdateFlags,
bool  bInTangentsHighPrecision,
bool  bInUVsHighPrecision,
int32  bInUVCount,
bool  bIn32BitIndices,
TArray< uint8 > *  PositionStreamData,
TArray< uint8 > *  TangentStreamData,
TArray< uint8 > *  UVStreamData,
TArray< uint8 > *  ColorStreamData,
TArray< uint8 > *  IndexStreamData,
FRuntimeMeshLockProvider InSyncObject,
bool  bIsReadonly 
)
private

Definition at line 791 of file RuntimeMeshBuilder.cpp.

FRuntimeMeshScopedUpdater::~FRuntimeMeshScopedUpdater ( )

Definition at line 800 of file RuntimeMeshBuilder.cpp.

Member Function Documentation

void FRuntimeMeshScopedUpdater::Cancel ( )

Definition at line 841 of file RuntimeMeshBuilder.cpp.

void FRuntimeMeshScopedUpdater::Commit ( bool  bNeedsPositionUpdate = true,
bool  bNeedsNormalTangentUpdate = true,
bool  bNeedsColorUpdate = true,
bool  bNeedsUVUpdate = true,
bool  bNeedsIndexUpdate = true 
)

Definition at line 805 of file RuntimeMeshBuilder.cpp.

void FRuntimeMeshScopedUpdater::Commit ( const FBox &  BoundingBox,
bool  bNeedsPositionUpdate = true,
bool  bNeedsNormalTangentUpdate = true,
bool  bNeedsColorUpdate = true,
bool  bNeedsUVUpdate = true,
bool  bNeedsIndexUpdate = true 
)

Definition at line 823 of file RuntimeMeshBuilder.cpp.

Friends And Related Function Documentation

friend class FRuntimeMeshData
friend

Definition at line 507 of file RuntimeMeshBuilder.h.

friend class FRuntimeMeshSection
friend

Definition at line 508 of file RuntimeMeshBuilder.h.

Member Data Documentation

FRuntimeMeshDataPtr FRuntimeMeshScopedUpdater::LinkedMeshData
private

Definition at line 492 of file RuntimeMeshBuilder.h.

int32 FRuntimeMeshScopedUpdater::SectionIndex
private

Definition at line 493 of file RuntimeMeshBuilder.h.

ESectionUpdateFlags FRuntimeMeshScopedUpdater::UpdateFlags
private

Definition at line 494 of file RuntimeMeshBuilder.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