00001 /*========================================================================= 00002 00003 Module: $RCSfile: vtkKWSeparator.h,v $ 00004 00005 Copyright (c) Kitware, Inc. 00006 All rights reserved. 00007 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00008 00009 This software is distributed WITHOUT ANY WARRANTY; without even 00010 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00011 PURPOSE. See the above copyright notice for more information. 00012 00013 =========================================================================*/ 00023 #ifndef __vtkKWSeparator_h 00024 #define __vtkKWSeparator_h 00025 00026 #include "vtkKWFrame.h" 00027 00028 class KWWidgets_EXPORT vtkKWSeparator : public vtkKWFrame 00029 { 00030 // @cond section_public 00031 public: 00032 static vtkKWSeparator* New(); 00033 vtkTypeRevisionMacro(vtkKWSeparator, vtkKWFrame); 00034 void PrintSelf(ostream& os, vtkIndent indent); 00035 00037 00038 enum 00039 { 00040 OrientationHorizontal = 0, 00041 OrientationVertical = 1 00042 }; 00043 //ETX 00044 virtual void SetOrientation(int); 00045 vtkGetMacro(Orientation, int); 00046 virtual void SetOrientationToHorizontal() 00047 { this->SetOrientation(vtkKWSeparator::OrientationHorizontal); }; 00048 virtual void SetOrientationToVertical() 00049 { this->SetOrientation(vtkKWSeparator::OrientationVertical); }; 00051 00053 00055 virtual void SetThickness(int); 00056 vtkGetMacro(Thickness, int); 00058 00059 // @endcond 00060 // @cond section_protected 00061 protected: 00062 vtkKWSeparator(); 00063 ~vtkKWSeparator() {}; 00064 00066 virtual void CreateWidget(); 00067 00068 int Orientation; 00069 int Thickness; 00070 00072 virtual void UpdateAspect(); 00073 00074 // @endcond 00075 // @cond section_private 00076 private: 00077 vtkKWSeparator(const vtkKWSeparator&); // Not implemented 00078 void operator=(const vtkKWSeparator&); // Not implemented 00079 }; 00080 00081 00082 #endif 00083 00084 00085 00086 // @endcond
1.6.1