1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//- Class:       CubitEntity<--- Skipping configuration 'DBL_MAX' since the value of 'DBL_MAX' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'DBL_MIN' since the value of 'DBL_MIN' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'M_PI' since the value of 'M_PI' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
//- Description: Implementation code for the CubitEntity base class.
//-              Once code re-design is complete, this should be made
//-              an abstract class.
//- Owner:       Bill Bohnhoff
//- Checked By:
//- Version: $Id: 


#include <cassert>
#include <cstring>

#include "CubitDefines.h"
#include "CubitVector.hpp"
#include "CubitBox.hpp"
#include "CubitString.hpp"
#include "CubitUtil.hpp"
#include "CubitEntity.hpp"
#include "CubitMessage.hpp"
#include "CastTo.hpp"

//-------------------------------------------------------------------------
// Purpose       : The destructor
//
// Special Notes : 
//
// Creator       : Raikanta Sahu
//
// Creation Date : 09/20/96
//-------------------------------------------------------------------------

CubitEntity::~CubitEntity() 
{ 
}

//- Need the following definitions for mesh entities; they should NEVER
//- be called unless there is a logic error

void
CubitEntity::is_visible(int )<--- The function 'is_visible' is never used.
{ assert (0);}

int 
CubitEntity::is_visible() const
{ assert (0); return 0; }

void
CubitEntity::is_transparent( int )<--- The function 'is_transparent' is never used.
{ assert (0); }

int
CubitEntity::is_transparent() const
{ assert (0); return 0; }

int  CubitEntity::id() const { return entityId; }

void CubitEntity::set_id(int i) { entityId = i; }
    //- set the id of this entity to i

void
CubitEntity::color(int)
{ 
    // assert (0);
}

int
CubitEntity::color() const
{ 
    // assert (0); 
  return -1;
}

CubitVector CubitEntity::center_point()
{
  return bounding_box().center();
}