CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
OdTrVisArrayWrapper Struct Reference

#include <TrVisMetafileStream.h>

Classes

struct  ReallocLogic
 

Public Types

enum  Type {
  Type_Vertex = 0 , Type_Normal , Type_Color , Type_TexCoord ,
  Type_Depth , Type_Index , Type_Marker , Type_Cache ,
  Type_Selection , Type_Invalid = 0x0F , Type_NoReset = Type_Invalid
}
 
enum  DataSize {
  DS_1 = 0 , DS_2 = 1 , DS_4 = 2 , DS_8 = 3 ,
  DS_16 = 4 , DS_32 = 5 , DS_64 = 6
}
 

Public Member Functions

 OdTrVisArrayWrapper ()
 
OdUInt32 arraySize () const
 
Type type () const
 
DataSize dataSize () const
 
void setArray (Type type, const void *pPtr, OdUInt32 size, DataSize ds)
 
void clearArray ()
 
void optimizeArray ()
 
void truncateArray (OdUInt32 size, DataSize ds)
 
void concatArray (const void *pPtr, OdUInt32 size, DataSize ds, const ReallocLogic &racLg=g_defaultReallocLogic)
 
OD_FORCEINLINE void setArray (Type type, const void *pPtr, OdUInt32 size, size_t ds)
 
OD_FORCEINLINE void concatArray (const void *pPtr, OdUInt32 size, size_t ds, const ReallocLogic &racLg=g_defaultReallocLogic)
 
void setArray_flt (Type type, const double *pPtr, OdUInt32 size)
 
void concatArray_flt (const double *pPtr, OdUInt32 size, const ReallocLogic &racLg=g_defaultReallocLogic)
 
void setArray_flt (Type type, const OdUInt8 *pPtr, OdUInt32 size)
 
void concatArray_flt (const OdUInt8 *pPtr, OdUInt32 size, const ReallocLogic &racLg=g_defaultReallocLogic)
 
void setArray_dbl (Type type, const OdUInt8 *pPtr, OdUInt32 size)
 
void concatArray_dbl (const OdUInt8 *pPtr, OdUInt32 size, const ReallocLogic &racLg=g_defaultReallocLogic)
 
void setArray_dbl (Type type, const float *pPtr, OdUInt32 size)
 
void concatArray_dbl (const float *pPtr, OdUInt32 size, const ReallocLogic &racLg=g_defaultReallocLogic)
 
void setArray_u8c (Type type, const float *pPtr, OdUInt32 size)
 
void concatArray_u8c (const float *pPtr, OdUInt32 size, const ReallocLogic &racLg=g_defaultReallocLogic)
 
void setArray_ush (Type type, const OdInt32 *pPtr, OdUInt32 size)
 
void concatArray_ush (const OdInt32 *pPtr, OdUInt32 size, const ReallocLogic &racLg=g_defaultReallocLogic)
 
void setArray_int (Type type, const OdUInt16 *pPtr, OdUInt32 size)
 
void concatArray_int (const OdUInt16 *pPtr, OdUInt32 size, const ReallocLogic &racLg=g_defaultReallocLogic)
 
void setArray_u8i (Type type, const OdInt32 *pPtr, OdUInt32 size)
 
void concatArray_u8i (const OdInt32 *pPtr, OdUInt32 size, const ReallocLogic &racLg=g_defaultReallocLogic)
 
void setArray_u8i (Type type, const OdUInt16 *pPtr, OdUInt32 size)
 
void concatArray_u8i (const OdUInt16 *pPtr, OdUInt32 size, const ReallocLogic &racLg=g_defaultReallocLogic)
 
void setArray_hfl (Type type, const float *pPtr, OdUInt32 size)
 
void concatArray_hfl (const float *pPtr, OdUInt32 size, const ReallocLogic &racLg=g_defaultReallocLogic)
 
void setArray_hfl (Type type, const double *pPtr, OdUInt32 size)
 
void concatArray_hfl (const double *pPtr, OdUInt32 size, const ReallocLogic &racLg=g_defaultReallocLogic)
 
bool asFloatsArray (OdFloatArray &result) const
 
void save (OdGsFiler *pFiler) const
 
void load (OdGsFiler *pFiler)
 

Static Public Member Functions

static OD_CONSTEXPR_FUNC DataSize dataSizeEst (size_t dataSize)
 

Public Attributes

voidm_pData
 
OdUInt32 m_uData: 4
 
