VTK
9.4.20241221
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
vtkCameraWidget.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
23
#ifndef vtkCameraWidget_h
24
#define vtkCameraWidget_h
25
26
#include "
vtkBorderWidget.h
"
27
#include "vtkInteractionWidgetsModule.h"
// For export macro
28
29
VTK_ABI_NAMESPACE_BEGIN
30
class
vtkCameraRepresentation
;
31
32
class
VTKINTERACTIONWIDGETS_EXPORT
vtkCameraWidget
:
public
vtkBorderWidget
33
{
34
public
:
38
static
vtkCameraWidget
*
New
();
39
41
44
vtkTypeMacro(
vtkCameraWidget
,
vtkBorderWidget
);
45
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
47
53
void
SetRepresentation
(
vtkCameraRepresentation
* r)
54
{
55
this->
Superclass::SetWidgetRepresentation
(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
56
}
57
61
void
CreateDefaultRepresentation
()
override
;
62
63
protected
:
64
vtkCameraWidget
();
65
~vtkCameraWidget
()
override
;
66
72
void
SelectRegion
(
double
eventPos[2])
override
;
73
74
private
:
75
vtkCameraWidget
(
const
vtkCameraWidget
&) =
delete
;
76
void
operator=(
const
vtkCameraWidget
&) =
delete
;
77
};
78
79
VTK_ABI_NAMESPACE_END
80
#endif
vtkAbstractWidget::SetWidgetRepresentation
void SetWidgetRepresentation(vtkWidgetRepresentation *r)
vtkBorderWidget
place a border around a 2D rectangular region
Definition
vtkBorderWidget.h:137
vtkCameraRepresentation
represent the vtkCameraWidget
Definition
vtkCameraRepresentation.h:40
vtkCameraWidget
2D widget for saving a series of camera views
Definition
vtkCameraWidget.h:33
vtkCameraWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK class methods.
vtkCameraWidget::~vtkCameraWidget
~vtkCameraWidget() override
vtkCameraWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkCameraWidget::SetRepresentation
void SetRepresentation(vtkCameraRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition
vtkCameraWidget.h:53
vtkCameraWidget::vtkCameraWidget
vtkCameraWidget()
vtkCameraWidget::New
static vtkCameraWidget * New()
Instantiate this class.
vtkCameraWidget::SelectRegion
void SelectRegion(double eventPos[2]) override
When selecting the interior of this widget, special operations occur (i.e., adding a camera view,...
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition
vtkWidgetRepresentation.h:68
vtkBorderWidget.h
Generated on Sat Dec 21 2024 12:52:47 for VTK by
1.9.7