X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fviews.h;h=08fd7a8fbce9539016abf7027a9b9b51b6859d73;hb=55426f4170ed9dc777c3cec3741e4a59e6eebd38;hp=ee3fdda86342e36807de290c4b4077a34516a61c;hpb=e4c1f7f8eb87558c3abf3bf1d20732361f425351;p=ctsim.git diff --git a/src/views.h b/src/views.h index ee3fdda..08fd7a8 100644 --- a/src/views.h +++ b/src/views.h @@ -9,7 +9,7 @@ ** 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.10 2000/09/04 09:06:46 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 @@ -52,19 +52,21 @@ private: 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(wxView::GetDocument()); } @@ -100,9 +102,21 @@ private: ProjectionFileCanvas *m_canvas; wxFrame *m_frame; + int m_iDefaultNX; + int m_iDefaultNY; + int m_iDefaultFilter; + int m_iDefaultFilterMethod; + double m_dDefaultFilterParam; + int m_iDefaultFilterGeneration; + int m_iDefaultZeropad; + int m_iDefaultInterpolation; + int m_iDefaultInterpParam; + int m_iDefaultBackprojector; + int m_iDefaultTrace; + public: ProjectionFileView(void); - ~ProjectionFileView(void); + virtual ~ProjectionFileView(void); bool OnCreate(wxDocument *doc, long flags); void OnDraw(wxDC* dc); @@ -138,14 +152,23 @@ private: PhantomCanvas *m_canvas; wxFrame *m_frame; + int m_iDefaultNDet; + int m_iDefaultNView; + int m_iDefaultNSample; + int m_iDefaultGeometry; + int m_iDefaultTrace; + double m_dDefaultRotation; + double m_dDefaultFocalLength; + double m_dDefaultFieldOfView; + 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); @@ -162,6 +185,7 @@ public: PhantomView* m_pView; PhantomCanvas (PhantomView* v, wxFrame *frame, const wxPoint& pos, const wxSize& size, const long style); + virtual void OnDraw(wxDC& dc); };