CloudyDay
 All Classes Functions Variables Enumerations
ObjectModel.h
1 #pragma once
2 #include "Scene.h"
3 #include <osg/TextureCubeMap>
4 
5 namespace osgCloudyDay
6 {
10  class ViewerLightCallbackTransform : public osg::NodeCallback
11  {
12  public:
17  {
18 
19  };
20 
24  virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
25  };
26 
31  {
32  public:
36  ObjectModel(void);
40  ~ObjectModel(void);
41 
49  void Initialize(int id, std::string path, std::string path_tex, osg::ref_ptr<osg::TextureCubeMap>& fbo_plane_cube);
50 
55  osg::ref_ptr<osg::MatrixTransform> LightNode();
60  osg::ref_ptr<osg::MatrixTransform> ViewNode();
61 
62  protected:
63  osg::ref_ptr<osg::Group> scene;
64  osg::ref_ptr<osg::Group> lightView_scene;
65 
66  osg::MatrixTransform* trans;
67  osg::MatrixTransform* trans2;
68  int m_id;
69 
70  };
71 }