VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Geovis
Core
vtkCompassWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkCompassWidget.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
-------------------------------------------------------------------------*/
20
86
#ifndef vtkCompassWidget_h
87
#define vtkCompassWidget_h
88
89
#include "
vtkAbstractWidget.h
"
90
#include "vtkGeovisCoreModule.h"
// For export macro
91
92
class
vtkCompassRepresentation
;
93
94
class
VTKGEOVISCORE_EXPORT
vtkCompassWidget
:
public
vtkAbstractWidget
95
{
96
public
:
100
static
vtkCompassWidget
*
New
();
101
103
106
vtkTypeMacro(
vtkCompassWidget
,
vtkAbstractWidget
);
107
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
109
115
void
SetRepresentation
(
vtkCompassRepresentation
* r)
116
{
117
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
118
}
119
123
void
CreateDefaultRepresentation
()
override
;
124
126
129
double
GetHeading
();
130
void
SetHeading
(
double
v);
131
double
GetTilt
();
132
void
SetTilt
(
double
value);
133
double
GetDistance
();
134
void
SetDistance
(
double
value);
136
137
protected
:
138
vtkCompassWidget
();
139
~vtkCompassWidget
()
override
=
default
;
140
141
// These are the events that are handled
142
static
void
SelectAction
(
vtkAbstractWidget
*);
143
static
void
EndSelectAction
(
vtkAbstractWidget
*);
144
static
void
MoveAction
(
vtkAbstractWidget
*);
145
static
void
TimerAction
(
vtkAbstractWidget
*);
146
147
int
WidgetState
;
148
enum
_WidgetState
149
{
150
Start = 0,
151
Highlighting
,
152
Adjusting
,
153
TiltAdjusting
,
154
DistanceAdjusting
155
};
156
157
int
TimerId
;
158
int
TimerDuration
;
159
double
StartTime
;
160
161
private
:
162
vtkCompassWidget
(
const
vtkCompassWidget
&) =
delete
;
163
void
operator=(
const
vtkCompassWidget
&) =
delete
;
164
};
165
166
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:66
vtkCompassRepresentation
provide a compass
Definition:
vtkCompassRepresentation.h:73
vtkCompassWidget
set a value by manipulating something
Definition:
vtkCompassWidget.h:95
vtkCompassWidget::SetTilt
void SetTilt(double value)
Get the value for this widget.
vtkCompassWidget::~vtkCompassWidget
~vtkCompassWidget() override=default
vtkCompassWidget::SetRepresentation
void SetRepresentation(vtkCompassRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition:
vtkCompassWidget.h:115
vtkCompassWidget::SetHeading
void SetHeading(double v)
Get the value for this widget.
vtkCompassWidget::GetHeading
double GetHeading()
Get the value for this widget.
vtkCompassWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkCompassWidget::TimerAction
static void TimerAction(vtkAbstractWidget *)
vtkCompassWidget::TimerId
int TimerId
Definition:
vtkCompassWidget.h:157
vtkCompassWidget::New
static vtkCompassWidget * New()
Instantiate the class.
vtkCompassWidget::_WidgetState
_WidgetState
Definition:
vtkCompassWidget.h:149
vtkCompassWidget::TiltAdjusting
@ TiltAdjusting
Definition:
vtkCompassWidget.h:153
vtkCompassWidget::Highlighting
@ Highlighting
Definition:
vtkCompassWidget.h:151
vtkCompassWidget::Adjusting
@ Adjusting
Definition:
vtkCompassWidget.h:152
vtkCompassWidget::SetDistance
void SetDistance(double value)
Get the value for this widget.
vtkCompassWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros.
vtkCompassWidget::vtkCompassWidget
vtkCompassWidget()
vtkCompassWidget::StartTime
double StartTime
Definition:
vtkCompassWidget.h:159
vtkCompassWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkCompassWidget::GetDistance
double GetDistance()
Get the value for this widget.
vtkCompassWidget::GetTilt
double GetTilt()
Get the value for this widget.
vtkCompassWidget::WidgetState
int WidgetState
Definition:
vtkCompassWidget.h:147
vtkCompassWidget::TimerDuration
int TimerDuration
Definition:
vtkCompassWidget.h:158
vtkCompassWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkCompassWidget::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition:
vtkWidgetRepresentation.h:60
vtkAbstractWidget.h
Generated on Fri Apr 21 2023 10:28:49 for VTK by
1.9.6