Text archives Help
- From: bigler@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1327 - in trunk: Image scenes
- Date: Tue, 10 Apr 2007 21:36:59 -0600 (MDT)
Author: bigler
Date: Tue Apr 10 21:36:58 2007
New Revision: 1327
Modified:
trunk/Image/ImageMagickFile.cc
trunk/scenes/objviewer.cc
Log:
Image/ImageMagickFile.cc
Make the disctinction between warning and error exceptions when
reading images.
scenes/objviewer.cc
It's not a dielectric material if Tr is 0 or 1.
Modified: trunk/Image/ImageMagickFile.cc
==============================================================================
--- trunk/Image/ImageMagickFile.cc (original)
+++ trunk/Image/ImageMagickFile.cc Tue Apr 10 21:36:58 2007
@@ -38,12 +38,16 @@
#include <Magick++.h>
+#include <iostream>
+
using namespace Manta;
using namespace SCIRun;
using MagickLib::Quantum;
using MagickLib::MagickRealType;
+using std::cerr;
+
// This is bacward compatibility with previous versions of ImageMagick
#ifndef QuantumRange
#define QuantumRange MaxRGB
@@ -76,7 +80,9 @@
try {
// Read a file into image object
magick_image.read( file_name );
- } catch ( Magick::Exception& error_ ) {
+ } catch ( Magick::Warning& warning_ ) {
+ cerr << "readImageMagick::Warning reading file:" +
string(warning_.what()) << "\n";
+ } catch ( Magick::Error& error_ ) {
throw InputError( "readImageMagick::Error reading file:" +
string(error_.what()) );
}
Modified: trunk/scenes/objviewer.cc
==============================================================================
--- trunk/scenes/objviewer.cc (original)
+++ trunk/scenes/objviewer.cc Tue Apr 10 21:36:58 2007
@@ -375,7 +375,7 @@
//////////////////////////////////////////////////////////////////////
// Check for a dielectric.
- if (Tr != 1) {
+ if (Tr != 1 && Tr != 0) {
std::cerr << "Material " << index << " dielectric" << std::endl;
- [MANTA] r1327 - in trunk: Image scenes, bigler, 04/10/2007
Archive powered by MHonArc 2.6.16.