1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/*********************************************
Dec,09
Reactor Geometry Generator
Argonne National Laboratory

Pin Cylinder class definition.
*********************************************/
#include "meshkit/cylinder.hpp"

CCylinder::CCylinder ()<--- Member variable 'CCylinder::m_nRadii' is not initialized in the constructor.<--- Member variable 'CCylinder::m_nType' is not initialized in the constructor.
// ---------------------------------------------------------------------------
// Function: default constructor
// Input:    none
// Output:   none
// ---------------------------------------------------------------------------
{
	m_dVXYPos.SetSize(2);
	m_dVZPos.SetSize(2);

}

CCylinder::CCylinder (const CCylinder& NO)<--- Member variable 'CCylinder::m_nRadii' is not initialized in the constructor.<--- Member variable 'CCylinder::m_nType' is not initialized in the constructor.
// ---------------------------------------------------------------------------
// Function: copy constructor
// Input:    none
// Output:   none
// ---------------------------------------------------------------------------
{

}

CCylinder::~CCylinder ()
// ---------------------------------------------------------------------------
// Function: destructor
// Input:    none
// Output:   none
// ---------------------------------------------------------------------------
{
}

void CCylinder::SetSizes(int nRadii)
// ---------------------------------------------------------------------------
// Function: sets the first line of pin input
// Input:    volume id of the pin, alias and total no. of lines in the pin input
// Output:   none
// ---------------------------------------------------------------------------
{
	m_nRadii = nRadii;
	m_szVMat.SetSize(nRadii);
	m_dVRadii.SetSize(2*nRadii);
}

void CCylinder::SetRadii(CVector<double> dVRadii)
// ---------------------------------------------------------------------------
// Function: sets the first line of pin input
// Input:    volume id of the pin, alias and total no. of lines in the pin input
// Output:   none
// ---------------------------------------------------------------------------
{
	m_dVRadii = dVRadii;
}

void CCylinder::SetType(int nType)
// ---------------------------------------------------------------------------
// Function: sets the first line of pin input
// Input:    volume id of the pin, alias and total no. of lines in the pin input
// Output:   none
// ---------------------------------------------------------------------------
{
	m_nType = nType;
}


void CCylinder::SetPos(CVector<double> dVXYPos)
// ---------------------------------------------------------------------------
// Function: sets the first line of pin input
// Input:    volume id of the pin, alias and total no. of lines in the pin input
// Output:   none
// ---------------------------------------------------------------------------
{
	m_dVXYPos = dVXYPos;
}


void CCylinder::SetZPos(CVector<double> dVZPos)
// ---------------------------------------------------------------------------
// Function: sets the first line of pin input
// Input:    volume id of the pin, alias and total no. of lines in the pin input
// Output:   none
// ---------------------------------------------------------------------------
{
	m_dVZPos = dVZPos;
}

void CCylinder::SetMat(CVector<std::string> szVMat)
// ---------------------------------------------------------------------------
// Function: sets the first line of pin input
// Input:    volume id of the pin, alias and total no. of lines in the pin input
// Output:   none
// ---------------------------------------------------------------------------
{
	m_szVMat = szVMat;
}

void CCylinder::GetSizes(int &nRadii)
// ---------------------------------------------------------------------------
// Function: sets the first line of pin input
// Input:    volume id of the pin, alias and total no. of lines in the pin input
// Output:   none
// ---------------------------------------------------------------------------
{
	nRadii = m_nRadii;
}

void CCylinder::GetRadii(CVector<double> &dVRadii)
// ---------------------------------------------------------------------------
// Function: sets the first line of pin input
// Input:    volume id of the pin, alias and total no. of lines in the pin input
// Output:   none
// ---------------------------------------------------------------------------
{
	dVRadii = m_dVRadii;
}

void CCylinder::GetType(int &nType)
// ---------------------------------------------------------------------------
// Function: sets the first line of pin input
// Input:    volume id of the pin, alias and total no. of lines in the pin input
// Output:   none
// ---------------------------------------------------------------------------
{
	nType = m_nType;
}


void CCylinder::GetMat(CVector<std::string> &szVMat)
// ---------------------------------------------------------------------------
// Function: sets the first line of pin input
// Input:    volume id of the pin, alias and total no. of lines in the pin input
// Output:   none
// ---------------------------------------------------------------------------
{
	szVMat = m_szVMat;
}

void CCylinder::GetPos(CVector<double> &dVCoor)
// ---------------------------------------------------------------------------
// Function: sets the first line of pin input
// Input:    volume id of the pin, alias and total no. of lines in the pin input
// Output:   none
// ---------------------------------------------------------------------------
{
	dVCoor = m_dVXYPos;
}

void CCylinder::GetZPos(CVector<double> &dVZPos)
// ---------------------------------------------------------------------------
// Function: sets the first line of pin input
// Input:    volume id of the pin, alias and total no. of lines in the pin input
// Output:   none
// ---------------------------------------------------------------------------
{
	dVZPos = m_dVZPos;
}