CFx SDK Documentation  2022 SP0
Classes | Public Member Functions | Protected Attributes | List of all members
OdTrVisRenditionMt Class Reference

#include <TrVisRendition.h>

Inheritance diagram for OdTrVisRenditionMt:
OdTrVisRenditionRedir OdTrVisRendition OdRxObject

Classes

struct  DataTypeEntry
 
struct  IdRegistratorMt
 

Public Member Functions

 OdTrVisRenditionMt ()
 
 ~OdTrVisRenditionMt ()
 
void init (OdTrVisRendition *pRendition)
 
bool isMt () const
 
virtual void onDeviceUpdateBegin (OdTrVisRenderClient *pDevice)
 
virtual void onDeviceUpdateEnd (OdTrVisRenderClient *pDevice)
 
virtual IdRegistratoridRegistrator () const
 
virtual bool queryMetafileStream (OdTrVisDisplayId displayId, const OdTrVisFlatMetafileContainer **pStream) const
 
virtual OdTrVisProgramId queryProgramId (OdGsView::RenderMode mode, OdTrVisVisualStyleId vsId=kTrVisNegativeId, OdTrVisGeomType geomType=OdTrVisGeomType_Default, OdUInt32 shadingFlags=0) const
 
virtual void obtainClientSettings (ClientSettings &clientSets)
 
virtual void onSurfaceChanged (const OdTrVisSurfaceDef &pDef)
 
virtual void onOverlayAdded (OdTrVisOverlayId overlayId, const OdTrVisOverlayDef &pDef)
 
virtual void onOverlayDeleted (OdTrVisOverlayId overlayId)
 
virtual void onOverlayVisibilityChanged (OdTrVisOverlayId overlayId, bool bVisibility)
 
virtual void onOverlayRenderOrderChanged (OdTrVisOverlayId overlayId, OdInt16 nRenderOrder)
 
virtual void onViewportAdded (OdTrVisViewportId viewportId)
 
virtual void onViewportDeleted (OdTrVisViewportId viewportId)
 
virtual void onViewportInserted (OdTrVisViewportId viewportId, int nIndex)
 
virtual void onViewportModified (OdTrVisViewportId viewportId, const OdTrVisViewportDef &pDef, OdUInt32 kindOfMod=kViewportModAll)
 
virtual void onMetafileOrderChanged (OdTrVisViewportId viewportId, OdTrVisOverlayId overlayId, const OdTrVisDisplayId *pList, OdUInt32 nEntries)
 
virtual void onMetafileOrderChanged (OdTrVisViewportId viewportId, OdTrVisOverlayId overlayId, OdUInt32 nInvalidFrom, OdUInt32 nInvalidLen, const OdTrVisDisplayId *pValidFrom, OdUInt32 nValidLen)
 
virtual void onLightsListChanged (OdTrVisViewportId viewportId, float ambientLight[4], bool bDefaultLightsOn, const OdTrVisLightDef *pList, OdUInt32 nEntries)
 
virtual void onBackgroundChanged (OdTrVisViewportId viewportId, OdTrVisFlatMetafileContainerPtr pStream, OdTrVisProgramId baseProgramId=kTrVisNegativeId)
 
virtual void onExtentsChanged (OdTrVisViewportId viewportId, OdTrVisOverlayId overlayId, const OdTrVisExtentsDef &pDef)
 
virtual void onOverlayViewParamsOverride (OdTrVisViewportId viewportId, OdTrVisOverlayId overlayId, bool bOverride, const OdTrVisViewParamsDef &pDef=OdTrVisViewParamsDef())
 
virtual OdTrVisDisplayId onMetafileAdded (OdTrVisMetafileId metafileId, const OdTrVisMetafileDef &pDef)
 
virtual void onMetafileDeleted (OdTrVisMetafileId metafileId)
 
virtual void onMetafileVisibilityChanged (OdTrVisMetafileId metafileId, bool bVisibility)
 
virtual void onMetafileHighlightingChanged (OdTrVisMetafileId metafileId, bool bHighlight)
 
virtual void onMetafileFadingChanged (OdTrVisMetafileId metafileId, bool bFade)
 
virtual void onMetafileHlBranchAttached (OdTrVisMetafileId metafileId, OdTrVisHlBranchId hlBranchId)
 
