VTK  9.2.6
vtkAvatar.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkAvatar.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
25
26#ifndef vtkAvatar_h
27#define vtkAvatar_h
28
29#include "vtkActor.h"
30#include "vtkRenderingCoreModule.h" // For export macro
31
32class VTKRENDERINGCORE_EXPORT vtkAvatar : public vtkActor
33{
34public:
35 static vtkAvatar* New();
36 vtkTypeMacro(vtkAvatar, vtkActor);
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
42 vtkGetVector3Macro(HeadPosition, double);
43 vtkSetVector3Macro(HeadPosition, double);
44 vtkGetVector3Macro(HeadOrientation, double);
45 vtkSetVector3Macro(HeadOrientation, double);
46
47 vtkGetVector3Macro(LeftHandPosition, double);
48 vtkSetVector3Macro(LeftHandPosition, double);
49 vtkGetVector3Macro(LeftHandOrientation, double);
50 vtkSetVector3Macro(LeftHandOrientation, double);
51
52 vtkGetVector3Macro(RightHandPosition, double);
53 vtkSetVector3Macro(RightHandPosition, double);
54 vtkGetVector3Macro(RightHandOrientation, double);
55 vtkSetVector3Macro(RightHandOrientation, double);
56
60 vtkGetVector3Macro(UpVector, double);
61 vtkSetVector3Macro(UpVector, double);
62
64
69 vtkSetMacro(UseLeftHand, bool);
70 vtkGetMacro(UseLeftHand, bool);
71 vtkBooleanMacro(UseLeftHand, bool);
72 vtkSetMacro(UseRightHand, bool);
73 vtkGetMacro(UseRightHand, bool);
74 vtkBooleanMacro(UseRightHand, bool);
76
78
81 vtkSetMacro(ShowHandsOnly, bool);
82 vtkGetMacro(ShowHandsOnly, bool);
83 vtkBooleanMacro(ShowHandsOnly, bool);
85
86protected:
88 ~vtkAvatar() override;
89
90 double HeadPosition[3];
91 double HeadOrientation[3];
96 enum
97 {
104 };
107
108 double UpVector[3];
109
113
114private:
115 vtkAvatar(const vtkAvatar&) = delete;
116 void operator=(const vtkAvatar&) = delete;
117};
118
119#endif // vtkAvatar_h
double LeftHandOrientation[3]
Definition vtkAvatar.h:93
double LeftHandPosition[3]
Definition vtkAvatar.h:92
double BodyOrientation[NUM_BODY][3]
Definition vtkAvatar.h:106
double RightHandPosition[3]
Definition vtkAvatar.h:94
bool ShowHandsOnly
Definition vtkAvatar.h:112
double HeadOrientation[3]
Definition vtkAvatar.h:91
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkAvatar() override
double UpVector[3]
Definition vtkAvatar.h:108
double HeadPosition[3]
Definition vtkAvatar.h:90
double BodyPosition[NUM_BODY][3]
Definition vtkAvatar.h:105
double RightHandOrientation[3]
Definition vtkAvatar.h:95
bool UseRightHand
Definition vtkAvatar.h:111
static vtkAvatar * New()
bool UseLeftHand
Definition vtkAvatar.h:110
a simple class to control print indentation
Definition vtkIndent.h:40