CFx SDK Documentation  2023 SP0
Classes | Macros | Typedefs | Enumerations | Functions
TrVisMetafileStream.h File Reference
#include "TD_PackPush.h"
#include "MetafileStreamBase.h"
#include "Gs/Gs.h"
#include "TrVisDefs.h"
#include "Ps/PlotStyles.h"
#include "TD_PackPop.h"

Go to the source code of this file.

Classes

struct  OdTrVisArrayWrapper
 
struct  OdTrVisMarkBase< UInt64Type >
 
struct  OdTrVisLwdStyle
 
struct  OdTrVisLwdSetting
 
class  OdTrVisFlatMetafileContainer
 
class  OdTrVisFlatMetafileContainerWriter
 
class  OdTrVisFlatMetafileContainerReader
 

Macros

#define OD_TRVIS_ENABLEFLOATCONVERSION
 
#define OD_OGL_RDR_SEEKFWD(pMemPtr, uSize)   (pMemPtr) += (uSize)
 
#define OD_OGL_RDR_SEEKBWD(pMemPtr, uSize)   (pMemPtr) -= (uSize)
 
#define OD_OGL_RDR_SEEKINC(pMemPtr)   (pMemPtr)++
 
#define OD_OGL_RDR_SEEKDEC(pMemPtr)   (pMemPtr)--
 
#define OD_OGL_RDR_READVAL(cType, pMemPtr)   *(cType*)(pMemPtr)
 
#define OD_OGL_RDR_READVALOFFSET(cType, pMemPtr, uOffset)   *(cType*)((pMemPtr) + (uOffset))
 
#define OD_OGL_RDR_READVALRETYPE(cOutType, cInType, pMemPtr)   (cOutType)OD_OGL_RDR_READVAL(cInType, pMemPtr)
 
#define OD_OGL_RDR_READVALOFFSETRETYPE(cOutType, cInType, pMemPtr, uOffset)   (cOutType)OD_OGL_RDR_READVALOFFSET(cInType, pMemPtr, uOffset)
 
#define OD_OGL_RDR_GETPTRNATIVE(cType, pMemPtr)   (cType*)(pMemPtr)
 
#define OD_OGL_RDR_GETPTRNATIVEOFFSET(cType, pMemPtr, uSize)   (cType*)((pMemPtr) + (uSize))
 
#define OD_OGL_RDR_GETPTRSTORAGE(imedType, name, count)
 
#define OD_OGL_RDR_GETPTR(cType, imedType, name, count, pMemPtr)   OD_OGL_RDR_GETPTRNATIVE(cType, pMemPtr)
 
#define OD_OGL_RDR_GETPTROFFSET(cType, imedType, name, count, pMemPtr, uSize)   OD_OGL_RDR_GETPTRNATIVEOFFSET(cType, pMemPtr, uSize)
 
#define OD_OGL_RDR_INITIATE(pMemPtr, uSize)   const OdUInt8 *pMemPtrReadFor = (const OdUInt8*)pMemPtr + uSize
 
#define OD_OGL_RDR_CHECKEOF(pMemPtr)   pMemPtr < pMemPtrReadFor
 

Typedefs

typedef float OdTrVisVertexType
 
typedef OdTrVisMarkBase< OdUInt64OdTrVisDefProcMark
 
typedef OdTrVisMarkBase< OdTrVisGsMarkerOdTrVisSelMark
 
typedef OdTrVisMarkBase< OdTrVisMetafileIdOdTrVisMetaMark
 

Enumerations

