OpenCOVER
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"
29namespace osg
30{
31class Node;
32class Group;
33class MatrixTransform;
34}
35
36namespace opencover
37{
38class coVRPartner;
39class COVEREXPORT VRAvatar
40{
41private:
42 //static float rc[10];
43 //static float gc[10];
44 //static float bc[10];
45public:
46 bool initialized = false;
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;
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};
69COVEREXPORT covise::TokenBuffer &operator<<(covise::TokenBuffer &tb, const opencover::VRAvatar &avatar);
70COVEREXPORT covise::TokenBuffer &operator>>(covise::TokenBuffer &tb, opencover::VRAvatar &avatar);
71}
72#endif
Definition: ARToolKit.h:33
COVEREXPORT covise::TokenBuffer & operator>>(covise::TokenBuffer &buffer, osg::Matrixd &matrix)
std::ostream & operator<<(std::ostream &os, const coCommandLine &cmd)
Definition: coClusterStat.h:29
Definition: coVRPartner.h:35
Definition: VRAvatar.h:40
osg::Node * handNode
Definition: VRAvatar.h:49
osg::MatrixTransform * feetTransform
Definition: VRAvatar.h:52
VRAvatar(coVRPartner *partner)
create an Avatar for a remote partner that hold his informations
osg::Node * brilleNode
Definition: VRAvatar.h:51
osg::MatrixTransform * headTransform
Definition: VRAvatar.h:50
bool init(const std::string &hostAdress)
initalize avatar if not initialized. Return true if sth. is done
osg::MatrixTransform * handTransform
Definition: VRAvatar.h:48
osg::Node * schuheNode
Definition: VRAvatar.h:53
osg::ref_ptr< osg::Group > avatarNodes
Definition: VRAvatar.h:55
osg::Node * hostIconNode
Definition: VRAvatar.h:54
coVRPartner * m_partner
Definition: VRAvatar.h:47