-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDPWidgetRen.h
80 lines (62 loc) · 1.75 KB
/
DPWidgetRen.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//-------------------------------------------------------------------------
//
// Joe Kniss
// Data Probe widget
// DPWidgetRen.h Querys volume
// 3-14-01
// ________ ____ ___
// | \ / | / /
// +---+ \/ |/ /
// +--+| |\ /| <
// | || | \ / | |\ \
// | | \/ | | \ \
// \_____| |__| \__\
// Copyright 2001
// Joe Michael Kniss
// "All Your Base are Belong to Us"
//-------------------------------------------------------------------------
#ifndef __DPWIDGETREN_DOT_H
#define __DPWIDGETREN_DOT_H
#include "gluvvPrimitive.h"
#include "BaseWidget.h"
#include <GL/gl.h>
#include <GL/glu.h>
#include "Trackball.h"
struct gluvvGlobal;
class DPWidgetRen : public gluvvPrimitive, public Widget{
public:
DPWidgetRen();
~DPWidgetRen();
void draw();
int pick(int data1, int data2, int data3,
float x, float y, float z);
int pick();
int key(unsigned char key, int x, int y);
int mouse(int button, int state,
int x, int y);
int move(int x, int y);
int release();
int DPWidgetRenGlErr(char *c);
private:
void update_pos();
inline void move_pos();
enum{ //names
dpwrUnknown,
mainbar,
topball,
slider1,
slider2,
point,
};
//gluvvGlobal *g;
float pos[3];
float length;
float sliderpos;
Trackball tball;
int pickedObj;
int winpos[2];
int lastwinpos[2];
float pntfac;
float xform[16];
};
#endif