CFx SDK Documentation  2020SP3
Classes | Macros | Typedefs | Functions | Variables
TrVisDefs.h File Reference
#include "TD_PackPush.h"
#include "Ge/GePoint3d.h"
#include "Gs/Gs.h"
#include "TD_PackPop.h"

Go to the source code of this file.

Classes

struct  OdTrVisSyncFlags
 
struct  OdTrVisColorRGBA
 
struct  OdTrVisMatrix
 
struct  OdTrVisSectionPlane
 
class  OdTrVisDescStub
 

Macros

#define OD_FORCEINLINE   inline
 
#define OD_CONSTEXPR_FUNC   OD_FORCEINLINE
 
#define OD_CONSTEXPR
 
#define OdTrVisPtrToId(ptr)   ((OdTrVisId)((OdIntPtr)ptr))
 
#define OdTrVisIdToPtr(ptrType, id)   ((ptrType*)(OdIntPtr)(id))
 
#define OD_TRVIS_OPAQUE(color)   ((color) | 0xFF000000)
 
#define OD_TRVIS_TRANSPARENT(color)   ((color) & 0x00FFFFFF)
 
#define OD_TRVIS_SETALPHA(color, alpha)   (OD_TRVIS_TRANSPARENT(color) | (ODCOLORREF(alpha) << 24))
 

Typedefs

typedef OdUInt64 OdTrVisGsMarker
 
typedef OdArray< OdTrVisGsMarker, OdMemoryAllocator< OdTrVisGsMarker > > OdTrVisGsMarkerArray
 
typedef OdUInt64 OdTrVisId
 
typedef OdTrVisId OdTrVisViewportId
 
typedef OdTrVisId OdTrVisMetafileId
 
typedef OdUInt32 OdTrVisArrayId
 
typedef OdTrVisId OdTrVisTextureId
 
typedef OdTrVisId OdTrVisMaterialId
 
typedef OdTrVisId OdTrVisProgramId
 
typedef OdTrVisId OdTrVisDisplayId
 
typedef OdTrVisId OdTrVisHlBranchId
 
typedef OdTrVisId OdTrVisVisualStyleId
 
typedef OdTrVisId OdTrVisLayerId
 
typedef OdTrVisId OdTrVisOverlayId
 
typedef OdArray< float, OdMemoryAllocator< float > > OdFloatArray
 
typedef OdArray< OdTrVisMatrix, OdMemoryAllocator< OdTrVisMatrix > > OdTrVisMatrixArray
 
typedef OdArray< OdTrVisSectionPlane, OdMemoryAllocator< OdTrVisSectionPlane > > OdTrVisSectionPlaneArray
 

Functions

bool isValidMarker (OdTrVisGsMarker marker)
 
OD_FORCEINLINE bool isValidTrVisId (OdTrVisId id)
 
OD_FORCEINLINE bool isNullTrVisId (OdTrVisId id)
 
OD_FORCEINLINE bool isMainTrVisOverlayId (OdTrVisId id)
 
OD_FORCEINLINE bool isValidTrVisArrayId (OdTrVisArrayId id)
 
OD_FORCEINLINE bool OdTrVisFPEqual (float a, float b, float tol=1.e-8f)
 
OD_FORCEINLINE bool OdTrVisFPZero (float a, float tol=1.e-8f)
 

Variables

const OdTrVisGsMarker kTrVisNullGsMarker = OdTrVisGsMarker(kNullSubentIndex)
 
const OdTrVisId kTrVisNegativeId = OdTrVisId(-1)
 
const OdTrVisId kTrVisNullId = OdTrVisId(0)
 
const OdTrVisId kTrVisMainOverlayId = kTrVisNullId
 
const OdTrVisArrayId kTrVisNegativeArrayId = OdTrVisArrayId(-1)
 

Macro Definition Documentation

◆ OD_CONSTEXPR

#define OD_CONSTEXPR

Definition at line 55 of file TrVisDefs.h.

◆ OD_CONSTEXPR_FUNC

#define OD_CONSTEXPR_FUNC   OD_FORCEINLINE

Definition at line 54 of file TrVisDefs.h.

◆ OD_FORCEINLINE

#define OD_FORCEINLINE   inline

Definition at line 41 of file TrVisDefs.h.

◆ OD_TRVIS_OPAQUE

#define OD_TRVIS_OPAQUE (   color)    ((color) | 0xFF000000)

Definition at line 215 of file TrVisDefs.h.

◆ OD_TRVIS_SETALPHA

#define OD_TRVIS_SETALPHA (   color,
  alpha 
)    (OD_TRVIS_TRANSPARENT(color) | (ODCOLORREF(alpha) << 24))

