COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
SammConv.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef __SAMM_CONV_H_
9 #define __SAMM_CONV_H_
10 
11 #include <util/coTypes.h>
12 
13 // 25.10.00
14 #include "StarFile.h"
20 namespace covise
21 {
22 
23 class SammConv
24 {
25 public:
26  // Struct: conversion SAMM -> parts + Proc to create conversions
27  enum
28  {
30  };
31  struct ConvertSAMM
32  {
33  signed char numParts;
34  char conv[MAXPARTS][8];
35  char type;
36  };
37 
38 private:
40  SammConv(const SammConv &);
41 
43  SammConv &operator=(const SammConv &);
44 
45  // Table convSAMM[case] : 2^8 = 256 cases -> each Corner cut
47 
48  // 'Master' Cells
51  s_samm4, s_samm5, s_samm8[4096];
52 
53  void createSammConv(const ConvertSAMM &base, const char *code,
54  int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7);
55 
56  // create this ratio of 'spare' entries for degenerated cells
57  static const float DEGEN_RATIO;
58 
59  enum
60  {
61  UNUSED = 5
62  };
63 
64 public:
66  virtual ~SammConv();
67 
69  SammConv();
70 
71  // convert cell-table + samm-table -> new cell-table
72  // return newCell->oldCell table
73 
77  int &numElem, int mxtb,
78  void (*dumpFunct)(const char *));
79 };
80 }
81 #endif
SammConv & operator=(const SammConv &)
Assignment operator: NOT IMPLEMENTED.
Definition: SammConv.cpp:24
Definition: StarFile.h:71
Definition: StarFile.h:65
static const ConvertSAMM s_samm8dummy
Definition: SammConv.h:49
static const ConvertSAMM s_samm2a
Definition: SammConv.h:49
char type
Definition: SammConv.h:35
static const float DEGEN_RATIO
Definition: SammConv.h:57
Definition: SammConv.h:61
static const ConvertSAMM s_samm2
Definition: SammConv.h:49
static const ConvertSAMM s_samm3
Definition: SammConv.h:49
static const ConvertSAMM s_samm8[4096]
Definition: SammConv.h:49
char conv[MAXPARTS][8]
Definition: SammConv.h:34
SammConv()
Default constructor: create conversion tables.
Definition: SammConv.cpp:196
signed char numParts
Definition: SammConv.h:33
static const ConvertSAMM s_samm4
Definition: SammConv.h:49
Definition: SammConv.h:23
Definition: SammConv.h:29
Definition: SammConv.h:31
static const ConvertSAMM s_samm5
Definition: SammConv.h:49
static const ConvertSAMM s_samm0
Definition: SammConv.h:49
ConvertSAMM * d_convSAMM
Definition: SammConv.h:46
static const ConvertSAMM s_samm1
Definition: SammConv.h:49
void createSammConv(const ConvertSAMM &base, const char *code, int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7)
Definition: SammConv.cpp:138
virtual ~SammConv()
Destructor : virtual in case we derive objects.
Definition: SammConv.cpp:32
Definition: StarFile.h:88
int * convertSamm(StarModelFile::CellTabEntry *&cellTab, StarModelFile::SammTabEntry *sammTab, StarModelFile::CellTypeEntry *cellType, int &numElem, int mxtb, void(*dumpFunct)(const char *))
Definition: SammConv.cpp:532