virtual void onMetafileHlBranchDetached (OdTrVisMetafileId metafileId)
 
virtual void onHlBranchAdded (OdTrVisHlBranchId hlBranchId, const OdTrVisHlBranchDef &pDef)
 
virtual void onHlBranchModified (OdTrVisHlBranchId hlBranchId, const OdTrVisHlBranchDef &pDef, bool bChildsModified, bool bMarkersModified)
 
virtual void onHlBranchDeleted (OdTrVisHlBranchId hlBranchId)
 
virtual void onTextureAdded (OdTrVisTextureId textureId, const OdTrVisTextureDef &pDef)
 
virtual void onTextureDeleted (OdTrVisTextureId textureId)
 
virtual void onMaterialAdded (OdTrVisMaterialId materialId, const OdTrVisMaterialDef &pDef)
 
virtual void onMaterialDeleted (OdTrVisMaterialId materialId)
 
virtual void onVisualStyleAdded (OdTrVisVisualStyleId visualStyleId, const OdTrVisVisualStyle &pDef)
 
virtual void onVisualStyleModified (OdTrVisVisualStyleId visualStyleId, const OdTrVisVisualStyle &pDef)
 
virtual void onVisualStyleDeleted (OdTrVisVisualStyleId visualStyleId)
 
virtual void onLayerAdded (OdTrVisLayerId layerId, const OdTrVisLayerDef &pDef)
 
virtual void onLayerModified (OdTrVisLayerId layerId, const OdTrVisLayerDef &pDef)
 
virtual void onLayerDeleted (OdTrVisLayerId layerId)
 
virtual void onLayerViewportPropsOverride (OdTrVisViewportId viewportId, OdTrVisLayerId layerId, bool bOverride, const OdTrVisLayerProps &pProps=OdTrVisLayerProps())
 
- Public Member Functions inherited from OdTrVisRenditionRedir
 OdTrVisRenditionRedir ()
 
void setRedirection (OdTrVisRendition *pRedir)
 
OdTrVisRenditiongetRedirection ()
 
const OdTrVisRenditiongetRedirection () const
 
bool hasRedirection () const
 
void setInformationalRedirection (OdTrVisRendition *pRedir)
 
OdTrVisRenditiongetInformationalRedirection ()
 
const OdTrVisRenditiongetInformationalRedirection () const
 
bool hasInformationalRedirection () const
 
void setRedirections (OdTrVisRendition *pRedir)
 
bool hasRedirections () const
 
virtual OdUInt32 queryRenditionCaps (OdUInt32 requestFor=0xFFFFFFFF) const
 
virtual void onPartialUpdateInvalidRects (OdTrVisOverlayId overlayId, const OdGsDCRectArray &invalidRects, bool bOverlayInvalid=false)
 
virtual void onPartialUpdateList (OdTrVisViewportId viewportId, OdTrVisOverlayId overlayId, const OdTrVisDisplayId *pList, OdUInt32 nEntries)
 
virtual void querySnapshot (OdUInt8 *pScanlines, long minX, long minY, long nWidth, long nHeight)
 
virtual OdTrVisSharingProviderClientPtr createSharingProvider ()
 
virtual MtHandlerType mtDataTypeProcessing (DataType &type) const
 
virtual bool saveRenditionState (OdGsFiler *pFiler) const
 
virtual bool loadRenditionState (OdGsFiler *pFiler, OdTrVisIdMap *pIdMap)
 
- Public Member Functions inherited from OdTrVisRendition
 ODRX_USING_HEAP_OPERATORS (OdRxObject)
 
 OdTrVisRendition ()
 
 ~OdTrVisRendition ()
 
bool isSupportPartialUpdate () const
 
bool isSupportSnapshotQueries () const
 
bool isSupportCompositeMetafiles () const
 
bool isSupportVisualStyles () const
 
bool isSupportGsStateSaving () const
 
bool isSupportOverlayBuffers () const
 
bool updateClientDependentSectionOnly () const
 
bool updateShareableSectionOnly () const
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Protected Attributes

struct OdTrVisRenditionMt::DataTypeEntry m_dataTypes [kNDataTypes]
 
OdMutexPtr m_pGlobalMutex
 
OdMutexPtr m_pRecordMutex
 
OdStaticRxObject< OdTrVisRenditionDefm_skipRenditionHandler
 
