Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

GUI/Client/vtkKWBoundsDisplay.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkKWBoundsDisplay.h,v $
00005 
00006   Copyright (c) Kitware, Inc.
00007   All rights reserved.
00008   See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
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&); // Not implemented
00078   void operator=(const vtkKWBoundsDisplay&); // Not implemented
00079 };
00080 
00081 
00082 #endif

Generated on Tue May 30 12:31:38 2006 for ParaView by doxygen 1.3.5