Evita  0.16
evGUIEncoder.h
Go to the documentation of this file.
1 /*
2  *
3  * EVITA: Efficient Visualization of Terascale Datasets
4  * Copyright (C) 2000-2016 Team Evita
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
19  * MA 02139, USA.
20  *
21  */
22 
23 
24 #ifndef __evGUIEncoder_h
25 #define __evGUIEncoder_h
26 
27 
28 #include <FL/Fl.H>
29 #include <FL/Fl_Input.H>
30 #include <FL/Fl_Button.H>
31 #include <FL/Fl_File_Chooser.H>
32 #include <FL/Fl_Box.H>
33 #include <FL/Fl_Pixmap.H>
34 #include <FL/Fl_Counter.H>
35 #include <FL/filename.H>
36 #include <FL/Fl_Check_Button.H>
37 
38 #include "evCommon.h"
39 #include "evGUIWindow.h"
40 #include "evGUIWizard.h"
41 #include "evGUIFileInput.h"
43 #include "evGUIInstructionBox.h"
44 #include "evGUIProgress.h"
46 
47 
48 #define EVDEFAULT_RATE 4.0
49 
50 
51 typedef struct
52 {
57  double BitRate;
58  unsigned int NumComponentsToCode;
59  unsigned int TileSize;
61 
62 
63 class evGUIEncoder : public evGUIWindow
64 {
65 public:
66  evGUIEncoder(const char *title);
67  virtual ~evGUIEncoder(void);
68 
69  virtual const evString GetClassName(void) const
70  {
71  return(evString("evGUIEncoder"));
72  }
73 
74  void SetController(evMultiProcessController *controller);
75 
76 protected:
77 
78 private:
79 
84  Fl_Counter *BitRate;
85  Fl_Counter *TileSize;
86  Fl_Check_Button *TileSizeButton;
90  // int ExplicitGrid;
91 
93 
94  static int SetupDatasetComponents(evGUIWizardPanel *panel, void *data);
95  static int CheckDatasetComponents(evGUIWizardPanel *panel, void *data);
96  static int StartEncoder(evGUIWizardPanel *panel, void *data);
97  static void UpdateProgress(void *data);
98 
99  static void DatasetInputCallback(Fl_Widget *widget, void *data);
100  static void TileSizeButtonCallback(Fl_Widget *widget, void *data);
101 };
102 
103 
105 {
106  this->Controller = controller;
107 }
108 
109 
111 {
112 }
113 
114 
115 #endif
evString PriorityScheduleFilename
Definition: evGUIEncoder.h:55
Definition: evGUIEncoder.h:51
evGUIWizard * Wizard
Definition: evGUIEncoder.h:80
evGUIFileInput * BitstreamFileInput
Definition: evGUIEncoder.h:87
static void UpdateProgress(void *data)
Definition: evGUIEncoder.h:63
evGUIFileInput * PriorityScheduleFileInput
Definition: evGUIEncoder.h:88
static void DatasetInputCallback(Fl_Widget *widget, void *data)
evString SegmentationMapFilename
Definition: evGUIEncoder.h:54
evGUIEncoder(const char *title)
evString BitstreamFilename
Definition: evGUIEncoder.h:56
Definition: evGUIFileInput.h:38
static void TileSizeButtonCallback(Fl_Widget *widget, void *data)
unsigned int TileSize
Definition: evGUIEncoder.h:59
Definition: evGUIWizardPanel.h:37
Fl_Counter * TileSize
Definition: evGUIEncoder.h:85
static int SetupDatasetComponents(evGUIWizardPanel *panel, void *data)
static int CheckDatasetComponents(evGUIWizardPanel *panel, void *data)
evGUIComponentMultiBrowser * ComponentBrowser
Definition: evGUIEncoder.h:83
Fl_Check_Button * TileSizeButton
Definition: evGUIEncoder.h:86
evMultiProcessController * Controller
Definition: evGUIEncoder.h:92
double BitRate
Definition: evGUIEncoder.h:57
Definition: evGUIWindow.h:33
evGUIProgress * Progress
Definition: evGUIEncoder.h:89
virtual const evString GetClassName(void) const
Definition: evGUIEncoder.h:69
Definition: evGUIComponentMultiBrowser.h:31
Definition: evMultiProcessController.h:122
Fl_Counter * BitRate
Definition: evGUIEncoder.h:84
evGUIFileInput * DatasetFileInput
Definition: evGUIEncoder.h:81
virtual ~evGUIEncoder(void)
Definition: evGUIEncoder.h:110
evString DatasetFilename
Definition: evGUIEncoder.h:53
Definition: evGUIWizard.h:40
Definition: evGUIProgress.h:54
static int StartEncoder(evGUIWizardPanel *panel, void *data)
unsigned int NumComponentsToCode
Definition: evGUIEncoder.h:58
void SetController(evMultiProcessController *controller)
Definition: evGUIEncoder.h:104
evGUIFileInput * SegmentationMapFileInput
Definition: evGUIEncoder.h:82
Definition: evString.h:30