- Timestamp:
- 04/06/06 20:48:19 (19 years ago)
- Location:
- GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG
- Files:
-
- 2 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMG.h
r721 r731 2 2 #define _IMG_H 3 3 4 #include <IMGTexture.h> 5 #include <IMGTextureAtlas.h> 6 4 7 #endif -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGBBox.h
r721 r731 25 25 // this class encaplusalte the ogre::AxisAlignedBox 26 26 //* 27 class BBox: public Ogre::AxisAlignedBox {27 class _IMGExport BBox: public Ogre::AxisAlignedBox { 28 28 public: 29 29 BBox(); … … 31 31 ~BBox(); 32 32 33 void StartBoundingBox();33 void initialize(); 34 34 35 Ogre::Vector3 GetMinimum();35 Ogre::Vector3 getMinimum(); 36 36 37 Ogre::Vector3 GetMaximum();37 Ogre::Vector3 getMaximum(); 38 38 39 void AddBoundingVector3(float x, float y, float z);39 void addBoundingVector3(float x, float y, float z); 40 40 41 void Print();41 void print(); 42 42 43 Ogre::Vector3 GetCorner(int corner) const;43 Ogre::Vector3 getCorner(int corner) const; 44 44 45 45 bool intersects(Ogre::Vector3 v); -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGBox2d.h
r721 r731 7 7 8 8 //* this class represents a 2d bound box for a texture 9 class Box2d9 class _IMGExport Box2d 10 10 { 11 11 public: … … 22 22 } 23 23 24 Ogre::Vector2 GetMinimum();24 Ogre::Vector2 getMinimum(); 25 25 26 Ogre::Vector2 GetMaximum();26 Ogre::Vector2 getMaximum(); 27 27 28 void SetBoundBox(float x, float y, float X, float Y);28 void setBoundBox(float x, float y, float X, float Y); 29 29 30 void AddBoundingVector3(float x, float y);30 void addBoundingVector3(float x, float y); 31 31 32 void Print();32 void print(); 33 33 34 Ogre::Vector2 GetCorner(int corner) const;34 Ogre::Vector2 getCorner(int corner) const; 35 35 36 bool In(int w, int h);36 bool in(int w, int h); 37 37 38 bool FitPerfect(int w, int h);38 bool fitPerfect(int w, int h); 39 39 40 40 protected: -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGBsp.h
r721 r731 7 7 namespace IMG { 8 8 9 class Bsp {9 class _IMGExport Bsp { 10 10 public: 11 11 Bsp(); … … 13 13 virtual ~Bsp(); 14 14 15 void SetRoot(NodeBspPtr node);15 void setRoot(NodeBspPtr node); 16 16 17 void Print();17 void print(); 18 18 19 void PrintLeaf();19 void printLeaf(); 20 20 21 NodeBspPtr Insert(int w, int h, int idcluster);21 NodeBspPtr insert(int w, int h, int idcluster); 22 22 23 NodeBspPtr Get(int i);23 NodeBspPtr get(int i); 24 24 25 25 protected: … … 30 30 int counttotal; 31 31 32 void Print(NodeBspPtr node);32 void print(NodeBspPtr node); 33 33 34 void PrintLeaf(NodeBspPtr node);34 void printLeaf(NodeBspPtr node); 35 35 36 36 }; -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGCluster.h
r721 r731 11 11 { 12 12 13 class Cluster13 class _IMGExport Cluster 14 14 { 15 15 public: 16 16 Cluster(); 17 18 virtual ~Cluster(); 17 19 18 20 Cluster & operator =(const Cluster & p); … … 20 22 Cluster(const Cluster & p); 21 23 22 void SetNormal(Ogre::Vector3* n);24 void setNormal(Ogre::Vector3* n); 23 25 24 Ogre::Vector3* GetNormal();26 Ogre::Vector3* getNormal(); 25 27 26 BBox* GetBound();28 BBox* getBound(); 27 29 28 Box2d* GetBspNodeBound();30 Box2d* getBspNodeBound(); 29 31 30 void SetBspNodeBound(Box2d* box);32 void setBspNodeBound(Box2d* box); 31 33 32 void Print();34 void print(); 33 35 34 36 //* return the dominant normal axis, for calculate the 2d projection 35 int AxisProjected();37 int axisProjected(); 36 38 37 int GetId() const;39 int getId() const; 38 40 39 void SetId(int id_);41 void setId(int id_); 40 42 41 std::vector<Ogre::Vector3>* GetVector3sVector();43 std::vector<Ogre::Vector3>* getVector3sVector(); 42 44 43 Ogre::Vector3* GetVector3sTex() const;45 Ogre::Vector3* getVector3sTex() const; 44 46 45 void Finish();47 void finish(); 46 48 47 void SetPlane(Ogre::Vector3* normal, Ogre::Vector3 * point);49 void setPlane(Ogre::Vector3* normal, Ogre::Vector3 * point); 48 50 49 Plane3 * GetPlane();51 Plane3 * getPlane(); 50 52 51 53 //* Return the increment in U (lumel increment in x). For patchs calculation 52 Ogre::Vector3 GetIncU();54 Ogre::Vector3 getIncU(); 53 55 54 56 //* Return the increment in V (lumel increment in x). For patchs calculation 55 Ogre::Vector3 GetIncV();57 Ogre::Vector3 getIncV(); 56 58 57 59 //* Return the origin. For patchs calculation 58 Ogre::Vector3 GetOrigin();60 Ogre::Vector3 getOrigin(); 59 61 60 bool PointIn(Ogre::Vector3 & point);62 bool pointIn(Ogre::Vector3 & point); 61 63 62 64 Ogre::Real *pointeru[4]; … … 93 95 Plane3 plane; 94 96 95 public:96 virtual ~Cluster();97 98 97 }; 99 98 -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGCluster2d.h
r721 r731 8 8 class Cluster; 9 9 10 class Cluster2d {10 class _IMGExport Cluster2d { 11 11 public: 12 12 Cluster2d(); … … 17 17 // 18 18 // 19 int Create2d(Cluster * cluster, int type, int type_vertexs);19 int create2d(Cluster * cluster, int type, int type_vertexs); 20 20 21 void Print();21 void print(); 22 22 23 Ogre::Vector2 * GetVector3s();23 Ogre::Vector2 * getVector3s(); 24 24 25 std::vector<Ogre::Vector2> * GetVector3sVector();25 std::vector<Ogre::Vector2> * getVector3sVector(); 26 26 27 Ogre::Vector3 * GetNormal();27 Ogre::Vector3 * getNormal(); 28 28 29 29 protected: -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGClusterList.h
r721 r731 7 7 namespace IMG { 8 8 9 class ClusterList9 class _IMGExport ClusterList 10 10 { 11 11 public: … … 14 14 virtual ~ClusterList(); 15 15 16 std::vector<Cluster> * GetList();16 std::vector<Cluster> * getList(); 17 17 18 18 //return the pointer to the list of voxels 19 unsigned int GetSize() const;19 unsigned int getSize() const; 20 20 21 21 //return the number of elements of list 22 Cluster * Get(unsigned int i);22 Cluster * get(unsigned int i); 23 23 24 bool Insert(Cluster * p);24 bool insert(Cluster * p); 25 25 26 void Print();26 void print(); 27 27 28 28 -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGNodeBsp.h
r721 r731 8 8 9 9 // Fordward declaration... 10 class NodeBsp;10 class _IMGExport NodeBsp; 11 11 12 12 typedef ::boost::intrusive_ptr<NodeBsp> NodeBspPtr; … … 25 25 virtual ~NodeBsp(); 26 26 27 Box2d* GetBound();27 Box2d* getBound(); 28 28 29 void SetBound(Box2d *box);29 void setBound(Box2d *box); 30 30 31 NodeBspPtr GetChild(int i);31 NodeBspPtr getChild(int i); 32 32 33 void SetId(int id_);33 void setId(int id_); 34 34 35 unsigned int GetId() const;35 unsigned int getId() const; 36 36 37 void SetChild(NodeBspPtr node, int i);37 void setChild(NodeBspPtr node, int i); 38 38 39 void Print();39 void print(); 40 40 41 NodeBspPtr Insert(int w, int h);41 NodeBspPtr insert(int w, int h); 42 42 43 NodeBspPtr Get(NodeBspPtr node, int i);43 NodeBspPtr get(NodeBspPtr node, int i); 44 44 45 45 protected: -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGPlane3.h
r721 r731 6 6 namespace IMG { 7 7 8 class Plane3: public Ogre::Plane {8 class _IMGExport Plane3: public Ogre::Plane { 9 9 public: 10 10 //a plane's interface … … 15 15 Plane3 & operator =(const Plane3 & p); 16 16 17 Ogre::Vector3 * GetNormal();17 Ogre::Vector3 * getNormal(); 18 18 19 void SetNormal(float x, float y, float z);19 void setNormal(float x, float y, float z); 20 20 21 void SetDistance(float dist);21 void setDistance(float dist); 22 22 23 float GetDistance() const;23 float getDistance() const; 24 24 25 void Print();25 void print(); 26 26 27 27 }; -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGPrerequisites.h
r721 r731 8 8 #include <OgrePlane.h> 9 9 #include <OgreAxisAlignedBox.h> 10 #include <OgreHardwarePixelBuffer.h> 11 #include <OgreImageCodec.h> 12 13 #include <imdebug.h> 10 14 11 15 #include <boost/smart_ptr.hpp> 12 16 17 # if defined( IMG_LIB_BUILD ) 18 # define _IMGExport __declspec( dllexport ) 19 # else 20 # define _IMGExport 21 # endif 22 13 23 #endif
Note: See TracChangeset
for help on using the changeset viewer.