00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00021 #ifndef __vtkSMScalarBarWidgetProxy_h
00022 #define __vtkSMScalarBarWidgetProxy_h
00023
00024 #include "vtkSMDisplayProxy.h"
00025 class vtkSMScalarBarWidgetProxyObserver;
00026 class vtkScalarBarWidget;
00027
00028
00029 class VTK_EXPORT vtkSMScalarBarWidgetProxy : public vtkSMDisplayProxy
00030 {
00031 public:
00032 static vtkSMScalarBarWidgetProxy* New();
00033 vtkTypeRevisionMacro(vtkSMScalarBarWidgetProxy, vtkSMDisplayProxy);
00034 void PrintSelf(ostream& os, vtkIndent indent);
00035
00037
00040 virtual void SetVisibility(int visible);
00041 vtkGetMacro(Visibility, int);
00043
00045
00046 virtual void AddToRenderModule(vtkSMRenderModuleProxy*);
00047 virtual void RemoveFromRenderModule(vtkSMRenderModuleProxy*);
00049
00051 virtual void SaveInBatchScript(ofstream* file);
00052
00053 protected:
00054
00055 vtkSMScalarBarWidgetProxy();
00056 ~vtkSMScalarBarWidgetProxy();
00057
00058
00059 virtual void CreateVTKObjects(int numObjects);
00060
00061 void ExecuteEvent(vtkObject*obj, unsigned long event, void*p);
00062
00063 int Visibility;
00064 vtkSMProxy* ScalarBarActorProxy;
00065 vtkScalarBarWidget* ScalarBarWidget;
00066
00067 friend class vtkSMScalarBarWidgetProxyObserver;
00068 vtkSMScalarBarWidgetProxyObserver* Observer;
00069
00070 vtkSMRenderModuleProxy* RenderModuleProxy;
00071 private:
00072 vtkSMScalarBarWidgetProxy(const vtkSMScalarBarWidgetProxy&);
00073 void operator=(const vtkSMScalarBarWidgetProxy&);
00074
00075 };
00076
00077 #endif
00078