VTK
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 "vtkInteractionWidgetsModule.h" // For export macro
39 
41 class vtkImageActor;
43 
44 
46 {
47 public:
50 
52 
54  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
59  void SetCheckerboard(vtkImageCheckerboard *chkrbrd);
60  vtkGetObjectMacro(Checkerboard,vtkImageCheckerboard);
62 
64 
65  void SetImageActor(vtkImageActor *imageActor);
66  vtkGetObjectMacro(ImageActor,vtkImageActor);
68 
70 
73  vtkSetClampMacro(CornerOffset,double,0.0,0.4);
74  vtkGetMacro(CornerOffset,double);
76 
77 //BTX
78  enum {
79  TopSlider=0,
82  LeftSlider
83  };
84 //ETX
85 
88  void SliderValueChanged(int sliderNum);
89 
91 
94  void SetTopRepresentation(vtkSliderRepresentation3D*);
95  void SetRightRepresentation(vtkSliderRepresentation3D*);
96  void SetBottomRepresentation(vtkSliderRepresentation3D*);
97  void SetLeftRepresentation(vtkSliderRepresentation3D*);
98  vtkGetObjectMacro(TopRepresentation,vtkSliderRepresentation3D);
99  vtkGetObjectMacro(RightRepresentation,vtkSliderRepresentation3D);
100  vtkGetObjectMacro(BottomRepresentation,vtkSliderRepresentation3D);
101  vtkGetObjectMacro(LeftRepresentation,vtkSliderRepresentation3D);
103 
105 
106  virtual void BuildRepresentation();
107  virtual void GetActors(vtkPropCollection*);
108  virtual void ReleaseGraphicsResources(vtkWindow *w);
109  virtual int RenderOverlay(vtkViewport *viewport);
110  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
111  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
112  virtual int HasTranslucentPolygonalGeometry();
114 
115 protected:
118 
119  // Instances that this class manipulates
122 
123  // The internal widgets for each side
128 
129  // The corner offset
130  double CornerOffset;
131 
132  // Direction index of image actor's plane normal
134 
135 private:
137  void operator=(const vtkCheckerboardRepresentation&); //Not implemented
138 };
139 
140 #endif
virtual int RenderOverlay(vtkViewport *vtkNotUsed(viewport))
vtkSliderRepresentation3D * BottomRepresentation
vtkSliderRepresentation3D * RightRepresentation
abstract specification for Viewports
Definition: vtkViewport.h:46
virtual void ReleaseGraphicsResources(vtkWindow *)
abstract class defines interface between the widget and widget representation classes ...
virtual void BuildRepresentation()=0
a list of Props
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
#define VTKINTERACTIONWIDGETS_EXPORT
vtkSliderRepresentation3D * LeftRepresentation
vtkSliderRepresentation3D * TopRepresentation
draw an image in a rendered 3D scene
Definition: vtkImageActor.h:48
virtual int HasTranslucentPolygonalGeometry()
a simple class to control print indentation
Definition: vtkIndent.h:38
provide the representation for a vtkSliderWidget with a 3D skin
virtual void GetActors(vtkPropCollection *)
virtual int RenderOpaqueGeometry(vtkViewport *vtkNotUsed(viewport))
show two images at once using a checkboard pattern
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *vtkNotUsed(viewport))
represent the vtkCheckerboardWidget