KWWidgets
Main Page
Classes
Files
File List
File Members
debian
tmp
usr
include
KWWidgets
debian/tmp/usr/include/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
20
#include "
vtkKWMaterialPropertyWidget.h
"
21
22
class
vtkProperty;
23
24
class
KWWidgets_EXPORT
vtkKWSurfaceMaterialPropertyWidget
:
public
vtkKWMaterialPropertyWidget
25
{
26
public
:
27
static
vtkKWSurfaceMaterialPropertyWidget
*
New
();
28
vtkTypeRevisionMacro(
vtkKWSurfaceMaterialPropertyWidget
,
vtkKWMaterialPropertyWidget
);
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
42
vtkKWSurfaceMaterialPropertyWidget
();
43
~
vtkKWSurfaceMaterialPropertyWidget
();
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
:
58
vtkKWSurfaceMaterialPropertyWidget
(
const
vtkKWSurfaceMaterialPropertyWidget
&);
//Not implemented
59
void
operator=(
const
vtkKWSurfaceMaterialPropertyWidget
&);
//Not implemented
60
};
61
62
#endif
Generated on Sun Apr 28 2013 21:04:58 for KWWidgets by
1.8.3.1