enum  OdTrVisMetaRecType {
  OdTrVisMetaRecType_Empty = 0x00 , OdTrVisMetaRecType_EnableOpt = 0x01 , OdTrVisMetaRecType_DisableOpt = 0x02 , OdTrVisMetaRecType_Color = 0x03 ,
  OdTrVisMetaRecType_EnableArray = 0x04 , OdTrVisMetaRecType_DisableArray = 0x05 , OdTrVisMetaRecType_DrawArrays = 0x06 , OdTrVisMetaRecType_DrawElements = 0x07 ,
  OdTrVisMetaRecType_CullFace = 0x08 , OdTrVisMetaRecType_LStipple = 0x09 , OdTrVisMetaRecType_PStipple = 0x0A , OdTrVisMetaRecType_VPoint = 0x0B ,
  OdTrVisMetaRecType_VLine = 0x0C , OdTrVisMetaRecType_IPoint = 0x0D , OdTrVisMetaRecType_ILine = 0x0E , OdTrVisMetaRecType_HLRStencil = 0x0F ,
  OdTrVisMetaRecType_EnableShading = 0x10 , OdTrVisMetaRecType_DisableShading = 0x11 , OdTrVisMetaRecType_Material = 0x12 , OdTrVisMetaRecType_UserEntry = 0x13 ,
  OdTrVisMetaRecType_InitTexture = 0x14 , OdTrVisMetaRecType_UninitTexture = 0x15 , OdTrVisMetaRecType_SelectionMarker = 0x16 , OdTrVisMetaRecType_EnableMarkerArray = 0x17 ,
  OdTrVisMetaRecType_DisableMarkerArray = 0x18 , OdTrVisMetaRecType_SelectionFlags = 0x19 , OdTrVisMetaRecType_Lineweight = 0x1A , OdTrVisMetaRecType_Linestyle = 0x1B ,
  OdTrVisMetaRecType_Program = 0x1C , OdTrVisMetaRecType_TtfText = 0x1D , OdTrVisMetaRecType_PushMatrix = 0x1E , OdTrVisMetaRecType_PopMatrix = 0x1F ,
  OdTrVisMetaRecType_Metafile = 0x20 , OdTrVisMetaRecType_GeomMarker = 0x21 , OdTrVisMetaRecType_VisualStyle = 0x22 , OdTrVisMetaRecType_MetafileMarker = 0x23 ,
  OdTrVisMetaRecType_NTypes
}
 
enum  OdTrVisMetaRecArrayType {
  OdTrVisMetaRecArrayType_Vertex = 0x00 , OdTrVisMetaRecArrayType_Color = 0x01 , OdTrVisMetaRecArrayType_TexCoord = 0x02 , OdTrVisMetaRecArrayType_Normal = 0x03 ,
  OdTrVisMetaRecArrayType_Normal2 = 0x04 , OdTrVisMetaRecArrayType_NTypes
}
 
enum  OdTrVisMetaRecMarkerType { OdTrVisMetaRecMarkerType_Selection = 0x00 , OdTrVisMetaRecMarkerType_Metafile = 0x01 , OdTrVisMetaRecMarkerType_NTypes }
 
enum  OdTrVisAttribute {
  OdTrVisAttribute_Depth = 0x00 , OdTrVisAttribute_Blend = 0x01 , OdTrVisAttribute_Reserved1 = 0x02 , OdTrVisAttribute_Reserved2 = 0x03 ,
  OdTrVisAttribute_NTypes , OdTrVisAttribute_Mask = 0x0F
}
 
enum  OdTrVisShading {
  OdTrVisShading_Lighting = 0x00 , OdTrVisShading_Highlighting = 0x01 , OdTrVisShading_Gouraud = 0x02 , OdTrVisShading_MultiNormals = 0x03 ,
  OdTrVisShading_Disable2dLineweights = 0x04 , OdTrVisShading_NoColorOverride = 0x05 , OdTrVisShading_NTypes , OdTrVisShading_Mask = 0x3F
}
 
enum  OdTrVisFaceCulling {
  OdTrVisCullFace_None = 0x00 , OdTrVisCullFace_Back = 0x01 , OdTrVisCullFace_Front = 0x02 , OdTrVisCullFace_Default = 0x03 ,
  OdTrVisCullEdge_None = 0x00 , OdTrVisCullEdge_Back = 0x04 , OdTrVisCullEdge_Front = 0x08 , OdTrVisCullEdge_Default = 0x0C
}
 
