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);
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 
85 
87  void SetHighLightColor(double r, double g, double b);
88 
90 
91  void SetHighLightWidth(double lw);
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
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkViewsInfovisModule.h
vtkInteractorStyleAreaSelectHover::New
static vtkInteractorStyleAreaSelectHover * New()
vtkInteractorStyleAreaSelectHover
An interactor style for an area tree view.
Definition: vtkInteractorStyleAreaSelectHover.h:51
vtkgl::b
GLboolean GLboolean GLboolean b
Definition: vtkgl.h:12312
vtkInteractorStyleAreaSelectHover::GetHighLightWidth
double GetHighLightWidth()
vtkIdType
int vtkIdType
Definition: vtkType.h:275
VTKVIEWSINFOVIS_EXPORT
#define VTKVIEWSINFOVIS_EXPORT
Definition: vtkViewsInfovisModule.h:15
vtkWorldPointPicker
find world x,y,z corresponding to display x,y,z
Definition: vtkWorldPointPicker.h:44
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkInteractorStyleAreaSelectHover::SetHighLightColor
void SetHighLightColor(double r, double g, double b)
vtkInteractorStyleRubberBand2D
A rubber band interactor for a 2D view.
Definition: vtkInteractorStyleRubberBand2D.h:51
vtkInteractorStyleAreaSelectHover::~vtkInteractorStyleAreaSelectHover
~vtkInteractorStyleAreaSelectHover()
vtkTree
A rooted tree data structure.
Definition: vtkTree.h:60
vtkInteractorStyleAreaSelectHover::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkInteractorStyleAreaSelectHover::vtkInteractorStyleAreaSelectHover
vtkInteractorStyleAreaSelectHover()
vtkInteractorStyleAreaSelectHover::SetHighLightWidth
void SetHighLightWidth(double lw)
vtkInteractorStyleRubberBand2D.h
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkInteractorStyleAreaSelectHover::OnMouseMove
void OnMouseMove()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:80
vtkBalloonRepresentation
represent the vtkBalloonWidget
Definition: vtkBalloonRepresentation.h:82
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkgl::r
GLdouble GLdouble GLdouble r
Definition: vtkgl.h:11610
vtkInteractorStyleAreaSelectHover::SetInteractor
virtual void SetInteractor(vtkRenderWindowInteractor *rwi)
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkgl::g
GLboolean GLboolean g
Definition: vtkgl.h:12312
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkAreaLayout
layout a vtkTree into a tree map
Definition: vtkAreaLayout.h:46
vtkInteractorStyleAreaSelectHover::SetLayout
void SetLayout(vtkAreaLayout *layout)
vtkInteractorStyleAreaSelectHover::GetIdAtPos
vtkIdType GetIdAtPos(int x, int y)