Classes | Public Types | Public Member Functions | Static Public Member Functions

MarketDefaults Class Reference

Search for all occurrences

Detailed Description

This class manages the default settings of a range of 3ds Max features.

Description:
A set of default settings can be saved under a certain name. The different sets are then presented by 3ds Max to users to choose from. 3rd party plug-ins can add their own deafults to the current set of settings, but cannot create their own sets.

#include <marketDefaults.h>

Inheritance diagram for MarketDefaults:
Inheritance graph
[legend]

List of all members.

Classes

class   Range

Public Types

typedef bool(*  FloatValidator )(float &)
typedef bool(*  IntValidator )(int &)
typedef bool(*  Point3Validator )(Point3 &)
typedef bool(*  Point4Validator )(Point4 &)
typedef bool(*  StringValidator )(MSTR &)
typedef bool(*  AnimatableValidator )(Animatable *&)
typedef bool(*  ClassIDValidator )(Class_ID &)

Public Member Functions

virtual CoreExport  ~MarketDefaults ()
virtual int  GetInt (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, int defaultValue, IntValidator validator=NULL, int dimension=DIM_NONE)=0
int  GetTime (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, int defaultValue, IntValidator validator=NULL)
virtual float  GetFloat (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, float defaultValue, FloatValidator validator=NULL, int dimension=DIM_NONE)=0
float  GetAngle (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, float defaultValue, FloatValidator validator=NULL)
float  GetPercentage (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, float defaultValue, FloatValidator validator=NULL)
float  GetWorld (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, float defaultValue, FloatValidator validator=NULL)
float  GetColorChannel (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, float defaultValue, FloatValidator validator=NULL)
virtual Point3  GetPoint3 (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, const Point3 &defaultValue, Point3Validator validator=NULL, int dimension=DIM_NONE)=0
Point3  GetRGBA (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, const Point3 &defaultValue, Point3Validator validator=NULL)
virtual Point4  GetPoint4 (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, const Point4 &defaultValue, Point4Validator validator=NULL, int dimension=DIM_NONE)=0
Point4  GetFRGBA (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, const Point4 &defaultValue, Point4Validator validator=NULL)
virtual MSTR  GetString (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, const MCHAR *defaultValue, StringValidator validator=NULL)=0
virtual Class_ID  GetClassID (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, const Class_ID &defaultID, ClassIDValidator validator=NULL)=0
virtual Animatable CreateInstance (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, SClass_ID superClass, const Class_ID &defaultInstance, AnimatableValidator validator=NULL)=0
CoreExport ReferenceTarget CreateRefTarget (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, SClass_ID superClass, const Class_ID &defaultInstance, AnimatableValidator validator=NULL)
CoreExport Mtl CreateMtl (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, const Class_ID &defaultInstance, AnimatableValidator validator=NULL)
CoreExport Texmap CreateTexmap (SClass_ID objectSuperClass, const Class_ID &objectClass, const MCHAR *name, const Class_ID &defaultInstance, AnimatableValidator validator=NULL)
virtual bool  SectionExists (const MCHAR *section)=0
virtual bool  SectionExists (SClass_ID sid, const Class_ID &id)=0
virtual void  SetSectionName (const MCHAR *section)=0
virtual void  SetSectionName (SClass_ID sid, const Class_ID &id)=0
virtual const MCHAR *  GetSectionName ()=0
virtual void  DeleteSection (const MCHAR *section)=0
virtual void  DeleteSection (SClass_ID sid, const Class_ID &id)=0
virtual bool  KeyExists (const MCHAR *key)=0
virtual bool  DeleteKey (const MCHAR *key)=0
virtual bool  PutInt (const MCHAR *key, int val)=0
virtual bool  PutIntArray (const MCHAR *key, int ct, const int *array)=0
virtual bool  PutFloat (const MCHAR *key, float val)=0
virtual bool  PutFloatArray (const MCHAR *key, int ct, const float *array)=0
virtual bool  PutString (const MCHAR *key, const MCHAR *str)=0
virtual bool  GetInt (const MCHAR *key, int &val)=0
virtual bool  GetIntArray (const MCHAR *key, int &ct, int *array, int arrayCt)=0
virtual bool  GetFloat (const MCHAR *key, float &val)=0
virtual bool  GetFloatArray (const MCHAR *key, int &ct, float *array, int arrayCt)=0
virtual bool  GetString (const MCHAR *key, MCHAR *buf, int bufSize)=0

Static Public Member Functions

static CoreExport bool  CheckNULL (Animatable *&obj)
static CoreExport bool  CheckNULL (MSTR &str)
static CoreExport bool  CheckNULL (Class_ID &id)

Member Typedef Documentation

typedef bool(* FloatValidator)(float &)
typedef bool(* IntValidator)(int &)
typedef bool(* Point3Validator)(Point3 &)
typedef bool(* Point4Validator)(Point4 &)
typedef bool(* StringValidator)(MSTR &)
typedef bool(* AnimatableValidator)(Animatable *&)
typedef bool(* ClassIDValidator)(Class_ID &)

Constructor & Destructor Documentation

virtual CoreExport ~MarketDefaults ( ) [virtual]

Member Function Documentation

