41 #ifndef CORE_ALGORITHMS_VISUALIZATION_BASEMC_H
42 #define CORE_ALGORITHMS_VISUALIZATION_BASEMC_H 1
44 #include <sci_defs/hashmap_defs.h>
47 #include <Core/Datatypes/Field.h>
48 #include <Core/Geom/GeomObj.h>
50 #include <Core/Util/TypeDescription.h>
64 virtual void reset(
int,
67 bool transparency ) = 0;
100 bool operator()(
const edgepair_t &a,
const edgepair_t &b)
const
102 return a.first == b.first && a.second == b.second;
108 unsigned int operator()(
const edgepair_t &a)
const
110 #if defined(__ECC) || defined(_MSC_VER)
111 hash_compare<unsigned int> h;
113 hash<unsigned int> h;
115 return h(a.first ^ a.second);
117 # if defined(__ECC) || defined(_MSC_VER)
120 static const size_t bucket_size = 4;
121 static const size_t min_buckets = 8;
124 bool operator()(
const edgepair_t & a,
const edgepair_t & b)
const {
127 # endif // endif ifdef __ICC
130 # if defined(__ECC) || defined(_MSC_VER)
131 typedef hash_map<edgepair_t, SCIRun::index_type, edgepairhash>
edge_hash_type;
133 typedef hash_map<edgepair_t,
137 #endif // !defined(__ECC) && !defined(_MSC_VER)
LockingHandle< Matrix< double > > MatrixHandle
Definition: MatrixFwd.h:55
bool operator()(const edgepair_t &a, const edgepair_t &b) const
Definition: BaseMC.h:86
SCIRun::size_type ncells_
Definition: BaseMC.h:152
MatrixHandle get_interpolant()
Definition: BaseMC.cc:34
virtual FieldHandle get_field(double val)=0
std::vector< SCIRun::index_type > cell_map_
Definition: BaseMC.h:144
static bool less(const edgepair_t &a, const edgepair_t &b)
Definition: BaseMC.h:90
double dfirst
Definition: BaseMC.h:81
std::map< edgepair_t, SCIRun::index_type, edgepairless > edge_hash_type
Definition: BaseMC.h:140
GeomHandle geomHandle_
Definition: BaseMC.h:154
SCIRun::index_type first
Definition: BaseMC.h:79
long long size_type
Definition: Types.h:40
virtual ~BaseMC()
Definition: BaseMC.h:62
virtual void reset(int, bool build_field, bool build_geom, bool transparency)=0
bool build_geom_
Definition: BaseMC.h:148
SCIRun::size_type nnodes_
Definition: BaseMC.h:151
long long index_type
Definition: Types.h:39
MatrixHandle get_parent_cells()
Definition: BaseMC.cc:88
boost::shared_ptr< Field > FieldHandle
Definition: DatatypeFwd.h:65
SCIRun::index_type second
Definition: BaseMC.h:80
int basis_order_
Definition: BaseMC.h:149
GeomHandle get_geom()
Definition: BaseMC.h:71
std::vector< SCIRun::index_type > node_map_
Definition: BaseMC.h:145
bool build_field_
Definition: BaseMC.h:147
BaseMC()
Definition: BaseMC.h:59
edge_hash_type edge_map_
Definition: BaseMC.h:143