~ubuntu-branches/debian/sid/ember/sid

« back to all changes in this revision

Viewing changes to src/components/ogre/ogreopcode/include/Opcode/OPC_Model.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2009-07-23 07:46:40 UTC
  • Revision ID: james.westby@ubuntu.com-20090723074640-wh0ukzis0kda36qv
Tags: upstream-0.5.6
ImportĀ upstreamĀ versionĀ 0.5.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
2
/*
 
3
 *      OPCODE - Optimized Collision Detection
 
4
 *      Copyright (C) 2001 Pierre Terdiman
 
5
 *      Homepage: http://www.codercorner.com/Opcode.htm
 
6
 *
 
7
 *  OPCODE modifications for scaled model support (and other things)
 
8
 *  Copyright (C) 2004 Gilvan Maia (gilvan 'at' vdl.ufc.br)
 
9
 *      Check http://www.vdl.ufc.br/gilvan/coll/opcode/index.htm for updates.
 
10
 */
 
11
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
12
 
 
13
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
14
/**
 
15
 *      Contains code for OPCODE models.
 
16
 *      \file           OPC_Model.h
 
17
 *      \author         Pierre Terdiman
 
18
 *      \date           March, 20, 2001
 
19
 */
 
20
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
21
 
 
22
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
23
// Include Guard
 
24
#ifndef __OPC_MODEL_H__
 
25
#define __OPC_MODEL_H__
 
26
 
 
27
        class Model : public BaseModel
 
28
        {
 
29
                public:
 
30
                // Constructor/Destructor
 
31
                                                                                                Model();
 
32
                virtual                                                                 ~Model();
 
33
 
 
34
                ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
35
                /**
 
36
                 *      Builds a collision model.
 
37
                 *      \param          create          [in] model creation structure
 
38
                 *      \return         true if success
 
39
                 */
 
40
                ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
41
                override(BaseModel)     bool                            Build(const OPCODECREATE& create);
 
42
 
 
43
#ifdef __MESHMERIZER_H__
 
44
                ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
45
                /**
 
46
                 *      Gets the collision hull.
 
47
                 *      \return         the collision hull if it exists
 
48
                 */
 
49
                ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
50
                inline_ const           CollisionHull*          GetHull()               const   { return mHull;         }
 
51
#endif // __MESHMERIZER_H__
 
52
 
 
53
                ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
54
                /**
 
55
                 *      Gets the number of bytes used by the tree.
 
56
                 *      \return         amount of bytes used
 
57
                 */
 
58
                ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
59
                override(BaseModel)     udword                          GetUsedBytes()  const;
 
60
 
 
61
                private:
 
62
#ifdef __MESHMERIZER_H__
 
63
                                                        CollisionHull*          mHull;                  //!< Possible convex hull
 
64
#endif // __MESHMERIZER_H__
 
65
                // Internal methods
 
66
                                                        void                            Release();
 
67
        };
 
68
 
 
69
#endif //__OPC_MODEL_H__