Rhino C++ API
8.14
|
#include <RhRdkContentFactory.h>
Public Member Functions | |
CRhRdkContentFactory () | |
virtual | ~CRhRdkContentFactory () |
virtual ON_wString | ContentInternalName (void) const |
virtual UUID | ContentTypeId (void) const |
virtual IRhRdkContentUIAgent * | ContentUIAgent (void) const |
virtual void * | EVF (const wchar_t *wszFunc, void *pvData) override |
virtual bool | Initialize (void) |
virtual UUID | InterfaceId (void) const final override |
virtual bool | IsBuiltIn (void) const |
virtual bool | IsElevated (void) const |
virtual bool | IsKind (CRhRdkContent::Kinds kind) const |
virtual CRhRdkContent::Kinds | Kind (void) const =0 |
virtual_su CRhRdkContent * | NewContent (bool bAutoGlobalRegister) const |
virtual CRhRdkContent * | NewContent (void) const =0 |
virtual UUID | PlugInId (void) const override |
virtual void | RebuildCache (void) |
virtual UUID | RenderEngineId (void) const |
virtual void | SetContentUIAgent (IRhRdkContentUIAgent *pAgent) |
Public Member Functions inherited from CRhRdkExtension | |
CRhRdkExtension () | |
virtual | ~CRhRdkExtension () |
bool | Unregister (void) |
Public Member Functions inherited from CRhRdkObject | |
CRhRdkObject () | |
virtual | ~CRhRdkObject () |
void | operator delete (void *buf) |
void | operator delete[] (void *buf) |
void * | operator new (size_t size) |
void * | operator new[] (size_t size) |
Additional Inherited Members | |
Static Public Member Functions inherited from CRhRdkObject | |
static void | CheckMemory (void) |
static void | PopulateDebuggingInfo (void) |
This class is a factory for producing a certain type of content. You must create and implement a subclass for each content type that your renderer supports.
Content factories are RDK extensions. You usually add new content factories to the system when you are called on your implementation of CRhRdkPlugIn::RegisterExtensions(). If necessary, you can also add new factories later by calling RhRdkAddExtension(). Factories so added can be found again later by calling RhRdkContentFactories() which returns an IRhRdkContentFactories interface.
When you add a factory to the factory collection, a set of tests are performed on the factory before it is allowed to be added. The factory is only added if the following succeeds:
If these tests succeed, RDK takes ownership of the factory object and sends the OnFactoryAdded event. Otherwise, the factory is considered bad and is deleted.
CRhRdkContentFactory::CRhRdkContentFactory | ( | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
overridevirtual |
Emergency virtual function for future expansion.
Reimplemented from CRhRdkObject.
Reimplemented in CRhRdkTextureFactory.
|
virtual |
Called by RDK to initialize the factory. If you override this method, please be sure to call the base class.
|
finaloverridevirtual |
Returns the unique interface id of this extension.
Implements CRhRdkExtension.
|
inlinevirtual |
|
virtual |
If there are more than 5 types in the drop-down 'Type' list, the types are not listed and can only be accessed from the 'More Types...' option. 'Elevated' types will always appear in the list, even if there are more than 5. You should only elevate a few of your most commonly-used types.
|
virtual |
|
pure virtual |
Implemented in CRhRdkTextureFactory, CRhRdkEnvironmentFactory, and CRhRdkMaterialFactory.
virtual_su CRhRdkContent* CRhRdkContentFactory::NewContent | ( | bool | bAutoGlobalRegister | ) | const |
|
pure virtual |
Create a new content.
Implemented in CRhRdkTextureFactory, CRhRdkEnvironmentFactory, and CRhRdkMaterialFactory.
|
overridevirtual |
Implements CRhRdkExtension.
|
virtual |
Rebuild the factory cache. This forces a refresh of cached data such as the factory name.
|
virtual |
|
virtual |