OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VRAvatar.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
21 #ifndef VR_AVATAR_H
22 #define VR_AVATAR_H
23 
24 #include <util/common.h>
25 #include <net/tokenbuffer.h>
26 #include <osg/ref_ptr>
27 #include <osg/Matrix>
28 #include "MatrixSerializer.h"
29 namespace osg
30 {
31 class Node;
32 class Group;
33 class MatrixTransform;
34 }
35 
36 namespace opencover
37 {
38 class coVRPartner;
39 class COVEREXPORT VRAvatar
40 {
41 private:
42  //static float rc[10];
43  //static float gc[10];
44  //static float bc[10];
45  bool initialized = false;
46 public:
48  osg::MatrixTransform *handTransform;
49  osg::Node *handNode;
50  osg::MatrixTransform *headTransform;
51  osg::Node *brilleNode;
52  osg::MatrixTransform *feetTransform;
53  osg::Node *schuheNode;
54  osg::Node *hostIconNode;
55  osg::ref_ptr<osg::Group> avatarNodes;
58  VRAvatar();
60  VRAvatar(coVRPartner *partner);
62  bool init(const std::string &hostAdress);
63  virtual ~VRAvatar();
64  void show();
65  void hide();
66  //osg::Node *genNode();
67  //void updateData(VRAvatarData &ad);
68 };
69 COVEREXPORT covise::TokenBuffer &operator<<(covise::TokenBuffer &tb, const opencover::VRAvatar &avatar);
70 COVEREXPORT covise::TokenBuffer &operator>>(covise::TokenBuffer &tb, opencover::VRAvatar &avatar);
71 }
72 #endif
osg::MatrixTransform * handTransform
Definition: VRAvatar.h:48
Definition: VRAvatar.h:39
coVRPartner * m_partner
Definition: VRAvatar.h:47
osg::Node * schuheNode
Definition: VRAvatar.h:53
osg::Node * handNode
Definition: VRAvatar.h:49
COVEREXPORT covise::TokenBuffer & operator>>(covise::TokenBuffer &buffer, osg::Matrixd &matrix)
osg::Node * hostIconNode
Definition: VRAvatar.h:54
osg::Node * brilleNode
Definition: VRAvatar.h:51
osg::ref_ptr< osg::Group > avatarNodes
Definition: VRAvatar.h:55
std::ostream & operator<<(std::ostream &os, const coCommandLine &cmd)
osg::MatrixTransform * headTransform
Definition: VRAvatar.h:50
osg::MatrixTransform * feetTransform
Definition: VRAvatar.h:52
Definition: coVRPartner.h:46