This reference page is linked to from the following overview topics: Application-Level Functionality.
Holds Mudbox application preferences.
Most of the data members will be removed from the SDK in future releases. For more information about adding an item to preferences see Preferences::Integer.
Definition at line 70 of file preferences.h.
#include <preferences.h>
Preferences | ( | void | ) |
~Preferences | ( | void | ) |
void Serialize | ( | Stream & | s | ) | [virtual] |
Serializes the node.
Override this function in your plug-in to save and load attributes and custom data with the Mudbox file.
Reimplemented from Node.
void ProcessLine | ( | QString & | sSrc, |
QString & | sName, | ||
QString & | sValue | ||
) |
void SavePaths | ( | void | ) |
bool LoadPaths | ( | void | ) |
QString FindSettings | ( | QString & | sDir | ) |
QString DefaultDataPath | ( | ) | const |
Attribute* RegisterVariable | ( | const QString & | sName, |
const QString & | sCategory, | ||
const QString & | sNameTr, | ||
const QString & | sCategoryTr, | ||
Attribute::AttributeType | eType, | ||
const QString & | sDefaultValue | ||
) |
afloatr* RegisterFloatVariable | ( | const QString & | sName, |
const QString & | sCategory, | ||
const QString & | sNameTr, | ||
const QString & | sCategoryTr, | ||
float | fDefaultValue | ||
) | [inline] |
Definition at line 85 of file preferences.h.
{ return (afloatr *)RegisterVariable( sName, sCategory, sNameTr, sCategoryTr, Attribute::typeFloat, QString("%1").arg(fDefaultValue) ); };
abool* RegisterBoolVariable | ( | const QString & | sName, |
const QString & | sCategory, | ||
const QString & | sNameTr, | ||
const QString & | sCategoryTr, | ||
bool | bDefaultValue | ||
) | [inline] |
Definition at line 86 of file preferences.h.
{ return (abool *)RegisterVariable( sName, sCategory, sNameTr, sCategoryTr, Attribute::typeBool, bDefaultValue ? "true" : "false" ); };
astring* RegisterStringVariable | ( | const QString & | sName, |
const QString & | sCategory, | ||
const QString & | sNameTr, | ||
const QString & | sCategoryTr, | ||
const QString & | sDefaultValue | ||
) | [inline] |
Definition at line 87 of file preferences.h.
{ return (astring *)RegisterVariable( sName, sCategory, sNameTr, sCategoryTr, Attribute::typeString, sDefaultValue ); };
acolor* RegisterColorVariable | ( | const QString & | sName, |
const QString & | sCategory, | ||
const QString & | sNameTr, | ||
const QString & | sCategoryTr, | ||
const mudbox::Color & | cDefaultValue | ||
) | [inline] |
Definition at line 88 of file preferences.h.
{ return (acolor *)RegisterVariable( sName, sCategory, sNameTr, sCategoryTr, Attribute::typeColor, QString("%1 %2 %3 %4").arg(cDefaultValue.r).arg(cDefaultValue.g).arg(cDefaultValue.b).arg(cDefaultValue.a) ); };
aint* RegisterIntegerVariable | ( | const QString & | sName, |
const QString & | sCategory, | ||
const QString & | sNameTr, | ||
const QString & | sCategoryTr, | ||
int | iDefaultValue | ||
) | [inline] |
Definition at line 89 of file preferences.h.
{ return (aint *)RegisterVariable( sName, sCategory, sNameTr, sCategoryTr, Attribute::typeInt, QString("%1").arg(iDefaultValue) ); };
avector* RegisterVectorVariable | ( | const QString & | sName, |
const QString & | sCategory, | ||
const QString & | sNameTr, | ||
const QString & | sCategoryTr, | ||
const mudbox::Vector & | vDefaultValue | ||
) | [inline] |
Definition at line 90 of file preferences.h.
{ return (avector *)RegisterVariable( sName, sCategory, sNameTr, sCategoryTr, Attribute::typeVector, QString("%f %f %f").arg(vDefaultValue.x).arg(vDefaultValue.y).arg(vDefaultValue.z ) ); };
aenum* RegisterEnumVariable | ( | const QString & | sName, |
const QString & | sCategory, | ||
const QString & | sNameTr, | ||
const QString & | sCategoryTr, | ||
int | iDefaultValue | ||
) | [inline] |
Definition at line 91 of file preferences.h.
{ return (aenum *)RegisterVariable( sName, sCategory, sNameTr, sCategoryTr, Attribute::typeEnum, QString("%1").arg(iDefaultValue) ); };
void OnNodeEvent | ( | const Attribute & | cAttribute, |
NodeEventType | cType | ||
) | [virtual] |
This function is called if an event occurs with any of the attributes of the node.
All derived classes should override this function to be able to handle attribute events.
cAttribute | The attribute which caused the event. The attribute has a
special == operator to make it easier to implement this function.
You can write the following:
void MyClass::OnNodeEvent( const Attribute &cAttribute, NodeEventType cType ) { if ( cAttribute == myAttribute0 ) { ... } else if ( cAttribute == myAttribute1 ) { ... } } This comparison will check the address of the two attributes and NOT their values. |
cType | Type of the event occured. |
Reimplemented from Node.
Definition at line 95 of file preferences.h.
Definition at line 95 of file preferences.h.
Definition at line 95 of file preferences.h.
Definition at line 96 of file preferences.h.
Definition at line 97 of file preferences.h.
Definition at line 97 of file preferences.h.
Definition at line 97 of file preferences.h.
Definition at line 98 of file preferences.h.
Definition at line 99 of file preferences.h.
Definition at line 99 of file preferences.h.
Definition at line 99 of file preferences.h.
Definition at line 99 of file preferences.h.
Definition at line 99 of file preferences.h.
Definition at line 99 of file preferences.h.
Definition at line 100 of file preferences.h.
Definition at line 101 of file preferences.h.
Definition at line 102 of file preferences.h.
Definition at line 103 of file preferences.h.
Definition at line 105 of file preferences.h.
Definition at line 105 of file preferences.h.
Definition at line 106 of file preferences.h.
Definition at line 106 of file preferences.h.
Definition at line 107 of file preferences.h.
Definition at line 108 of file preferences.h.
Definition at line 109 of file preferences.h.
Definition at line 110 of file preferences.h.
Definition at line 111 of file preferences.h.
bool m_bFlatLighting |
Definition at line 112 of file preferences.h.
bool m_bFacetedShading |
Definition at line 113 of file preferences.h.
bool m_bLighting |
Definition at line 114 of file preferences.h.
Definition at line 116 of file preferences.h.
Definition at line 117 of file preferences.h.
Definition at line 118 of file preferences.h.
Definition at line 120 of file preferences.h.
Definition at line 121 of file preferences.h.
Definition at line 122 of file preferences.h.
Definition at line 122 of file preferences.h.
Definition at line 123 of file preferences.h.
Definition at line 124 of file preferences.h.
Definition at line 125 of file preferences.h.
Definition at line 125 of file preferences.h.
Definition at line 125 of file preferences.h.
Definition at line 125 of file preferences.h.
Definition at line 125 of file preferences.h.
Definition at line 126 of file preferences.h.
Definition at line 127 of file preferences.h.
Definition at line 127 of file preferences.h.
Definition at line 128 of file preferences.h.
Definition at line 129 of file preferences.h.
Definition at line 130 of file preferences.h.
Definition at line 131 of file preferences.h.
Definition at line 132 of file preferences.h.
Definition at line 133 of file preferences.h.
Definition at line 135 of file preferences.h.
Definition at line 135 of file preferences.h.
Definition at line 135 of file preferences.h.
Definition at line 137 of file preferences.h.
Definition at line 138 of file preferences.h.
Definition at line 139 of file preferences.h.
Definition at line 140 of file preferences.h.
Definition at line 142 of file preferences.h.
Definition at line 143 of file preferences.h.
Definition at line 144 of file preferences.h.
Definition at line 144 of file preferences.h.
Definition at line 144 of file preferences.h.
Definition at line 144 of file preferences.h.
Definition at line 144 of file preferences.h.
Definition at line 144 of file preferences.h.
Definition at line 144 of file preferences.h.
Definition at line 145 of file preferences.h.
Definition at line 145 of file preferences.h.
Definition at line 145 of file preferences.h.
Definition at line 145 of file preferences.h.
Definition at line 145 of file preferences.h.
Definition at line 146 of file preferences.h.
Definition at line 146 of file preferences.h.
Definition at line 146 of file preferences.h.
Definition at line 146 of file preferences.h.
Definition at line 147 of file preferences.h.
Definition at line 148 of file preferences.h.
Definition at line 148 of file preferences.h.
float m_aLinearUnitRates[4] |
Definition at line 149 of file preferences.h.
Definition at line 150 of file preferences.h.
Definition at line 150 of file preferences.h.
Definition at line 150 of file preferences.h.
Definition at line 150 of file preferences.h.
Definition at line 150 of file preferences.h.
Definition at line 150 of file preferences.h.
Definition at line 150 of file preferences.h.
Definition at line 150 of file preferences.h.
Definition at line 150 of file preferences.h.
Definition at line 152 of file preferences.h.
Definition at line 152 of file preferences.h.
Definition at line 152 of file preferences.h.
Definition at line 152 of file preferences.h.
Definition at line 153 of file preferences.h.
Definition at line 154 of file preferences.h.
Definition at line 160 of file preferences.h.
Definition at line 161 of file preferences.h.
Definition at line 161 of file preferences.h.
Definition at line 161 of file preferences.h.
Definition at line 161 of file preferences.h.
Definition at line 162 of file preferences.h.
Definition at line 163 of file preferences.h.
Definition at line 164 of file preferences.h.
Definition at line 165 of file preferences.h.
Definition at line 166 of file preferences.h.
Definition at line 167 of file preferences.h.
Definition at line 168 of file preferences.h.
Definition at line 169 of file preferences.h.
Definition at line 170 of file preferences.h.
Definition at line 171 of file preferences.h.
Definition at line 171 of file preferences.h.
Definition at line 172 of file preferences.h.
Definition at line 172 of file preferences.h.
Definition at line 173 of file preferences.h.
Definition at line 177 of file preferences.h.
Definition at line 178 of file preferences.h.
Definition at line 179 of file preferences.h.
Definition at line 180 of file preferences.h.
Definition at line 181 of file preferences.h.
Definition at line 182 of file preferences.h.
Definition at line 183 of file preferences.h.
Definition at line 184 of file preferences.h.
Definition at line 185 of file preferences.h.
Definition at line 186 of file preferences.h.
Definition at line 187 of file preferences.h.
Definition at line 188 of file preferences.h.
Definition at line 189 of file preferences.h.
Definition at line 190 of file preferences.h.
Definition at line 191 of file preferences.h.
Definition at line 192 of file preferences.h.
Definition at line 193 of file preferences.h.
Definition at line 194 of file preferences.h.
Definition at line 195 of file preferences.h.
Definition at line 196 of file preferences.h.
Definition at line 197 of file preferences.h.
Definition at line 198 of file preferences.h.
Definition at line 199 of file preferences.h.
Definition at line 200 of file preferences.h.
Definition at line 201 of file preferences.h.
Definition at line 202 of file preferences.h.
Definition at line 208 of file preferences.h.
Definition at line 209 of file preferences.h.
Definition at line 210 of file preferences.h.
Definition at line 210 of file preferences.h.
Definition at line 211 of file preferences.h.
Definition at line 211 of file preferences.h.
Definition at line 211 of file preferences.h.
Definition at line 212 of file preferences.h.
Definition at line 213 of file preferences.h.
Definition at line 214 of file preferences.h.
Definition at line 215 of file preferences.h.
Definition at line 218 of file preferences.h.
Definition at line 219 of file preferences.h.
Definition at line 221 of file preferences.h.
Definition at line 223 of file preferences.h.
Definition at line 224 of file preferences.h.
Definition at line 225 of file preferences.h.
Definition at line 227 of file preferences.h.
Specifies a distance how far the edge bleeding should go over UV edges during painting.
Definition at line 230 of file preferences.h.
Definition at line 231 of file preferences.h.
Definition at line 232 of file preferences.h.
Definition at line 233 of file preferences.h.
Definition at line 235 of file preferences.h.
movie-recording preferences
Definition at line 238 of file preferences.h.
Definition at line 239 of file preferences.h.
Definition at line 240 of file preferences.h.
Definition at line 241 of file preferences.h.
Definition at line 242 of file preferences.h.
Definition at line 243 of file preferences.h.
Paint layer dialog preferences.
Definition at line 246 of file preferences.h.
Definition at line 247 of file preferences.h.
Definition at line 251 of file preferences.h.
Definition at line 252 of file preferences.h.
bool m_bLoadingPaths |
Definition at line 254 of file preferences.h.