Public Member Functions

IDaylightSystemFactory2 Class Reference

Search for all occurrences

Detailed Description

Factory for daylight system objects.

Allows for specifying the type of Sun and Sky components. Use this interface to create instances of the daylight system. Client code can get to this interface as follows:

 IDaylightSystemFactory2* factory = dynamic_cast<IDaylightSystemFactory2*>(GetCOREInterface(IID_DAYLIGHT_SYSTEM_FACTORY2));

This interface is implemented by 3ds Max.

#include <IDaylightSystem.h>

Inheritance diagram for IDaylightSystemFactory2:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual INode Create (IDaylightSystem2 *&pDaylight, const Class_ID *sunClassID=NULL, const Class_ID *skyClassID=NULL)=0
  Creates a daylight system with sun and sky components of specified type and adds it to the scene at a default position of (0,0,0)

Member Function Documentation

virtual INode* Create ( IDaylightSystem2 *&  pDaylight,
const Class_ID sunClassID = NULL,
const Class_ID skyClassID = NULL 
) [pure virtual]

Creates a daylight system with sun and sky components of specified type 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.
[in] sunClassID Class ID of Sun plugin component to be used when creating the daylight system. The supper class id of the Sun is assumed to be LIGHT_CLASS_ID. If left NULL, the Sun type specified by the Market Defaults will be used.
[in] skyClassID Class ID of Sky plugin component to be used when creating the daylight system. The supper class id of the Sky is assumed to be LIGHT_CLASS_ID. If left NULL, the Sun type specified by the Market Defaults will be used.
Returns:
A pointer to the Daylight assembly node of the daylight system. NULL if the daylight system could not be created, for example because either the Sun or the Sky type specified was invalid.
See also:
IMRPhysicalSkyInterface, IMRPhysicalSunLight

IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2
IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2 IDaylightSystemFactory2