cgma
GeomPoint.hpp
Go to the documentation of this file.
00001 //---------------------------------------------
00002 // Class: GeomPoint
00003 // Description: Simple point class.
00004 // Created by: David R. White
00005 // Date: 7/9/02
00006 //---------------------------------------------
00007 
00008 #ifndef GEOMPOINT_HPP
00009 #define GEOMPOINT_HPP
00010 #include "CubitVector.hpp"
00011 
00012 class RefEntity;
00013 
00014 class GeomPoint
00015 {
00016 private:
00017   RefEntity *myOwner;
00018   CubitVector myPosition;
00019 public:
00020   GeomPoint( const double x, const double y, const double z,
00021              RefEntity *owner);
00022   GeomPoint( const CubitVector &pos, RefEntity *owner );
00023   ~GeomPoint();
00024   
00025   CubitVector& coordinates();
00026   
00027   void owner(RefEntity *owner);
00028   
00029   RefEntity* owner();
00030   
00031 };
00032 inline GeomPoint::GeomPoint( const CubitVector &pos, RefEntity *owner )
00033 {
00034   myOwner = owner;
00035   myPosition.set(pos);
00036 }
00037 inline GeomPoint::GeomPoint( const double x, const double y, const double z,
00038                              RefEntity *owner)
00039 {
00040   myOwner = owner;
00041   myPosition.set(x,y,z);
00042 }
00043 inline GeomPoint::~GeomPoint()
00044 {}
00045 inline CubitVector& GeomPoint::coordinates()
00046 {return myPosition;}
00047 inline void GeomPoint::owner(RefEntity *owner)
00048 {myOwner = owner;}
00049 inline RefEntity* GeomPoint::owner()
00050 {return myOwner;}
00051 #endif
00052 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines