Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [Manta] r1851 - trunk/Core/Color


Chronological Thread 
  • From: James Bigler <bigler@cs.utah.edu>
  • Cc: manta@sci.utah.edu
  • Subject: Re: [Manta] r1851 - trunk/Core/Color
  • Date: Fri, 16 Nov 2007 07:01:48 -0700

I put an implementation in the .cc file, because SWIG complained (rightly) during link phase that the function didn't exit. I believe this function should exist since the other colors all have toString.

I'm curious as to why moving it below the other functions helps?

James

On Nov 16, 2007, at 5:51 AM, abe@sci.utah.edu wrote:

Author: abe
Date: Fri Nov 16 05:51:20 2007
New Revision: 1851

Modified:
   trunk/Core/Color/Spectrum.h
Log:

I've lost track if Spectrum::toString is supposed to exist or not, but
it recently appeared in the source file again and now it's in the
header too ;-)

This should fix the compilation error in Spectrum.cc

M    Core/Color/Spectrum.h


Modified: trunk/Core/Color/Spectrum.h
====================================================================== ========
--- trunk/Core/Color/Spectrum.h (original)
+++ trunk/Core/Color/Spectrum.h Fri Nov 16 05:51:20 2007
@@ -28,11 +28,11 @@
     ~Spectrum() {
     }

-    std::string toString() const;
-
     RGBColor getRGB() const;
     std::string writePersistentString() const;
     bool readPersistentString(const std::string& str);
+
+    std::string toString() const;

   protected:
     std::vector<float> samples;






Archive powered by MHonArc 2.6.16.

Top of page