qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
|
#include <ccExternalFactory.h>
Classes | |
class | Container |
A convenience holder for all factories. More... | |
Public Member Functions | |
ccExternalFactory (QString factoryName) | |
Default constructor. More... | |
QString | getFactoryName () const |
Returns the (unique) name of the factory. | |
virtual ccHObject * | buildObject (const QString &metaName)=0 |
Custom object building method. More... | |
Protected Attributes | |
QString | m_factoryName |
Name. | |
Provides new objects with an external factory This is intended to be used into plugins. Each plugin may define a new factory by subclassing this class. Factories are then stored in a unique container and used to load custom types.
ccExternalFactory::ccExternalFactory | ( | QString | factoryName | ) |
Default constructor.
factoryName | unique name |
|
pure virtual |
Custom object building method.
Similar to ccHObject::New but virtual so as to be reimplemented by the plugin.
metaName | custom object name |