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