-
Notifications
You must be signed in to change notification settings - Fork 2
/
PMapImage.h
47 lines (36 loc) · 1.58 KB
/
PMapImage.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
//==============================================================================
// File: PMapImage.h
//
// Copyright (c) 2017, Phil Harvey, Queen's University
//==============================================================================
#ifndef __PMapImage_h__
#define __PMapImage_h__
#include "PProjImage.h"
#include "PMenu.h"
#include "matrix.h"
struct MenuStruct;
class PMapImage : public PProjImage, public PMenuHandler {
public:
PMapImage(PImageWindow *owner, Widget canvas=0);
virtual ~PMapImage();
virtual void DrawSelf();
virtual void AfterDrawing();
virtual void Listen(int message, void *dataPt);
virtual void SetScrolls();
virtual void ScrollValueChanged(EScrollBar bar, int value);
virtual void TransformHits();
virtual void DoMenuCommand(int anID);
void AddMenuItem();
void SetProjection(int proj_type);
void TransformHits(Vector3 vec, Matrix3 rot1);
void CalcTransformMatrix();
private:
XSegment * AddProjLine(XSegment *sp,XSegment *segments,Node *n0,Node *n1,
Vector3 vec,Matrix3 rot1,Projection *proj,int nsplit);
int mShapeOption; // shape menu option
int mProjType; // projection type
int mSplitThreshold; // maximum times to split a line for drawing fit
Vector3 mVec; // map center position
Matrix3 mRot1; // map rotation matrix
};
#endif // __PMapImage_h__