CObject.h Source File

Chapitre 1

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

CObject.h

00001 
00008 #ifndef __COBJECT_H__
00009 #define __COBJECT_H__
00010 
00011 #include "CNode.h"
00012 
00013 class CObject : public CNode
00014 {
00015         protected:
00016                 CNode           *m_Node;
00017                                   
00018         public:
00019                 CObject() { m_Node = GetNodeInstance(); }
00020                 virtual ~CObject() { }
00021                                   
00022                 // set
00023                 __forceinline SetNode(CNode* node) { m_Node = node; }
00024 
00025                 // get
00026                 __forceinline CNode* GetNode() const                    { return m_Node; }
00027                                   
00028                 // [hérité de CNode]
00029                 virtual bool IntersectsNode(const CRay& ray, CIntersectInfo *intersectInfo=NULL) = 0;
00030 };
00031 
00032 #endif /* #ifndef __COBJECT_H__ */

Generated on Thu Apr 4 23:14:17 2002 by doxygen1.2.15