VTK
vtkProp3DButtonRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkProp3DButtonRepresentation.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 =========================================================================*/
42 #ifndef vtkProp3DButtonRepresentation_h
43 #define vtkProp3DButtonRepresentation_h
44 
45 #include "vtkInteractionWidgetsModule.h" // For export macro
47 
48 class vtkPropPicker;
49 class vtkProp3D;
50 class vtkProp3DFollower;
51 class vtkPropArray; //PIMPLd
52 
54 {
55 public:
58 
60 
62  void PrintSelf(ostream& os, vtkIndent indent);
64 
66 
68  void SetButtonProp(int i, vtkProp3D *prop);
69  vtkProp3D *GetButtonProp(int i);
71 
73 
75  vtkSetMacro(FollowCamera,int);
76  vtkGetMacro(FollowCamera,int);
77  vtkBooleanMacro(FollowCamera,int);
79 
81  virtual void SetState(int state);
82 
84 
86  virtual int ComputeInteractionState(int X, int Y, int modify=0);
87  virtual void BuildRepresentation();
89 
92  virtual void PlaceWidget(double bounds[6]);
93 
95 
96  virtual void ShallowCopy(vtkProp *prop);
97  virtual double *GetBounds();
98  virtual void GetActors(vtkPropCollection *pc);
99  virtual void ReleaseGraphicsResources(vtkWindow*);
100  virtual int RenderOpaqueGeometry(vtkViewport*);
103  virtual int HasTranslucentPolygonalGeometry();
105 
106 protected:
109 
110  // The current vtkProp3D used to represent the button
112 
113  // Follow the camera if requested
116 
117  // Keep track of the props associated with the N
118  // states of the button. This is a PIMPLd stl map.
119  vtkPropArray *PropArray;
120 
121  // For picking the button
123 
124  // Register internal Pickers within PickingManager
125  virtual void RegisterPickers();
126 
127 private:
129  void operator=(const vtkProp3DButtonRepresentation&); //Not implemented
130 };
131 
132 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
virtual void SetState(int state)
virtual int ComputeInteractionState(int X, int Y, int modify=0)
pick an actor/prop using graphics hardware
Definition: vtkPropPicker.h:44
abstract specification for Viewports
Definition: vtkViewport.h:46
virtual void ShallowCopy(vtkProp *prop)
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:42
defines a representation for a vtkButtonWidget
virtual void ReleaseGraphicsResources(vtkWindow *)
virtual void BuildRepresentation()=0
a list of Props
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
#define VTKINTERACTIONWIDGETS_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
virtual int HasTranslucentPolygonalGeometry()
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void RegisterPickers()
a vtkProp3D that always faces the camera
abstract class defines the representation for a vtkButtonWidget
virtual void GetActors(vtkPropCollection *)
virtual int RenderVolumetricGeometry(vtkViewport *vtkNotUsed(viewport))
virtual int RenderOpaqueGeometry(vtkViewport *vtkNotUsed(viewport))
virtual void PlaceWidget(double *vtkNotUsed(bounds[6]))
static vtkObject * New()
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *vtkNotUsed(viewport))