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

GUI/Widgets/vtkKWScalarComponentSelectionWidget.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWScalarComponentSelectionWidget.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 =========================================================================*/
00020 #ifndef __vtkKWScalarComponentSelectionWidget_h
00021 #define __vtkKWScalarComponentSelectionWidget_h
00022 
00023 #include "vtkKWCompositeWidget.h"
00024 
00025 class vtkKWMenuButtonWithLabel;
00026 
00027 class KWWIDGETS_EXPORT vtkKWScalarComponentSelectionWidget : public vtkKWCompositeWidget
00028 {
00029 public:
00030   static vtkKWScalarComponentSelectionWidget* New();
00031   void PrintSelf(ostream& os, vtkIndent indent);
00032   vtkTypeRevisionMacro(vtkKWScalarComponentSelectionWidget,vtkKWCompositeWidget);
00033 
00035   virtual void Create(vtkKWApplication *app);
00036 
00038 
00039   virtual void SetIndependentComponents(int);
00040   vtkGetMacro(IndependentComponents, int);
00041   vtkBooleanMacro(IndependentComponents, int);
00043   
00045 
00046   virtual void SetNumberOfComponents(int);
00047   vtkGetMacro(NumberOfComponents, int);
00049 
00051 
00053   virtual void SetSelectedComponent(int);
00054   vtkGetMacro(SelectedComponent, int);
00056 
00058 
00059   virtual void SetAllowComponentSelection(int);
00060   vtkBooleanMacro(AllowComponentSelection, int);
00061   vtkGetMacro(AllowComponentSelection, int);
00063 
00065   virtual void Update();
00066 
00068 
00070   virtual void SetSelectedComponentChangedCommand(
00071     vtkObject* object, const char *method);
00072   virtual void InvokeSelectedComponentChangedCommand();
00074 
00076   virtual void SelectedComponentCallback(int);
00077 
00079 
00080   vtkGetObjectMacro(SelectedComponentOptionMenu, vtkKWMenuButtonWithLabel);
00082  
00089   virtual void UpdateEnableState();
00090 
00091 protected:
00092   vtkKWScalarComponentSelectionWidget();
00093   ~vtkKWScalarComponentSelectionWidget();
00094 
00095   int IndependentComponents;
00096   int NumberOfComponents;
00097   int SelectedComponent;
00098   int AllowComponentSelection;
00099 
00100   // Commands
00101 
00102   char  *SelectedComponentChangedCommand;
00103 
00104   // GUI
00105 
00106   vtkKWMenuButtonWithLabel *SelectedComponentOptionMenu;
00107 
00108   // Pack
00109   virtual void Pack();
00110 
00111 private:
00112   vtkKWScalarComponentSelectionWidget(const vtkKWScalarComponentSelectionWidget&); // Not implemented
00113   void operator=(const vtkKWScalarComponentSelectionWidget&); // Not implemented
00114 };
00115 
00116 #endif

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