Factory
[neuray Services API]
Description
The neuray Services API provides a factory class which can be used to create instances of any Neuray Services class. For convenience this factory wraps the functionality of the neuray library mi::neuraylib::IFactory and so can also be used to create any types supported by it as well.
The factory can also be used to create canvases of a given pixel type and resolution. Canvases are created by providing a class name of the form "Canvas_pixeltype<width,height>". For example: "Canvas_Color<640,480>". Any neuray library supported pixel type can be provided.
The following table lists the neuray services classes that the factory can create. In addition to these any Neuray Library type can be created.
Type name |
Interface |
Description |
Arguments |
---|---|---|---|
"User_type_definition" |
User type definition. |
None |
|
Type Dependent |
User type structure. Type name is the name specified in mi::nservices::IUser_type_definition |
None |
|
"Binary" |
Raw byte array |
None |
|
"Canvas" |
Canvas |
None |
|
"Command_request" |
Request to execute a command |
None |
|
"Event" |
An event |
||
"Array" |
An array of interfaces, equivalent to Interface[] |
None |
|
"Map" |
A map of interfaces, equivalent to Map<Interface> |
None |
|
"Canvas_T<W,H>" |
A canvas of resolution WxH, pixel type T |
None |
Classes
- class
- Factory class for managing neuray services objects. More...