OdStaticRxObject< OdTrVisRenditionRecorderm_recordRenditionHandler
 
ClientSettings m_cliSets
 
OdTrVisRenditionMt::IdRegistratorMt m_mtRegistrator
 
- Protected Attributes inherited from OdTrVisRenditionRedir
OdTrVisRenditionm_pRedir
 
OdTrVisRenditionm_pInformationalRedir
 

Additional Inherited Members

- Public Types inherited from OdTrVisRendition
enum  KindOfViewportModification {
  kViewportModVisibility = OdTrVisViewportDef::kViewportModVisibility , kViewportModOrientation = OdTrVisViewportDef::kViewportModOrientation , kViewportModPersistent = OdTrVisViewportDef::kViewportModPersistent , kViewportModContextual = OdTrVisViewportDef::kViewportModContextual ,
  kViewportModRect = OdTrVisViewportDef::kViewportModRect , kViewportModNrcClip = OdTrVisViewportDef::kViewportModNrcClip , kViewportModLineweights = OdTrVisViewportDef::kViewportModLineweights , kViewportModShader = OdTrVisViewportDef::kViewportModShader ,
  kViewportModBorder = OdTrVisViewportDef::kViewportModBorder , kViewportModAll = OdTrVisViewportDef::kViewportModAll
}
 
enum  DataType {
  kSurfaceData = 0 , kViewportData , kViewportPropsData , kOrderData ,
  kLightsData , kBackgroundData , kExtentsData , kMetafileData ,
  kMetafilePropsData , kHlBranchData , kTextureData , kMaterialData ,
  kProgramData , kVisualStyleData , kLayerData , kOverlayData ,
  kOverlayPropsData , kNDataTypes
}
 
enum  MtHandlerType {
  kMtSkip = 0 , kMtRedirect , kMtGlobal , kMtCompete ,
  kMtRecord
}
 
enum  DisplayIdCodes {
  kDisplayCodeZero = 0 , kDisplayCodeHighlight = 1 , kDisplayCodeUnhighlight = 2 , kDisplayCodePushMatrix = 3 ,
  kDisplayCodePopMatrix = 4 , kDisplayCodeSelMarkers = 5 , kDisplayCodeRange = 0x10
}
 
enum  RenditionFlags {
  kSupportPartialUpdate = (1 << 0) , kSupportSnapshotQueries = (1 << 1) , kSupportCompositeMetafiles = (1 << 2) , kSupportVisualStyles = (1 << 3) ,
  kSupportGsStateSaving = (1 << 4) , kSupportOverlayBuffers = (1 << 5) , kUpdateClientSectionOnly = (1 << 6) , kUpdateShareableSectionOnly = (1 << 7)
}
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

<group ExRender_Windows_Classes>

Definition at line 1241 of file TrVisRendition.h.

Constructor & Destructor Documentation

◆ OdTrVisRenditionMt()

OdTrVisRenditionMt::OdTrVisRenditionMt ( )

◆ ~OdTrVisRenditionMt()

OdTrVisRenditionMt::~OdTrVisRenditionMt ( )

Member Function Documentation

◆ idRegistrator()

virtual IdRegistrator* OdTrVisRenditionMt::idRegistrator ( ) const
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ init()

void OdTrVisRenditionMt::init ( OdTrVisRendition pRendition)

◆ isMt()

bool OdTrVisRenditionMt::isMt ( ) const

◆ obtainClientSettings()

virtual void OdTrVisRenditionMt::obtainClientSettings ( ClientSettings clientSets)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onBackgroundChanged()

