neuray Services API Programmer's Manual

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"

mi::nservices::IUser_type_definition

User type definition.

None

Type Dependent

mi::nservices::IUser_type

User type structure. Type name is the name specified in mi::nservices::IUser_type_definition

None

"Binary"

mi::nservices::IBinary

Raw byte array

None

"Canvas"

mi::nservices::ICanvas

Canvas

None

"Command_request"

mi::nservices::ICommand_request

Request to execute a command

None

"Event"

mi::nservices::IEvent

An event

mi::IUuid

"Array"

mi::IDynamic_array

An array of interfaces, equivalent to Interface[]

None

"Map"

mi::IMap

A map of interfaces, equivalent to Map<Interface>

None

"Canvas_T<W,H>"

mi::neuraylib::ICanvas

A canvas of resolution WxH, pixel type T

None

Classes

class 
Factory class for managing neuray services objects. More...