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 
38 
40 class vtkImageActor;
42 
43 
45 {
46 public:
49 
51 
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,
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:
117 
118  // Instances that this class manipulates
121 
122  // The internal widgets for each side
127 
128  // The corner offset
129  double CornerOffset;
130 
131  // Direction index of image actor's plane normal
133 
134 private:
136  void operator=(const vtkCheckerboardRepresentation&); //Not implemented
137 };
138 
139 #endif
virtual int RenderOverlay(vtkViewport *vtkNotUsed(viewport))
vtkSliderRepresentation3D * BottomRepresentation
vtkSliderRepresentation3D * RightRepresentation
abstract specification for Viewports
Definition: vtkViewport.h:45
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:35
vtkSliderRepresentation3D * LeftRepresentation
vtkSliderRepresentation3D * TopRepresentation
draw an image (data & properties) in a rendered 3D scene
Definition: vtkImageActor.h:49
virtual int HasTranslucentPolygonalGeometry()
a simple class to control print indentation
Definition: vtkIndent.h:37
provide the representation for a vtkSliderWidget with a 3D skin
#define VTK_WIDGETS_EXPORT
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