enum  OdTrVisSelectionFlags {
  OdTrVisSelFlag_DontDisplayUnhighlighted = (1 << 0) , OdTrVisSelFlag_DontSelectUnhighlighted = (1 << 1) , OdTrVisSelFlag_DontDisplayHighlighted = (1 << 2) , OdTrVisSelFlag_DontSelectHighlighted = (1 << 3) ,
  OdTrVisSelFlag_FlagsMask = 15 , OdTrVisSelFlag_Default = 0
}
 
enum  OdTrVisAffection {
  OdTrVisAffection_Attributes = 0x01 , OdTrVisAffection_Colors = (0x01 << 1) , OdTrVisAffection_Materials = (0x01 << 2) , OdTrVisAffection_Arrays = (0x01 << 3) ,
  OdTrVisAffection_Geometry = (0x01 << 4)
}
 
enum  OdTrVisPushMatrixType { OdTrVisPushMatrixType_Identity = 0 , OdTrVisPushMatrixType_Full }
 
enum  OdTrVisGeomType {
  OdTrVisGeomType_Default = 0 , OdTrVisGeomType_2dFacets = 1 , OdTrVisGeomType_2dFacetsNoFill = 2 , OdTrVisGeomType_3dFacets = 3 ,
  OdTrVisGeomType_3dFacetsNoFill = 4 , OdTrVisGeomType_RasterImageFacets = 5 , OdTrVisGeomType_2dFacetEdges = 6 , OdTrVisGeomType_3dFacetEdges = 7 ,
  OdTrVisGeomType_Isolines = 8 , OdTrVisGeomType_EdgesWithIsolines = 9 , OdTrVisGeomType_HatchIsolineEdges = 10 , OdTrVisGeomType_FillPatternEdges = 11 ,
  OdTrVisGeomType_IntersectionEdges = 12 , OdTrVisGeomType_Silhouettes = 13 , OdTrVisGeomType_NTypes
}
 
enum  OdTrVisGeomPrim {
  kTrVisGeomPrimInvalid = -1 , kTrVisPoints = 0 , kTrVisLines = 1 , kTrVisLineLoop = 2 ,
  kTrVisLineStrip = 3 , kTrVisTriangles = 4 , kTrVisTriangleStrip = 5 , kTrVisTriangleFan = 6
}
 

Functions

void od_dbl2float (float *pFloats, const double *pDoubles, size_t numData)
 
const OdCharchunkDecode (OdTrVisMetaRecType rt)
 
OdTrVisFaceCulling combineCullingModes (OdTrVisFaceCulling faceMode, OdTrVisFaceCulling edgeMode)
 
void splitCullingModes (OdTrVisFaceCulling &cullingMode, OdTrVisFaceCulling &edgeMode)
 
OdTrVisFaceCulling faceCullingModeAsEdge (OdTrVisFaceCulling faceMode)
 
OdTrVisFaceCulling edgeCullingModeAsFace (OdTrVisFaceCulling edgeMode)
 
bool isGeomTypeVisible (OdTrVisGeomType geomType, OdGsView::RenderMode rMode)
 

Macro Definition Documentation

◆ OD_OGL_RDR_CHECKEOF

#define OD_OGL_RDR_CHECKEOF (   pMemPtr)    pMemPtr < pMemPtrReadFor

Definition at line 508 of file TrVisMetafileStream.h.

◆ OD_OGL_RDR_GETPTR

#define OD_OGL_RDR_GETPTR (   cType,
  imedType,
  name,
  count,
  pMemPtr 
)    OD_OGL_RDR_GETPTRNATIVE(cType, pMemPtr)

Definition at line 504 of file TrVisMetafileStream.h.

◆ OD_OGL_RDR_GETPTRNATIVE

