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

  1. /*
  2.  * BBoxDevice.C - 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. #include "BBoxDevice.h"
  19. #include "ViewTransform.h"
  20.  
  21. //___________________________________________________________ BBoxDevice
  22.  
  23. BBoxDevice::BBoxDevice(Options* options)
  24. : DeviceDriver(options)
  25. {}
  26.  
  27. void BBoxDevice::begin(){}
  28.  
  29. /*
  30.  * The only thing we have to do, is wait und report the bounding box.
  31.  */
  32. void BBoxDevice::end(const BoundingBox& b)
  33.   cout << "BoundingBox: "
  34.        << b << "\n\n";
  35.   ViewTransform* view = new ViewTransform(b, theOptions->up, theOptions->fov,
  36.                       theOptions->resX, theOptions->resY);    
  37.   cout << "proposed view parameter:\n"
  38.        << *view << '\n';
  39.  
  40.   delete view;
  41. }
  42.  
  43. void BBoxDevice::cylinder(const Vector&, const Vector&, real){}
  44. void BBoxDevice::cone(const Vector&, real, const Vector&, real){}
  45. void BBoxDevice::sphere(const Vector&, real){}
  46. void BBoxDevice::polygon(Polygon*){}
  47.  
  48.  
  49.