Class StdCubic

3DS Max Plug-In SDK

Class StdCubic

See Also: Class Texmap.

class StdCubic : public Texmap

Description:

This class provides access to the parameters of the standard 3ds max Reflect/Refract texture. All methods of this class are implemented by the system.

Methods:

Prototype:

virtual void SetSize(int n, TimeValue t)=0;

Remarks:

Sets the map size parameter.

Parameters:

int n

The size in pixels.

TimeValue t

The time to set the value.

Prototype:

virtual void SetDoNth(BOOL onoff)=0;

Remarks:

Sets the 'Every Nth Frame' or 'First Frame Only' toggle.

Parameters:

BOOL onoff

TRUE for 'Every Nth Frame'; FALSE for 'First Frame Only'.

Prototype:

virtual void SetNth(int n)=0;

Remarks:

Sets the 'Nth Frame' parameter to the specified value.

Parameters:

int n

The Nth Frame setting.

Prototype:

virtual void SetApplyBlur(BOOL onoff)=0;

Remarks:

Sets or clears the 'Apply blur' checkbox.

Parameters:

BOOL onoff

TRUE for on; FALSE for off.

Prototype:

virtual void SetBlur(float b, TimeValue t)=0;

Remarks:

Sets the blur setting to the specified value at the specified time.

Parameters:

float b

The value to set.

TimeValue t

The time to set the value.

Prototype:

virtual void SetBlurOffset(float b, TimeValue t)=0;

Remarks:

Sets the blur offset setting to the specified value at the specified time.

Parameters:

float b

The value to set.

TimeValue t

The time to set the value.

Prototype:

virtual void UseHighDynamicRange(BOOL onoff)=0;

Remarks:

This method is available in release 4.0 and later only.

Sets if the reflect / refract texture uses high dynamic range bitmaps or not. See Working With Bitmaps for details on high dynamic range bitmaps.

Parameters:

BOOL onoff

Pass TRUE for on; FALSE for off.

Prototype:

virtual int GetSize(TimeValue t)=0;

Remarks:

Returns the size setting at the specified time.

Parameters:

TimeValue t

The time to retrieve the value.

Prototype:

virtual BOOL GetDoNth()=0;

Remarks:

Returns the state of the 'Every Nth Frame' or 'First Frame Only' toggle.

Return Value:

BOOL onoff

TRUE is 'Every Nth Frame'; FALSE is 'First Frame Only'.

Prototype:

virtual int GetNth()=0;

Remarks:

Returns the Nth Frame setting.

Prototype:

virtual BOOL GetApplyBlur()=0;

Remarks:

Returns the state of the 'Apply blur' checkbox.

Return Value:

TRUE is on; FALSE is off.

Prototype:

virtual float GetBlur(TimeValue t)=0;

Remarks:

Returns the blur setting at the specified time.

Parameters:

TimeValue t

The time to retrieve the value.

Prototype:

virtual float GetBlurOffset(TimeValue t)=0;

Remarks:

Returns the blur offset setting at the specified time.

Parameters:

TimeValue t

The time to retrieve the value.