Cortex  10.0.0-a4
Public Member Functions | List of all members
IECore::LensModel::LensModelRegistration< T > Struct Template Reference

#include <LensModel.h>

Public Member Functions

 LensModelRegistration ()
 Registers the lens model.
 

Detailed Description

template<class T>
struct IECore::LensModel::LensModelRegistration< T >

Instantiating an instance of LensModelRegistration<YourLensModelClass> registers your model to a mapping of LensModel names to their creator functions. This allows the LensModel::create() methods to return instantiations of the LensModel. The best way to ensure that your lens model is registered is to create a static instantiation of LensModelRegistration within YourLensModelClass.


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