GenGeo  1.1
Shape.h
Go to the documentation of this file.
1 
2 // //
3 // Copyright (c) 2007-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 #ifndef SHAPE_H
14 #define SHAPE_H
15 
16 #include "util/vector3.h"
17 #include "MNTable3D.h"
18 class Shape {
19  public:
20  Shape();
21 
27  void makeOrientationRandom(int i);
28 
34 
39  void setRandomOrientation();
40 
44  void setRandomPitch();
45 
49  void setRandomYaw();
50 
54  void setRandomRoll();
55 
63 
64  virtual void insert(Vector3 pos, double radius, MNTable3D* ntable,int tag,int id ) { std::cout << "No shape" << std::endl; return;} ;
65 
70  int bias();
71 
76  void setBias(int);
77 
78  void setPitch(double);
79  double getPitch();
80  void setYaw(double);
81  double getYaw();
82  void setRoll(double);
83  double getRoll();
84 
85  void setBondTag(int);
86  int getBondTag();
87  void setParticleTag(int);
88  int getParticleTag();
89 
90  ~Shape();
91  protected:
92  double pitch;
93  double yaw;
94  double roll;
97  int bondTag;
99 };
100 
101 #endif /* SHAPE_H */