ReinfBar.h

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:37 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/repres/reinfBar/ReinfBar.h,v $
00024                                                                         
00025                                                                         
00026 // File: ReinfBar.h
00027 //
00028 // Written by Remo M. de Souza
00029 // November 1998
00030 
00031 
00032 #ifndef ReinfBar_h 
00033 #define ReinfBar_h 
00034 
00035 #include <OPS_Globals.h>
00036 
00037 class Vector;
00038 
00039 class ReinfBar
00040 {
00041   public:
00042 
00043     ReinfBar();
00044     ReinfBar(double barArea, int materialID, const Vector &position);
00045         
00046     virtual ~ReinfBar();
00047     
00048     // edition functions
00049 
00050     void setDiameter (double barDiameter);
00051     void setArea     (double barArea);
00052     void setMaterial (int materialID);
00053     void setPosition (const Vector &position);
00054 
00055     // reinforcing bar inquiring functions
00056     
00057     double getDiameter (void) const;
00058     double getArea     (void) const;
00059     int    getMaterial (void) const; 
00060 
00061     const Vector & getPosition (void) const;
00062 
00063     virtual void Print(OPS_Stream &s, int flag =0) const;   
00064     friend OPS_Stream &operator<<(OPS_Stream &s, const ReinfBar &reinfBar);    
00065     
00066   protected:
00067     
00068   private:
00069     int    matID;
00070     double diameter;
00071     double area;
00072     Vector posit;
00073 };
00074 
00075 
00076 #endif
00077 

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