Public Types | Public Member Functions

RealWorldMapSizeInterface Class Reference

Search for all occurrences

Detailed Description

The commong mix-in interface for setting realWorldMapSize properties on objects and modifiers.

Details follow here. This class is used with multiple inheritence from a class which exports a "real-world map size" toggle. The class must implement two abstract methods for setting and getting this value. The class must implement the following method: BaseInterface* GetInterface(Interface_ID id) { if (id == RWS_INTERFACE) return this; else return FPMixinInterface::GetInterface(id); } The client class must add this interface the first time ClassDesc::Create() is called on the class's class descriptor. See maxsdk/samples/objects/boxobj.cpp for an example of the use of this class.

#include <RealWorldMapUtils.h>

Inheritance diagram for RealWorldMapSizeInterface:
Inheritance graph
[legend]

List of all members.

Public Types

enum   { rws_getRealWorldMapSize, rws_setRealWorldMapSize }
 

Function published properties for real-world map size.

More...

Public Member Functions

virtual BOOL  GetUsePhysicalScaleUVs ()=0
  Gets the state of the real-world map size toggle.
virtual void  SetUsePhysicalScaleUVs (BOOL flag)=0
  Set the real-world map size toggle.
FPInterfaceDesc GetDesc ()
  Returns a pointer to the interface metadata for this class.
BEGIN_FUNCTION_MAP  PROP_FNS (rws_getRealWorldMapSize, GetUsePhysicalScaleUVs, rws_setRealWorldMapSize, SetUsePhysicalScaleUVs, TYPE_BOOL)

Member Enumeration Documentation

anonymous enum

Function published properties for real-world map size.

Enumerator:
rws_getRealWorldMapSize 
rws_setRealWorldMapSize 

Member Function Documentation

virtual BOOL GetUsePhysicalScaleUVs ( ) [pure virtual]

Gets the state of the real-world map size toggle.

Returns:
the current state of the toggle
virtual void SetUsePhysicalScaleUVs ( BOOL  flag ) [pure virtual]

Set the real-world map size toggle.

Parameters:
[in] flag - the new value of the toggle
FPInterfaceDesc* GetDesc ( ) [inline, virtual]

Returns a pointer to the interface metadata for this class.

See also:
FPMixinInterface::GetDesc

Implements FPInterface.

{ return &gRealWorldMapSizeDesc; }
BEGIN_FUNCTION_MAP PROP_FNS ( rws_getRealWorldMapSize  ,
GetUsePhysicalScaleUVs  ,
rws_setRealWorldMapSize  ,
SetUsePhysicalScaleUVs  ,
TYPE_BOOL   
)

RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface
RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface RealWorldMapSizeInterface