CFx SDK Documentation  2020SP3
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 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)
 
OdTrVecDevice * findUsage (const OdDrawOrderMetafileBase &bitSet, OdTrVecDevice *pStartFrom=NULL) const
 
virtual bool shareMetafile (OdTrVecDevice *pRequestedFor, OdDrawOrderMetafileBase &bitSet, OdTrVisMetafileId metafileId, 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 ()
 
- 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 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
 
OdTrVecTtfFontsCachem_pTtfCache
 
OdTrVecVisualStyleContainer * m_pVSCache
 
OdTrVecLayerContainer * m_pLayerCache
 

Detailed Description

<group ExRender_Windows_Classes>

Definition at line 44 of file TrVecResourceSharingProvider.h.

Member Typedef Documentation

◆ broadcastProc

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

Definition at line 67 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)
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 104 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

◆ 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

◆ 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_nSharedDevices

OdUInt32 OdTrVecResourceSharingProvider::m_nSharedDevices
protected

Definition at line 84 of file TrVecResourceSharingProvider.h.

◆ m_pLayerCache

OdTrVecLayerContainer* OdTrVecResourceSharingProvider::m_pLayerCache
protected

Definition at line 87 of file TrVecResourceSharingProvider.h.

◆ m_pTtfCache

OdTrVecTtfFontsCache* OdTrVecResourceSharingProvider::m_pTtfCache
protected

Definition at line 85 of file TrVecResourceSharingProvider.h.

◆ m_pVSCache

OdTrVecVisualStyleContainer* OdTrVecResourceSharingProvider::m_pVSCache
protected

Definition at line 86 of file TrVecResourceSharingProvider.h.

◆ m_rmDevices

OdArray<DeviceEntry> OdTrVecResourceSharingProvider::m_rmDevices
protected

Definition at line 83 of file TrVecResourceSharingProvider.h.


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