Public Member Functions

IHeightManager Class Reference

Search for all occurrences

Detailed Description

This interface gives access to the HeightManager.

The HeightManager has a list of heights for Metric, Imperial and Custom Units. All methods work on the currently selected display unit type If Generic is selected, the System unit will be considered in regards to which height-list to use. All Heights are stored in the 3dsmax.ini/3dsviz.ini file.

#include <IHeightManager.h>

Inheritance diagram for IHeightManager:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void  CustomizeHeights ()=0
  Brings up a dialog, letting the user customize (add, delete, set current) the heights.
virtual float  GetHeight (int index)=0
  Gets the height for the given index.
virtual MCHAR *  GetHeightString (int index)=0
  Gets the height, respecting the current unit setting in string form.
virtual int  GetCurrentHeightIndex ()=0
  Gets the index of the current height.
virtual void  SetCurrentHeightIndex (int index)=0
  Sets the index of the current height.
virtual int  GetNumHeights ()=0
  Gets the number of heights.

Member Function Documentation

virtual void CustomizeHeights ( ) [pure virtual]

Brings up a dialog, letting the user customize (add, delete, set current) the heights.

virtual float GetHeight ( int  index ) [pure virtual]

Gets the height for the given index.

Parameters:
[in] index - Index to get the height for.
Returns:
height for the given index
virtual MCHAR* GetHeightString ( int  index ) [pure virtual]

Gets the height, respecting the current unit setting in string form.

Parameters:
[in] index - Index to get the height for.
Returns:
height, respecting the current unit setting in string form
virtual int GetCurrentHeightIndex ( ) [pure virtual]

Gets the index of the current height.

Returns:
index of the current height. If no height is active, return value is -1
virtual void SetCurrentHeightIndex ( int  index ) [pure virtual]

Sets the index of the current height.

Parameters:
[in] index the current height should be set to. If no height should be active set parameter to -1
virtual int GetNumHeights ( ) [pure virtual]

Gets the number of heights.

Returns:
number of heights

IHeightManager IHeightManager IHeightManager IHeightManager IHeightManager IHeightManager IHeightManager IHeightManager IHeightManager IHeightManager
IHeightManager IHeightManager IHeightManager IHeightManager IHeightManager IHeightManager IHeightManager IHeightManager IHeightManager IHeightManager