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

GUI/Client/vtkPVAttributeEditor.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkPVAttributeEditor.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 __vtkPVAttributeEditor_h
00022 #define __vtkPVAttributeEditor_h
00023 
00024 #include "vtkPVSource.h"
00025 
00026 class vtkCallbackCommand;
00027 class vtkKWPushButton;
00028 
00029 class VTK_EXPORT vtkPVAttributeEditor : public vtkPVSource
00030 {
00031 public:
00032   static vtkPVAttributeEditor* New();
00033   vtkTypeRevisionMacro(vtkPVAttributeEditor, vtkPVSource);
00034   void PrintSelf(ostream& os, vtkIndent indent);
00035     
00038   virtual void CreateProperties();
00039 
00043   void PickMethodObserver();
00044  
00046 
00048   void OnChar();
00049   void OnTimestepChange();
00050   vtkGetMacro(EditedFlag,int);
00051   vtkSetMacro(EditedFlag,int);
00052   vtkSetMacro(IsScalingFlag,int);
00053   vtkSetMacro(IsMovingFlag,int);
00054   vtkSetMacro(ForceEdit,int);
00055   vtkSetMacro(ForceNoEdit,int);
00056   vtkSetMacro(PassSourceInput,int);
00058 
00060 
00061   static void ProcessEvents(vtkObject* object, 
00062                             unsigned long event,
00063                             void* clientdata, 
00064                             void* calldata);
00066 
00067 protected:
00068   vtkPVAttributeEditor();
00069   ~vtkPVAttributeEditor();
00070 
00071   // The real AcceptCallback method.
00072   virtual void AcceptCallbackInternal();  
00073 
00074   virtual void Select();
00075   void UpdateGUI();
00076 
00077   vtkClientServerID WriterID;
00078 
00079   // Listens for keyboard and mouse events
00080   vtkCallbackCommand* EventCallbackCommand; 
00081 
00082   int IsScalingFlag;
00083   int IsMovingFlag;
00084   int EditedFlag;
00085   int ForceEdit;
00086   int ForceNoEdit;
00087   int PassSourceInput;
00088 
00089   vtkKWPushButton *SaveButton;
00090 
00091   vtkPVAttributeEditor(const vtkPVAttributeEditor&); // Not implemented
00092   void operator=(const vtkPVAttributeEditor&); // Not implemented
00093 };
00094 
00095 #endif

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