00001 /*************************************************************************** 00002 *cr 00003 *cr (C) Copyright 1995-2019 The Board of Trustees of the 00004 *cr University of Illinois 00005 *cr All Rights Reserved 00006 *cr 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * RCS INFORMATION: 00010 * 00011 * $RCSfile: STLDisplayDevice.h,v $ 00012 * $Author: johns $ $Locker: $ $State: Exp $ 00013 * $Revision: 1.25 $ $Date: 2019/01/17 21:21:01 $ 00014 * 00015 *************************************************************************** 00016 * DESCRIPTION: 00017 * Use to make stereolithography files. See http://www.sdsc.edu/tmf/ 00018 * 00019 ***************************************************************************/ 00020 00021 #ifndef STLDISPLAYDEVICE 00022 #define STLDISPLAYDEVICE 00023 00024 #include <stdio.h> 00025 #include "FileRenderer.h" 00026 00028 class STLDisplayDevice : public FileRenderer { 00029 protected: 00030 void triangle(const float *, const float *, const float *, 00031 const float *, const float *, const float *); 00032 00033 public: 00034 STLDisplayDevice(void); // constructor 00035 virtual ~STLDisplayDevice(void); // destructor 00036 void write_header (void); 00037 void write_trailer(void); 00038 }; 00039 00040 #endif 00041