• Main Page
  • Classes
  • Files
  • Directories
  • File List
  • File Members

vtkKWSurfaceMaterialPropertyWidget.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWSurfaceMaterialPropertyWidget.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 =========================================================================*/
00014 // .NAME vtkKWSurfaceMaterialPropertyWidget - widget to control the material property of a polygonal surface (vtkProperty)
00015 // .SECTION Description
00016 
00017 #ifndef __vtkKWSurfaceMaterialPropertyWidget_h
00018 #define __vtkKWSurfaceMaterialPropertyWidget_h
00019 
00020 #include "vtkKWMaterialPropertyWidget.h"
00021 
00022 class vtkProperty;
00023 
00024 class KWWidgets_EXPORT vtkKWSurfaceMaterialPropertyWidget : public vtkKWMaterialPropertyWidget
00025 {
00026 public:
00027   static vtkKWSurfaceMaterialPropertyWidget *New();
00028   vtkTypeRevisionMacro(vtkKWSurfaceMaterialPropertyWidget, vtkKWMaterialPropertyWidget);
00029   void PrintSelf(ostream& os, vtkIndent indent);
00030   
00031   // Description:
00032   // Set/Get the volume property to edit with this widget
00033   virtual void SetProperty(vtkProperty *prop);
00034   vtkGetObjectMacro(Property, vtkProperty);
00035 
00036   // Description:
00037   // Refresh the interface given the value extracted from the current property.
00038   virtual void Update();
00039 
00040 protected:
00041 
00042   vtkKWSurfaceMaterialPropertyWidget();
00043   ~vtkKWSurfaceMaterialPropertyWidget();
00044   
00045   vtkProperty *Property;
00046 
00047   // Description:
00048   // Update the property from the interface values or a preset
00049   // Return 1 if the property was modified, 0 otherwise
00050   virtual int UpdatePropertyFromInterface();
00051   virtual int UpdatePropertyFromPreset(const Preset *preset);
00052 
00053   // Description:
00054   // Send an event representing the state of the widget
00055   virtual void SendStateEvent(int event);
00056 
00057 private:
00058   vtkKWSurfaceMaterialPropertyWidget(const vtkKWSurfaceMaterialPropertyWidget&);  //Not implemented
00059   void operator=(const vtkKWSurfaceMaterialPropertyWidget&);  //Not implemented
00060 };
00061 
00062 #endif

Generated on Mon Aug 16 2010 18:58:47 for KWWidgets by  doxygen 1.7.1