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 -------------------------------------------------------------------------*/
36 #ifndef vtkInteractorStyleAreaSelectHover_h
37 #define vtkInteractorStyleAreaSelectHover_h
38 
39 #include "vtkViewsInfovisModule.h" // For export macro
41 
42 class vtkAreaLayout;
44 class vtkPoints;
45 class vtkRenderer;
46 class vtkTree;
48 class vtkPolyData;
49 
51 {
52 public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
60  void SetLayout(vtkAreaLayout* layout);
61  vtkGetObjectMacro(Layout, vtkAreaLayout);
63 
65 
67  vtkSetStringMacro(LabelField);
68  vtkGetStringMacro(LabelField);
70 
72 
74  vtkSetMacro(UseRectangularCoordinates, bool);
75  vtkGetMacro(UseRectangularCoordinates, bool);
76  vtkBooleanMacro(UseRectangularCoordinates, bool);
78 
81  void OnMouseMove();
82 
84  virtual void SetInteractor(vtkRenderWindowInteractor *rwi);
85 
87  void SetHighLightColor(double r, double g, double b);
88 
90 
91  void SetHighLightWidth(double lw);
92  double GetHighLightWidth();
94 
96  vtkIdType GetIdAtPos(int x, int y);
97 
98 protected:
101 
102 private:
104  void operator=(const vtkInteractorStyleAreaSelectHover&); // Not implemented
105 
106  // These methods are used internally
107  void GetBoundingAreaForItem(vtkIdType id, float *sinfo);
108 
109  vtkWorldPointPicker* Picker;
110  vtkBalloonRepresentation* Balloon;
111  vtkPolyData *HighlightData;
112  vtkActor *HighlightActor;
113  vtkAreaLayout* Layout;
114  char *LabelField;
115  bool UseRectangularCoordinates;
116 };
117 
118 #endif
virtual void SetInteractor(vtkRenderWindowInteractor *interactor)
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
A rubber band interactor for a 2D view.
abstract specification for renderers
Definition: vtkRenderer.h:63
int vtkIdType
Definition: vtkType.h:275
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
static vtkInteractorStyleRubberBand2D * New()
platform-independent render window interaction including picking and frame rate control.
layout a vtkTree into a tree map
Definition: vtkAreaLayout.h:45
a simple class to control print indentation
Definition: vtkIndent.h:38
represent the vtkBalloonWidget
A rooted tree data structure.
Definition: vtkTree.h:59
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)
#define VTKVIEWSINFOVIS_EXPORT
represent and manipulate 3D points
Definition: vtkPoints.h:38