Changeset 2629 for GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.h
- Timestamp:
- 01/23/08 00:21:50 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.h
r2621 r2629 25 25 struct SimpleRay; 26 26 class RayPacket2x2; 27 class Matrix4x4;28 27 29 28 /** This class provides an interface for ray casting. … … 37 36 INTERNAL_RAYCASTER = 0, 38 37 INTEL_RAYCASTER = 1, 39 HAVRAN_RAYCASTER = 2 38 HAVRAN_RAYCASTER = 2, 39 HAVRAN_DYN_RAYCASTER = 3 40 40 }; 41 41 … … 72 72 const bool pruneInvalidRays = true); 73 73 74 virtual void 75 CastSimpleForwardRays(SimpleRayContainer &rays, 76 const AxisAlignedBox3 &sbox 77 ) { return;} 78 74 79 // Using packet of 4 rays supposing that these are coherent 75 80 virtual void CastRaysPacket4(Vector3 origin4[], … … 82 87 // ray shooting is computed ! 83 88 virtual void CastRaysPacket4(const Vector3 &minBox, 84 85 86 87 88 89 const Vector3 &maxBox, 90 const Vector3 origin4[], 91 const Vector3 direction4[], 92 int result4[], 93 float dist4[]) { } 89 94 90 95 // Just for testing concept … … 93 98 const bool pruneInvalidRays = true) 94 99 { } 100 101 virtual void AddDynamicObjecs(const ObjectContainer &objects, const Matrix4x4 &m) 102 { } 103 104 virtual void UpdateDynamicObjects(const Matrix4x4 &m) 105 { } 106 107 virtual void DeleteDynamicObjects() 108 { } 109 95 110 96 111 /*virtual void CastRaysEye4(SimpleRayContainer &rays, … … 101 116 */ 102 117 118 // This sorts only rays by origin 103 119 virtual void 104 120 SortRays(SimpleRayContainer &rays); 105 121 106 107 virtual void AddDynamicObjecs(const ObjectContainer &objects, const Matrix4x4 &m) = 0; 108 virtual void UpdateDynamicObjects(const Matrix4x4 &m) = 0; 109 virtual void DeleteDynamicObjects() = 0; 110 122 // This sorts the ray by origin and direction 123 virtual void 124 SortRays2(SimpleRayContainer &rays); 125 111 126 // pool of vss rays to be used in one pass of the sampling 112 127 struct VssRayPool … … 173 188 const int depth, 174 189 float box[12]); 190 191 void _SortRays2(SimpleRayContainer &rays, 192 const int l, 193 const int r, 194 const int depth, 195 float box[12]); 175 196 176 197 struct Intersection
Note: See TracChangeset
for help on using the changeset viewer.