forked from dgobbi/ToolCursor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvtkOpacityTool.h
57 lines (42 loc) · 1.44 KB
/
vtkOpacityTool.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*=========================================================================
Program: ToolCursor
Module: vtkOpacityTool.h
Copyright (c) 2010 David Gobbi
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkOpacityTool - Adjusts the opacity of an image.
// .SECTION Description
// This class adjusts the Opacity of an image property.
#ifndef __vtkOpacityTool_h
#define __vtkOpacityTool_h
#include "vtkTool.h"
class vtkImageProperty;
class VTK_EXPORT vtkOpacityTool : public vtkTool
{
public:
// Description:
// Instantiate the object.
static vtkOpacityTool *New();
// Description:
// Standard vtkObject methods
vtkTypeMacro(vtkOpacityTool, vtkTool);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// These are the methods that are called when the action takes place.
virtual void StartAction();
virtual void StopAction();
virtual void DoAction();
protected:
vtkOpacityTool();
~vtkOpacityTool();
double StartOpacity;
vtkImageProperty *CurrentImageProperty;
void SetCurrentImageToNthImage(int i);
private:
vtkOpacityTool(const vtkOpacityTool&); //Not implemented
void operator=(const vtkOpacityTool&); //Not implemented
};
#endif