Ignore:
Timestamp:
04/06/06 20:48:19 (18 years ago)
Author:
igarcia
Message:
 
Location:
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include
Files:
6 added
17 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/BBC/BBCManager.h

    r721 r731  
    77namespace BBC { 
    88 
    9 class _BBCExport Manager : public CSingleton<Manager> { 
     9class _BBCExport BBCManager : public CSingleton<BBCManager> { 
    1010  public: 
    11     Manager(); 
     11    BBCManager(); 
    1212         
    13     ~Manager(); 
     13    ~BBCManager(); 
    1414 
    15         static Manager& getSingleton(void); 
     15        static BBCManager& getSingleton(void); 
    1616     
    17         static Manager* getSingletonPtr(void); 
     17        static BBCManager* getSingletonPtr(void); 
    1818 
    1919        Ogre::Mesh* loadMesh(Ogre::String folderName, Ogre::String fileName); 
     
    2424 
    2525        void saveXMLMesh(Ogre::String name); 
     26 
     27        void saveMaterial(Ogre::String materialName); 
    2628 
    2729        void initialize(void); 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IBRBillboardCloudTreeApplication.h

    r721 r731  
    22#define _IBRBILLBOARDCLOUDTREEAPPLICATION_H 
    33 
     4#include <IMG.h> 
     5#include <LBBC.h> 
    46#include <OBAOgreApplication.h> 
    5 #include <LBBC.h> 
    67#include <IBRBillboardCloudTreeFrameListener.h> 
    78 
     
    1516protected: 
    1617         
     18        LBBC::SampleConfigFile *mSampleConfigFile; 
     19 
    1720        CommandLineOptions mOpts; 
    1821         
    19         LBBC::Manager* mLBBCManager; 
     22        LBBC::LBBCManager* mLBBCManager; 
    2023 
    2124        int findCommandLineOpts(int numargs, char** argv, Ogre::UnaryOptionList& unaryOptList, Ogre::BinaryOptionList& binOptList); 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMG.h

    r721 r731  
    22#define _IMG_H 
    33 
     4#include <IMGTexture.h> 
     5#include <IMGTextureAtlas.h> 
     6 
    47#endif 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGBBox.h

    r721 r731  
    2525//      this class encaplusalte the ogre::AxisAlignedBox 
    2626//* 
    27 class BBox: public Ogre::AxisAlignedBox { 
     27class _IMGExport BBox: public Ogre::AxisAlignedBox { 
    2828  public: 
    2929    BBox(); 
     
    3131        ~BBox(); 
    3232 
    33     void StartBoundingBox(); 
     33    void initialize(); 
    3434 
    35         Ogre::Vector3 GetMinimum(); 
     35        Ogre::Vector3 getMinimum(); 
    3636 
    37         Ogre::Vector3 GetMaximum(); 
     37        Ogre::Vector3 getMaximum(); 
    3838 
    39     void AddBoundingVector3(float x, float y, float z); 
     39    void addBoundingVector3(float x, float y, float z); 
    4040 
    41     void Print(); 
     41    void print(); 
    4242 
    43         Ogre::Vector3 GetCorner(int corner) const; 
     43        Ogre::Vector3 getCorner(int corner) const; 
    4444 
    4545    bool intersects(Ogre::Vector3 v); 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGBox2d.h

    r721 r731  
    77 
    88//* this class represents a 2d bound box for a texture  
    9 class Box2d  
     9class _IMGExport Box2d  
    1010{ 
    1111        public: 
     
    2222                } 
    2323 
    24                 Ogre::Vector2 GetMinimum(); 
     24                Ogre::Vector2 getMinimum(); 
    2525 
    26                 Ogre::Vector2 GetMaximum();  
     26                Ogre::Vector2 getMaximum();  
    2727 
    28                 void SetBoundBox(float x, float y, float X, float Y);  
     28                void setBoundBox(float x, float y, float X, float Y);  
    2929 
    30                 void AddBoundingVector3(float x, float y); 
     30                void addBoundingVector3(float x, float y); 
    3131 
    32                 void Print();  
     32                void print();  
    3333 
    34                 Ogre::Vector2 GetCorner(int corner) const; 
     34                Ogre::Vector2 getCorner(int corner) const; 
    3535 
    36                 bool In(int w, int h);  
     36                bool in(int w, int h);  
    3737 
    38                 bool FitPerfect(int w, int h); 
     38                bool fitPerfect(int w, int h); 
    3939 
    4040        protected: 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGBsp.h

    r721 r731  
    77namespace IMG { 
    88 
    9 class Bsp { 
     9class _IMGExport Bsp { 
    1010  public: 
    1111    Bsp(); 
     
    1313    virtual ~Bsp(); 
    1414 
    15     void SetRoot(NodeBspPtr node); 
     15    void setRoot(NodeBspPtr node); 
    1616 
    17     void Print(); 
     17    void print(); 
    1818 
    19     void PrintLeaf();  
     19    void printLeaf();  
    2020 
    21     NodeBspPtr Insert(int w, int h, int idcluster); 
     21    NodeBspPtr insert(int w, int h, int idcluster); 
    2222 
    23     NodeBspPtr Get(int i); 
     23    NodeBspPtr get(int i); 
    2424 
    2525  protected: 
     
    3030    int counttotal; 
    3131 
    32     void Print(NodeBspPtr node); 
     32    void print(NodeBspPtr node); 
    3333 
    34     void PrintLeaf(NodeBspPtr node); 
     34    void printLeaf(NodeBspPtr node); 
    3535 
    3636}; 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGCluster.h

    r721 r731  
    1111{ 
    1212 
    13 class Cluster  
     13class _IMGExport Cluster  
    1414{ 
    1515  public: 
    1616    Cluster(); 
     17 
     18    virtual ~Cluster(); 
    1719 
    1820    Cluster & operator =(const Cluster & p); 
     
    2022    Cluster(const Cluster & p); 
    2123 
    22         void SetNormal(Ogre::Vector3* n); 
     24        void setNormal(Ogre::Vector3* n); 
    2325 
    24         Ogre::Vector3* GetNormal(); 
     26        Ogre::Vector3* getNormal(); 
    2527 
    26     BBox* GetBound(); 
     28    BBox* getBound(); 
    2729 
    28     Box2d* GetBspNodeBound(); 
     30    Box2d* getBspNodeBound(); 
    2931 
    30     void SetBspNodeBound(Box2d* box); 
     32    void setBspNodeBound(Box2d* box); 
    3133 
    32     void Print(); 
     34    void print(); 
    3335 
    3436    //* return the dominant normal axis, for calculate the 2d projection 
    35     int AxisProjected(); 
     37    int axisProjected(); 
    3638 
    37     int GetId() const; 
     39    int getId() const; 
    3840 
    39     void SetId(int id_); 
     41    void setId(int id_); 
    4042 
    41         std::vector<Ogre::Vector3>* GetVector3sVector(); 
     43        std::vector<Ogre::Vector3>* getVector3sVector(); 
    4244 
    43         Ogre::Vector3* GetVector3sTex() const; 
     45        Ogre::Vector3* getVector3sTex() const; 
    4446 
    45     void Finish(); 
     47    void finish(); 
    4648 
    47         void SetPlane(Ogre::Vector3* normal, Ogre::Vector3 * point); 
     49        void setPlane(Ogre::Vector3* normal, Ogre::Vector3 * point); 
    4850 
    49     Plane3 * GetPlane(); 
     51    Plane3 * getPlane(); 
    5052 
    5153    //* Return the increment in U (lumel increment in x). For patchs calculation  
    52         Ogre::Vector3 GetIncU(); 
     54        Ogre::Vector3 getIncU(); 
    5355 
    5456    //* Return the increment in V (lumel increment in x). For patchs calculation  
    55         Ogre::Vector3 GetIncV(); 
     57        Ogre::Vector3 getIncV(); 
    5658 
    5759    //* Return the origin. For patchs calculation  
    58         Ogre::Vector3 GetOrigin(); 
     60        Ogre::Vector3 getOrigin(); 
    5961 
    60         bool PointIn(Ogre::Vector3 & point); 
     62        bool pointIn(Ogre::Vector3 & point); 
    6163 
    6264        Ogre::Real *pointeru[4];  
     
    9395    Plane3 plane; 
    9496 
    95   public: 
    96     virtual ~Cluster(); 
    97  
    9897}; 
    9998 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGCluster2d.h

    r721 r731  
    88class Cluster; 
    99 
    10 class Cluster2d { 
     10class _IMGExport Cluster2d { 
    1111  public: 
    1212    Cluster2d(); 
     
    1717    //                   
    1818    //    
    19     int Create2d(Cluster * cluster, int type, int type_vertexs); 
     19    int create2d(Cluster * cluster, int type, int type_vertexs); 
    2020 
    21     void Print(); 
     21    void print(); 
    2222 
    23         Ogre::Vector2 * GetVector3s(); 
     23        Ogre::Vector2 * getVector3s(); 
    2424 
    25         std::vector<Ogre::Vector2> * GetVector3sVector(); 
     25        std::vector<Ogre::Vector2> * getVector3sVector(); 
    2626 
    27         Ogre::Vector3 * GetNormal(); 
     27        Ogre::Vector3 * getNormal(); 
    2828 
    2929  protected: 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGClusterList.h

    r721 r731  
    77namespace IMG { 
    88 
    9 class ClusterList  
     9class _IMGExport ClusterList  
    1010{ 
    1111  public: 
     
    1414    virtual ~ClusterList(); 
    1515     
    16     std::vector<Cluster> * GetList(); 
     16    std::vector<Cluster> * getList(); 
    1717 
    1818    //return the pointer to the list of voxels 
    19     unsigned int GetSize() const; 
     19    unsigned int getSize() const; 
    2020 
    2121    //return the number of elements of list 
    22     Cluster * Get(unsigned int i); 
     22    Cluster * get(unsigned int i); 
    2323 
    24     bool Insert(Cluster * p); 
     24    bool insert(Cluster * p); 
    2525 
    26     void Print(); 
     26    void print(); 
    2727 
    2828 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGNodeBsp.h

    r721 r731  
    88 
    99// Fordward declaration... 
    10 class NodeBsp; 
     10class _IMGExport NodeBsp; 
    1111 
    1212typedef ::boost::intrusive_ptr<NodeBsp> NodeBspPtr; 
     
    2525    virtual ~NodeBsp(); 
    2626 
    27     Box2d* GetBound(); 
     27    Box2d* getBound(); 
    2828 
    29     void SetBound(Box2d *box); 
     29    void setBound(Box2d *box); 
    3030 
    31     NodeBspPtr GetChild(int i); 
     31    NodeBspPtr getChild(int i); 
    3232 
    33     void SetId(int id_); 
     33    void setId(int id_); 
    3434 
    35     unsigned int GetId() const; 
     35    unsigned int getId() const; 
    3636 
    37     void SetChild(NodeBspPtr node, int i); 
     37    void setChild(NodeBspPtr node, int i); 
    3838 
    39     void Print(); 
     39    void print(); 
    4040 
    41     NodeBspPtr Insert(int w, int h); 
     41    NodeBspPtr insert(int w, int h); 
    4242 
    43     NodeBspPtr Get(NodeBspPtr node, int i); 
     43    NodeBspPtr get(NodeBspPtr node, int i); 
    4444 
    4545  protected: 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGPlane3.h

    r721 r731  
    66namespace IMG { 
    77 
    8 class Plane3: public Ogre::Plane { 
     8class _IMGExport Plane3: public Ogre::Plane { 
    99  public: 
    1010    //a plane's interface 
     
    1515    Plane3 & operator =(const Plane3 & p); 
    1616 
    17         Ogre::Vector3 * GetNormal(); 
     17        Ogre::Vector3 * getNormal(); 
    1818 
    19     void SetNormal(float x, float y, float z); 
     19    void setNormal(float x, float y, float z); 
    2020 
    21     void SetDistance(float dist); 
     21    void setDistance(float dist); 
    2222 
    23     float GetDistance() const; 
     23    float getDistance() const; 
    2424 
    25     void Print(); 
     25    void print(); 
    2626 
    2727}; 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGPrerequisites.h

    r721 r731  
    88#include <OgrePlane.h> 
    99#include <OgreAxisAlignedBox.h>  
     10#include <OgreHardwarePixelBuffer.h> 
     11#include <OgreImageCodec.h> 
     12 
     13#include <imdebug.h> 
    1014 
    1115#include <boost/smart_ptr.hpp> 
    1216 
     17#       if defined( IMG_LIB_BUILD ) 
     18#               define _IMGExport __declspec( dllexport )                        
     19#       else 
     20#               define _IMGExport 
     21#       endif 
     22 
    1323#endif 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/LBBC/LBBC.h

    r721 r731  
    99#include <LBBCBillboardViewMode.h> 
    1010#include <LBBCClusterViewMode.h> 
    11  
     11#include <LBBCEntityTextureAtlasViewMode.h> 
    1212#endif 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/LBBC/LBBCManager.h

    r721 r731  
    1515namespace LBBC { 
    1616 
    17 class _BBCExport Manager : public BBC::Manager { 
     17class _BBCExport LBBCManager : public BBC::BBCManager { 
    1818  public: 
    19     Manager(); 
     19    LBBCManager(); 
    2020 
    21     ~Manager(); 
     21    ~LBBCManager(); 
    2222 
    2323        void runSampleConfigFile(); 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/LBBC/LBBCSampleConfigFile.h

    r721 r731  
    1212    virtual ~SampleConfigFile(); 
    1313 
     14        Ogre::String getEntitySampleMaterialPrefixName(); 
     15 
    1416        bool getEntityDistributionMerged(); 
    1517 
     
    2022        bool getEntityDistributionSplitted(); 
    2123 
    22         Ogre::String getEntitySampleMeshPrefixFilename(); 
     24        Ogre::String getEntitySampleMeshPrefixName(); 
    2325 
    2426        bool getEntityDistributionGeneration(); 
     
    2628        Ogre::String getEntityDistributionFolder(); 
    2729 
    28         Ogre::String getEntityDistributionXMLPrefixFilename(); 
     30        Ogre::String getEntityDistributionXMLPrefixName(); 
    2931 
    3032        Ogre::String getEntitiesFolder(); 
     
    3234        bool getEntitySampleMeshGeneration(); 
    3335 
    34         Ogre::String getEntitiesMeshPrefixFilename(); 
     36        Ogre::String getEntitiesMeshPrefixName(); 
    3537 
    3638        bool getEntityClustersGeneration(); 
     
    4850        bool getEntityClustersSplittedClusters(); 
    4951 
    50         Ogre::String getEntityClustersMeshPrefixFilename(); 
     52        Ogre::String getEntityClustersMeshPrefixName(); 
    5153 
    52         Ogre::String getEntityClustersMaterialPrefixFilename(); 
     54        Ogre::String getEntityClustersMaterialPrefixName(); 
    5355 
    5456        bool getBillboardCloudMergedBillboards(); 
     
    6062        Ogre::String getBillboardCloudFolder(); 
    6163 
    62         Ogre::String getBillboardCloudMeshPrefixFilename(); 
     64        Ogre::String getBillboardCloudMeshPrefixName(); 
    6365 
    64         Ogre::String getBillboardCloudMaterialPrefixFilename(); 
     66        Ogre::String getBillboardCloudBillboardMaterialPrefixName(); 
    6567 
    66         Ogre::String getBillboardCloudXMLPrefixFilename(); 
     68        Ogre::String getBillboardCloudBillboardGroupMaterialPrefixName(); 
    6769 
    68         bool getBillboardCloudDiffuseColorTextureAtlasGeneration(); 
     70        Ogre::String getBillboardCloudBillboardTextureUnit0PrefixName(); 
    6971 
    70         unsigned int getBillboardCloudDiffuseColorTextureSize(); 
     72        Ogre::String getBillboardCloudBillboardGroupTextureUnit0PrefixName(); 
    7173 
    72         unsigned int getBillboardCloudDiffuseColorTextureAtlasSize(); 
    73  
    74         bool getBillboardCloudIndirectTextureAtlasGeneration(); 
    75  
    76         unsigned int getBillboardCloudIndirectTextureSize(); 
    77  
    78         unsigned int getBillboardCloudIndirectTextureAtlasSize(); 
     74        Ogre::String getBillboardCloudXMLPrefixName(); 
    7975 
    8076        unsigned int getBillboardCloudGroups(); 
    8177 
    8278        bool getBillboardCloudGroupedBillboards(); 
     79 
     80        bool getBillboardCloudDiffuseColorEntityTextureAtlasGeneration(); 
     81 
     82        Ogre::String getBillboardCloudDiffuseColorEntityTexturePrefixName(); 
     83 
     84        Ogre::String getBillboardCloudDiffuseColorEntityTextureAtlasPrefixName(); 
     85 
     86        unsigned int getBillboardCloudDiffuseColorEntityTextureAtlasBitRange(); 
     87 
     88        unsigned int getBillboardCloudDiffuseColorEntityTextureAtlasSize(); 
     89 
     90        unsigned int getBillboardCloudDiffuseColorBillboardGroupTextureSize(); 
     91 
     92        bool getBillboardCloudIndirectBillboardGroupTextureAtlasGeneration(); 
     93 
     94        Ogre::String getBillboardCloudIndirectBillboardGroupTextureAtlasPrefixName(); 
     95 
     96        unsigned int getBillboardCloudIndirectBillboardGroupTextureAtlasBitRange(); 
     97 
     98        unsigned int getBillboardCloudIndirectBillboardGroupTextureAtlasSize(); 
     99 
     100        unsigned int getBillboardCloudIndirectBillboardGroupTextureSize(); 
     101 
     102        bool getBillboardCloudDiffuseColorBillboardGroupTextureAtlasGeneration(); 
     103 
     104        bool getBillboardCloudDiffuseColorMergedBillboardsTextureAtlasGeneration(); 
     105 
     106        Ogre::String getBillboardCloudDiffuseColorMergedBillboardsTextureAtlasPrefixName(); 
     107 
     108        unsigned int getBillboardCloudDiffuseColorMergedBillboardsTextureAtlasBitRange(); 
     109 
     110        unsigned int getBillboardCloudDiffuseColorMergedBillboardsTextureAtlasSize(); 
     111 
     112        unsigned int getBillboardCloudDiffuseColorMergedBillboardsTextureSize(); 
     113 
     114        unsigned int getBillboardCloudDiffuseColorBillboardGroupTextureAtlasSize(); 
     115 
     116        unsigned int getBillboardCloudDiffuseColorEntityTextureAtlasNumSamples(); 
     117 
     118        bool getBillboardCloudIndirectMergedBillboardsTextureAtlasGeneration(); 
     119 
     120        Ogre::String getBillboardCloudIndirectMergedBillboardsTextureAtlasPrefixName(); 
     121 
     122        unsigned int getBillboardCloudIndirectMergedBillboardsTextureAtlasBitRange(); 
     123 
     124        unsigned int getBillboardCloudIndirectMergedBillboardsTextureAtlasSize(); 
     125 
     126        unsigned int getBillboardCloudIndirectMergedBillboardsTextureSize(); 
    83127 
    84128}; 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/OBA/OBAOgreBase.h

    r721 r731  
    3434  protected: 
    3535          Ogre::ArchiveManager *mArchiveManager; 
     36           
    3637          Ogre::ResourceGroupManager *mResourceGroupManager; 
     38           
    3739          Ogre::DefaultHardwareBufferManager *mDefaultHardwareBufferManager; 
     40           
    3841          Ogre::MeshSerializer *mMeshSerializer; 
     42           
     43          Ogre::MaterialSerializer *mMaterialSerializer; 
     44 
    3945          Ogre::XMLMeshSerializer *mXMLMeshSerializer; 
     46           
    4047          Ogre::MaterialManager *mMaterialManager; 
     48           
    4149          Ogre::LogManager *mLogManager; 
     50           
    4251          Ogre::MeshManager *mMeshManager; 
     52           
    4353          FileSystemArchiveFactory *mFileSystemArchiveFactory; 
     54 
    4455          Ogre::Math *mMath; 
    4556 
     
    5667        Ogre::XMLMeshSerializer* getXMLMeshSerializer(); 
    5768         
     69        Ogre::MaterialSerializer* getMaterialSerializer(); 
     70 
    5871        Ogre::MeshSerializer* getMeshSerializer(); 
    59  
    60         Ogre::MeshManager* getMeshManager(); 
    6172 
    6273        void initialize(); 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/OBA/OBAPrerequisites.h

    r721 r731  
    2323#       endif 
    2424 
    25  
    26  
    2725#endif 
Note: See TracChangeset for help on using the changeset viewer.