Ignore:
Timestamp:
02/12/07 08:37:26 (17 years ago)
Author:
mattausch
Message:

warning: debug version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/IntersectableWrapper.h

    r2069 r2113  
    1010 
    1111 
    12 struct VssRayContainer; 
    1312class KdNode; 
    14 //class BvhNode; 
    1513class BvhLeaf; 
    1614class Ray; 
    17  
     15class KdTree; 
     16struct VssRayContainer; 
     17struct Triangle3; 
    1818struct Face; 
    19 struct Triangle3; 
    20  
    21 class KdTree; 
    22  
    23  
    24 /** 
    25         Wrapper used for creating a PVS compliant intersectable. 
     19 
     20/** Wrapper used for creating a PVS compliant intersectable. 
    2621*/ 
    2722template<typename T> 
     
    219214 
    220215 
     216/** Intersectable acting as a proxy. 
     217*/ 
    221218class DummyIntersectable: public IntersectableWrapper<int> 
    222219{ 
    223220public: 
    224   DummyIntersectable(const int item): 
    225         IntersectableWrapper<int>(item) {} 
     221        DummyIntersectable(const int item): 
     222          IntersectableWrapper<int>(item) {} 
    226223 
    227224        int Type() const 
     
    231228}; 
    232229 
     230 
     231/** Intersectable wrapping is a group of objects. 
     232*/ 
     233class ContainerIntersectable: public GtpVisibilityPreprocessor::IntersectableWrapper<ObjectContainer *> 
     234{ 
     235public: 
     236        ContainerIntersectable(ObjectContainer *item): 
     237          IntersectableWrapper<ObjectContainer *>(item) {} 
     238 
     239        // hack 
     240        ContainerIntersectable::~ContainerIntersectable()  
     241        { 
     242                delete mItem; 
     243        } 
     244 
     245        int Type() const 
     246        { 
     247                return Intersectable::CONTAINER_INTERSECTABLE; 
     248        } 
     249}; 
     250 
    233251} 
    234252 
Note: See TracChangeset for help on using the changeset viewer.