#define OD_OGL_RDR_GETPTRNATIVE (   cType,
  pMemPtr 
)    (cType*)(pMemPtr)

Definition at line 501 of file TrVisMetafileStream.h.

◆ OD_OGL_RDR_GETPTRNATIVEOFFSET

#define OD_OGL_RDR_GETPTRNATIVEOFFSET (   cType,
  pMemPtr,
  uSize 
)    (cType*)((pMemPtr) + (uSize))

Definition at line 502 of file TrVisMetafileStream.h.

◆ OD_OGL_RDR_GETPTROFFSET

#define OD_OGL_RDR_GETPTROFFSET (   cType,
  imedType,
  name,
  count,
  pMemPtr,
  uSize 
)    OD_OGL_RDR_GETPTRNATIVEOFFSET(cType, pMemPtr, uSize)

Definition at line 505 of file TrVisMetafileStream.h.

◆ OD_OGL_RDR_GETPTRSTORAGE

#define OD_OGL_RDR_GETPTRSTORAGE (   imedType,
  name,
  count 
)

Definition at line 503 of file TrVisMetafileStream.h.

◆ OD_OGL_RDR_INITIATE

#define OD_OGL_RDR_INITIATE (   pMemPtr,
  uSize 
)    const OdUInt8 *pMemPtrReadFor = (const OdUInt8*)pMemPtr + uSize

Definition at line 507 of file TrVisMetafileStream.h.

◆ OD_OGL_RDR_READVAL

#define OD_OGL_RDR_READVAL (   cType,
  pMemPtr 
)    *(cType*)(pMemPtr)

Definition at line 497 of file TrVisMetafileStream.h.

◆ OD_OGL_RDR_READVALOFFSET

#define OD_OGL_RDR_READVALOFFSET (   cType,
  pMemPtr,
  uOffset 
)    *(cType*)((pMemPtr) + (uOffset))

Definition at line 498 of file TrVisMetafileStream.h.

◆ OD_OGL_RDR_READVALOFFSETRETYPE

#define OD_OGL_RDR_READVALOFFSETRETYPE (   cOutType,
  cInType,
  pMemPtr,
  uOffset 
)    (cOutType)OD_OGL_RDR_READVALOFFSET(cInType, pMemPtr, uOffset)

Definition at line 500 of file TrVisMetafileStream.h.

◆ OD_OGL_RDR_READVALRETYPE

#define OD_OGL_RDR_READVALRETYPE (   cOutType,
  cInType,
  pMemPtr 
)    (cOutType)OD_OGL_RDR_READVAL(cInType, pMemPtr)

Definition at line 499 of file TrVisMetafileStream.h.

◆ OD_OGL_RDR_SEEKBWD

#define OD_OGL_RDR_SEEKBWD (   pMemPtr,
  uSize 
)    (pMemPtr) -= (uSize)

Definition at line 493 of file TrVisMetafileStream.h.

◆ OD_OGL_RDR_SEEKDEC

#define OD_OGL_RDR_SEEKDEC (   pMemPtr)    (pMemPtr)--

Definition at line 495 of file TrVisMetafileStream.h.

◆ OD_OGL_RDR_SEEKFWD

#define OD_OGL_RDR_SEEKFWD (   pMemPtr,
  uSize 
)    (pMemPtr) += (uSize)

Definition at line 492 of file TrVisMetafileStream.h.

◆ OD_OGL_RDR_SEEKINC

#define OD_OGL_RDR_SEEKINC (   pMemPtr)    (pMemPtr)++

Definition at line 494 of file TrVisMetafileStream.h.

◆ OD_TRVIS_ENABLEFLOATCONVERSION

#define OD_TRVIS_ENABLEFLOATCONVERSION

Definition at line 36 of file TrVisMetafileStream.h.

Typedef Documentation

◆ OdTrVisDefProcMark

Definition at line 287 of file TrVisMetafileStream.h.

◆ OdTrVisMetaMark

