Text archives Help
- From: abe@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1237 - trunk/Core/Geometry
- Date: Mon, 20 Nov 2006 09:42:31 -0700 (MST)
Author: abe
Date: Mon Nov 20 09:42:31 2006
New Revision: 1237
Modified:
trunk/Core/Geometry/AffineTransform.h
trunk/Core/Geometry/BBox.h
Log:
Ifdef'ed out code causing warnings on swig build. (Warnings about ignored
overloaded operators.)
M Core/Geometry/BBox.h
M Core/Geometry/AffineTransform.h
Modified: trunk/Core/Geometry/AffineTransform.h
==============================================================================
--- trunk/Core/Geometry/AffineTransform.h (original)
+++ trunk/Core/Geometry/AffineTransform.h Mon Nov 20 09:42:31 2006
@@ -59,12 +59,14 @@
for(int j=0;j<4;j++)
mat[i][j] = copy.mat[i][j];
}
+#ifndef SWIG
AffineTransform& operator=(const AffineTransform ©) {
for(int i=0;i<3;i++)
for(int j=0;j<4;j++)
mat[i][j] = copy.mat[i][j];
return *this;
}
+#endif
// These methods set the current matrix
void initWithIdentity();
Modified: trunk/Core/Geometry/BBox.h
==============================================================================
--- trunk/Core/Geometry/BBox.h (original)
+++ trunk/Core/Geometry/BBox.h Mon Nov 20 09:42:31 2006
@@ -28,12 +28,14 @@
bounds[0] = copy.bounds[0];
bounds[1] = copy.bounds[1];
}
+#ifndef SWIG
BBox& operator=(const BBox& copy)
{
bounds[0] = copy.bounds[0];
bounds[1] = copy.bounds[1];
return *this;
}
+#endif
// This resets min and max to an uninitialized state that will
@@ -117,10 +119,10 @@
else
return d.y() > d.z() ? 1 : 2;
}
-
+#ifndef SWIG
inline Vector &operator[] (int i) { return bounds[i]; }
inline const Vector &operator[] (int i) const { return bounds[i]; }
-
+#endif
private:
Vector bounds[2];
};
- [MANTA] r1237 - trunk/Core/Geometry, abe, 11/20/2006
Archive powered by MHonArc 2.6.16.