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);
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);
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
vtkProp3DButtonRepresentation::GetButtonProp
vtkProp3D * GetButtonProp(int i)
vtkProp3DButtonRepresentation::Follower
vtkProp3DFollower * Follower
Definition: vtkProp3DButtonRepresentation.h:114
vtkProp3DButtonRepresentation::SetState
virtual void SetState(int state)
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:43
vtkProp3DButtonRepresentation::~vtkProp3DButtonRepresentation
~vtkProp3DButtonRepresentation()
vtkProp3DButtonRepresentation::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
vtkProp3DButtonRepresentation::ShallowCopy
virtual void ShallowCopy(vtkProp *prop)
vtkProp3DButtonRepresentation::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
vtkProp3DButtonRepresentation::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkInteractionWidgetsModule.h
vtkButtonRepresentation.h
vtkProp3DFollower
a vtkProp3D that always faces the camera
Definition: vtkProp3DFollower.h:47
vtkProp3DButtonRepresentation::RenderVolumetricGeometry
virtual int RenderVolumetricGeometry(vtkViewport *)
vtkButtonRepresentation
abstract class defines the representation for a vtkButtonWidget
Definition: vtkButtonRepresentation.h:48
vtkProp3DButtonRepresentation::ComputeInteractionState
virtual int ComputeInteractionState(int X, int Y, int modify=0)
vtkProp3DButtonRepresentation::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *)
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkProp3DButtonRepresentation::GetBounds
virtual double * GetBounds()
vtkProp3DButtonRepresentation::SetButtonProp
void SetButtonProp(int i, vtkProp3D *prop)
vtkProp3DButtonRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkProp3DButtonRepresentation::vtkProp3DButtonRepresentation
vtkProp3DButtonRepresentation()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkProp3DButtonRepresentation::New
static vtkProp3DButtonRepresentation * New()
vtkProp3DButtonRepresentation
defines a representation for a vtkButtonWidget
Definition: vtkProp3DButtonRepresentation.h:54
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkProp3DButtonRepresentation::PropArray
vtkPropArray * PropArray
Definition: vtkProp3DButtonRepresentation.h:119
vtkPropPicker
pick an actor/prop using graphics hardware
Definition: vtkPropPicker.h:45
vtkProp3DButtonRepresentation::FollowCamera
int FollowCamera
Definition: vtkProp3DButtonRepresentation.h:115
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkProp3DButtonRepresentation::BuildRepresentation
virtual void BuildRepresentation()
vtkProp3DButtonRepresentation::Picker
vtkPropPicker * Picker
Definition: vtkProp3DButtonRepresentation.h:122
vtkProp3DButtonRepresentation::GetActors
virtual void GetActors(vtkPropCollection *pc)
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkProp3DButtonRepresentation::RegisterPickers
virtual void RegisterPickers()
vtkProp3DButtonRepresentation::PlaceWidget
virtual void PlaceWidget(double bounds[6])
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkProp3DButtonRepresentation::CurrentProp
vtkProp3D * CurrentProp
Definition: vtkProp3DButtonRepresentation.h:111