//- 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();
}