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

#include <TrVecResourceSharingProvider.h>

Inheritance diagram for OdTrVecResourceSharingProvider:
OdTrVisSharingProviderClient OdRxObject

Classes

struct  DeviceBitSet
 
struct  DeviceEntry
 
class  ResourceDependency
 

Public Types

typedef void(* broadcastProc) (OdDrawOrderBaseDevice *pDevice, void *pData)
 

Public Member Functions

 ODRX_USING_HEAP_OPERATORS (OdTrVisSharingProviderClient)
 
 OdTrVecResourceSharingProvider ()
 
 ~OdTrVecResourceSharingProvider ()
 
virtual void openResourceSharing (OdTrVecDevice *pDevice)
 
virtual void closeResourceSharing (OdTrVecDevice *pDevice, bool bTemporaryDisconnect=false)
 
bool isResourceSharingOpened (OdTrVecDevice *pDevice) const
 
bool hasSharedResources () const
 
virtual void onDeleteRequest (onDeleteRequestProc pReqProc, void *pData)
 
void broadcastFunction (const OdDrawOrderMetafileBase &bitSet, broadcastProc pProc, void *pArg) const
 
void broadcastFunctionForAll (broadcastProc pProc, void *pArg, const OdTrVecDevice *pExclusion=NULL) const
 
OdTrVecTtfFontsCachettfFontsCache (OdTrVecDevice *pDevice)
 
OdTrVecVisualStyleContainer * visualStylesCache (OdTrVecDevice *pDevice)
 
OdTrVecLayerContainer * layersCache (OdTrVecDevice *pDevice)
 
OdTrVisMetafilesPool * metafilesPool (OdTrVecDevice *pDevice)
 
void mtLockMetafilesPool (OdTrVecDevice *pDevice)
 
void mtUnlockMetafilesPool (OdTrVecDevice *pDevice)
 
OdRxObjectserverMetafilesPool (OdTrVecDevice *pDevice)
 
void setServerMetafilesPool (OdTrVecDevice *pDevice, OdRxObject *pMfPool)
 
OdTrVecDevice * findUsage (const OdDrawOrderMetafileBase &bitSet, OdTrVecDevice *pStartFrom=NULL) const
 
virtual bool shareMetafile (OdTrVecDevice *pRequestedFor, OdDrawOrderMetafileBase &bitSet, OdTrVisMetafileId metafileId, void *pInternalDataPtr, void *pOriginatorPtr)
 
virtual bool shareGroup (OdTrVecDevice *pRequestedFor, OdDrawOrderMetafileBase &bitSet, OdTrVisGroupId groupId, void *pInternalDataPtr, void *pOriginatorPtr)
 
virtual bool shareTexture (OdTrVecDevice *pRequestedFor, OdDrawOrderMetafileBase &bitSet, OdTrVisTextureId textureId, void *pInternalDataPtr, void *pOriginatorPtr)
 
virtual bool shareMaterial (OdTrVecDevice *pRequestedFor, OdDrawOrderMetafileBase &bitSet, OdTrVisMaterialId materialId, void *pInternalDataPtr, void *pOriginatorPtr)
 
- Public Member Functions inherited from OdTrVisSharingProviderClient
 OdTrVisSharingProviderClient ()
 
 ~OdTrVisSharingProviderClient ()
 
virtual bool hasSharedResources () const =0
 
- 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
 

Static Public Member Functions

static OdSmartPtr< OdTrVecResourceSharingProvidercreateObject ()
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Protected Member Functions

virtual bool shareMetafile (OdTrVecDevice *pRequestedFor, OdTrVecDevice *pRequestedFrom, OdTrVisMetafileId metafileId, void *pInternalDataPtr, void *pOriginatorPtr)
 
virtual bool shareGroup (OdTrVecDevice *pRequestedFor, OdTrVecDevice *pRequestedFrom, OdTrVisGroupId groupId, void *pInternalDataPtr, void *pOriginatorPtr)
 
virtual bool shareTexture (OdTrVecDevice *pRequestedFor, OdTrVecDevice *pRequestedFrom, OdTrVisTextureId textureId, void *pInternalDataPtr, void *pOriginatorPtr)
 