static CoreExport bool CheckNULL ( Animatable *&  obj ) [static]
static CoreExport bool CheckNULL ( MSTR str ) [static]
static CoreExport bool CheckNULL ( Class_ID id ) [static]
virtual int GetInt ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
int  defaultValue,
IntValidator  validator = NULL,
int  dimension = DIM_NONE 
) [pure virtual]
int GetTime ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
int  defaultValue,
IntValidator  validator = NULL 
) [inline]
    {
        return GetInt(objectSuperClass, objectClass, name, defaultValue, validator, DIM_TIME);
    }
virtual float GetFloat ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
float  defaultValue,
FloatValidator  validator = NULL,
int  dimension = DIM_NONE 
) [pure virtual]
float GetAngle ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
float  defaultValue,
FloatValidator  validator = NULL 
) [inline]
    {
        return GetFloat(objectSuperClass, objectClass, name, defaultValue, validator, DIM_ANGLE);
    }
float GetPercentage ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
float  defaultValue,
FloatValidator  validator = NULL 
) [inline]
    {
        return GetFloat(objectSuperClass, objectClass, name, defaultValue, validator, DIM_PERCENT);
    }
float GetWorld ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
float  defaultValue,
FloatValidator  validator = NULL 
) [inline]
    {
        return GetFloat(objectSuperClass, objectClass, name, defaultValue, validator, DIM_WORLD);
    }
float GetColorChannel ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
float  defaultValue,
FloatValidator  validator = NULL 
) [inline]
    {
        return GetFloat(objectSuperClass, objectClass, name, defaultValue, validator, DIM_COLOR255);
    }
virtual Point3 GetPoint3 ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
const Point3 defaultValue,
Point3Validator  validator = NULL,
int  dimension = DIM_NONE 
) [pure virtual]
Point3 GetRGBA ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
const Point3 defaultValue,
Point3Validator  validator = NULL 
) [inline]
    {
        return GetPoint3(objectSuperClass, objectClass, name, defaultValue, validator, DIM_COLOR255);
    }
virtual Point4 GetPoint4 ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
const Point4 defaultValue,
Point4Validator  validator = NULL,
int  dimension = DIM_NONE 
) [pure virtual]
Point4 GetFRGBA ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
const Point4 defaultValue,
Point4Validator  validator = NULL 
) [inline]
    {
        return GetPoint4(objectSuperClass, objectClass, name, defaultValue, validator, DIM_COLOR);
    }
virtual MSTR GetString ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
const MCHAR *  defaultValue,
StringValidator  validator = NULL 
) [pure virtual]
virtual Class_ID GetClassID ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
const Class_ID defaultID,
ClassIDValidator  validator = NULL 
) [pure virtual]
virtual Animatable* CreateInstance ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
SClass_ID  superClass,
const Class_ID defaultInstance,
AnimatableValidator  validator = NULL 
) [pure virtual]
CoreExport ReferenceTarget* CreateRefTarget ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
SClass_ID  superClass,
const Class_ID defaultInstance,
AnimatableValidator  validator = NULL 
)
CoreExport Mtl* CreateMtl ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
const Class_ID defaultInstance,
AnimatableValidator  validator = NULL 
)
CoreExport Texmap* CreateTexmap ( SClass_ID  objectSuperClass,
const Class_ID objectClass,
const MCHAR *  name,
const Class_ID defaultInstance,
AnimatableValidator  validator = NULL 
)
virtual bool SectionExists ( const MCHAR *  section ) [pure virtual]
virtual bool SectionExists ( SClass_ID  sid,
const Class_ID id 
) [pure virtual]
virtual void SetSectionName ( const MCHAR *  section ) [pure virtual]
virtual void SetSectionName ( SClass_ID  sid,
const Class_ID id 
) [pure virtual]
virtual const MCHAR* GetSectionName ( ) [pure virtual]
virtual void DeleteSection ( const MCHAR *  section ) [pure virtual]
virtual void DeleteSection ( SClass_ID  sid,
const Class_ID id 
) [pure virtual]
virtual bool KeyExists ( const MCHAR *  key ) [pure virtual]
virtual bool DeleteKey ( const MCHAR *  key ) [pure virtual]
virtual bool PutInt ( const MCHAR *  key,
int  val 
) [pure virtual]
virtual bool PutIntArray ( const MCHAR *  key,
int  ct,
const int *  array 
) [pure virtual]
virtual bool PutFloat ( const MCHAR *  key,
float  val 
) [pure virtual]
virtual bool PutFloatArray ( const MCHAR *  key,
int  ct,
const float *  array 
) [pure virtual]
virtual bool PutString ( const MCHAR *  key,
const MCHAR *  str 
) [pure virtual]
virtual bool GetInt ( const MCHAR *  key,
int &  val 
) [pure virtual]
virtual bool GetIntArray ( const MCHAR *  key,
int &  ct,
int *  array,
int  arrayCt 
) [pure virtual]
virtual bool GetFloat ( const MCHAR *  key,
float &  val 
) [pure virtual]
virtual bool GetFloatArray ( const MCHAR *  key,
int &  ct,
float *  array,
int  arrayCt 
) [pure virtual]
virtual bool GetString ( const MCHAR *  key,
MCHAR *  buf,
int  bufSize 
) [pure virtual]

MarketDefaults MarketDefaults MarketDefaults MarketDefaults MarketDefaults MarketDefaults MarketDefaults MarketDefaults MarketDefaults MarketDefaults
MarketDefaults MarketDefaults MarketDefaults MarketDefaults MarketDefaults MarketDefaults MarketDefaults MarketDefaults MarketDefaults MarketDefaults