This class manages the default settings of a range of 3ds Max features.
#include <marketDefaults.h>
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) |
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 &) |
virtual CoreExport ~MarketDefaults | ( | ) | [virtual] |
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] |
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] |
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] |
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] |
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] |