virtual bool shareMaterial (OdTrVecDevice *pRequestedFor, OdTrVecDevice *pRequestedFrom, OdTrVisMaterialId materialId, void *pInternalDataPtr, void *pOriginatorPtr)
 
bool internalTextureProc (OdTrVecDevice *pRequestedFor, OdTrVecDevice *pRequestedFrom, OdTrVisTextureId textureId, void *pInternalDataPtr, void *pOriginatorPtr, OdTrVisTextureDef &resTexture, bool &bCreated)
 
bool materialTexturesProc (OdTrVecDevice *pRequestedFor, OdTrVecDevice *pRequestedFrom, OdTrVisMaterialId materialId, void *pInternalDataPtr, void *pOriginatorPtr)
 
void shareIdRegistration (OdTrVecDevice *pRequestedFor, OdTrVecDevice *pRequestedFrom, OdTrVisId id, OdInt32 type)
 
OdTrVisRenditionrendition (OdTrVecDevice *pRequestFor) const
 
const OdTrVisRendition::ClientSettingsclientSettings (const OdTrVecDevice *pRequestFor) const
 
OdTrVisRenderClientrenderClient (OdTrVecDevice *pRequestFor) const
 
OdGsDevicegsDevice (OdTrVecDevice *pRequestFor) const
 

Protected Attributes

OdArray< DeviceEntrym_rmDevices
 
OdUInt32 m_nSharedDevices
 
OdRefCounter m_nMfPoolEntrances
 
OdTrVecTtfFontsCachem_pTtfCache
 
OdTrVecVisualStyleContainer * m_pVSCache
 
OdTrVecLayerContainer * m_pLayerCache
 
OdTrVisMetafilesPool * m_pMetafilesPool
 
OdTrVisMtContext * m_pMfPoolMtCtx
 
OdRxObjectPtr m_pSrvMetafilesPool
 

Detailed Description

<group ExRender_Windows_Classes>

Definition at line 46 of file TrVecResourceSharingProvider.h.

Member Typedef Documentation

◆ broadcastProc

typedef void(* OdTrVecResourceSharingProvider::broadcastProc) (OdDrawOrderBaseDevice *pDevice, void *pData)

Definition at line 69 of file TrVecResourceSharingProvider.h.

Constructor & Destructor Documentation

◆ OdTrVecResourceSharingProvider()

OdTrVecResourceSharingProvider::OdTrVecResourceSharingProvider ( )

◆ ~OdTrVecResourceSharingProvider()

OdTrVecResourceSharingProvider::~OdTrVecResourceSharingProvider ( )

Member Function Documentation

◆ broadcastFunction()

void OdTrVecResourceSharingProvider::broadcastFunction ( const OdDrawOrderMetafileBase &  bitSet,
broadcastProc  pProc,
void pArg 
) const

◆ broadcastFunctionForAll()

void OdTrVecResourceSharingProvider::broadcastFunctionForAll ( broadcastProc  pProc,
void pArg,
const OdTrVecDevice *  pExclusion = NULL 
) const

◆ clientSettings()

const OdTrVisRendition::ClientSettings & OdTrVecResourceSharingProvider::clientSettings ( const OdTrVecDevice *  pRequestFor) const
protected

◆ closeResourceSharing()

virtual void OdTrVecResourceSharingProvider::closeResourceSharing ( OdTrVecDevice *  pDevice,
bool  bTemporaryDisconnect = false 
)
virtual

◆ createObject()

static OdSmartPtr< OdTrVecResourceSharingProvider > OdTrVecResourceSharingProvider::createObject ( )
static

◆ findUsage()

OdTrVecDevice * OdTrVecResourceSharingProvider::findUsage ( const OdDrawOrderMetafileBase &  bitSet,
OdTrVecDevice *  pStartFrom = NULL 
) const

◆ gsDevice()

OdGsDevice * OdTrVecResourceSharingProvider::gsDevice ( OdTrVecDevice *  pRequestFor) const
protected

◆ hasSharedResources()

