Rhino C++ API  8.9
Classes | Public Member Functions | List of all members
RhRdk::CustomRenderMeshes::IRenderMeshes::ProviderTracking Class Referencefinal

A handy helper class for implementing caching in MeshProviders. The ProviderTracking class is a collection of per-document ITracker objects. Embed a ProviderTracking object in your MeshProvider to implement a simple cache. More...

#include <IRhRdkCustomRenderMeshes.h>

Classes

class  ITracker
 The per-document primitive cache for MeshProviders. ITracker is basically a hash map of shared_ptr<const IRenderMeshes> with the key being the ObjectId. More...
 

Public Member Functions

 ProviderTracking ()
 
 ~ProviderTracking ()
 
ITrackerTracker (const CRhinoDoc &doc)
 Returns the document specific tracker for this cache object. More...
 

Detailed Description

A handy helper class for implementing caching in MeshProviders. The ProviderTracking class is a collection of per-document ITracker objects. Embed a ProviderTracking object in your MeshProvider to implement a simple cache.

Constructor & Destructor Documentation

◆ ProviderTracking()

RhRdk::CustomRenderMeshes::IRenderMeshes::ProviderTracking::ProviderTracking ( )

◆ ~ProviderTracking()

RhRdk::CustomRenderMeshes::IRenderMeshes::ProviderTracking::~ProviderTracking ( )

Member Function Documentation

◆ Tracker()

ITracker& RhRdk::CustomRenderMeshes::IRenderMeshes::ProviderTracking::Tracker ( const CRhinoDoc doc)

Returns the document specific tracker for this cache object.

Parameters
doc
Returns