Detailed Description
- See also:
- Class SpecialFX, Class PBBitmap, Class ISave, Class ILoad, Reference Messages,
Render Elements
- Description:
- This class is available in release 4.0 and later only.
This is the interface that must be supported by all render elements
whether they support the 3ds Max renderer or some other renderer.
The UI in the render dialog uses this interface exclusively to
control the element.
The methods are almost all state-setting methods, with ones that
are settable by the UI provided by both sets and gets. A sample
plugin of a Render Element can be found in the SDK samples;
/MAXSDK/SAMPLES/RENDER/RENDERELEMENTS.
#include <renderelements.h>
List of all
members.
Member Function Documentation
virtual void SetEnabled |
( |
BOOL |
enabled |
) |
[pure virtual] |
- Parameters:
- BOOL enabled
Set to TRUE in order to enable the Render Element. FALSE to disable
it.
virtual BOOL IsEnabled |
( |
|
) |
const [pure virtual] |
virtual void SetFilterEnabled |
( |
BOOL |
filterEnabled |
) |
[pure virtual] |
- Parameters:
- BOOL filterEnabled
Set to TRUE in order to enable. FALSE to disable it.
virtual BOOL IsFilterEnabled |
( |
|
) |
const [pure virtual] |
- Parameters:
- This method returns TRUE if filters for the Render Element are
enabled, otherwise FALSE.
virtual BOOL BlendOnMultipass |
( |
|
) |
const [pure virtual] |
- Returns:
- TRUE if blending during multipass effects, otherwise
FALSE.
virtual BOOL AtmosphereApplied |
( |
|
) |
const [pure virtual] |
virtual BOOL ShadowsApplied |
( |
|
) |
const [pure virtual] |
virtual void SetElementName |
( |
const MCHAR * |
newName |
) |
[pure virtual] |
- Parameters:
- MCHAR* newName;
The name for the Render Element.
virtual void SetElementName |
( |
MCHAR * |
newName |
) |
[inline, virtual] |
virtual const MCHAR* ElementName |
( |
|
) |
const [pure virtual] |
virtual void SetPBBitmap |
( |
PBBitmap *& |
pPBBitmap |
) |
const [pure virtual] |
- Parameters:
- PBBitmap* &pPBBitmap
The pointer to the PBBitmap reference.
virtual void GetPBBitmap |
( |
PBBitmap *& |
pPBBitmap |
) |
const [pure virtual] |
- Parameters:
- PBBitmap* &pPBBitmap
The pointer to the PBBitmap reference which was
retrieved.
- Parameters:
- IRenderElementParamDlg* dlg
The pointer to the parameter dialog.
- Returns:
- TRUE if you process the dialog, otherwise FALSE.
- Default Implementation:
- { return FALSE; };
Reimplemented from SpecialFX.
- Parameters:
- ISave
*iSave
You may use this pointer to call methods of ISave to write data.
- Returns:
- One of the following values: IO_OK,
IO_ERROR.
- Default Implementation:
- {
name = ElementName();
return SpecialFX::Save(iSave);
}
Reimplemented from SpecialFX.
- Parameters:
- ILoad
*iLoad
You may use this pointer to call methods of ILoad to read data.
- Returns:
- One of the following values: IO_OK,
IO_ERROR.
- Default Implementation:
- { return SpecialFX::Load(iLoad); }
Reimplemented from SpecialFX.
- Parameters:
- Interval
changeInt
This is the interval of time over which the message is active.
Currently, all plug-ins will receive FOREVER for this
interval.
RefTargetHandle hTarget
This is the handle of the reference target the message was sent by.
The reference maker uses this handle to know specifically which
reference target sent the message.
PartID& partID
This contains information specific to the message passed in. Some
messages don't use the partID at all. See Reference Messages and
PartID for more
information about the meaning of the partID for some common
messages.
RefMessage message
The message parameters passed into this method is the specific
message which needs to be handled. See Reference Messages.
- Returns:
- The return value from this method is of type RefResult.
This is usually REF_SUCCEED indicating the message was
processed. Sometimes, the return value may be REF_STOP. This
return value is used to stop the message from being propagated to
the dependents of the item.
- Default Implementation:
- { return REF_SUCCEED; }
Implements ReferenceMaker.
SClass_ID SuperClassID |
( |
|
) |
[inline, virtual] |
virtual void* GetInterface |
( |
ULONG |
id |
) |
[pure virtual] |
virtual void ReleaseInterface |
( |
ULONG |
id, |
|
|
void * |
i |
|
) |
|
[pure virtual] |
IRenderElement IRenderElement
IRenderElement IRenderElement IRenderElement IRenderElement
IRenderElement IRenderElement IRenderElement IRenderElement
IRenderElement IRenderElement
IRenderElement IRenderElement IRenderElement IRenderElement
IRenderElement IRenderElement IRenderElement IRenderElement