VTK
9.4.20250102
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
vtk3DCursorWidget.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
16
#ifndef vtk3DCursorWidget_h
17
#define vtk3DCursorWidget_h
18
19
#include "
vtkAbstractWidget.h
"
20
#include "vtkInteractionWidgetsModule.h"
// For export macro
21
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
22
23
VTK_ABI_NAMESPACE_BEGIN
24
class
vtk3DCursorRepresentation
;
25
26
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtk3DCursorWidget
:
public
vtkAbstractWidget
27
{
28
public
:
29
static
vtk3DCursorWidget
*
New
();
30
vtkTypeMacro(
vtk3DCursorWidget
,
vtkAbstractWidget
);
31
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
32
38
void
SetRepresentation
(
vtk3DCursorRepresentation
* r)
39
{
40
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
41
}
42
46
vtk3DCursorRepresentation
*
Get3DCursorRepresentation
()
47
{
48
return
reinterpret_cast<
vtk3DCursorRepresentation
*
>
(this->
WidgetRep
);
49
}
50
55
void
CreateDefaultRepresentation
()
override
;
56
57
protected
:
58
vtk3DCursorWidget
();
59
~vtk3DCursorWidget
()
override
=
default
;
60
64
static
void
MoveAction
(
vtkAbstractWidget
*);
65
66
private
:
67
vtk3DCursorWidget
(
const
vtk3DCursorWidget
&) =
delete
;
68
void
operator=(
const
vtk3DCursorWidget
&) =
delete
;
69
};
70
71
VTK_ABI_NAMESPACE_END
72
#endif
vtk3DCursorRepresentation
Representation of the vtk3DCursorWidget.
Definition
vtk3DCursorRepresentation.h:42
vtk3DCursorWidget
Widget reprensenting a 3D cursor.
Definition
vtk3DCursorWidget.h:27
vtk3DCursorWidget::vtk3DCursorWidget
vtk3DCursorWidget()
vtk3DCursorWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if no one is set.
vtk3DCursorWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtk3DCursorWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
Callback function used to place the cursor in the scene using the picker.
vtk3DCursorWidget::SetRepresentation
void SetRepresentation(vtk3DCursorRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition
vtk3DCursorWidget.h:38
vtk3DCursorWidget::New
static vtk3DCursorWidget * New()
vtk3DCursorWidget::Get3DCursorRepresentation
vtk3DCursorRepresentation * Get3DCursorRepresentation()
Return the widget representation as a vtk3DCursorRepresentation.
Definition
vtk3DCursorWidget.h:46
vtk3DCursorWidget::~vtk3DCursorWidget
~vtk3DCursorWidget() override=default
vtkAbstractWidget
define the API for widget / widget representation
Definition
vtkAbstractWidget.h:86
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:200
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
vtkAbstractWidget.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:50
Generated on Thu Jan 2 2025 09:03:57 for VTK by
1.9.7