vizkit3d
NodeLink.hpp
Go to the documentation of this file.
1 #ifndef __VIZKIT_LINKNODE_HPP__
2 #define __VIZKIT_LINKNODE_HPP__
3 
4 #include <osg/Geode>
5 #include <osg/Geometry>
6 #include <osg/Referenced>
7 #include <QVector3D>
8 #include <QColor>
9 #include <QGenericMatrix>
10 #include <string>
11 
12 namespace vizkit
13 {
14  class NodeLink
15  {
16  public:
17  class NodeCallback : public osg::NodeCallback
18  {
19  public:
20  NodeCallback(osg::Node *node1,osg::Node *node2);
21  virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
22 
23  private:
24  osg::observer_ptr<osg::Node> node1;
25  osg::observer_ptr<osg::Node> node2;
26  };
27  static osg::Node* create(osg::Node *node1, osg::Node *node2,const osg::Vec4 &color=osg::Vec4());
28  };
29 }
30 
31 #endif