S3DW3DResultsDialog

This class displays a summary of the contents of the .w3d file that is generated.

When to Use

This class is used by the MAXExporter class.

Interface Methods

Description

S3DW3DResultsDialog

Class constructor

~S3DW3DResultsDialog

Class destructor

Run

Collects statistics from the Shockwave 3D file

DialogProc

Dialog callback procedure

Init

Initializes the dialog

Paint

Draws the pie and bar charts

Destroy

Destroys all window dependent resources

CalcRuntimeTextUsage

Iterates the texture palette and calculates the uncompressed texture sizes


S3DW3DResultsDialog::S3DW3DResultsDialog()

This is the class constructor.

Parameters:

None

Return Values:

None


S3DW3DResultsDialog::~S3DW3DResultsDialog()

This is the class destructor.

Parameters:

None

Return Values:

None


S3DW3DResultsDialog:: Run (HINSTANCE in_hInst, HWND in_Parent, IFXPalette *, const char* in_pFileName)

This class collects statistics from the Shockwave 3D file.

Parameters:

in_hInst

The application instance

in_Parent

The parent window

in_pPalette

A pointer to the current scene's texture palette

in_pFileName

The name of the file to analyze

Return Values:

INT_PTR


S3DW3DResultsDialog::DialogProc (HWND hwnd, UINT in_msg, WPARAM wParam, LPARAM lParam)

This class is the dialog callback procedure.

Parameters:

hwnd

Handle to window receiving messages

in_msg

Message identifier

wParam

See Win32 SDK.

lParam

See Win32 SDK.

Return Values:

BOOL. True if the message that this thread processes is given, false otherwise.


S3DW3DResultsDialog::Init()

This class initializes the dialog.

Parameters:

None

Return Values:

INT_PTR


S3DW3DResultsDialog::Paint()

This class draws the pie chart and the bar chart.

Parameters:

None

Return Values:

INT_PTR


S3DW3DResultsDialog::Destroy()

This class destroys all window dependent resources.

Parameters:

None

Return Values:

INT_PTR


S3DW3DResultsDialog:: CalcRuntimeTextUsage (IFXPalette * in_Data)

This class iterates the texture palette and calculates the uncompressed texture sizes.

Parameters:

in_Data

Palette to be iterated

Return Values:

None

§See asterisked (*) statement at Legal Information © 2001 Intel Corporation.