-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCRotatHa.h
42 lines (34 loc) · 1.52 KB
/
CRotatHa.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
// A child class for the implement a sliding handle from side to side.
//
#ifndef _CROTATEHANDLE_H_
#define _CROTATEHANDLE_H_
#include "CParamHa.h"
class CRotateHandle : public CParamHandle
{
public:
CRotateHandle ();
~CRotateHandle ();
int draw () const;
int drawChangeArc () const;
double setValue (double dwValue);
double setScale (double dwScale);
void getRotationAxis (double *dwRotationAxisX, double *dwRotationAxisY, double *dwRotationAxisZ) const;
void setRotationAxis (double dwRotationAxisX, double dwRotationAxisY, double dwRotationAxisZ);
void getTotalExtentScaleValues (double *dwMinScaleValue, double *dwMaxScaleValue) const;
void setTotalExtentScaleValues (double dwMinScaleValue, double dwMaxScaleValue);
void getMovementExtentValues (double *dwMinValue, double *dwMaxValue) const;
void setMovementExtentValues (double dwMinValue, double dwMaxValue);
void getMovementExtentScaleValues (double *dwMinScale, double *dwMaxScale) const;
void setMovementExtentScaleValues (double dwMinScale, double dwMaxScale);
protected:
double getAngle() const; // retrun the angle at which a line should be drawn
double getPercentScale() const; // retrun the Scaleing which needs to be drawn along the line
private:
// thereoretical scale of values for the sphere you can move around
double m_dwMinScaleValue, m_dwMaxScaleValue;
// Actual upper and lower values that can be recorded
double m_dwMinValue, m_dwMaxValue;
double m_dwMinScale, m_dwMaxScale;
double m_dwRotationAxisX, m_dwRotationAxisY, m_dwRotationAxisZ;
};
#endif