VTK
vtkInteractorStyleAreaSelectHover.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInteractorStyleAreaSelectHover.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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
34 #ifndef vtkInteractorStyleAreaSelectHover_h
35 #define vtkInteractorStyleAreaSelectHover_h
36 
37 #include "vtkViewsInfovisModule.h" // For export macro
39 
40 class vtkAreaLayout;
42 class vtkPoints;
43 class vtkRenderer;
44 class vtkTree;
46 class vtkPolyData;
47 
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
60  void SetLayout(vtkAreaLayout* layout);
61  vtkGetObjectMacro(Layout, vtkAreaLayout);
63 
65 
68  vtkSetStringMacro(LabelField);
69  vtkGetStringMacro(LabelField);
71 
73 
77  vtkSetMacro(UseRectangularCoordinates, bool);
78  vtkGetMacro(UseRectangularCoordinates, bool);
79  vtkBooleanMacro(UseRectangularCoordinates, bool);
81 
86  void OnMouseMove();
87 
91  virtual void SetInteractor(vtkRenderWindowInteractor *rwi);
92 
96  void SetHighLightColor(double r, double g, double b);
97 
99 
102  void SetHighLightWidth(double lw);
103  double GetHighLightWidth();
105 
109  vtkIdType GetIdAtPos(int x, int y);
110 
111 protected:
114 
115 private:
117  void operator=(const vtkInteractorStyleAreaSelectHover&) VTK_DELETE_FUNCTION;
118 
119  // These methods are used internally
120  void GetBoundingAreaForItem(vtkIdType id, float *sinfo);
121 
122  vtkWorldPointPicker* Picker;
123  vtkBalloonRepresentation* Balloon;
124  vtkPolyData *HighlightData;
125  vtkActor *HighlightActor;
126  vtkAreaLayout* Layout;
127  char *LabelField;
128  bool UseRectangularCoordinates;
129 };
130 
131 #endif
virtual void SetInteractor(vtkRenderWindowInteractor *interactor)
Set/Get the Interactor wrapper being controlled by this object.
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
A rubber band interactor for a 2D view.
abstract specification for renderers
Definition: vtkRenderer.h:63
int vtkIdType
Definition: vtkType.h:287
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
static vtkInteractorStyleRubberBand2D * New()
platform-independent render window interaction including picking and frame rate control.
layout a vtkTree into a tree map
Definition: vtkAreaLayout.h:46
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
virtual void OnMouseMove()
Generic event bindings can be overridden in subclasses.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
represent the vtkBalloonWidget
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
A rooted tree data structure.
Definition: vtkTree.h:60
find world x,y,z corresponding to display x,y,z
An interactor style for an area tree view.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
represent and manipulate 3D points
Definition: vtkPoints.h:39