cgma
CubitEntity.cpp
Go to the documentation of this file.
00001 //- Class:       CubitEntity
00002 //- Description: Implementation code for the CubitEntity base class.
00003 //-              Once code re-design is complete, this should be made
00004 //-              an abstract class.
00005 //- Owner:       Bill Bohnhoff
00006 //- Checked By:
00007 //- Version: $Id: 
00008 
00009 
00010 #include <cassert>
00011 #include <cstring>
00012 
00013 #include "CubitDefines.h"
00014 #include "CubitVector.hpp"
00015 #include "CubitBox.hpp"
00016 #include "CubitString.hpp"
00017 #include "CubitUtil.hpp"
00018 #include "CubitEntity.hpp"
00019 #include "CubitMessage.hpp"
00020 #include "CastTo.hpp"
00021 
00022 //-------------------------------------------------------------------------
00023 // Purpose       : The destructor
00024 //
00025 // Special Notes : 
00026 //
00027 // Creator       : Raikanta Sahu
00028 //
00029 // Creation Date : 09/20/96
00030 //-------------------------------------------------------------------------
00031 
00032 CubitEntity::~CubitEntity() 
00033 { 
00034 }
00035 
00036 //- Need the following definitions for mesh entities; they should NEVER
00037 //- be called unless there is a logic error
00038 
00039 void
00040 CubitEntity::is_visible(int )
00041 { assert (0);}
00042 
00043 int 
00044 CubitEntity::is_visible() const
00045 { assert (0); return 0; }
00046 
00047 void
00048 CubitEntity::is_transparent( int )
00049 { assert (0); }
00050 
00051 int
00052 CubitEntity::is_transparent() const
00053 { assert (0); return 0; }
00054 
00055 int  CubitEntity::id() const { return entityId; }
00056 
00057 void CubitEntity::set_id(int i) { entityId = i; }
00058     //- set the id of this entity to i
00059 
00060 void
00061 CubitEntity::color(int)
00062 { 
00063     // assert (0);
00064 }
00065 
00066 int
00067 CubitEntity::color() const
00068 { 
00069     // assert (0); 
00070   return -1;
00071 }
00072 
00073 CubitVector CubitEntity::center_point()
00074 {
00075   return bounding_box().center();
00076 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines