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

GUI/Client/vtkPVSinusoidKeyFrame.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkPVSinusoidKeyFrame.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 __vtkPVSinusoidKeyFrame_h
00022 #define __vtkPVSinusoidKeyFrame_h
00023 
00024 #include "vtkPVPropertyKeyFrame.h"
00025 
00026 class vtkKWThumbWheel;
00027 class vtkKWLabel;
00028 
00029 class VTK_EXPORT vtkPVSinusoidKeyFrame : public vtkPVPropertyKeyFrame
00030 {
00031 public:
00032   static vtkPVSinusoidKeyFrame* New();
00033   vtkTypeRevisionMacro(vtkPVSinusoidKeyFrame, vtkPVPropertyKeyFrame);
00034   void PrintSelf(ostream& os, vtkIndent indent);
00035 
00036   void FrequencyChangedCallback();
00037   void PhaseChangedCallback();
00038   void OffsetChangedCallback();
00039 
00040   void SetFrequency(double base);
00041   void SetFrequencyWithTrace(double f);
00042   double GetFrequency();
00043   
00044   void SetPhase(double v);
00045   void SetPhaseWithTrace(double p);
00046   double GetPhase();
00047   
00048   void SetOffsetWithTrace(double o);
00049   void SetOffset(double v);
00050   double GetOffset();
00051 
00052   virtual void SaveState(ofstream* file);
00053   virtual void UpdateEnableState();
00054 protected:
00055   vtkPVSinusoidKeyFrame();
00056   ~vtkPVSinusoidKeyFrame();
00057 
00058   virtual void ChildCreate(vtkKWApplication* app);
00059 
00060   vtkKWLabel* PhaseLabel;
00061   vtkKWThumbWheel* PhaseThumbWheel;
00062 
00063   vtkKWLabel* FrequencyLabel;
00064   vtkKWThumbWheel* FrequencyThumbWheel;
00065 
00066   vtkKWLabel* OffsetLabel;
00067   vtkKWThumbWheel* OffsetThumbWheel;
00068 
00069   virtual void UpdateValuesFromProxy();
00070 private:
00071   vtkPVSinusoidKeyFrame(const vtkPVSinusoidKeyFrame&); // Not implemented.
00072   void operator=(const vtkPVSinusoidKeyFrame&); // Not implemented.
00073   
00074 };
00075 
00076 #endif

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