Definition at line 291 of file TrVisMetafileStream.h.

◆ OdTrVisSelMark

Definition at line 289 of file TrVisMetafileStream.h.

◆ OdTrVisVertexType

typedef float OdTrVisVertexType

Definition at line 39 of file TrVisMetafileStream.h.

Enumeration Type Documentation

◆ OdTrVisAffection

Enumerator
OdTrVisAffection_Attributes 
OdTrVisAffection_Colors 
OdTrVisAffection_Materials 
OdTrVisAffection_Arrays 
OdTrVisAffection_Geometry 

Definition at line 168 of file TrVisMetafileStream.h.

◆ OdTrVisAttribute

Enumerator
OdTrVisAttribute_Depth 
OdTrVisAttribute_Blend 
OdTrVisAttribute_Reserved1 
OdTrVisAttribute_Reserved2 
OdTrVisAttribute_NTypes 
OdTrVisAttribute_Mask 

Definition at line 110 of file TrVisMetafileStream.h.

◆ OdTrVisFaceCulling

Enumerator
OdTrVisCullFace_None 
OdTrVisCullFace_Back 
OdTrVisCullFace_Front 
OdTrVisCullFace_Default 
OdTrVisCullEdge_None 
OdTrVisCullEdge_Back 
OdTrVisCullEdge_Front 
OdTrVisCullEdge_Default 

Definition at line 134 of file TrVisMetafileStream.h.

◆ OdTrVisGeomPrim

Enumerator
kTrVisGeomPrimInvalid 
kTrVisPoints 
kTrVisLines 
kTrVisLineLoop 
kTrVisLineStrip 
kTrVisTriangles 
kTrVisTriangleStrip 
kTrVisTriangleFan 

Definition at line 209 of file TrVisMetafileStream.h.

◆ OdTrVisGeomType

Enumerator
OdTrVisGeomType_Default 
OdTrVisGeomType_2dFacets 
OdTrVisGeomType_2dFacetsNoFill 
OdTrVisGeomType_3dFacets 
OdTrVisGeomType_3dFacetsNoFill 
OdTrVisGeomType_RasterImageFacets 
OdTrVisGeomType_2dFacetEdges 
OdTrVisGeomType_3dFacetEdges 
OdTrVisGeomType_Isolines 
OdTrVisGeomType_EdgesWithIsolines 
OdTrVisGeomType_HatchIsolineEdges 
OdTrVisGeomType_FillPatternEdges 
OdTrVisGeomType_IntersectionEdges 
OdTrVisGeomType_Silhouettes 
OdTrVisGeomType_NTypes 

Definition at line 183 of file TrVisMetafileStream.h.

◆ OdTrVisMetaRecArrayType

Enumerator
OdTrVisMetaRecArrayType_Vertex 
OdTrVisMetaRecArrayType_Color 
OdTrVisMetaRecArrayType_TexCoord 
OdTrVisMetaRecArrayType_Normal 
OdTrVisMetaRecArrayType_Normal2 
OdTrVisMetaRecArrayType_NTypes 

Definition at line 91 of file TrVisMetafileStream.h.

◆ OdTrVisMetaRecMarkerType

Enumerator
OdTrVisMetaRecMarkerType_Selection 
OdTrVisMetaRecMarkerType_Metafile 
OdTrVisMetaRecMarkerType_NTypes 

Definition at line 102 of file TrVisMetafileStream.h.

◆ OdTrVisMetaRecType

