MAXViewConverter

This class contains methods that are used to convert views (cameras).

When to use

This class is used by the MAXExporter class.

Interface Methods

Description

MAXViewConverter

Class constructor

~MAXViewConverter

Class destructor

Convert

Extracts MAX camera data from a camera node and converts and links this data to Shockwave 3D§ view node

Initialize

Initializes MAXViewConverter

ConvertDefaultView

Exports the defaultview camera as the default view


MAXViewConverter::MAXViewConverter(MAXExporter* pMAXExporter)

This is the class constructor.

Parameters:

pMAXExporter

Reference to the MAXExporter class

Return Values:

None


MAXViewConverter::~MAXViewConverter()

This is the class destructor.

Parameters:

None

Return Values:

None


MAXViewConverter::Convert(MAXNodeList* pInMAXNodeList, IFXView* pIFXView)

This method extracts MAX camera data from a camera node and converts and links this data to a Shockwave view node.

Parameters:

pInMAXNodeList

This is a node list which contains only one MAX node. That node is a MAX camera node which is to be converted to a Shockwave 3D view node.

pIFXView

The Shockwave 3D node to which the camera information is added. NOTE: Shockwave 3D view nodes do not have corresponding resources, thus all pertinent data is stored at the node level.

Return Values


MAXViewConverter::ConvertDefaultView(U16 uInXSize, U16 uInYSize)

If a camera named "defaultview" (case insensitive) is found in the MAX scenegraph, then that camera will be exported as the default view. Otherwise, this method will construct a default view that is based on the active viewport in MAX, and that view will be exported.

Parameters:

uInXSize

Width of the default view

uInYSize

Height of the default view

Return Values


MAXViewConverter::Initialize( MAXExporter* pMAXExporter )

This method initializes the MAXViewConverter.

Parameters:

pMAXExporter

Reference to main exporter class

Return Values

 

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