VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
vtkCameraPathWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkCameraPathWidget.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
=========================================================================*/
26
#ifndef vtkCameraPathWidget_h
27
#define vtkCameraPathWidget_h
28
29
#include "
vtkAbstractWidget.h
"
30
#include "vtkInteractionWidgetsModule.h"
// For export macro
31
#include "
vtkNew.h
"
// for vtkNew
32
33
class
vtkCameraPathRepresentation
;
34
35
class
VTKINTERACTIONWIDGETS_EXPORT
vtkCameraPathWidget
:
public
vtkAbstractWidget
36
{
37
public
:
38
static
vtkCameraPathWidget
*
New
();
39
vtkTypeMacro(
vtkCameraPathWidget
,
vtkAbstractWidget
);
40
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
41
47
void
SetRepresentation
(
vtkCameraPathRepresentation
* r);
48
53
void
SetEnabled
(
int
enabling)
override
;
54
59
void
CreateDefaultRepresentation
()
override
;
60
61
protected
:
62
vtkCameraPathWidget
();
63
~vtkCameraPathWidget
()
override
=
default
;
64
65
int
WidgetState =
vtkCameraPathWidget::Start
;
66
enum
_WidgetState
67
{
68
Start = 0,
69
Active
70
};
71
72
// These methods handle events
73
static
void
SelectAction
(
vtkAbstractWidget
*);
74
static
void
EndSelectAction
(
vtkAbstractWidget
*);
75
static
void
TranslateAction
(
vtkAbstractWidget
*);
76
static
void
ScaleAction
(
vtkAbstractWidget
*);
77
static
void
MoveAction
(
vtkAbstractWidget
*);
78
79
vtkNew<vtkCallbackCommand>
KeyEventCallbackCommand
;
80
static
void
ProcessKeyEvents
(
vtkObject
*,
unsigned
long
,
void
*,
void
*);
81
82
private
:
83
vtkCameraPathWidget
(
const
vtkCameraPathWidget
&) =
delete
;
84
void
operator=(
const
vtkCameraPathWidget
&) =
delete
;
85
};
86
87
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:63
vtkCameraPathRepresentation
representation for a camera path.
Definition:
vtkCameraPathRepresentation.h:39
vtkCameraPathWidget
widget for vtkCameraPathRepresentation.
Definition:
vtkCameraPathWidget.h:36
vtkCameraPathWidget::~vtkCameraPathWidget
~vtkCameraPathWidget() override=default
vtkCameraPathWidget::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkCameraPathWidget::vtkCameraPathWidget
vtkCameraPathWidget()
vtkCameraPathWidget::KeyEventCallbackCommand
vtkNew< vtkCallbackCommand > KeyEventCallbackCommand
Definition:
vtkCameraPathWidget.h:79
vtkCameraPathWidget::ProcessKeyEvents
static void ProcessKeyEvents(vtkObject *, unsigned long, void *, void *)
vtkCameraPathWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkCameraPathWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkCameraPathWidget::New
static vtkCameraPathWidget * New()
vtkCameraPathWidget::ScaleAction
static void ScaleAction(vtkAbstractWidget *)
vtkCameraPathWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
vtkCameraPathWidget::TranslateAction
static void TranslateAction(vtkAbstractWidget *)
vtkCameraPathWidget::SetRepresentation
void SetRepresentation(vtkCameraPathRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
vtkCameraPathWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkCameraPathWidget::_WidgetState
_WidgetState
Definition:
vtkCameraPathWidget.h:67
vtkCameraPathWidget::Start
@ Start
Definition:
vtkCameraPathWidget.h:68
vtkCameraPathWidget::SetEnabled
void SetEnabled(int enabling) override
Override superclasses SetEnabled() method because the line widget must enable its internal handle wid...
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkNew< vtkCallbackCommand >
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:73
vtkAbstractWidget.h
vtkNew.h
Generated on Sat Feb 25 2023 08:59:35 for VTK by
1.9.4