-
Notifications
You must be signed in to change notification settings - Fork 384
Expand file tree
/
Copy pathTweakBarParameters.h
More file actions
33 lines (25 loc) · 909 Bytes
/
TweakBarParameters.h
File metadata and controls
33 lines (25 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef __TweakBarParameters_h__
#define __TweakBarParameters_h__
#include "Common/Common.h"
#include "extern/AntTweakBar/include/AntTweakBar.h"
#include <vector>
#include "ParameterObject.h"
namespace PBD
{
class TweakBarParameters
{
public:
typedef std::pair<GenParam::ParameterObject*, unsigned int> ParameterIndex;
static void createParameterGUI();
static void createParameterObjectGUI(GenParam::ParameterObject *paramObj);
static void TW_CALL setParameterValue(const void *value, void *clientData);
static void TW_CALL getParameterValue(void *value, void *clientData);
static void TW_CALL setTimeStepSizeCB(const void *value, void *clientData);
static void TW_CALL getTimeStepSizeCB(void *value, void *clientData);
static void cleanup();
protected:
static std::vector<std::unique_ptr<ParameterIndex>> m_params;
static std::vector<std::string> m_objectNames;
};
}
#endif