00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00021 #ifndef __vtkKWBoundsDisplay_h
00022 #define __vtkKWBoundsDisplay_h
00023
00024 #include "vtkKWFrameWithLabel.h"
00025
00026 class vtkKWApplication;
00027 class vtkKWLabel;
00028
00029 class VTK_EXPORT vtkKWBoundsDisplay : public vtkKWFrameWithLabel
00030 {
00031 public:
00032 static vtkKWBoundsDisplay* New();
00033 vtkTypeRevisionMacro(vtkKWBoundsDisplay, vtkKWFrameWithLabel);
00034 void PrintSelf(ostream& os, vtkIndent indent);
00035
00037 virtual void Create(vtkKWApplication *app);
00038
00040
00041 void SetBounds(double bounds[6]);
00042 void SetExtent(int ext[6]);
00043 vtkGetVector6Macro(Bounds, double);
00045
00047
00051 void SetModeToExtent() {this->ExtentMode = 1; this->UpdateWidgets();}
00052 void SetModeToBounds() {this->ExtentMode = 0; this->UpdateWidgets();}
00054
00061 virtual void UpdateEnableState();
00062
00063 protected:
00064 vtkKWBoundsDisplay();
00065 ~vtkKWBoundsDisplay();
00066
00067 void UpdateWidgets();
00068
00069 vtkKWLabel *XRangeLabel;
00070 vtkKWLabel *YRangeLabel;
00071 vtkKWLabel *ZRangeLabel;
00072
00073 double Bounds[6];
00074 int Extent[6];
00075 int ExtentMode;
00076
00077 vtkKWBoundsDisplay(const vtkKWBoundsDisplay&);
00078 void operator=(const vtkKWBoundsDisplay&);
00079 };
00080
00081
00082 #endif