Changeset 159 for trunk/VUT/GtpVisibility
- Timestamp:
- 07/06/05 17:52:44 (19 years ago)
- Location:
- trunk/VUT/GtpVisibility
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibility/include/DummyQueryManager.h
r144 r159 25 25 InfoContainer<NodeInfo> *visibleNodes, 26 26 InfoContainer<MeshInfo> *visibleGeometry, 27 InfoContainer<GtpVisibility::PatchInfo> *visiblePatches, 27 28 bool relativeVisibility = false ); 28 29 … … 34 35 InfoContainer<NodeInfo> *visibleNodes, 35 36 InfoContainer<MeshInfo> *visibleGeometry, 37 InfoContainer<GtpVisibility::PatchInfo> *visiblePatches, 36 38 bool relativeVisibility = false 37 39 ); -
trunk/VUT/GtpVisibility/include/QueryManager.h
r144 r159 51 51 InfoContainer<NodeInfo> *visibleNodes, 52 52 InfoContainer<MeshInfo> *visibleGeometry, 53 InfoContainer<GtpVisibility::PatchInfo> *visiblePatches, 53 54 bool relativeVisibility = false 54 55 ) = 0; … … 62 63 InfoContainer<NodeInfo> *visibleNodes, 63 64 InfoContainer<MeshInfo> *visibleGeometry, 65 InfoContainer<GtpVisibility::PatchInfo> *visiblePatches, 64 66 bool relativeVisibility = false 65 67 ) = 0; -
trunk/VUT/GtpVisibility/include/VisibilityInfo.h
r150 r159 77 77 Mesh *mMesh; 78 78 }; 79 79 80 /** Class storing the visibility information of a patch, i.e., parts of meshes having the same material 81 properties. 82 */ 83 class PatchInfo: public VisibilityInfo 84 { 85 public: 86 PatchInfo(Patch *Patch, const int visiblePixels, const int projectedPixels); 87 88 Patch *GetPatch() const; 89 void SetPatch(Patch *patch); 90 91 protected: 92 93 /** Pointer to the patch. 94 */ 95 Patch *mPatch; 96 }; 97 80 98 //TODO: this define shall be replaced by template typedef 81 99 #define InfoContainer std::vector -
trunk/VUT/GtpVisibility/include/VisibilityMesh.h
r130 r159 7 7 namespace GtpVisibility { 8 8 typedef Ogre::Entity Mesh; 9 typedef Ogre::SubEntity Patch; 9 10 } 10 11 -
trunk/VUT/GtpVisibility/src/DummyQueryManager.cpp
r155 r159 11 11 InfoContainer<NodeInfo> *visibleNodes, 12 12 InfoContainer<MeshInfo> *visibleGeometry, 13 InfoContainer<GtpVisibility::PatchInfo> *visiblePatches, 13 14 bool relativeVisibility) 14 15 { … … 29 30 InfoContainer<NodeInfo> *visibleNodes, 30 31 InfoContainer<MeshInfo> *visibleGeometry, 32 InfoContainer<GtpVisibility::PatchInfo> *visiblePatches, 31 33 bool relativeVisibility) 32 34 { -
trunk/VUT/GtpVisibility/src/VisibilityInfo.cpp
r153 r159 88 88 return mMesh; 89 89 } 90 91 /****************************************************/ 92 /* PatchInfo implementation */ 93 /****************************************************/ 94 //----------------------------------------------------------------------- 95 PatchInfo::PatchInfo(Patch *patch, const int visiblePixels, const int projectedPixels): 96 VisibilityInfo(visiblePixels, projectedPixels), mPatch(patch) 97 {} 98 //----------------------------------------------------------------------- 99 void PatchInfo::SetPatch(Patch *patch) 100 { 101 mPatch = patch; 102 } 103 //----------------------------------------------------------------------- 104 Patch *PatchInfo::GetPatch() const 105 { 106 return mPatch; 107 } 90 108 }// namespace GtpVisibility
Note: See TracChangeset
for help on using the changeset viewer.