Enumerator
OdTrVisMetaRecType_Empty 
OdTrVisMetaRecType_EnableOpt 
OdTrVisMetaRecType_DisableOpt 
OdTrVisMetaRecType_Color 
OdTrVisMetaRecType_EnableArray 
OdTrVisMetaRecType_DisableArray 
OdTrVisMetaRecType_DrawArrays 
OdTrVisMetaRecType_DrawElements 
OdTrVisMetaRecType_CullFace 
OdTrVisMetaRecType_LStipple 
OdTrVisMetaRecType_PStipple 
OdTrVisMetaRecType_VPoint 
OdTrVisMetaRecType_VLine 
OdTrVisMetaRecType_IPoint 
OdTrVisMetaRecType_ILine 
OdTrVisMetaRecType_HLRStencil 
OdTrVisMetaRecType_EnableShading 
OdTrVisMetaRecType_DisableShading 
OdTrVisMetaRecType_Material 
OdTrVisMetaRecType_UserEntry 
OdTrVisMetaRecType_InitTexture 
OdTrVisMetaRecType_UninitTexture 
OdTrVisMetaRecType_SelectionMarker 
OdTrVisMetaRecType_EnableMarkerArray 
OdTrVisMetaRecType_DisableMarkerArray 
OdTrVisMetaRecType_SelectionFlags 
OdTrVisMetaRecType_Lineweight 
OdTrVisMetaRecType_Linestyle 
OdTrVisMetaRecType_Program 
OdTrVisMetaRecType_TtfText 
OdTrVisMetaRecType_PushMatrix 
OdTrVisMetaRecType_PopMatrix 
OdTrVisMetaRecType_Metafile 
OdTrVisMetaRecType_GeomMarker 
OdTrVisMetaRecType_VisualStyle 
OdTrVisMetaRecType_MetafileMarker 
OdTrVisMetaRecType_NTypes 

Definition at line 46 of file TrVisMetafileStream.h.

◆ OdTrVisPushMatrixType

Enumerator
OdTrVisPushMatrixType_Identity 
OdTrVisPushMatrixType_Full 

Definition at line 177 of file TrVisMetafileStream.h.

◆ OdTrVisSelectionFlags

Enumerator
OdTrVisSelFlag_DontDisplayUnhighlighted 
OdTrVisSelFlag_DontSelectUnhighlighted 
OdTrVisSelFlag_DontDisplayHighlighted 
OdTrVisSelFlag_DontSelectHighlighted 
OdTrVisSelFlag_FlagsMask 
OdTrVisSelFlag_Default 

Definition at line 158 of file TrVisMetafileStream.h.

◆ OdTrVisShading

Enumerator
OdTrVisShading_Lighting 
OdTrVisShading_Highlighting 
OdTrVisShading_Gouraud 
OdTrVisShading_MultiNormals 
OdTrVisShading_Disable2dLineweights 
OdTrVisShading_NoColorOverride 
OdTrVisShading_NTypes 
OdTrVisShading_Mask 

Definition at line 121 of file TrVisMetafileStream.h.

Function Documentation

◆ chunkDecode()

const OdChar* chunkDecode ( OdTrVisMetaRecType  rt)

◆ combineCullingModes()

OdTrVisFaceCulling combineCullingModes ( OdTrVisFaceCulling  faceMode,
OdTrVisFaceCulling  edgeMode 
)
inline

Definition at line 149 of file TrVisMetafileStream.h.

◆ edgeCullingModeAsFace()

OdTrVisFaceCulling edgeCullingModeAsFace ( OdTrVisFaceCulling  edgeMode)
inline

Definition at line 155 of file TrVisMetafileStream.h.

◆ faceCullingModeAsEdge()

OdTrVisFaceCulling faceCullingModeAsEdge ( OdTrVisFaceCulling  faceMode)
inline

Definition at line 153 of file TrVisMetafileStream.h.

◆ isGeomTypeVisible()

bool isGeomTypeVisible ( OdTrVisGeomType  geomType,
OdGsView::RenderMode  rMode 
)

◆ od_dbl2float()

void od_dbl2float ( float *  pFloats,
const double *  pDoubles,
size_t  numData 
)

◆ splitCullingModes()

void splitCullingModes ( OdTrVisFaceCulling cullingMode,
OdTrVisFaceCulling edgeMode 
)
inline

Definition at line 151 of file TrVisMetafileStream.h.