Text archives Help
- From: boulos@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r956 - trunk/Interface
- Date: Fri, 24 Feb 2006 00:04:00 -0700 (MST)
Author: boulos
Date: Fri Feb 24 00:04:00 2006
New Revision: 956
Modified:
trunk/Interface/RayPacket.h
Log:
Changing getSign stuff to be const to allow
for use in intersection routines.
Modified: trunk/Interface/RayPacket.h
==============================================================================
--- trunk/Interface/RayPacket.h (original)
+++ trunk/Interface/RayPacket.h Fri Feb 24 00:04:00 2006
@@ -20,7 +20,7 @@
class Material;
class RenderContext;
-
+
class MANTA_ALIGN(16) RayPacketData {
public:
enum {
@@ -249,12 +249,12 @@
{
return data->inverseDirection[i][which];
}
-
+
const Real &getInverseDirection(int which, int i) const
{
return data->inverseDirection[i][which];
- }
-
+ }
+
void normalizeDirections()
{
if(flags & NormalizedDirections)
@@ -312,17 +312,17 @@
return;
flags |= ConstantSigns;
}
- VectorT<int, 3> getSigns(int which)
+ VectorT<int, 3> getSigns(int which) const
{
return VectorT<int, 3>(data->signs[0][which], data->signs[1][which],
data->signs[2][which]);
}
- int getSign(int which, int sign)
+ int getSign(int which, int sign) const
{
return data->signs[sign][which];
}
// Return a bit mask representing the sign directions of the ray.
- int getSignMask(int which) {
+ int getSignMask(int which) const {
return
(data->signs[0][which]) |
(data->signs[1][which] << 1) |
- [MANTA] r956 - trunk/Interface, boulos, 02/24/2006
Archive powered by MHonArc 2.6.16.