OMKOgreObject.h

Go to the documentation of this file.
00001 /************************************************************************/
00002 /* This file is part of openMask(c) INRIA, CNRS, Universite de Rennes 1 */
00003 /* 1993-2002, thereinafter the Software                                 */
00004 /*                                                                      */
00005 /* The Software has been developped within the Siames Project.          */
00006 /* INRIA, the University of Rennes 1 and CNRS jointly hold intellectual */
00007 /* property rights                                                      */
00008 /*                                                                      */
00009 /* The Software has been registered with the Agence pour la Protection  */
00010 /* des Programmes (APP) under registration number                       */
00011 /* IDDN.FR.001.510008.00.S.P.2001.000.41200                             */
00012 /*                                                                      */
00013 /* This file may be distributed under the terms of the Q Public License */
00014 /* version 1.0 as defined by Trolltech AS of Norway and appearing in    */
00015 /* the file LICENSE.QPL included in the packaging of this file.         */
00016 /*                                                                      */
00017 /* Licensees holding valid specific licenses issued by INRIA, CNRS or   */
00018 /* Universite Rennes 1 for the software may use this file in            */
00019 /* acordance with that specific license                                 */
00020 /************************************************************************/
00021 #ifndef OMKOgreObject_H
00022 #define OMKOgreObject_H
00023 
00024 #include "OMKVisualObject.h"
00025 #include "OgreSceneNode.h"
00026 #include "Ogre.h"
00027 #include "OgreMovableObject.h"
00028 
00029 namespace OMK
00030 {
00031 namespace Vis
00032 {
00033   class NodeMaterialOrig;
00034   class OgreVis ;
00035 
00042 class OMKVIS_API OgreObject : public VisualObject
00043 {
00044   public:
00046 
00047 
00048   OgreObject( VisBase& vis, const Name& id, const ConfigurationParameterDescriptor* node ) ;
00049 
00053   virtual ~OgreObject() ;
00055   public:
00057   NodeMaterialOrig* getNodeMaterialOrig() ;
00058 
00060   const OgreVis& getOgreVis() const ;
00061 
00063   Ogre::SceneNode& getSceneNode() const ;
00064 
00065 protected:
00066   
00068   virtual void visualise() ;
00069 
00070 private:
00072   OgreObject( const OgreObject& vis ) ;
00073 
00075   const OgreObject& operator=( const OgreObject& vis ) ;
00076 
00077 protected:
00079   OgreVis& _ogreVis ;
00080 
00082   Ogre::SceneNode& _sceneNode ;
00084   NodeMaterialOrig* _nodeMaterial ;
00085 } ;
00086 
00087 //-------------------------------------------------------------------------
00088 // getOgreVis
00089 //-------------------------------------------------------------------------
00090 inline const OgreVis& 
00091 OgreObject::getOgreVis() const
00092 {
00093   return _ogreVis ;
00094 }
00095 
00096 //-------------------------------------------------------------------------
00097 // getSceneNode
00098 //-------------------------------------------------------------------------
00099 inline Ogre::SceneNode& 
00100 OgreObject::getSceneNode() const
00101 {
00102   return _sceneNode ;
00103 }
00104 
00105 } // namespace Vis
00106 } // namespace OMK
00107 
00108 #endif // OMKOgreObject_H

logo OpenMask

Documentation generated on Mon Jun 9 11:45:57 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007