Text archives Help
- From: sparker@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [Manta] r1872 - in trunk: Core/Exceptions Core/Thread Core/Util DynLT Engine/Control Interface Model/Materials Model/MiscObjects Model/Primitives UserInterface
- Date: Tue, 27 Nov 2007 07:42:54 -0700 (MST)
Author: sparker
Date: Tue Nov 27 07:41:41 2007
New Revision: 1872
Modified:
trunk/Core/Exceptions/IllegalValue.h
trunk/Core/Thread/CleanupManager.h
trunk/Core/Util/Assert.h
trunk/Core/Util/CPUTime.h
trunk/Core/Util/SpinLock.h
trunk/DynLT/DynLTCGT.h
trunk/DynLT/DynLTParticles.h
trunk/Engine/Control/RTRT.h
trunk/Interface/RandomNumberGenerator.h
trunk/Model/Materials/Volume.h
trunk/Model/MiscObjects/BrickArray3.h
trunk/Model/Primitives/OctreeVolume.h
trunk/UserInterface/PromptUI.h
Log:
Fixed some more SCIRun references in conditionally compiled code that I did
not catch
Modified: trunk/Core/Exceptions/IllegalValue.h
==============================================================================
--- trunk/Core/Exceptions/IllegalValue.h (original)
+++ trunk/Core/Exceptions/IllegalValue.h Tue Nov 27 07:41:41 2007
@@ -95,7 +95,7 @@
return "IllegalValue";
}
-} // End namespace SCIRun
+} // End namespace Manta
#endif
Modified: trunk/Core/Thread/CleanupManager.h
==============================================================================
--- trunk/Core/Thread/CleanupManager.h (original)
+++ trunk/Core/Thread/CleanupManager.h Tue Nov 27 07:41:41 2007
@@ -111,7 +111,7 @@
static Mutex * lock_;
};
-} // End namespace SCIRun
+} // End namespace Manta
#endif /* SCI_project_CleanupManager_h */
Modified: trunk/Core/Util/Assert.h
==============================================================================
--- trunk/Core/Util/Assert.h (original)
+++ trunk/Core/Util/Assert.h Tue Nov 27 07:41:41 2007
@@ -51,7 +51,7 @@
# define IFASSERT(x) x
# define ASSERTL1(condition) \
if(!(condition)){ \
- SCI_THROW(SCIRun::AssertionFailed(#condition, __FILE__, __LINE__)); \
+ SCI_THROW(AssertionFailed(#condition, __FILE__, __LINE__)); \
}
#else
# define ASSERTL1(condition)
@@ -60,7 +60,7 @@
#if SCI_ASSERTION_LEVEL >= 2
# define ASSERTL2(condition) \
if(!(condition)){ \
- SCI_THROW(SCIRun::AssertionFailed(#condition, __FILE__, __LINE__)); \
+ SCI_THROW(AssertionFailed(#condition, __FILE__, __LINE__)); \
}
#else
# define ASSERTL2(condition)
@@ -69,11 +69,11 @@
#if SCI_ASSERTION_LEVEL >= 3
# define ASSERTL3(condition) \
if(!(condition)){ \
- SCI_THROW(SCIRun::AssertionFailed(#condition, __FILE__, __LINE__)); \
+ SCI_THROW(AssertionFailed(#condition, __FILE__, __LINE__)); \
}
# define CHECKARRAYBOUNDS(value, lower, upper) \
if(value < lower || value >= upper){ \
- SCI_THROW(SCIRun::ArrayIndexOutOfBounds(value, lower, upper,
__FILE__, __LINE__)); \
+ SCI_THROW(ArrayIndexOutOfBounds(value, lower, upper, __FILE__,
__LINE__)); \
}
#else
# define ASSERTL3(condition)
Modified: trunk/Core/Util/CPUTime.h
==============================================================================
--- trunk/Core/Util/CPUTime.h (original)
+++ trunk/Core/Util/CPUTime.h Tue Nov 27 07:41:41 2007
@@ -9,7 +9,7 @@
// measure will likely be incorrect. This is mostly for fine
// grained measurements where the process is likely to be on the
// same processor. For more global things you should use the
- // SCIRun::Time interface.
+ // Time interface.
// Also note that if you processors' speeds change (i.e. processors
// scaling) or if you are in a heterogenous environment, you will
Modified: trunk/Core/Util/SpinLock.h
==============================================================================
--- trunk/Core/Util/SpinLock.h (original)
+++ trunk/Core/Util/SpinLock.h Tue Nov 27 07:41:41 2007
@@ -4,7 +4,7 @@
#include <MachineParameters.h>
#if !(MANTA_X86)
-#include <SCIRun/Core/Thread/Mutex.h>
+#include <Core/Thread/Mutex.h>
#endif
namespace Manta {
@@ -80,7 +80,7 @@
return spin_mutex.tryLock();
}
- SCIRun::Mutex spin_mutex;
+ Mutex spin_mutex;
};
#endif // MANTA_X86
}
Modified: trunk/DynLT/DynLTCGT.h
==============================================================================
--- trunk/DynLT/DynLTCGT.h (original)
+++ trunk/DynLT/DynLTCGT.h Tue Nov 27 07:41:41 2007
@@ -4,8 +4,8 @@
#include <UseStatsCollector.h>
#include <DynLT/DynLTStatsCollector.h>
#include <Model/Primitives/GridSpheres.h>
-#include <SCIRun/Core/Thread/Mailbox.h>
-#include <SCIRun/Core/Thread/Time.h>
+#include <Core/Thread/Mailbox.h>
+#include <Core/Thread/Time.h>
#include <DynLT/DynLTGridSpheres.h>
#include <Model/Groups/private/ParticleCGT.h>
#include <string>
@@ -16,8 +16,6 @@
using std::vector;
#include <float.h>
-
-using namespace SCIRun;
using namespace std;
Modified: trunk/DynLT/DynLTParticles.h
==============================================================================
--- trunk/DynLT/DynLTParticles.h (original)
+++ trunk/DynLT/DynLTParticles.h Tue Nov 27 07:41:41 2007
@@ -4,7 +4,7 @@
#include <MantaTypes.h>
#include <Model/Groups/Group.h>
-#include <SCIRun/Core/Thread/Mailbox.h>
+#include <Core/Thread/Mailbox.h>
#include <limits.h>
Modified: trunk/Engine/Control/RTRT.h
==============================================================================
--- trunk/Engine/Control/RTRT.h (original)
+++ trunk/Engine/Control/RTRT.h Tue Nov 27 07:41:41 2007
@@ -45,13 +45,10 @@
#include <vector>
#include <list>
-namespace SCIRun {
- class Thread;
-}
-
namespace Manta {
using namespace std;
+ class Thread;
class CallbackHandle;
class Camera;
class Image;
Modified: trunk/Interface/RandomNumberGenerator.h
==============================================================================
--- trunk/Interface/RandomNumberGenerator.h (original)
+++ trunk/Interface/RandomNumberGenerator.h Tue Nov 27 07:41:41 2007
@@ -86,7 +86,7 @@
// Sanity check for RNGs.
for (int c = 0; c < 4; c++) {
if (results.data[i + c] < 0.f || results.data[i + c] >= 1.f) {
- throw SCIRun::InternalError("RNG generated number out of range
[0,1).", __FILE__, __LINE__);
+ throw InternalError("RNG generated number out of range [0,1).",
__FILE__, __LINE__);
}
}
#endif
Modified: trunk/Model/Materials/Volume.h
==============================================================================
--- trunk/Model/Materials/Volume.h (original)
+++ trunk/Model/Materials/Volume.h Tue Nov 27 07:41:41 2007
@@ -15,7 +15,7 @@
#include <Core/Geometry/Vector.h>
#include <Model/Groups/GriddedGroup.h>
#include <Core/Thread/Barrier.h>
-#include <SCIRun/Core/Thread/Mutex.h>
+#include <Core/Thread/Mutex.h>
#include <Core/Util/AlignedAllocator.h>
#include <Model/Readers/VolumeNRRD.h>
#include <Interface/Scene.h>
@@ -24,8 +24,8 @@
#include <cassert>
#include <float.h>
-#include <SCIRun/Core/Thread/Time.h>
-#include <SCIRun/Core/Thread/Thread.h>
+#include <Core/Thread/Time.h>
+#include <Core/Thread/Thread.h>
#include <Core/Geometry/BBox.h>
#include <assert.h>
@@ -1057,17 +1057,17 @@
// get the indices and weights for the indicies
double norm = current_p.x() * inv_diag.x();
double step = norm * (nx - 1);
- int x_low = SCIRun::Clamp((int)step, 0, nx-2);
+ int x_low = Clamp((int)step, 0, nx-2);
float x_weight_high = step - x_low;
norm = current_p.y() * inv_diag.y();
step = norm * (ny - 1);
- int y_low = SCIRun::Clamp((int)step, 0, ny-2);
+ int y_low = Clamp((int)step, 0, ny-2);
float y_weight_high = step - y_low;
norm = current_p.z() * inv_diag.z();
step = norm * (nz - 1);
- int z_low = SCIRun::Clamp((int)step, 0, nz-2);
+ int z_low = Clamp((int)step, 0, nz-2);
float z_weight_high = step - z_low;
Modified: trunk/Model/MiscObjects/BrickArray3.h
==============================================================================
--- trunk/Model/MiscObjects/BrickArray3.h (original)
+++ trunk/Model/MiscObjects/BrickArray3.h Tue Nov 27 07:41:41 2007
@@ -11,7 +11,7 @@
* Copyright (C) 1994 SCI Group
*
* Ported into Manta by Aaron Knoll.
- * XXX - this should ideally be in Core or SCIRun/Core/Containers. Move if
necessary.
+ * XXX - this should ideally be in Core/Containers. Move if necessary.
*/
#ifndef _MANTA_BRICKARRAY3_H_
Modified: trunk/Model/Primitives/OctreeVolume.h
==============================================================================
--- trunk/Model/Primitives/OctreeVolume.h (original)
+++ trunk/Model/Primitives/OctreeVolume.h Tue Nov 27 07:41:41 2007
@@ -147,7 +147,7 @@
/* END VARS SHOULD BE IN OCTISOVOLUME */
#ifdef TEST_INDATA
- SCIRun::Array3<ST> indata;
+ Array3<ST> indata;
#endif
inline float getMaxTime() const
Modified: trunk/UserInterface/PromptUI.h
==============================================================================
--- trunk/UserInterface/PromptUI.h (original)
+++ trunk/UserInterface/PromptUI.h Tue Nov 27 07:41:41 2007
@@ -59,7 +59,7 @@
//
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
- class PromptUI: public UserInterface, public SCIRun::Runnable {
+ class PromptUI: public UserInterface, public Runnable {
protected:
MantaInterface *manta_interface;
Factory factory;
- [Manta] r1872 - in trunk: Core/Exceptions Core/Thread Core/Util DynLT Engine/Control Interface Model/Materials Model/MiscObjects Model/Primitives UserInterface, sparker, 11/27/2007
Archive powered by MHonArc 2.6.16.