CloudyDay
 All Classes Functions Variables Enumerations
Public Member Functions | Protected Attributes
osgCloudyDay::ObjectModel Class Reference

#include <ObjectModel.h>

List of all members.

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

Detailed Description

Class to render a 3D model


Constructor & Destructor Documentation

osgCloudyDay::ObjectModel::ObjectModel ( void  )

Constructor

osgCloudyDay::ObjectModel::~ObjectModel ( void  )

Deconstructor


Member Function Documentation

void osgCloudyDay::ObjectModel::Initialize ( int  id,
std::string  path,
std::string  path_tex,
osg::ref_ptr< osg::TextureCubeMap > &  fbo_plane_cube 
)

Initialize method

Parameters:
ididentity, which is to define the LUD
pathpath to 3D model
path_texpath to texture
fbo_plane_cubereflection texture
osg::ref_ptr< osg::MatrixTransform > osgCloudyDay::ObjectModel::LightNode ( )

Returns the geode to render it from the light source

Returns:
geode
osg::ref_ptr< osg::MatrixTransform > osgCloudyDay::ObjectModel::ViewNode ( )

Returns the geode to render it from the viewer

Returns:
geode

The documentation for this class was generated from the following files: