VTK: Rendering/ZSpace/vtkZSpaceRayActor.h Source File

| VTK 9.3.1

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:
26 static vtkZSpaceRayActor* New();
27 vtkTypeMacro(vtkZSpaceRayActor, vtkOpenGLActor);
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:
78 vtkZSpaceRayActor();
79 ~vtkZSpaceRayActor() override;
80
81 vtkNew<vtkLineSource> LineSource;
82 vtkNew<vtkPolyDataMapper> Mapper;
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
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkLineSource
create a line defined by two end points
Definition: vtkLineSource.h:62
vtkNew< vtkLineSource >
vtkOpenGLActor
OpenGL actor.
Definition: vtkOpenGLActor.h:24
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:42
vtkZSpaceRayActor
An actor for displaying a ray.
Definition: vtkZSpaceRayActor.h:24
vtkZSpaceRayActor::LineSource
vtkNew< vtkLineSource > LineSource
Definition: vtkZSpaceRayActor.h:81
vtkZSpaceRayActor::SetPick
void SetPick()
Set the state of the ray when something is picked.
vtkZSpaceRayActor::~vtkZSpaceRayActor
~vtkZSpaceRayActor() override
vtkZSpaceRayActor::New
static vtkZSpaceRayActor * New()
vtkZSpaceRayActor::SetNoPick
void SetNoPick()
Set the state of the ray when nothing is picked.
vtkZSpaceRayActor::vtkZSpaceRayActor
vtkZSpaceRayActor()
vtkZSpaceRayActor::Mapper
vtkNew< vtkPolyDataMapper > Mapper
Definition: vtkZSpaceRayActor.h:82
vtkZSpaceRayActor::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkNew.h
vtkOpenGLActor.h