HDK
|
Class which stores the default values for a GA_Attribute. More...
#include <GA_Defaults.h>
Classes | |
class | matrix3 |
class | matrix4 |
class | quaternion |
Public Types | |
typedef UT_Defaults | Base |
Additional Inherited Members | |
Protected Member Functions inherited from UT_Defaults | |
SYS_FORCE_INLINE void | initZero () |
template<typename T > | |
SYS_FORCE_INLINE void | initValue (T value) |
Protected Attributes inherited from UT_Defaults | |
union { | |
fpreal64 * myFTuple | |
int64 * myITuple | |
fpreal64 myF | |
int64 myI | |
}; | |
UT_TupleType<-1, void > | myType |
Class which stores the default values for a GA_Attribute.
This class stores a list of integer/real values which can be used to initialize attribute data.
Definition at line 35 of file GA_Defaults.h.
typedef UT_Defaults GA_Defaults::Base |
Definition at line 41 of file GA_Defaults.h.
|
inline |
Default constructor – the default will be 0.
Definition at line 45 of file GA_Defaults.h.
|
explicit |
Construct by extracting data out of a UT_Options.
GA_Defaults::GA_Defaults | ( | GA_Storage | storage, |
int | count, | ||
... | |||
) |
Construct a set of defaults from variadic arguments. For example
This style of construction is a little bit dangerous, so please ensure
GA_Defaults::GA_Defaults | ( | quaternion | ) |
GA_Defaults::GA_Defaults | ( | matrix3 | ) |
GA_Defaults::GA_Defaults | ( | matrix4 | ) |
|
inlineexplicit |
Construct by repeating the value
Definition at line 80 of file GA_Defaults.h.
|
inlineexplicit |
Construct by repeating the value
Definition at line 92 of file GA_Defaults.h.
|
inlineexplicit |
Construct by repeating the value.
Definition at line 105 of file GA_Defaults.h.
|
inlineexplicit |
Construct by repeating the value
Definition at line 117 of file GA_Defaults.h.
Construct by passing a vector of scalar values Note that the defaults will copy the data out of the values passed in (so the array doesn't have to be persistent).
Definition at line 136 of file GA_Defaults.h.
Construct by passing a vector of scalar values Note that the defaults will copy the data out of the values passed in (so the array doesn't have to be persistent).
Definition at line 137 of file GA_Defaults.h.
Construct by passing a vector of scalar values Note that the defaults will copy the data out of the values passed in (so the array doesn't have to be persistent).
Definition at line 138 of file GA_Defaults.h.
Construct by passing a vector of scalar values Note that the defaults will copy the data out of the values passed in (so the array doesn't have to be persistent).
Definition at line 139 of file GA_Defaults.h.
|
inline |
Copy constructor.
Definition at line 150 of file GA_Defaults.h.
|
inline |
Definition at line 151 of file GA_Defaults.h.
|
inline |
Copy values from another set of defaults.
Definition at line 170 of file GA_Defaults.h.
Get a value out of the defaults.
Definition at line 229 of file GA_Defaults.h.
Get a value out of the defaults.
Definition at line 231 of file GA_Defaults.h.
Get a value out of the defaults.
Definition at line 233 of file GA_Defaults.h.
Get a value out of the defaults.
Definition at line 235 of file GA_Defaults.h.
void GA_Defaults::guessFromName | ( | const UT_StringRef & | name, |
int | tuple_size | ||
) |
Set this to a reasonable guess based on the specified name, e.g. Cd -> 1.0; id -> -1; orient -> (0,0,0,1)
bool GA_Defaults::jsonLoad | ( | UT_JSONParser & | p | ) |
Load data from a JSON stream.
bool GA_Defaults::jsonSave | ( | UT_JSONWriter & | w | ) | const |
Save data to a JSON stream.
|
inline |
Definition at line 153 of file GA_Defaults.h.
void GA_Defaults::saveToOptions | ( | UT_Options & | options, |
bool | always = true |
||
) | const |
Set the GA_OPTION_DEFAULTS option in the options If always
is false and there are no defaults (i.e. getSize() == 0), then the options will not be written.
Set defaults to the list of integer values.
Set defaults to the list of integer values.
Set defaults to the list of real values.
Set defaults to the list of real values.
|
inline |
Get the size of the defaults. You can have an attribute tuple size that's larger than its GA_Defaults size; the GA_Defaults will repeat its last element.
Definition at line 257 of file GA_Defaults.h.