OdUInt32 m_uSize: 28
 
OdUInt32 m_type: 4
 
OdUInt32 m_bind: 28
 

Static Public Attributes

static const struct OdTrVisArrayWrapper::ReallocLogic g_defaultReallocLogic
 

Detailed Description

This structure extends flat metafile containers by specific array elements.

<group !!RECORDS_TD_APIRef>

Definition at line 253 of file TrVisMetafileStream.h.

Member Enumeration Documentation

◆ DataSize

Enumerator
DS_1 
DS_2 
DS_4 
DS_8 
DS_16 
DS_32 
DS_64 

Definition at line 277 of file TrVisMetafileStream.h.

◆ Type

Enumerator
Type_Vertex 
Type_Normal 
Type_Color 
Type_TexCoord 
Type_Depth 
Type_Index 
Type_Marker 
Type_Cache 
Type_Selection 
Type_Invalid 
Type_NoReset 

Definition at line 261 of file TrVisMetafileStream.h.

Constructor & Destructor Documentation

◆ OdTrVisArrayWrapper()

OdTrVisArrayWrapper::OdTrVisArrayWrapper ( )
inline

Definition at line 280 of file TrVisMetafileStream.h.

Member Function Documentation

◆ arraySize()

OdUInt32 OdTrVisArrayWrapper::arraySize ( ) const
inline

Definition at line 288 of file TrVisMetafileStream.h.

◆ asFloatsArray()

bool OdTrVisArrayWrapper::asFloatsArray ( OdFloatArray result) const

◆ clearArray()

void OdTrVisArrayWrapper::clearArray ( )

◆ concatArray() [1/2]

void OdTrVisArrayWrapper::concatArray ( const void pPtr,
OdUInt32  size,
DataSize  ds,
const ReallocLogic &  racLg = g_defaultReallocLogic 
)

◆ concatArray() [2/2]

OD_FORCEINLINE void OdTrVisArrayWrapper::concatArray ( const void pPtr,
OdUInt32  size,
size_t  ds,
const ReallocLogic &  racLg = g_defaultReallocLogic 
)
inline

Definition at line 311 of file TrVisMetafileStream.h.

◆ concatArray_dbl() [1/2]

void OdTrVisArrayWrapper::concatArray_dbl ( const float *  pPtr,
OdUInt32  size,
const ReallocLogic &  racLg = g_defaultReallocLogic 
)

◆ concatArray_dbl() [2/2]

void OdTrVisArrayWrapper::concatArray_dbl ( const OdUInt8 pPtr,
OdUInt32  size,
const ReallocLogic &  racLg = g_defaultReallocLogic 
)

◆ concatArray_flt() [1/2]

void OdTrVisArrayWrapper::concatArray_flt ( const double *  pPtr,
OdUInt32  size,
const ReallocLogic &  racLg = g_defaultReallocLogic 
)

◆ concatArray_flt() [2/2]

void OdTrVisArrayWrapper::concatArray_flt ( const OdUInt8 pPtr,
OdUInt32  size,
const ReallocLogic &  racLg = g_defaultReallocLogic 
)

◆ concatArray_hfl() [1/2]

void OdTrVisArrayWrapper::concatArray_hfl ( const double *  pPtr,
OdUInt32  size,
const ReallocLogic &  racLg = g_defaultReallocLogic 
)

◆ concatArray_hfl() [2/2]

void OdTrVisArrayWrapper::concatArray_hfl ( const float *  pPtr,
OdUInt32  size,
const ReallocLogic &  racLg = g_defaultReallocLogic 
)

◆ concatArray_int()

void OdTrVisArrayWrapper::concatArray_int ( const OdUInt16 pPtr,
OdUInt32  size,
const ReallocLogic &  racLg = g_defaultReallocLogic 
)

◆ concatArray_u8c()

void OdTrVisArrayWrapper::concatArray_u8c ( const float *  pPtr,
OdUInt32  size,
const ReallocLogic &  racLg = g_defaultReallocLogic 
)

◆ concatArray_u8i() [1/2]

void OdTrVisArrayWrapper::concatArray_u8i ( const OdInt32 pPtr,
OdUInt32  size,
const ReallocLogic &  racLg = g_defaultReallocLogic 
)

◆ concatArray_u8i() [2/2]

void OdTrVisArrayWrapper::concatArray_u8i ( const OdUInt16 pPtr,
OdUInt32  size,
const ReallocLogic &  racLg = g_defaultReallocLogic 
)

