CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions | Variables
TrVisDefs.h File Reference
#include "TD_PackPush.h"
#include "Ge/GePoint3d.h"
#include "Gs/Gs.h"
#include "TrVisMatrix.h"
#include "TrVisIval.h"
#include "TD_PackPop.h"

Go to the source code of this file.

Classes

struct  OdTrVisSyncFlags
 
struct  OdTrVisColorRGBA
 
struct  OdTrVisSectionPlane
 
struct  OdTrVisTemporalIncreasor< Type >
 
struct  OdTrVisTemporalDescreasor< Type >
 
class  OdTrVisMultiStateSaver< DataType, numEntries >
 
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 OdTrVisOwning
 
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 OdTrVisLightId
 
typedef OdTrVisId OdTrVisStateBranchId
 
typedef OdTrVisId OdTrVisVisualStyleId
 
typedef OdTrVisId OdTrVisLayerId
 
typedef OdTrVisId OdTrVisOverlayId
 
typedef OdTrVisId OdTrVisGroupId
 
typedef OdTrVisId OdTrVisExtensionId
 
typedef OdTrVisId OdTrVisBlockId
 
typedef const voidOdTrVisStateBranchPtr
 
typedef OdArray< OdTrVisSectionPlane, OdMemoryAllocator< OdTrVisSectionPlane > > OdTrVisSectionPlaneArray
 
typedef OdArray< float, OdMemoryAllocator< float > > OdFloatArray
 

Enumerations

enum  OdTrVisStateBranchType { kTrVisHighlightingBranch = 0 , kTrVisVisibilityBranch , kTrVisNumStateBranchTypes }
 

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)
 
template<typename Type >
OD_FORCEINLINE Type & OdTrVisClamp (Type &val, Type valMin, Type valMax)
 
template<typename Type >
OD_FORCEINLINE Type OdTrVisClamp (const Type &val, Type valMin, Type valMax)
 

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 58 of file TrVisDefs.h.

◆ OD_CONSTEXPR_FUNC

#define OD_CONSTEXPR_FUNC   OD_FORCEINLINE

Definition at line 57 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 235 of file TrVisDefs.h.

◆ OD_TRVIS_SETALPHA

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

Definition at line 237 of file TrVisDefs.h.

◆ OD_TRVIS_TRANSPARENT

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

Definition at line 236 of file TrVisDefs.h.

◆ OdTrVisIdToPtr

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

Definition at line 126 of file TrVisDefs.h.

◆ OdTrVisPtrToId

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

Definition at line 125 of file TrVisDefs.h.

Typedef Documentation

◆ OdFloatArray

typedef OdArray<float, OdMemoryAllocator<float> > OdFloatArray

Definition at line 251 of file TrVisDefs.h.

◆ OdTrVisArrayId

Definition at line 100 of file TrVisDefs.h.

◆ OdTrVisBlockId

Definition at line 123 of file TrVisDefs.h.

◆ OdTrVisDisplayId

Definition at line 107 of file TrVisDefs.h.

◆ OdTrVisExtensionId

Definition at line 121 of file TrVisDefs.h.

◆ OdTrVisGroupId

Definition at line 119 of file TrVisDefs.h.

◆ OdTrVisGsMarker

Definition at line 84 of file TrVisDefs.h.

◆ OdTrVisGsMarkerArray

Definition at line 85 of file TrVisDefs.h.

◆ OdTrVisId

Definition at line 95 of file TrVisDefs.h.

◆ OdTrVisLayerId

Definition at line 115 of file TrVisDefs.h.

◆ OdTrVisLightId

Definition at line 109 of file TrVisDefs.h.

◆ OdTrVisMaterialId

Definition at line 103 of file TrVisDefs.h.

◆ OdTrVisMetafileId

Definition at line 99 of file TrVisDefs.h.

◆ OdTrVisOverlayId

Definition at line 117 of file TrVisDefs.h.

◆ OdTrVisOwning

Definition at line 91 of file TrVisDefs.h.

◆ OdTrVisProgramId

Definition at line 105 of file TrVisDefs.h.

◆ OdTrVisSectionPlaneArray

Definition at line 233 of file TrVisDefs.h.

◆ OdTrVisStateBranchId

Definition at line 111 of file TrVisDefs.h.

◆ OdTrVisStateBranchPtr

typedef const void* OdTrVisStateBranchPtr

Definition at line 162 of file TrVisDefs.h.

◆ OdTrVisTextureId

Definition at line 102 of file TrVisDefs.h.

◆ OdTrVisViewportId

Definition at line 97 of file TrVisDefs.h.

◆ OdTrVisVisualStyleId

Definition at line 113 of file TrVisDefs.h.

Enumeration Type Documentation

◆ OdTrVisStateBranchType

Enumerator
kTrVisHighlightingBranch 
kTrVisVisibilityBranch 
kTrVisNumStateBranchTypes 

Definition at line 154 of file TrVisDefs.h.

Function Documentation

◆ isMainTrVisOverlayId()

OD_FORCEINLINE bool isMainTrVisOverlayId ( OdTrVisId  id)

Definition at line 141 of file TrVisDefs.h.

◆ isNullTrVisId()

OD_FORCEINLINE bool isNullTrVisId ( OdTrVisId  id)

Definition at line 135 of file TrVisDefs.h.

◆ isValidMarker()

bool isValidMarker ( OdTrVisGsMarker  marker)
inline

Definition at line 87 of file TrVisDefs.h.

◆ isValidTrVisArrayId()

OD_FORCEINLINE bool isValidTrVisArrayId ( OdTrVisArrayId  id)

Definition at line 147 of file TrVisDefs.h.

◆ isValidTrVisId()

OD_FORCEINLINE bool isValidTrVisId ( OdTrVisId  id)

Definition at line 129 of file TrVisDefs.h.

◆ OdTrVisClamp() [1/2]

template<typename Type >
OD_FORCEINLINE Type OdTrVisClamp ( const Type &  val,
Type  valMin,
Type  valMax 
)

Definition at line 260 of file TrVisDefs.h.

◆ OdTrVisClamp() [2/2]

template<typename Type >
OD_FORCEINLINE Type & OdTrVisClamp ( Type &  val,
Type  valMin,
Type  valMax 
)

Definition at line 256 of file TrVisDefs.h.

◆ OdTrVisFPEqual()

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

Definition at line 241 of file TrVisDefs.h.

◆ OdTrVisFPZero()

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

Definition at line 246 of file TrVisDefs.h.

Variable Documentation

◆ kTrVisMainOverlayId

const OdTrVisId kTrVisMainOverlayId = kTrVisNullId

Definition at line 140 of file TrVisDefs.h.

◆ kTrVisNegativeArrayId

const OdTrVisArrayId kTrVisNegativeArrayId = OdTrVisArrayId(-1)

Definition at line 146 of file TrVisDefs.h.

◆ kTrVisNegativeId

const OdTrVisId kTrVisNegativeId = OdTrVisId(-1)

Definition at line 128 of file TrVisDefs.h.

◆ kTrVisNullGsMarker

const OdTrVisGsMarker kTrVisNullGsMarker = OdTrVisGsMarker(kNullSubentIndex)

Definition at line 86 of file TrVisDefs.h.

◆ kTrVisNullId

const OdTrVisId kTrVisNullId = OdTrVisId(0)

Definition at line 134 of file TrVisDefs.h.