VTK  9.4.20250104
vtkPointHandleSource.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
14#ifndef vtkPointHandleSource_h
15#define vtkPointHandleSource_h
16
17#include "vtkFiltersSourcesModule.h" // For export macro
18#include "vtkHandleSource.h"
19
20VTK_ABI_NAMESPACE_BEGIN
21class vtkConeSource;
22class vtkSphereSource;
23
24class VTKFILTERSSOURCES_EXPORT vtkPointHandleSource : public vtkHandleSource
25{
26public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
32
37 void SetPosition(double xPos, double yPos, double zPos) override;
39 double* GetPosition() override;
41
43
50 void SetDirection(double xDir, double yDir, double zDir) override;
52 double* GetDirection() override;
54
56 void operator=(const vtkPointHandleSource&) = delete;
57
58protected:
60 ~vtkPointHandleSource() override = default;
62
65
66 double Position[3] = { 0, 0, 0 };
67 double Direction[3] = { 1, 0, 0 };
68
71};
72
73VTK_ABI_NAMESPACE_END
74#endif
generate polygonal cone
interface that can be inherited to define handler sources for any kind of interaction.
void SetPosition(const double pos[3])
Set the position of the handle.
void SetDirection(const double dir[3])
Set the direction of the handle.
virtual double * GetPosition()=0
Get the position of the handle.
virtual double * GetDirection()=0
Get the direction of the handle.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Allocate and hold a VTK object.
Definition vtkNew.h:167
handle source used to represent points.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void operator=(const vtkPointHandleSource &)=delete
vtkNew< vtkSphereSource > PositionSphere
~vtkPointHandleSource() override=default
vtkPointHandleSource()=default
void SetPosition(double xPos, double yPos, double zPos) override
Set/Get the position of the handle.
vtkNew< vtkConeSource > PositionCone
double * GetDirection() override
Set/Get the direction of the handle.
static vtkPointHandleSource * New()
void SetDirection(double xDir, double yDir, double zDir) override
Set/Get the direction of the handle.
vtkPointHandleSource(const vtkPointHandleSource &)=delete
double * GetPosition() override
Set/Get the position of the handle.
create a polygonal sphere centered at the origin