main.cpp

Go to the documentation of this file.
00001 /* ****************************************************************** **
00002 **    OpenSees - Open System for Earthquake Engineering Simulation    **
00003 **          Pacific Earthquake Engineering Research Center            **
00004 **                                                                    **
00005 **                                                                    **
00006 ** (C) Copyright 1999, The Regents of the University of California    **
00007 ** All Rights Reserved.                                               **
00008 **                                                                    **
00009 ** Commercial use of this program without express permission of the   **
00010 ** University of California, Berkeley, is strictly prohibited.  See   **
00011 ** file 'COPYRIGHT'  in main directory for information on usage and   **
00012 ** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
00013 **                                                                    **
00014 ** Developed by:                                                      **
00015 **   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
00016 **   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
00017 **   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
00018 **                                                                    **
00019 ** ****************************************************************** */
00020                                                                         
00021 // $Revision: 1.2 $
00022 // $Date: 2003/02/14 23:01:58 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/renderer/main.cpp,v $
00024                                                                         
00025                                                                         
00026 // File: ~/model/main.C
00027 //
00028 // Written: fmk 12/95
00029 // Revised:
00030 //
00031 // Purpose: This file is a driver to create a 2d plane-frame
00032 // model and to perform a linear static analysis on that model.
00033 // 
00034 //
00035 
00036 #include <stdlib.h>
00037 #include <iOPS_Stream.h>
00038 
00039 #include <View.h>
00040 #include <Viewport.h>
00041 #include <Scan.h>
00042 #include <Device.h>
00043 #include <Projection.h>
00044 #include <Clipping.h>
00045 #include <db.H>
00046 
00047 #include <FilePlotter.h>
00048 
00049 int main(int argc, char **argv)
00050 {
00051 
00052   Recorder *thePlotter = new FilePlotter("test","g3",10,10,300,300);
00053   thePlotter->record(0);
00054 
00055   /*
00056   theDevice.WINOPEN(600,300);
00057   theScan.update();
00058 
00059   FACE *theFace = new FACE();
00060   POINT *point = new POINT(1,10.0,10.0,0.0);
00061   point->r = 0.5;
00062   point->g = 0.5;
00063   point->b = 0.5;
00064   theFace->AddPoint(*point);
00065 
00066   point = new POINT(1,100.0,100.0,0.0);
00067   point->r = 0.3;
00068   point->g = 0.3;
00069   point->b = 0.3;
00070   theFace->AddPoint(*point);
00071 
00072   point = new POINT(1,200.0,50.0,0.0);
00073   point->r = 0.6;
00074   point->g = 0.6;
00075   point->b = 0.6;
00076   theFace->AddPoint(*point);
00077   */
00078 
00079   /***************
00080   FACE &theVFace = theView.transform(theFace);
00081   FACE &thePFace = theProjection.transform(theVFace);
00082   FACE &theCFace = theClipping.transform(thePFace);
00083   FACE &theVPFace = theViewport.transform(theCFace);
00084   theScan.transform(theVPFace);
00085 
00086   ******************/
00087 
00088   /*
00089   theScan.setFillMode(1);
00090   theScan.transform(*theFace);
00091   theDevice.ENDIMAGE();
00092 
00093 
00094   */
00095 
00096 
00097   int tag;
00098   cin >> tag;
00099 
00100   exit(0);
00101   return 0;
00102 }
00103 

Generated on Mon Oct 23 15:05:00 2006 for OpenSees by doxygen 1.5.0