◆ concatArray_ush()

void OdTrVisArrayWrapper::concatArray_ush ( const OdInt32 pPtr,
OdUInt32  size,
const ReallocLogic &  racLg = g_defaultReallocLogic 
)

◆ dataSize()

DataSize OdTrVisArrayWrapper::dataSize ( ) const
inline

Definition at line 290 of file TrVisMetafileStream.h.

◆ dataSizeEst()

static OD_CONSTEXPR_FUNC DataSize OdTrVisArrayWrapper::dataSizeEst ( size_t  dataSize)
inlinestatic

Definition at line 291 of file TrVisMetafileStream.h.

◆ load()

void OdTrVisArrayWrapper::load ( OdGsFiler pFiler)

◆ optimizeArray()

void OdTrVisArrayWrapper::optimizeArray ( )

◆ save()

void OdTrVisArrayWrapper::save ( OdGsFiler pFiler) const

◆ setArray() [1/2]

void OdTrVisArrayWrapper::setArray ( Type  type,
const void pPtr,
OdUInt32  size,
DataSize  ds 
)

◆ setArray() [2/2]

OD_FORCEINLINE void OdTrVisArrayWrapper::setArray ( Type  type,
const void pPtr,
OdUInt32  size,
size_t  ds 
)
inline

Definition at line 309 of file TrVisMetafileStream.h.

◆ setArray_dbl() [1/2]

void OdTrVisArrayWrapper::setArray_dbl ( Type  type,
const float *  pPtr,
OdUInt32  size 
)

◆ setArray_dbl() [2/2]

void OdTrVisArrayWrapper::setArray_dbl ( Type  type,
const OdUInt8 pPtr,
OdUInt32  size 
)

◆ setArray_flt() [1/2]

void OdTrVisArrayWrapper::setArray_flt ( Type  type,
const double *  pPtr,
OdUInt32  size 
)

◆ setArray_flt() [2/2]

void OdTrVisArrayWrapper::setArray_flt ( Type  type,
const OdUInt8 pPtr,
OdUInt32  size 
)

◆ setArray_hfl() [1/2]

void OdTrVisArrayWrapper::setArray_hfl ( Type  type,
const double *  pPtr,
OdUInt32  size 
)

◆ setArray_hfl() [2/2]

void OdTrVisArrayWrapper::setArray_hfl ( Type  type,
const float *  pPtr,
OdUInt32  size 
)

◆ setArray_int()

void OdTrVisArrayWrapper::setArray_int ( Type  type,
const OdUInt16 pPtr,
OdUInt32  size 
)

◆ setArray_u8c()

void OdTrVisArrayWrapper::setArray_u8c ( Type  type,
const float *  pPtr,
OdUInt32  size 
)

◆ setArray_u8i() [1/2]

void OdTrVisArrayWrapper::setArray_u8i ( Type  type,
const OdInt32 pPtr,
OdUInt32  size 
)

◆ setArray_u8i() [2/2]

void OdTrVisArrayWrapper::setArray_u8i ( Type  type,
const OdUInt16 pPtr,
OdUInt32  size 
)

◆ setArray_ush()

void OdTrVisArrayWrapper::setArray_ush ( Type  type,
const OdInt32 pPtr,
OdUInt32  size 
)

◆ truncateArray()

void OdTrVisArrayWrapper::truncateArray ( OdUInt32  size,
DataSize  ds 
)

◆ type()

Type OdTrVisArrayWrapper::type ( ) const
inline

Definition at line 289 of file TrVisMetafileStream.h.

Member Data Documentation

◆ g_defaultReallocLogic

const struct OdTrVisArrayWrapper::ReallocLogic OdTrVisArrayWrapper::g_defaultReallocLogic
static

◆ m_bind

OdUInt32 OdTrVisArrayWrapper::m_bind

Definition at line 259 of file TrVisMetafileStream.h.

◆ m_pData

void* OdTrVisArrayWrapper::m_pData

Definition at line 255 of file TrVisMetafileStream.h.

◆ m_type

OdUInt32 OdTrVisArrayWrapper::m_type

Definition at line 258 of file TrVisMetafileStream.h.

◆ m_uData

OdUInt32 OdTrVisArrayWrapper::m_uData

Definition at line 256 of file TrVisMetafileStream.h.

◆ m_uSize

OdUInt32 OdTrVisArrayWrapper::m_uSize

Definition at line 257 of file TrVisMetafileStream.h.


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