VTK  9.3.20240418
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 
18 VTK_ABI_NAMESPACE_BEGIN
19 
20 class vtkLineSource;
21 class vtkPolyDataMapper;
22 
23 class VTKRENDERINGZSPACE_EXPORT vtkZSpaceRayActor : public vtkOpenGLActor
24 {
25 public:
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 
77 protected:
79  ~vtkZSpaceRayActor() override;
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 = 1.5;
87  double Length = 10.0;
88 
89 private:
90  vtkZSpaceRayActor(const vtkZSpaceRayActor&) = delete;
91  void operator=(const vtkZSpaceRayActor&) = delete;
92 };
93 
94 VTK_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
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.