home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / graphtal / bboxdevc.h < prev    next >
C/C++ Source or Header  |  1992-10-23  |  1KB  |  45 lines

  1. /*
  2.  * BBoxDevice.h  - class definition for bounding box device driver.
  3.  *
  4.  * Copyright (C) 1992, Christoph Streit (streit@iam.unibe.ch)
  5.  * All rights reserved.
  6.  *
  7.  * This software may be freely copied, modified, and redistributed
  8.  * provided that this copyright notice is preserved on all copies.
  9.  *
  10.  * You may not distribute this software, in whole or in part, as part of
  11.  * any commercial product without the express consent of the authors.
  12.  *
  13.  * There is no warranty or other guarantee of fitness of this software
  14.  * for any purpose.  It is provided solely "as is".
  15.  *
  16.  */
  17.  
  18. #ifndef BBoxDevice_H
  19. # define BBoxDevice_H
  20.  
  21. #include "DeviceDriver.h"
  22.  
  23. /*___________________________________________________________ BBoxDevice
  24.  *
  25.  * Don't do any graphic stuff. Just calculate the bounding box
  26.  * of the object.
  27.  */
  28.  
  29. class BBoxDevice : public DeviceDriver 
  30. {
  31. public:
  32.   BBoxDevice(Options*);
  33.  
  34.   void begin();
  35.   void end(const BoundingBox&);
  36.   void cylinder(const Vector&, const Vector&, real);
  37.   void cone(const Vector&, real, const Vector&, real);
  38.   void sphere(const Vector&, real);
  39.   void polygon(Polygon*);
  40. };
  41.  
  42. #endif // BBoxDevice_H
  43.  
  44.  
  45.