home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / oct93 / graphics / graphtal.lha / Graphtal / Hull.h < prev    next >
C/C++ Source or Header  |  1992-11-17  |  1KB  |  50 lines

  1. /*
  2.  * Hull.h - class definition for hulls (collection of geometric
  3.  *          objects).
  4.  *
  5.  * Copyright (C) 1992, Christoph Streit (streit@iam.unibe.ch)
  6.  *                     University of Berne, Switzerland
  7.  * All rights reserved.
  8.  *
  9.  * This software may be freely copied, modified, and redistributed
  10.  * provided that this copyright notice is preserved on all copies.
  11.  *
  12.  * You may not distribute this software, in whole or in part, as part of
  13.  * any commercial product without the express consent of the authors.
  14.  *
  15.  * There is no warranty or other guarantee of fitness of this software
  16.  * for any purpose.  It is provided solely "as is".
  17.  *
  18.  */
  19.  
  20. #ifndef Hull_H
  21. # define Hull_H
  22.  
  23. #include "GeoObject.h"
  24. #include "BoundingBox.h"
  25. #include "rcString.h"
  26. #include "Polygon.h"
  27. #include "table.h"
  28.  
  29. //___________________________________________________________ Hull
  30.  
  31. class Hull 
  32. {
  33. public:
  34.   Hull();
  35.   ~Hull();
  36.  
  37.   void addPrimitive(GeoObject*);
  38.   long numPrimitives() const;
  39.   int intersect(const Ray&, real&, GeoObject*&) const;
  40.   PolygonList* convertToPolygonList(const BoundingBox&) const;
  41.  
  42. private:
  43.   GeoObjectList* primitives;
  44. };
  45.  
  46. typedef Hull* HullPtr;
  47. declareTable(HullSymtab, rcString, HullPtr);
  48.  
  49. #endif // Hull_H
  50.