Public Member Functions | Static Public Member Functions

IDaylightSystemFactory Class Reference

Search for all occurrences

Detailed Description

Factory for daylight system objects.

The type of Sun and Sky components are specified by the current Market Default. Use this interface to create instances of the daylight system. Client code can get to this interface as follows:

IDaylightSystemFactory* factory = static_cast<IDaylightSystemFactory*>(GetCOREInterface(DAYLIGHTSYSTEM_FACTORY_INTERFACE));

This interface is implemented by 3ds Max.

#include <IDaylightSystem.h>

Inheritance diagram for IDaylightSystemFactory:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual INode Create (IDaylightSystem *&pDaylight)=0
  Creates a daylight system and adds it to the scene, at a default position of (0,0,0)

Static Public Member Functions

static IDaylightSystemFactory GetInstance ()
  Retrieves the single instance of the Daylight system factory.

Member Function Documentation

virtual INode* Create ( IDaylightSystem *&  pDaylight ) [pure virtual]

Creates a daylight system and adds it to the scene, at a default position of (0,0,0)

Parameters:
[in,out] pDaylight returns the component of the daylight system which can be used to access the sun and sky. See IDaylightSystem.
Note:
The type of the sun and the sky components that are created depends on the current Market Defaults settings. See the 3ds Max User Guide for more details.
Returns:
A pointer to the Daylight assembly node of the daylight system.
static IDaylightSystemFactory* GetInstance ( ) [inline, static]

Retrieves the single instance of the Daylight system factory.

                                                    {
        return static_cast<IDaylightSystemFactory*>(GetCOREInterface(DAYLIGHTSYSTEM_FACTORY_INTERFACE));
    }

IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory
IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory IDaylightSystemFactory