#include <ObjectModel.h>
Public Member Functions | |
| ObjectModel (void) | |
| ~ObjectModel (void) | |
| void | Initialize (int id, std::string path, std::string path_tex, osg::ref_ptr< osg::TextureCubeMap > &fbo_plane_cube) |
| osg::ref_ptr < osg::MatrixTransform > | LightNode () |
| osg::ref_ptr < osg::MatrixTransform > | ViewNode () |
Protected Attributes | |
| osg::ref_ptr< osg::Group > | scene |
| osg::ref_ptr< osg::Group > | lightView_scene |
| osg::MatrixTransform * | trans |
| osg::MatrixTransform * | trans2 |
| int | m_id |
Class to render a 3D model
| osgCloudyDay::ObjectModel::ObjectModel | ( | void | ) |
Constructor
| osgCloudyDay::ObjectModel::~ObjectModel | ( | void | ) |
Deconstructor
| void osgCloudyDay::ObjectModel::Initialize | ( | int | id, |
| std::string | path, | ||
| std::string | path_tex, | ||
| osg::ref_ptr< osg::TextureCubeMap > & | fbo_plane_cube | ||
| ) |
Initialize method
| id | identity, which is to define the LUD |
| path | path to 3D model |
| path_tex | path to texture |
| fbo_plane_cube | reflection texture |
| osg::ref_ptr< osg::MatrixTransform > osgCloudyDay::ObjectModel::LightNode | ( | ) |
Returns the geode to render it from the light source
| osg::ref_ptr< osg::MatrixTransform > osgCloudyDay::ObjectModel::ViewNode | ( | ) |
Returns the geode to render it from the viewer
1.8.1.1