KWWidgets
vtkKWSurfaceMaterialPropertyWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Module: $RCSfile: vtkKWSurfaceMaterialPropertyWidget.h,v $
4 
5  Copyright (c) Kitware, Inc.
6  All rights reserved.
7  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
14 // .NAME vtkKWSurfaceMaterialPropertyWidget - widget to control the material property of a polygonal surface (vtkProperty)
15 // .SECTION Description
16 
17 #ifndef __vtkKWSurfaceMaterialPropertyWidget_h
18 #define __vtkKWSurfaceMaterialPropertyWidget_h
19 
21 
22 class vtkProperty;
23 
25 {
26 public:
29  void PrintSelf(ostream& os, vtkIndent indent);
30 
31  // Description:
32  // Set/Get the volume property to edit with this widget
33  virtual void SetProperty(vtkProperty *prop);
34  vtkGetObjectMacro(Property, vtkProperty);
35 
36  // Description:
37  // Refresh the interface given the value extracted from the current property.
38  virtual void Update();
39 
40 protected:
41 
44 
45  vtkProperty *Property;
46 
47  // Description:
48  // Update the property from the interface values or a preset
49  // Return 1 if the property was modified, 0 otherwise
50  virtual int UpdatePropertyFromInterface();
51  virtual int UpdatePropertyFromPreset(const Preset *preset);
52 
53  // Description:
54  // Send an event representing the state of the widget
55  virtual void SendStateEvent(int event);
56 
57 private:
59  void operator=(const vtkKWSurfaceMaterialPropertyWidget&); //Not implemented
60 };
61 
62 #endif