3DCoat  3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ParamGlobalStorage Class Referenceabstract

#include <ParamGlobalStorage.h>

Detailed Description

The ParamGlobalStorage intended to store some parameters globally, they will be kept between sessions and kept even after closing the 3D-Coat. As soon as parameter changes it will be stored to file. Parameter identified by it's name. To keep the parameter you need to derive from this class and implement get, set and state_name. Look examples: AutoSnapFollower - keep and set defaults for "AutoSnap" in retopo and modeling rooms SelModeRtpSelect - selection mode for retopo/select, shared for both rooms - retopo and modeling SelModeRtpTransform - selection mode for transform tool.

Use ParamGlobalStorage::default<YourClass>(value) to set the default value for the state. Call it inly when parameter is accessible and active for the current context. Keep in mind "AutoSnap" as example.

The parameters are stored in the Temp/states.json

The simplified usage if the flag is boolean: BoolFollower::control(bool_variable_ref, default_state, UniqueStringID); The simplified usage if the value is float: FloatFollower::control(float_variable_ref, default_state, UniqueStringID);

Inherited by AutoSnapFollower, BoolFollower, CudaFollower, FloatFollower, and SelModeRtpSelect.


The documentation for this class was generated from the following files: