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 
46 
47 class vtkPropPicker;
48 class vtkProp3D;
49 class vtkProp3DFollower;
50 class vtkPropArray; //PIMPLd
51 
53 {
54 public:
57 
59 
61  void PrintSelf(ostream& os, vtkIndent indent);
63 
65 
67  void SetButtonProp(int i, vtkProp3D *prop);
68  vtkProp3D *GetButtonProp(int i);
70 
72 
74  vtkSetMacro(FollowCamera,int);
75  vtkGetMacro(FollowCamera,int);
76  vtkBooleanMacro(FollowCamera,int);
78 
80  virtual void SetState(int state);
81 
83 
85  virtual int ComputeInteractionState(int X, int Y, int modify=0);
86  virtual void BuildRepresentation();
88 
91  virtual void PlaceWidget(double bounds[6]);
92 
94 
95  virtual void ShallowCopy(vtkProp *prop);
96  virtual double *GetBounds();
97  virtual void GetActors(vtkPropCollection *pc);
98  virtual void ReleaseGraphicsResources(vtkWindow*);
99  virtual int RenderOpaqueGeometry(vtkViewport*);
102  virtual int HasTranslucentPolygonalGeometry();
104 
105 protected:
108 
109  // The current vtkProp3D used to represent the button
111 
112  // Follow the camera if requested
115 
116  // Keep track of the props associated with the N
117  // states of the button. This is a PIMPLd stl map.
118  vtkPropArray *PropArray;
119 
120  // For picking the button
122 
123 private:
125  void operator=(const vtkProp3DButtonRepresentation&); //Not implemented
126 };
127 
128 #endif