Public Attributes

DispInfo Struct Reference

Search for all occurrences

Detailed Description

This is the display information structure.

This structure holds the information describing 3ds Max's current system of measurement. This includes the type of units used, how they are displayed and any custom unit name and scale.

#include <units.h>

Inheritance diagram for DispInfo:
Inheritance graph
[legend]

List of all members.

Public Attributes

int  dispType
  Unit Display Type.
int  metricDisp
  Metric display option.
int  usDisp
  US display option.
int  usFrac
  US fraction option.
MSTR  customName
  Custom unit name.
float  customValue
  Custom unit value.
int  customUnit
  Custom unit reference.

Member Data Documentation

int dispType

Unit Display Type.

One of the following values:

  • UNITDISP_GENERIC
  • UNITDISP_METRIC
  • UNITDISP_US
  • UNITDISP_CUSTOM

Metric display option.

One of the following values:

  • UNIT_METRIC_DISP_MM
  • UNIT_METRIC_DISP_CM
  • UNIT_METRIC_DISP_M
  • UNIT_METRIC_DISP_KM
int usDisp

US display option.

One of the following values:

  • UNIT_US_DISP_FRAC_IN
  • UNIT_US_DISP_DEC_IN
  • UNIT_US_DISP_FRAC_FT
  • UNIT_US_DISP_DEC_FT
  • UNIT_US_DISP_FT_FRAC_IN
  • UNIT_US_DISP_FT_DEC_IN
int usFrac

US fraction option.

One of the following values:

  • UNIT_FRAC_1_1
  • UNIT_FRAC_1_2
  • UNIT_FRAC_1_4
  • UNIT_FRAC_1_8
  • UNIT_FRAC_1_10
  • UNIT_FRAC_1_16
  • UNIT_FRAC_1_32
  • UNIT_FRAC_1_64
  • UNIT_FRAC_1_100

Custom unit name.

float customValue

Custom unit value.

Custom unit reference.


Note: The three custom settings above are related as follows: If for example the customName is set to "FL" for furlongs (which is equal to 660 feet), customValue should equal 660.0 and customUnit should equal UNITS_FEET.