~vsuezaki/maus/envelope_tool_branch

« back to all changes in this revision

Viewing changes to src/legacy/Interface/ThreeDFieldMap.hh

Fix field map bounding box

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#include "Interface/Mesh.hh"
6
6
#include "Interface/Interpolator.hh"
7
7
 
 
8
class ThreeDGrid;
 
9
 
8
10
class ThreeDFieldMap
9
11
{
10
12
public:
18
20
 
19
21
        enum symmetry{none, dipole, quadrupole, solenoid};
20
22
 
 
23
  // for bounding box
 
24
  inline ThreeDGrid* GetMesh();
 
25
 
21
26
private:
22
27
        VectorMap*              myInterpolator;
23
28
 
36
41
 
37
42
};
38
43
 
 
44
ThreeDGrid* ThreeDFieldMap::GetMesh() {
 
45
    Interpolator3dGridTo3d* interpolator =
 
46
            dynamic_cast<Interpolator3dGridTo3d*>(myInterpolator);
 
47
    if (interpolator == NULL) {
 
48
        return NULL;
 
49
    }
 
50
    return interpolator->GetMesh();
 
51
}
 
52
 
39
53
 
40
54
#endif
41
55