** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: views.h,v 1.2 2000/07/15 08:36:13 kevin Exp $
+** $Id: views.h,v 1.8 2000/08/31 08:38:58 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
wxFrame *m_frame;
bool m_bMinSpecified;
bool m_bMaxSpecified;
- double m_minPixel;
- double m_maxPixel;
+ double m_dMinPixel;
+ double m_dMaxPixel;
+ double m_dAutoScaleFactor;
public:
ImageFileView(void);
- ~ImageFileView(void);
+ virtual ~ImageFileView(void);
bool OnCreate(wxDocument *doc, long flags);
void OnDraw(wxDC* dc);
void OnUpdate(wxView *sender, wxObject *hint = NULL);
bool OnClose (bool deleteWindow = true);
void OnProperties (wxCommandEvent& event);
- void OnWindowAuto (wxCommandEvent& event);
+ void OnScaleAuto (wxCommandEvent& event);
+ void OnScaleMinMax (wxCommandEvent& event);
ImageFileDocument* GetDocument(void)
{ return dynamic_cast<ImageFileDocument*>(wxView::GetDocument()); }
public:
ProjectionFileView(void);
- ~ProjectionFileView(void);
+ virtual ~ProjectionFileView(void);
bool OnCreate(wxDocument *doc, long flags);
void OnDraw(wxDC* dc);
public:
PhantomView(void);
- ~PhantomView(void);
+ virtual ~PhantomView(void);
bool OnCreate(wxDocument *doc, long flags);
- void OnDraw(wxDC* dc);
void OnUpdate(wxView *sender, wxObject *hint = NULL);
bool OnClose (bool deleteWindow = true);
+ void OnDraw(wxDC* dc);
void OnProperties (wxCommandEvent& event);
void OnRasterize (wxCommandEvent& event);
void OnProjections (wxCommandEvent& event);
PhantomView* m_pView;
PhantomCanvas (PhantomView* v, wxFrame *frame, const wxPoint& pos, const wxSize& size, const long style);
+
virtual void OnDraw(wxDC& dc);
};