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 =========================================================================*/
35 #ifndef vtkCheckerboardRepresentation_h
36 #define vtkCheckerboardRepresentation_h
37 
38 #include "vtkInteractionWidgetsModule.h" // For export macro
40 
42 class vtkImageActor;
44 
45 
46 class VTKINTERACTIONWIDGETS_EXPORT vtkCheckerboardRepresentation : public vtkWidgetRepresentation
47 {
48 public:
53 
55 
59  void PrintSelf(ostream& os, vtkIndent indent);
61 
63 
67  vtkGetObjectMacro(Checkerboard,vtkImageCheckerboard);
69 
71 
74  void SetImageActor(vtkImageActor *imageActor);
75  vtkGetObjectMacro(ImageActor,vtkImageActor);
77 
79 
84  vtkSetClampMacro(CornerOffset,double,0.0,0.4);
85  vtkGetMacro(CornerOffset,double);
87 
88  enum {
89  TopSlider=0,
92  LeftSlider
93  };
94 
99  void SliderValueChanged(int sliderNum);
100 
102 
111  vtkGetObjectMacro(TopRepresentation,vtkSliderRepresentation3D);
112  vtkGetObjectMacro(RightRepresentation,vtkSliderRepresentation3D);
113  vtkGetObjectMacro(BottomRepresentation,vtkSliderRepresentation3D);
114  vtkGetObjectMacro(LeftRepresentation,vtkSliderRepresentation3D);
116 
118 
121  virtual void BuildRepresentation();
122  virtual void GetActors(vtkPropCollection*);
124  virtual int RenderOverlay(vtkViewport *viewport);
125  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
129 
130 protected:
133 
134  // Instances that this class manipulates
137 
138  // The internal widgets for each side
143 
144  // The corner offset
145  double CornerOffset;
146 
147  // Direction index of image actor's plane normal
149 
150 private:
152  void operator=(const vtkCheckerboardRepresentation&) VTK_DELETE_FUNCTION;
153 };
154 
155 #endif
vtkWidgetRepresentation.h
vtkSliderRepresentation3D
provide the representation for a vtkSliderWidget with a 3D skin
Definition: vtkSliderRepresentation3D.h:56
vtkCheckerboardRepresentation::RightSlider
@ RightSlider
Definition: vtkCheckerboardRepresentation.h:90
vtkImageCheckerboard
show two images at once using a checkboard pattern
Definition: vtkImageCheckerboard.h:37
vtkCheckerboardRepresentation::SetTopRepresentation
void SetTopRepresentation(vtkSliderRepresentation3D *)
Set and get the instances of vtkSliderRepresention used to implement this representation.
vtkCheckerboardRepresentation::~vtkCheckerboardRepresentation
~vtkCheckerboardRepresentation()
vtkCheckerboardRepresentation::RenderOverlay
virtual int RenderOverlay(vtkViewport *viewport)
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition: vtkWidgetRepresentation.h:55
vtkCheckerboardRepresentation::CornerOffset
double CornerOffset
Definition: vtkCheckerboardRepresentation.h:145
vtkCheckerboardRepresentation::ImageActor
vtkImageActor * ImageActor
Definition: vtkCheckerboardRepresentation.h:136
vtkCheckerboardRepresentation::New
static vtkCheckerboardRepresentation * New()
Instantiate class.
vtkCheckerboardRepresentation::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkCheckerboardRepresentation
represent the vtkCheckerboardWidget
Definition: vtkCheckerboardRepresentation.h:47
vtkCheckerboardRepresentation::LeftRepresentation
vtkSliderRepresentation3D * LeftRepresentation
Definition: vtkCheckerboardRepresentation.h:142
vtkCheckerboardRepresentation::vtkCheckerboardRepresentation
vtkCheckerboardRepresentation()
vtkCheckerboardRepresentation::GetActors
virtual void GetActors(vtkPropCollection *)
For some exporters and other other operations we must be able to collect all the actors or volumes.
vtkCheckerboardRepresentation::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkCheckerboardRepresentation::SetRightRepresentation
void SetRightRepresentation(vtkSliderRepresentation3D *)
vtkCheckerboardRepresentation::TopRepresentation
vtkSliderRepresentation3D * TopRepresentation
Definition: vtkCheckerboardRepresentation.h:139
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkCheckerboardRepresentation::SetImageActor
void SetImageActor(vtkImageActor *imageActor)
Specify an instance of vtkImageActor to decorate.
vtkCheckerboardRepresentation::BottomSlider
@ BottomSlider
Definition: vtkCheckerboardRepresentation.h:91
vtkCheckerboardRepresentation::SliderValueChanged
void SliderValueChanged(int sliderNum)
This method is invoked by the vtkCheckerboardWidget() when a value of some slider has changed.
vtkCheckerboardRepresentation::SetCheckerboard
void SetCheckerboard(vtkImageCheckerboard *chkrbrd)
Specify an instance of vtkImageCheckerboard to manipulate.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkCheckerboardRepresentation::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
vtkCheckerboardRepresentation::OrthoAxis
int OrthoAxis
Definition: vtkCheckerboardRepresentation.h:148
vtkCheckerboardRepresentation::SetLeftRepresentation
void SetLeftRepresentation(vtkSliderRepresentation3D *)
vtkCheckerboardRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkImageActor
draw an image in a rendered 3D scene
Definition: vtkImageActor.h:50
vtkCheckerboardRepresentation::Checkerboard
vtkImageCheckerboard * Checkerboard
Definition: vtkCheckerboardRepresentation.h:135
vtkCheckerboardRepresentation::SetBottomRepresentation
void SetBottomRepresentation(vtkSliderRepresentation3D *)
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:39
vtkCheckerboardRepresentation::BottomRepresentation
vtkSliderRepresentation3D * BottomRepresentation
Definition: vtkCheckerboardRepresentation.h:141
vtkCheckerboardRepresentation::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *w)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
vtkCheckerboardRepresentation::BuildRepresentation
virtual void BuildRepresentation()
Methods required by superclass.
vtkCheckerboardRepresentation::RightRepresentation
vtkSliderRepresentation3D * RightRepresentation
Definition: vtkCheckerboardRepresentation.h:140