-
Notifications
You must be signed in to change notification settings - Fork 2
/
PMonteCarloWindow.h
38 lines (29 loc) · 1.04 KB
/
PMonteCarloWindow.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 __PMonteCarloWindow_h__
#define __PMonteCarloWindow_h__
#include <Xm/Xm.h>
#include "PWindow.h"
#include "PListener.h"
#include "PMenu.h"
struct MonteCarloVertex;
class PProjImage;
class PMonteCarloWindow : public PWindow, public PListener, public PMenuHandler {
public:
PMonteCarloWindow(ImageData *data);
~PMonteCarloWindow();
virtual void DoMenuCommand(int anID);
virtual void Listen(int message, void *message_data);
static char * InteractionName(MonteCarloVertex *vertex);
static char * ParticleName(MonteCarloVertex *vertex);
static unsigned long ParticleMask(MonteCarloVertex *vertex);
private:
int ShowTrackInfo(MonteCarloVertex *vertex, MonteCarloVertex *flagged=NULL);
int ShowTrackInfo(int x,int y, int forced,PProjImage *proj);
void SetParticleItems();
void ClearEntries();
void HighlightTrack(MonteCarloVertex *vertex);
Widget mTitleLabel, mTrackLabel;
MonteCarloVertex * mLastVertex;
MonteCarloVertex * mLastFlagged;
int mNeedUpdate;
};
#endif // __PMonteCarloWindow_h__