DomainComponent.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.6 $
00022 // $Date: 2006/09/05 19:47:54 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/component/DomainComponent.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef DomainComponent_h
00027 #define DomainComponent_h
00028 
00029 // Written: fmk 
00030 // Created: 11/96
00031 // Revision: A
00032 //
00033 // Description: This file contains the class definition for DomainComponent.
00034 // The DomainComponent class is an abstract class, example subclasses include
00035 // Element, Node, SP_Constraint, MP_Constraint, NodalLoad, ElementalLoad. 
00036 // Each of these objects forms part of Domain and has methods to set and obtain
00037 // the associated Domain object.
00038 //
00039 // What: "@(#) DomainComponent.h, revA"
00040 
00041 #include <TaggedObject.h>
00042 #include <MovableObject.h>
00043 
00044 #include <Vector.h>
00045 
00046 class Domain;
00047 class Renderer;
00048 
00049 class DomainComponent: public TaggedObject, public MovableObject
00050 {
00051   public:
00052     virtual ~DomainComponent();
00053 
00054     virtual void setDomain(Domain *theDomain);
00055     virtual Domain *getDomain(void) const;
00056 
00057     // Method for visualisation, default does nothing
00058     virtual int displaySelf(Renderer &, int displayMode, float fact);
00059 
00060   protected:
00061     DomainComponent(int tag, int classTag);
00062     
00063   private:    
00064     Domain *theDomain; // a pointer to the enclosing Domain object
00065 };
00066 
00067 #endif
00068 
00069 

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