bool OdTrVecResourceSharingProvider::hasSharedResources ( ) const
inlinevirtual

Implements OdTrVisSharingProviderClient.

Definition at line 111 of file TrVecResourceSharingProvider.h.

◆ internalTextureProc()

bool OdTrVecResourceSharingProvider::internalTextureProc ( OdTrVecDevice *  pRequestedFor,
OdTrVecDevice *  pRequestedFrom,
OdTrVisTextureId  textureId,
void pInternalDataPtr,
void pOriginatorPtr,
OdTrVisTextureDef resTexture,
bool &  bCreated 
)
protected

◆ isResourceSharingOpened()

bool OdTrVecResourceSharingProvider::isResourceSharingOpened ( OdTrVecDevice *  pDevice) const

◆ layersCache()

OdTrVecLayerContainer * OdTrVecResourceSharingProvider::layersCache ( OdTrVecDevice *  pDevice)

◆ materialTexturesProc()

bool OdTrVecResourceSharingProvider::materialTexturesProc ( OdTrVecDevice *  pRequestedFor,
OdTrVecDevice *  pRequestedFrom,
OdTrVisMaterialId  materialId,
void pInternalDataPtr,
void pOriginatorPtr 
)
protected

◆ metafilesPool()

OdTrVisMetafilesPool * OdTrVecResourceSharingProvider::metafilesPool ( OdTrVecDevice *  pDevice)

◆ mtLockMetafilesPool()

void OdTrVecResourceSharingProvider::mtLockMetafilesPool ( OdTrVecDevice *  pDevice)

◆ mtUnlockMetafilesPool()

void OdTrVecResourceSharingProvider::mtUnlockMetafilesPool ( OdTrVecDevice *  pDevice)

◆ ODRX_USING_HEAP_OPERATORS()

OdTrVecResourceSharingProvider::ODRX_USING_HEAP_OPERATORS ( OdTrVisSharingProviderClient  )

◆ onDeleteRequest()

virtual void OdTrVecResourceSharingProvider::onDeleteRequest ( onDeleteRequestProc  pReqProc,
void pData 
)
virtual

◆ openResourceSharing()

virtual void OdTrVecResourceSharingProvider::openResourceSharing ( OdTrVecDevice *  pDevice)
virtual

◆ renderClient()

OdTrVisRenderClient * OdTrVecResourceSharingProvider::renderClient ( OdTrVecDevice *  pRequestFor) const
protected

◆ rendition()

OdTrVisRendition * OdTrVecResourceSharingProvider::rendition ( OdTrVecDevice *  pRequestFor) const
protected

◆ serverMetafilesPool()

OdRxObject * OdTrVecResourceSharingProvider::serverMetafilesPool ( OdTrVecDevice *  pDevice)

◆ setServerMetafilesPool()

void OdTrVecResourceSharingProvider::setServerMetafilesPool ( OdTrVecDevice *  pDevice,
OdRxObject pMfPool 
)

◆ shareGroup() [1/2]

virtual bool OdTrVecResourceSharingProvider::shareGroup ( OdTrVecDevice *  pRequestedFor,
OdDrawOrderMetafileBase &  bitSet,
OdTrVisGroupId  groupId,
void pInternalDataPtr,
void pOriginatorPtr 
)
virtual

◆ shareGroup() [2/2]

virtual bool OdTrVecResourceSharingProvider::shareGroup ( OdTrVecDevice *  pRequestedFor,
OdTrVecDevice *  pRequestedFrom,
OdTrVisGroupId  groupId,
void pInternalDataPtr,
void pOriginatorPtr 
)
protectedvirtual

◆ shareIdRegistration()

void OdTrVecResourceSharingProvider::shareIdRegistration ( OdTrVecDevice *  pRequestedFor,
OdTrVecDevice *  pRequestedFrom,
OdTrVisId  id,
OdInt32  type 
)
protected

◆ shareMaterial() [1/2]

virtual bool OdTrVecResourceSharingProvider::shareMaterial ( OdTrVecDevice *  pRequestedFor,
OdDrawOrderMetafileBase &  bitSet,
OdTrVisMaterialId  materialId,
void pInternalDataPtr,
void pOriginatorPtr 
)
virtual

