VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Widgets
vtkCheckerboardRepresentation.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkCheckerboardRepresentation.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
34
#ifndef __vtkCheckerboardRepresentation_h
35
#define __vtkCheckerboardRepresentation_h
36
37
#include "
vtkWidgetRepresentation.h
"
38
39
class
vtkImageCheckerboard
;
40
class
vtkImageActor
;
41
class
vtkSliderRepresentation3D
;
42
43
44
class
VTK_WIDGETS_EXPORT
vtkCheckerboardRepresentation
:
public
vtkWidgetRepresentation
45
{
46
public
:
48
static
vtkCheckerboardRepresentation
*
New
();
49
51
52
vtkTypeMacro(
vtkCheckerboardRepresentation
,
vtkWidgetRepresentation
);
53
void
PrintSelf
(ostream& os,
vtkIndent
indent);
55
57
58
void
SetCheckerboard(
vtkImageCheckerboard
*chkrbrd);
59
vtkGetObjectMacro(Checkerboard,
vtkImageCheckerboard
);
61
63
64
void
SetImageActor(
vtkImageActor
*imageActor);
65
vtkGetObjectMacro(ImageActor,
vtkImageActor
);
67
69
72
vtkSetClampMacro(CornerOffset,
double
,0.0,0.4);
73
vtkGetMacro(CornerOffset,
double
);
75
76
//BTX
77
enum
{
78
TopSlider=0,
79
RightSlider
,
80
BottomSlider
,
81
LeftSlider
82
};
83
//ETX
84
87
void
SliderValueChanged(
int
sliderNum);
88
90
93
void
SetTopRepresentation(
vtkSliderRepresentation3D
*);
94
void
SetRightRepresentation(
vtkSliderRepresentation3D
*);
95
void
SetBottomRepresentation(
vtkSliderRepresentation3D
*);
96
void
SetLeftRepresentation(
vtkSliderRepresentation3D
*);
97
vtkGetObjectMacro(TopRepresentation,
vtkSliderRepresentation3D
);
98
vtkGetObjectMacro(RightRepresentation,
vtkSliderRepresentation3D
);
99
vtkGetObjectMacro(BottomRepresentation,
vtkSliderRepresentation3D
);
100
vtkGetObjectMacro(LeftRepresentation,
vtkSliderRepresentation3D
);
102
104
105
virtual
void
BuildRepresentation
();
106
virtual
void
GetActors
(
vtkPropCollection
*);
107
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*w);
108
virtual
int
RenderOverlay
(
vtkViewport
*viewport);
109
virtual
int
RenderOpaqueGeometry
(
vtkViewport
*viewport);
110
virtual
int
RenderTranslucentPolygonalGeometry
(
vtkViewport
*viewport);
111
virtual
int
HasTranslucentPolygonalGeometry
();
113
114
protected
:
115
vtkCheckerboardRepresentation
();
116
~
vtkCheckerboardRepresentation
();
117
118
// Instances that this class manipulates
119
vtkImageCheckerboard
*
Checkerboard
;
120
vtkImageActor
*
ImageActor
;
121
122
// The internal widgets for each side
123
vtkSliderRepresentation3D
*
TopRepresentation
;
124
vtkSliderRepresentation3D
*
RightRepresentation
;
125
vtkSliderRepresentation3D
*
BottomRepresentation
;
126
vtkSliderRepresentation3D
*
LeftRepresentation
;
127
128
// The corner offset
129
double
CornerOffset
;
130
131
// Direction index of image actor's plane normal
132
int
OrthoAxis
;
133
134
private
:
135
vtkCheckerboardRepresentation
(
const
vtkCheckerboardRepresentation
&);
//Not implemented
136
void
operator=(
const
vtkCheckerboardRepresentation
&);
//Not implemented
137
};
138
139
#endif
Generated on Wed Nov 21 2012 21:34:08 for VTK by
1.8.2