26#ifndef vtkPointHandleSource_h
27#define vtkPointHandleSource_h
29#include "vtkFiltersSourcesModule.h"
48 void SetPosition(
double xPos,
double yPos,
double zPos)
override;
77 double Position[3] = { 0, 0, 0 };
78 double Direction[3] = { 1, 0, 0 };
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
Allocate and hold a VTK object.
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