virtual void OdTrVisRenditionMt::onBackgroundChanged ( OdTrVisViewportId  viewportId,
OdTrVisFlatMetafileContainerPtr  pStream,
OdTrVisProgramId  baseProgramId = kTrVisNegativeId 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onDeviceUpdateBegin()

virtual void OdTrVisRenditionMt::onDeviceUpdateBegin ( OdTrVisRenderClient pDevice)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onDeviceUpdateEnd()

virtual void OdTrVisRenditionMt::onDeviceUpdateEnd ( OdTrVisRenderClient pDevice)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onExtentsChanged()

virtual void OdTrVisRenditionMt::onExtentsChanged ( OdTrVisViewportId  viewportId,
OdTrVisOverlayId  overlayId,
const OdTrVisExtentsDef pDef 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onHlBranchAdded()

virtual void OdTrVisRenditionMt::onHlBranchAdded ( OdTrVisHlBranchId  hlBranchId,
const OdTrVisHlBranchDef pDef 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onHlBranchDeleted()

virtual void OdTrVisRenditionMt::onHlBranchDeleted ( OdTrVisHlBranchId  hlBranchId)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onHlBranchModified()

virtual void OdTrVisRenditionMt::onHlBranchModified ( OdTrVisHlBranchId  hlBranchId,
const OdTrVisHlBranchDef pDef,
bool  bChildsModified,
bool  bMarkersModified 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onLayerAdded()

virtual void OdTrVisRenditionMt::onLayerAdded ( OdTrVisLayerId  layerId,
const OdTrVisLayerDef pDef 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onLayerDeleted()

virtual void OdTrVisRenditionMt::onLayerDeleted ( OdTrVisLayerId  layerId)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onLayerModified()

virtual void OdTrVisRenditionMt::onLayerModified ( OdTrVisLayerId  layerId,
const OdTrVisLayerDef pDef 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onLayerViewportPropsOverride()

virtual void OdTrVisRenditionMt::onLayerViewportPropsOverride ( OdTrVisViewportId  viewportId,
OdTrVisLayerId  layerId,
bool  bOverride,
const OdTrVisLayerProps pProps = OdTrVisLayerProps() 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onLightsListChanged()

virtual void OdTrVisRenditionMt::onLightsListChanged ( OdTrVisViewportId  viewportId,
float  ambientLight[4],
bool  bDefaultLightsOn,
const OdTrVisLightDef pList,
OdUInt32  nEntries 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onMaterialAdded()

virtual void OdTrVisRenditionMt::onMaterialAdded ( OdTrVisMaterialId  materialId,
const OdTrVisMaterialDef pDef 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onMaterialDeleted()

virtual void OdTrVisRenditionMt::onMaterialDeleted ( OdTrVisMaterialId  materialId)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onMetafileAdded()

virtual OdTrVisDisplayId OdTrVisRenditionMt::onMetafileAdded ( OdTrVisMetafileId  metafileId,
const OdTrVisMetafileDef pDef 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onMetafileDeleted()

virtual void OdTrVisRenditionMt::onMetafileDeleted ( OdTrVisMetafileId  metafileId)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onMetafileFadingChanged()

virtual void OdTrVisRenditionMt::onMetafileFadingChanged ( OdTrVisMetafileId  metafileId,
bool  bFade 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onMetafileHighlightingChanged()

virtual void OdTrVisRenditionMt::onMetafileHighlightingChanged ( OdTrVisMetafileId  metafileId,
bool  bHighlight 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onMetafileHlBranchAttached()

virtual void OdTrVisRenditionMt::onMetafileHlBranchAttached ( OdTrVisMetafileId  metafileId,
OdTrVisHlBranchId  hlBranchId 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onMetafileHlBranchDetached()

virtual void OdTrVisRenditionMt::onMetafileHlBranchDetached ( OdTrVisMetafileId  metafileId)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onMetafileOrderChanged() [1/2]

virtual void OdTrVisRenditionMt::onMetafileOrderChanged ( OdTrVisViewportId  viewportId,
OdTrVisOverlayId  overlayId,
const OdTrVisDisplayId pList,
OdUInt32  nEntries 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onMetafileOrderChanged() [2/2]

virtual void OdTrVisRenditionMt::onMetafileOrderChanged ( OdTrVisViewportId  viewportId,
OdTrVisOverlayId  overlayId,
OdUInt32  nInvalidFrom,
OdUInt32  nInvalidLen,
const OdTrVisDisplayId pValidFrom,
OdUInt32  nValidLen 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onMetafileVisibilityChanged()

virtual void OdTrVisRenditionMt::onMetafileVisibilityChanged ( OdTrVisMetafileId  metafileId,
bool  bVisibility 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onOverlayAdded()

virtual void OdTrVisRenditionMt::onOverlayAdded ( OdTrVisOverlayId  overlayId,
const OdTrVisOverlayDef pDef 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onOverlayDeleted()

virtual void OdTrVisRenditionMt::onOverlayDeleted ( OdTrVisOverlayId  overlayId)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onOverlayRenderOrderChanged()

virtual void OdTrVisRenditionMt::onOverlayRenderOrderChanged ( OdTrVisOverlayId  overlayId,
OdInt16  nRenderOrder 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onOverlayViewParamsOverride()

virtual void OdTrVisRenditionMt::onOverlayViewParamsOverride ( OdTrVisViewportId  viewportId,
OdTrVisOverlayId  overlayId,
bool  bOverride,
const OdTrVisViewParamsDef pDef = OdTrVisViewParamsDef() 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onOverlayVisibilityChanged()

virtual void OdTrVisRenditionMt::onOverlayVisibilityChanged ( OdTrVisOverlayId  overlayId,
bool  bVisibility 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onSurfaceChanged()

virtual void OdTrVisRenditionMt::onSurfaceChanged ( const OdTrVisSurfaceDef pDef)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onTextureAdded()

virtual void OdTrVisRenditionMt::onTextureAdded ( OdTrVisTextureId  textureId,
const OdTrVisTextureDef pDef 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onTextureDeleted()

virtual void OdTrVisRenditionMt::onTextureDeleted ( OdTrVisTextureId  textureId)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onViewportAdded()

virtual void OdTrVisRenditionMt::onViewportAdded ( OdTrVisViewportId  viewportId)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onViewportDeleted()

virtual void OdTrVisRenditionMt::onViewportDeleted ( OdTrVisViewportId  viewportId)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onViewportInserted()

virtual void OdTrVisRenditionMt::onViewportInserted ( OdTrVisViewportId  viewportId,
int  nIndex 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onViewportModified()

virtual void OdTrVisRenditionMt::onViewportModified ( OdTrVisViewportId  viewportId,
const OdTrVisViewportDef pDef,
OdUInt32  kindOfMod = kViewportModAll 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onVisualStyleAdded()

virtual void OdTrVisRenditionMt::onVisualStyleAdded ( OdTrVisVisualStyleId  visualStyleId,
const OdTrVisVisualStyle pDef 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onVisualStyleDeleted()

virtual void OdTrVisRenditionMt::onVisualStyleDeleted ( OdTrVisVisualStyleId  visualStyleId)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ onVisualStyleModified()

virtual void OdTrVisRenditionMt::onVisualStyleModified ( OdTrVisVisualStyleId  visualStyleId,
const OdTrVisVisualStyle pDef 
)
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ queryMetafileStream()

virtual bool OdTrVisRenditionMt::queryMetafileStream ( OdTrVisDisplayId  displayId,
const OdTrVisFlatMetafileContainer **  pStream 
) const
virtual

Reimplemented from OdTrVisRenditionRedir.

◆ queryProgramId()

virtual OdTrVisProgramId OdTrVisRenditionMt::queryProgramId ( OdGsView::RenderMode  mode,
OdTrVisVisualStyleId  vsId = kTrVisNegativeId,
OdTrVisGeomType  geomType = OdTrVisGeomType_Default,
OdUInt32  shadingFlags = 0 
) const
virtual

Reimplemented from OdTrVisRenditionRedir.

Member Data Documentation

◆ m_cliSets

ClientSettings OdTrVisRenditionMt::m_cliSets
protected

Definition at line 1256 of file TrVisRendition.h.

◆ m_dataTypes

struct OdTrVisRenditionMt::DataTypeEntry OdTrVisRenditionMt::m_dataTypes[kNDataTypes]
protected

◆ m_mtRegistrator

OdTrVisRenditionMt::IdRegistratorMt OdTrVisRenditionMt::m_mtRegistrator
protected

◆ m_pGlobalMutex

OdMutexPtr OdTrVisRenditionMt::m_pGlobalMutex
protected

Definition at line 1252 of file TrVisRendition.h.

◆ m_pRecordMutex

OdMutexPtr OdTrVisRenditionMt::m_pRecordMutex
protected

Definition at line 1253 of file TrVisRendition.h.

◆ m_recordRenditionHandler

OdStaticRxObject<OdTrVisRenditionRecorder> OdTrVisRenditionMt::m_recordRenditionHandler
protected

Definition at line 1255 of file TrVisRendition.h.

◆ m_skipRenditionHandler

OdStaticRxObject<OdTrVisRenditionDef> OdTrVisRenditionMt::m_skipRenditionHandler
protected

Definition at line 1254 of file TrVisRendition.h.


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