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 =========================================================================*/
43 #ifndef vtkProp3DButtonRepresentation_h
44 #define vtkProp3DButtonRepresentation_h
45 
46 #include "vtkInteractionWidgetsModule.h" // For export macro
48 
49 class vtkPropPicker;
50 class vtkProp3D;
51 class vtkProp3DFollower;
52 class vtkPropArray; //PIMPLd
53 
54 class VTKINTERACTIONWIDGETS_EXPORT vtkProp3DButtonRepresentation : public vtkButtonRepresentation
55 {
56 public:
61 
63 
67  void PrintSelf(ostream& os, vtkIndent indent);
69 
71 
75  void SetButtonProp(int i, vtkProp3D *prop);
78 
80 
84  vtkSetMacro(FollowCamera,int);
85  vtkGetMacro(FollowCamera,int);
86  vtkBooleanMacro(FollowCamera,int);
88 
92  virtual void SetState(int state);
93 
95 
98  virtual int ComputeInteractionState(int X, int Y, int modify=0);
99  virtual void BuildRepresentation();
101 
106  virtual void PlaceWidget(double bounds[6]);
107 
109 
112  virtual void ShallowCopy(vtkProp *prop);
113  virtual double *GetBounds();
114  virtual void GetActors(vtkPropCollection *pc);
121 
122 protected:
125 
126  // The current vtkProp3D used to represent the button
128 
129  // Follow the camera if requested
132 
133  // Keep track of the props associated with the N
134  // states of the button. This is a PIMPLd stl map.
135  vtkPropArray *PropArray;
136 
137  // For picking the button
139 
140  // Register internal Pickers within PickingManager
141  virtual void RegisterPickers();
142 
143 private:
145  void operator=(const vtkProp3DButtonRepresentation&) VTK_DELETE_FUNCTION;
146 };
147 
148 #endif
vtkProp3DButtonRepresentation::GetButtonProp
vtkProp3D * GetButtonProp(int i)
vtkProp3DButtonRepresentation::Follower
vtkProp3DFollower * Follower
Definition: vtkProp3DButtonRepresentation.h:130
vtkProp3DButtonRepresentation::SetState
virtual void SetState(int state)
Extend the vtkButtonRepresentation::SetState() method.
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:47
vtkProp3DButtonRepresentation::~vtkProp3DButtonRepresentation
~vtkProp3DButtonRepresentation()
vtkProp3DButtonRepresentation::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
vtkProp3DButtonRepresentation::ShallowCopy
virtual void ShallowCopy(vtkProp *prop)
Provide the necessary methods to satisfy the rendering API.
vtkProp3DButtonRepresentation::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
vtkProp3DButtonRepresentation::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkButtonRepresentation.h
vtkProp3DFollower
a vtkProp3D that always faces the camera
Definition: vtkProp3DFollower.h:48
vtkProp3DButtonRepresentation::RenderVolumetricGeometry
virtual int RenderVolumetricGeometry(vtkViewport *)
vtkButtonRepresentation
abstract class defines the representation for a vtkButtonWidget
Definition: vtkButtonRepresentation.h:46
vtkProp3DButtonRepresentation::ComputeInteractionState
virtual int ComputeInteractionState(int X, int Y, int modify=0)
Provide the necessary methods to satisfy the vtkWidgetRepresentation API.
vtkProp3DButtonRepresentation::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *)
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
vtkProp3DButtonRepresentation::GetBounds
virtual double * GetBounds()
Methods to make this class behave as a vtkProp.
vtkProp3DButtonRepresentation::SetButtonProp
void SetButtonProp(int i, vtkProp3D *prop)
Add the ith texture corresponding to the ith button state.
vtkProp3DButtonRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkProp3DButtonRepresentation::vtkProp3DButtonRepresentation
vtkProp3DButtonRepresentation()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkProp3DButtonRepresentation::New
static vtkProp3DButtonRepresentation * New()
Instantiate the class.
vtkProp3DButtonRepresentation
defines a representation for a vtkButtonWidget
Definition: vtkProp3DButtonRepresentation.h:55
vtkProp3DButtonRepresentation::PropArray
vtkPropArray * PropArray
Definition: vtkProp3DButtonRepresentation.h:135
vtkPropPicker
pick an actor/prop using graphics hardware
Definition: vtkPropPicker.h:43
vtkProp3DButtonRepresentation::FollowCamera
int FollowCamera
Definition: vtkProp3DButtonRepresentation.h:131
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
vtkProp3DButtonRepresentation::BuildRepresentation
virtual void BuildRepresentation()
vtkProp3DButtonRepresentation::Picker
vtkPropPicker * Picker
Definition: vtkProp3DButtonRepresentation.h:138
vtkProp3DButtonRepresentation::GetActors
virtual void GetActors(vtkPropCollection *pc)
For some exporters and other other operations we must be able to collect all the actors or volumes.
vtkProp3DButtonRepresentation::RegisterPickers
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
vtkProp3DButtonRepresentation::PlaceWidget
virtual void PlaceWidget(double bounds[6])
This method positions (translates and scales the props) into the bounding box specified.
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:39
vtkProp3DButtonRepresentation::CurrentProp
vtkProp3D * CurrentProp
Definition: vtkProp3DButtonRepresentation.h:127