VTK
vtkInteractorStyleTreeMapHover.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInteractorStyleTreeMapHover.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 -------------------------------------------------------------------------*/
39 #ifndef vtkInteractorStyleTreeMapHover_h
40 #define vtkInteractorStyleTreeMapHover_h
41 
42 #include "vtkViewsInfovisModule.h" // For export macro
44 
46 class vtkPoints;
47 class vtkRenderer;
48 class vtkTree;
49 class vtkTreeMapLayout;
52 
54 {
55 public:
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
63  void SetLayout(vtkTreeMapLayout* layout);
66 
68 
73 
75 
77  vtkSetStringMacro(LabelField);
78  vtkGetStringMacro(LabelField);
80 
82 
84  void OnMouseMove();
87 
89 
93 
95 
97  void SetHighLightColor(double r, double g, double b);
98 
100  void SetSelectionLightColor(double r, double g, double b);
101 
103 
104  void SetHighLightWidth(double lw);
107 
109 
110  void SetSelectionWidth(double lw);
113 
114 protected:
117 
118 private:
120  void operator=(const vtkInteractorStyleTreeMapHover&); // Not implemented
121 
122  // These methods are used internally
123  vtkIdType GetTreeMapIdAtPos(int x, int y);
124  void GetBoundingBoxForTreeMapItem(vtkIdType id, float *binfo);
125 
126  vtkWorldPointPicker* Picker;
127  vtkBalloonRepresentation* Balloon;
128  vtkActor *HighlightActor;
129  vtkActor *SelectionActor;
130  vtkPoints *HighlightPoints;
131  vtkPoints *SelectionPoints;
132  vtkTreeMapLayout* Layout;
133  vtkTreeMapToPolyData* TreeMapToPolyData;
134  char *LabelField;
135  vtkIdType CurrentSelectedId;
136 };
137 
138 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkViewsInfovisModule.h
vtkInteractorStyleTreeMapHover::SetInteractor
virtual void SetInteractor(vtkRenderWindowInteractor *rwi)
vtkInteractorStyleTreeMapHover
An interactor style for a tree map view.
Definition: vtkInteractorStyleTreeMapHover.h:54
vtkInteractorStyleImage.h
vtkgl::b
GLboolean GLboolean GLboolean b
Definition: vtkgl.h:12312
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkInteractorStyleTreeMapHover::HighLightItem
void HighLightItem(vtkIdType id)
vtkInteractorStyleTreeMapHover::SetTreeMapToPolyData
void SetTreeMapToPolyData(vtkTreeMapToPolyData *filter)
VTKVIEWSINFOVIS_EXPORT
#define VTKVIEWSINFOVIS_EXPORT
Definition: vtkViewsInfovisModule.h:15
vtkTreeMapToPolyData
converts a tree to a polygonal data representing a tree map
Definition: vtkTreeMapToPolyData.h:39
vtkInteractorStyleTreeMapHover::SetHighLightWidth
void SetHighLightWidth(double lw)
vtkInteractorStyleTreeMapHover::GetHighLightWidth
double GetHighLightWidth()
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
vtkInteractorStyleTreeMapHover::OnLeftButtonUp
void OnLeftButtonUp()
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkInteractorStyleTreeMapHover::~vtkInteractorStyleTreeMapHover
~vtkInteractorStyleTreeMapHover()
vtkInteractorStyleTreeMapHover::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkInteractorStyleImage
interactive manipulation of the camera specialized for images
Definition: vtkInteractorStyleImage.h:88
vtkTree
A rooted tree data structure.
Definition: vtkTree.h:60
vtkInteractorStyleTreeMapHover::SetSelectionLightColor
void SetSelectionLightColor(double r, double g, double b)
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
vtkgl::filter
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition: vtkgl.h:13514
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:80
vtkInteractorStyleTreeMapHover::vtkInteractorStyleTreeMapHover
vtkInteractorStyleTreeMapHover()
vtkInteractorStyleTreeMapHover::SetLayout
void SetLayout(vtkTreeMapLayout *layout)
vtkBalloonRepresentation
represent the vtkBalloonWidget
Definition: vtkBalloonRepresentation.h:82
vtkInteractorStyleTreeMapHover::HighLightCurrentSelectedItem
void HighLightCurrentSelectedItem()
vtkgl::r
GLdouble GLdouble GLdouble r
Definition: vtkgl.h:11610
vtkInteractorStyleTreeMapHover::SetSelectionWidth
void SetSelectionWidth(double lw)
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
vtkTreeMapLayout
layout a vtkTree into a tree map
Definition: vtkTreeMapLayout.h:54
vtkInteractorStyleTreeMapHover::SetHighLightColor
void SetHighLightColor(double r, double g, double b)
vtkInteractorStyleTreeMapHover::New
static vtkInteractorStyleTreeMapHover * New()
vtkInteractorStyleTreeMapHover::OnMouseMove
void OnMouseMove()
vtkInteractorStyleTreeMapHover::GetSelectionWidth
double GetSelectionWidth()