Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r1659 - trunk/Interface


Chronological Thread 
  • From: boulos@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [Manta] r1659 - trunk/Interface
  • Date: Fri, 17 Aug 2007 00:02:20 -0600 (MDT)

Author: boulos
Date: Fri Aug 17 00:02:19 2007
New Revision: 1659

Modified:
   trunk/Interface/AmbientLight.h
   trunk/Interface/Background.h
   trunk/Interface/Camera.h
   trunk/Interface/Material.h
   trunk/Interface/Object.h
   trunk/Interface/Primitive.h
Log:
Interface/AmbientLight.h
Interface/Background.h
Interface/Camera.h
Interface/Material.h
Interface/Object.h
Interface/Primitive.h

 Removing the requirement for preprocess.  If someone feels strongly
 against this decision, they should voice their opinion now.


Modified: trunk/Interface/AmbientLight.h
==============================================================================
--- trunk/Interface/AmbientLight.h      (original)
+++ trunk/Interface/AmbientLight.h      Fri Aug 17 00:02:19 2007
@@ -17,7 +17,7 @@
     AmbientLight();
     virtual ~AmbientLight();
 
-    virtual void preprocess(const PreprocessContext& context) = 0;
+    virtual void preprocess(const PreprocessContext& context) {};
     virtual void computeAmbient(const RenderContext& context, RayPacket& 
rays, ColorArray ambient) const = 0;
 
     virtual std::string toString() const = 0;

Modified: trunk/Interface/Background.h
==============================================================================
--- trunk/Interface/Background.h        (original)
+++ trunk/Interface/Background.h        Fri Aug 17 00:02:19 2007
@@ -11,7 +11,7 @@
     Background();
     virtual ~Background();
 
-    virtual void preprocess(const PreprocessContext& context) = 0;
+    virtual void preprocess(const PreprocessContext& context) {}
     virtual void shade(const RenderContext& context, RayPacket& rays) const 
= 0;
   private:
     Background(const Background&);

Modified: trunk/Interface/Camera.h
==============================================================================
--- trunk/Interface/Camera.h    (original)
+++ trunk/Interface/Camera.h    Fri Aug 17 00:02:19 2007
@@ -46,7 +46,7 @@
   public:
     Camera();
     virtual ~Camera();
-    virtual void preprocess(const PreprocessContext& context) = 0;
+    virtual void preprocess(const PreprocessContext& context) {};
     virtual void makeRays(RayPacket&) const = 0;
 
     // Camera manipulation

Modified: trunk/Interface/Material.h
==============================================================================
--- trunk/Interface/Material.h  (original)
+++ trunk/Interface/Material.h  Fri Aug 17 00:02:19 2007
@@ -41,8 +41,8 @@
   public:
     Material();
     virtual ~Material();
-    
-    virtual void preprocess(const PreprocessContext&) = 0;
+
+    virtual void preprocess(const PreprocessContext&) {};
     virtual void shade(const RenderContext& context, RayPacket& rays) const 
= 0;
     // Multiplies the color in the ray packet (interpreted as the
     // light color) by the material's shadow attenuation.  In the case

Modified: trunk/Interface/Object.h
==============================================================================
--- trunk/Interface/Object.h    (original)
+++ trunk/Interface/Object.h    Fri Aug 17 00:02:19 2007
@@ -16,7 +16,7 @@
     Object();
     virtual ~Object();
 
-    virtual void preprocess(const PreprocessContext& context) = 0;
+    virtual void preprocess(const PreprocessContext& context) {};
     virtual void computeBounds(const PreprocessContext& context, BBox& bbox) 
const = 0;
     virtual void intersect(const RenderContext& context, RayPacket& rays) 
const = 0;
   private:

Modified: trunk/Interface/Primitive.h
==============================================================================
--- trunk/Interface/Primitive.h (original)
+++ trunk/Interface/Primitive.h Fri Aug 17 00:02:19 2007
@@ -14,7 +14,7 @@
     Primitive();
     virtual ~Primitive();
 
-    virtual void preprocess(const PreprocessContext& context) = 0;
+    virtual void preprocess(const PreprocessContext& context) {};
     virtual void intersect(const RenderContext& context,
                            RayPacket& rays) const = 0;
     virtual void computeNormal(const RenderContext& context,




  • [Manta] r1659 - trunk/Interface, boulos, 08/17/2007

Archive powered by MHonArc 2.6.16.

Top of page