VTK  9.4.20250102
vtkZSpaceRayActor.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
11#ifndef vtkZSpaceRayActor_h
12#define vtkZSpaceRayActor_h
13
14#include "vtkNew.h" // for ivar
15#include "vtkOpenGLActor.h"
16#include "vtkRenderingZSpaceModule.h" // for export macro
17
18VTK_ABI_NAMESPACE_BEGIN
19
20class vtkLineSource;
22
23class VTKRENDERINGZSPACE_EXPORT vtkZSpaceRayActor : public vtkOpenGLActor
24{
25public:
28 void PrintSelf(ostream& os, vtkIndent indent) override;
29
33 void SetNoPick();
34
38 void SetPick();
39
41
46 vtkGetVector3Macro(NoPickColor, double);
47 vtkSetVector3Macro(NoPickColor, double);
49
51
56 vtkGetVector3Macro(PickColor, double);
57 vtkSetVector3Macro(PickColor, double);
59
61
65 vtkGetMacro(LineWidth, double);
66 vtkSetMacro(LineWidth, double);
68
70
73 vtkGetMacro(Length, double);
74 vtkSetMacro(Length, double);
76
77protected:
80
83
84 double NoPickColor[3] = { 0.9, 0.3, 0.3 };
85 double PickColor[3] = { 0.0, 1.0, 0.0 };
86 double LineWidth = 3.0;
87 double Length = 10.0;
88
89private:
90 vtkZSpaceRayActor(const vtkZSpaceRayActor&) = delete;
91 void operator=(const vtkZSpaceRayActor&) = delete;
92};
93
94VTK_ABI_NAMESPACE_END
95
96#endif
a simple class to control print indentation
Definition vtkIndent.h:108
create a line defined by two end points
Allocate and hold a VTK object.
Definition vtkNew.h:167
OpenGL actor.
map vtkPolyData to graphics primitives
An actor for displaying a ray.
vtkNew< vtkLineSource > LineSource
void SetPick()
Set the state of the ray when something is picked.
~vtkZSpaceRayActor() override
static vtkZSpaceRayActor * New()
void SetNoPick()
Set the state of the ray when nothing is picked.
vtkNew< vtkPolyDataMapper > Mapper
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.