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>
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) |
anonymous enum |
Function published properties for real-world map size.
virtual BOOL GetUsePhysicalScaleUVs | ( | ) | [pure virtual] |
Gets the state of the real-world map size toggle.
virtual void SetUsePhysicalScaleUVs | ( | BOOL | flag | ) | [pure virtual] |
Set the real-world map size toggle.
[in] | flag | - the new value of the toggle |
FPInterfaceDesc* GetDesc | ( | ) | [inline, virtual] |
Returns a pointer to the interface metadata for this class.
Implements FPInterface.
{ return &gRealWorldMapSizeDesc; }
BEGIN_FUNCTION_MAP PROP_FNS | ( | rws_getRealWorldMapSize | , |
GetUsePhysicalScaleUVs | , | ||
rws_setRealWorldMapSize | , | ||
SetUsePhysicalScaleUVs | , | ||
TYPE_BOOL | |||
) |