◆ shareMaterial() [2/2]

virtual bool OdTrVecResourceSharingProvider::shareMaterial ( OdTrVecDevice *  pRequestedFor,
OdTrVecDevice *  pRequestedFrom,
OdTrVisMaterialId  materialId,
void pInternalDataPtr,
void pOriginatorPtr 
)
protectedvirtual

◆ shareMetafile() [1/2]

virtual bool OdTrVecResourceSharingProvider::shareMetafile ( OdTrVecDevice *  pRequestedFor,
OdDrawOrderMetafileBase &  bitSet,
OdTrVisMetafileId  metafileId,
void pInternalDataPtr,
void pOriginatorPtr 
)
virtual

◆ shareMetafile() [2/2]

virtual bool OdTrVecResourceSharingProvider::shareMetafile ( OdTrVecDevice *  pRequestedFor,
OdTrVecDevice *  pRequestedFrom,
OdTrVisMetafileId  metafileId,
void pInternalDataPtr,
void pOriginatorPtr 
)
protectedvirtual

◆ shareTexture() [1/2]

virtual bool OdTrVecResourceSharingProvider::shareTexture ( OdTrVecDevice *  pRequestedFor,
OdDrawOrderMetafileBase &  bitSet,
OdTrVisTextureId  textureId,
void pInternalDataPtr,
void pOriginatorPtr 
)
virtual

◆ shareTexture() [2/2]

virtual bool OdTrVecResourceSharingProvider::shareTexture ( OdTrVecDevice *  pRequestedFor,
OdTrVecDevice *  pRequestedFrom,
OdTrVisTextureId  textureId,
void pInternalDataPtr,
void pOriginatorPtr 
)
protectedvirtual

◆ ttfFontsCache()

OdTrVecTtfFontsCache * OdTrVecResourceSharingProvider::ttfFontsCache ( OdTrVecDevice *  pDevice)

◆ visualStylesCache()

OdTrVecVisualStyleContainer * OdTrVecResourceSharingProvider::visualStylesCache ( OdTrVecDevice *  pDevice)

Member Data Documentation

◆ m_nMfPoolEntrances

OdRefCounter OdTrVecResourceSharingProvider::m_nMfPoolEntrances
protected

Definition at line 88 of file TrVecResourceSharingProvider.h.

◆ m_nSharedDevices

OdUInt32 OdTrVecResourceSharingProvider::m_nSharedDevices
protected

Definition at line 87 of file TrVecResourceSharingProvider.h.

◆ m_pLayerCache

OdTrVecLayerContainer* OdTrVecResourceSharingProvider::m_pLayerCache
protected

Definition at line 91 of file TrVecResourceSharingProvider.h.

◆ m_pMetafilesPool

OdTrVisMetafilesPool* OdTrVecResourceSharingProvider::m_pMetafilesPool
protected

Definition at line 92 of file TrVecResourceSharingProvider.h.

◆ m_pMfPoolMtCtx

OdTrVisMtContext* OdTrVecResourceSharingProvider::m_pMfPoolMtCtx
protected

Definition at line 93 of file TrVecResourceSharingProvider.h.

◆ m_pSrvMetafilesPool

OdRxObjectPtr OdTrVecResourceSharingProvider::m_pSrvMetafilesPool
protected

Definition at line 94 of file TrVecResourceSharingProvider.h.

◆ m_pTtfCache

OdTrVecTtfFontsCache* OdTrVecResourceSharingProvider::m_pTtfCache
protected

Definition at line 89 of file TrVecResourceSharingProvider.h.

◆ m_pVSCache

OdTrVecVisualStyleContainer* OdTrVecResourceSharingProvider::m_pVSCache
protected

Definition at line 90 of file TrVecResourceSharingProvider.h.

◆ m_rmDevices

OdArray<DeviceEntry> OdTrVecResourceSharingProvider::m_rmDevices
protected

Definition at line 86 of file TrVecResourceSharingProvider.h.


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