VTK  9.7.20260911
vtkAvatar.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
13
14#ifndef vtkAvatar_h
15#define vtkAvatar_h
16
17#include "vtkActor.h"
18#include "vtkRenderingCoreModule.h" // For export macro
19#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
20
21VTK_ABI_NAMESPACE_BEGIN
22class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkAvatar : public vtkActor
23{
24public:
25 static vtkAvatar* New();
26 vtkTypeMacro(vtkAvatar, vtkActor);
27 void PrintSelf(ostream& os, vtkIndent indent) override;
28
32 vtkGetVector3Macro(HeadPosition, double);
33 vtkSetVector3Macro(HeadPosition, double);
34 vtkGetVector3Macro(HeadOrientation, double);
35 vtkSetVector3Macro(HeadOrientation, double);
36
37 vtkGetVector3Macro(LeftHandPosition, double);
38 vtkSetVector3Macro(LeftHandPosition, double);
39 vtkGetVector3Macro(LeftHandOrientation, double);
40 vtkSetVector3Macro(LeftHandOrientation, double);
41
42 vtkGetVector3Macro(RightHandPosition, double);
43 vtkSetVector3Macro(RightHandPosition, double);
44 vtkGetVector3Macro(RightHandOrientation, double);
45 vtkSetVector3Macro(RightHandOrientation, double);
46
50 vtkGetVector3Macro(UpVector, double);
51 vtkSetVector3Macro(UpVector, double);
52
54
59 vtkSetMacro(UseLeftHand, bool);
60 vtkGetMacro(UseLeftHand, bool);
61 vtkBooleanMacro(UseLeftHand, bool);
62 vtkSetMacro(UseRightHand, bool);
63 vtkGetMacro(UseRightHand, bool);
64 vtkBooleanMacro(UseRightHand, bool);
66
68
71 vtkSetMacro(ShowHandsOnly, bool);
72 vtkGetMacro(ShowHandsOnly, bool);
73 vtkBooleanMacro(ShowHandsOnly, bool);
75
76protected:
78 ~vtkAvatar() override;
79
80 double HeadPosition[3];
81 double HeadOrientation[3];
86 enum
87 {
94 };
97
98 double UpVector[3];
99
103
104private:
105 vtkAvatar(const vtkAvatar&) = delete;
106 void operator=(const vtkAvatar&) = delete;
107};
108
109VTK_ABI_NAMESPACE_END
110#endif // vtkAvatar_h
double LeftHandOrientation[3]
Definition vtkAvatar.h:83
double LeftHandPosition[3]
Definition vtkAvatar.h:82
double BodyOrientation[NUM_BODY][3]
Definition vtkAvatar.h:96
double RightHandPosition[3]
Definition vtkAvatar.h:84
bool ShowHandsOnly
Definition vtkAvatar.h:102
double HeadOrientation[3]
Definition vtkAvatar.h:81
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkAvatar() override
@ RIGHT_UPPER
Definition vtkAvatar.h:92
double UpVector[3]
Definition vtkAvatar.h:98
double HeadPosition[3]
Definition vtkAvatar.h:80
double BodyPosition[NUM_BODY][3]
Definition vtkAvatar.h:95
double RightHandOrientation[3]
Definition vtkAvatar.h:85
bool UseRightHand
Definition vtkAvatar.h:101
static vtkAvatar * New()
bool UseLeftHand
Definition vtkAvatar.h:100
a simple class to control print indentation
Definition vtkIndent.h:108
#define VTK_MARSHALAUTO