Definition at line 217 of file TrVisDefs.h.

◆ OD_TRVIS_TRANSPARENT

#define OD_TRVIS_TRANSPARENT (   color)    ((color) & 0x00FFFFFF)

Definition at line 216 of file TrVisDefs.h.

◆ OdTrVisIdToPtr

#define OdTrVisIdToPtr (   ptrType,
  id 
)    ((ptrType*)(OdIntPtr)(id))

Definition at line 108 of file TrVisDefs.h.

◆ OdTrVisPtrToId

#define OdTrVisPtrToId (   ptr)    ((OdTrVisId)((OdIntPtr)ptr))

Definition at line 107 of file TrVisDefs.h.

Typedef Documentation

◆ OdFloatArray

typedef OdArray<float, OdMemoryAllocator<float> > OdFloatArray

Definition at line 134 of file TrVisDefs.h.

◆ OdTrVisArrayId

Definition at line 90 of file TrVisDefs.h.

◆ OdTrVisDisplayId

Definition at line 97 of file TrVisDefs.h.

◆ OdTrVisGsMarker

Definition at line 77 of file TrVisDefs.h.

◆ OdTrVisGsMarkerArray

Definition at line 78 of file TrVisDefs.h.

◆ OdTrVisHlBranchId

Definition at line 99 of file TrVisDefs.h.

◆ OdTrVisId

Definition at line 85 of file TrVisDefs.h.

◆ OdTrVisLayerId

Definition at line 103 of file TrVisDefs.h.

◆ OdTrVisMaterialId

Definition at line 93 of file TrVisDefs.h.

◆ OdTrVisMatrixArray

Definition at line 188 of file TrVisDefs.h.

◆ OdTrVisMetafileId

Definition at line 89 of file TrVisDefs.h.

◆ OdTrVisOverlayId

Definition at line 105 of file TrVisDefs.h.

◆ OdTrVisProgramId

Definition at line 95 of file TrVisDefs.h.

◆ OdTrVisSectionPlaneArray

Definition at line 213 of file TrVisDefs.h.

◆ OdTrVisTextureId

Definition at line 92 of file TrVisDefs.h.

◆ OdTrVisViewportId

Definition at line 87 of file TrVisDefs.h.

◆ OdTrVisVisualStyleId

Definition at line 101 of file TrVisDefs.h.

Function Documentation

◆ isMainTrVisOverlayId()

OD_FORCEINLINE bool isMainTrVisOverlayId ( OdTrVisId  id)

Definition at line 123 of file TrVisDefs.h.

◆ isNullTrVisId()

OD_FORCEINLINE bool isNullTrVisId ( OdTrVisId  id)

Definition at line 117 of file TrVisDefs.h.

◆ isValidMarker()

bool isValidMarker ( OdTrVisGsMarker  marker)
inline

Definition at line 80 of file TrVisDefs.h.

◆ isValidTrVisArrayId()

OD_FORCEINLINE bool isValidTrVisArrayId ( OdTrVisArrayId  id)

Definition at line 129 of file TrVisDefs.h.

◆ isValidTrVisId()

OD_FORCEINLINE bool isValidTrVisId ( OdTrVisId  id)

Definition at line 111 of file TrVisDefs.h.

◆ OdTrVisFPEqual()

OD_FORCEINLINE bool OdTrVisFPEqual ( float  a,
float  b,
float  tol = 1.e-8f 
)

Definition at line 221 of file TrVisDefs.h.

◆ OdTrVisFPZero()

OD_FORCEINLINE bool OdTrVisFPZero ( float  a,
float  tol = 1.e-8f 
)

Definition at line 226 of file TrVisDefs.h.

Variable Documentation

◆ kTrVisMainOverlayId

const OdTrVisId kTrVisMainOverlayId = kTrVisNullId

Definition at line 122 of file TrVisDefs.h.

◆ kTrVisNegativeArrayId

const OdTrVisArrayId kTrVisNegativeArrayId = OdTrVisArrayId(-1)

Definition at line 128 of file TrVisDefs.h.

◆ kTrVisNegativeId

const OdTrVisId kTrVisNegativeId = OdTrVisId(-1)

Definition at line 110 of file TrVisDefs.h.

◆ kTrVisNullGsMarker

const OdTrVisGsMarker kTrVisNullGsMarker = OdTrVisGsMarker(kNullSubentIndex)

Definition at line 79 of file TrVisDefs.h.

◆ kTrVisNullId

const OdTrVisId kTrVisNullId = OdTrVisId(0)

Definition at line 116 of file TrVisDefs.h.