-
Notifications
You must be signed in to change notification settings - Fork 1
/
modelerglobals.h
38 lines (32 loc) · 1.18 KB
/
modelerglobals.h
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
34
35
36
37
38
#ifndef _MODELER_GLOBALS_H
#define _MODELER_GLOBALS_H
#ifndef M_PI
#define M_PI 3.141592653589793238462643383279502
#endif
// This is a list of the controls for the SampleModel
// We'll use these constants to access the values
// of the controls from the user interface.
// v is rotation angle using the axis along the arm
// h is rotation angle of joint
enum SampleModelControls
{
XPOS, YPOS, ZPOS, HEIGHT, ROTATE,
ARM1V, ARM1H, ARM2V, ARM2H, ARM3V, ARM3H, ARM4V, ARM4H, ARM5V, ARM5H, ARM6V, ARM6H,
CLAMPWIDTH, ARMCNT,
LIGHTX, LIGHTY, LIGHTZ, LIGHT_3_PT, LEVELDETAILS,
ENABLEANIM, CYCLINGMOOD,
LDISP, LDEPTH, LANGLE, LLEN, LTHICKNESS, LDECAYTHICKNESS, LDECAYLENGTH,
BALLJOINTS, BOXARMS, METABALL,
IKENABLE, IKX, IKY, IKZ, IKMIN, IKMAX,
SHOWPRISM, NUMCONTROLS
};
// Colors
#define COLOR_RED 1.0f, 0.0f, 0.0f
#define COLOR_GREEN 0.0f, 1.0f, 0.0f
#define COLOR_BLUE 0.0f, 0.0f, 1.0f
#define ARMMAXCNT 6
// We'll be getting the instance of the application a lot;
// might as well have it as a macro.
#define VAL(x) (ModelerApplication::Instance()->GetControlValue(x))
#define SET(x,value) (ModelerApplication::Instance()->SetControlValue(x,value))
#endif