00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00047 #ifndef _ssMultibeamRenderView_h
00048 #define _ssMultibeamRenderView_h
00049
00054 #include "ssMultibeamView.h"
00055
00056 class vtkKWLabel;
00057 class vtkKWPushButton;
00058 class vtkKWRadioButton;
00059 class vtkKWScale;
00060 class vtkKWSplitFrame;
00061 class vtkLabeledFrame;
00062 class vtkMultiProcessController;
00063 class ssMultibeamApplication;
00064 class vtkPVCameraIcon;
00065 class vtkPVData;
00066 class vtkPVInteractorStyleControl;
00067 class ssMultibeamRenderViewObserver;
00068 class vtkPVSource;
00069 class vtkPVSourceList;
00070 class vtkPVSourcesNavigationWindow;
00071 class vtkPVTreeComposite;
00072 class ssMultibeamWindow;
00073 class vtkPVRenderModuleUI;
00074 class vtkActor;
00075 class vtkPolyDataMapper;
00076 class vtkPolyData;
00077
00078 #define VTK_PV_VIEW_MENU_LABEL " 3D View Properties"
00079
00083 class VTK_EXPORT ssMultibeamRenderView : public ssMultibeamView
00084 {
00085
00086 public:
00092 static ssMultibeamRenderView* New();
00093
00097 vtkTypeMacro(ssMultibeamRenderView, ssMultibeamView);
00098
00099
00105 void PrintSelf(ostream& os, vtkIndent indent);
00106
00111 void CreateRenderObjects(ssMultibeamApplication *mbApp);
00112
00116 virtual void CreateViewProperties();
00117
00123 virtual void Create(vtkKWApplication *app, const char *args);
00124
00129 vtkPolyData *GetInput() const;
00130
00134 void ResetCamera();
00135
00136
00137 #if 0
00138
00150
00151
00152
00153 #endif
00154
00161 void StandardViewCallback(float x, float y, float z);
00162
00166 virtual void SaveAsImage() { this->Superclass::SaveAsImage(); }
00167
00172 virtual void SaveAsImage(const char* filename) ;
00173
00178 ssMultibeamApplication *GetMBApplication();
00179
00183 void Render();
00184
00188 void EventuallyRender();
00189
00193 void EventuallyRenderCallBack();
00194
00200 void UpdateTclButAvoidRendering();
00201
00205 void Exposed();
00206
00210 void Configured();
00211
00216 vtkRenderer *GetRenderer();
00217
00222 vtkRenderWindow *GetRenderWindow();
00223
00227 void AddBindings();
00228
00233 void SaveRendererState(ofstream *file);
00234
00239 void SaveRenderWindowState(ofstream *file);
00240
00247 void SetBackgroundColor(float r, float g, float b);
00248
00249
00250 #if 0
00251
00257
00258
00259
00260 #endif
00261
00266 virtual void Close();
00267
00272 void PrepareForDelete();
00273
00277
00278
00283 ssMultibeamWindow *GetMBWindow();
00284
00289 int* GetRenderWindowSize();
00290
00307 void ExecuteEvent(vtkObject* wdg, unsigned long event, void* calldata);
00308
00309
00310 protected:
00311
00315 ssMultibeamRenderView();
00316
00320 virtual ~ssMultibeamRenderView();
00321
00322 vtkPVRenderModuleUI *RenderModuleUI;
00323
00324 int EventuallyRenderFlag;
00325 char *RenderPending;
00326 vtkSetStringMacro(RenderPending);
00327
00328
00329 vtkKWWidget *TopLevelRenderWindow;
00330
00331 vtkPVInteractorStyleControl *ManipulatorControl2D;
00332 vtkPVInteractorStyleControl *ManipulatorControl3D;
00333
00334 ssMultibeamRenderViewObserver *Observer;
00335
00340 vtkActor *dataActor;
00341
00345 vtkPolyDataMapper *dataMapper;
00346
00347
00348 private:
00349
00353 ssMultibeamRenderView(const ssMultibeamRenderView&);
00354 void operator=(const ssMultibeamRenderView&);
00355
00356 bool alreadyCreated;
00357 };
00358
00359
00360
00361
00362
00363
00364
00365
00366
00367
00368
00369
00370
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383
00384
00385
00386
00387
00388
00389
00390
00391
00392
00393
00394
00395
00396
00400 #endif