MeshKit  1.0
cylinder.cpp
Go to the documentation of this file.
00001 /*********************************************
00002 Dec,09
00003 Reactor Geometry Generator
00004 Argonne National Laboratory
00005 
00006 Pin Cylinder class definition.
00007 *********************************************/
00008 #include "meshkit/cylinder.hpp"
00009 
00010 CCylinder::CCylinder ()
00011 // ---------------------------------------------------------------------------
00012 // Function: default constructor
00013 // Input:    none
00014 // Output:   none
00015 // ---------------------------------------------------------------------------
00016 {
00017         m_dVXYPos.SetSize(2);
00018         m_dVZPos.SetSize(2);
00019 
00020 }
00021 
00022 CCylinder::CCylinder (const CCylinder& NO)
00023 // ---------------------------------------------------------------------------
00024 // Function: copy constructor
00025 // Input:    none
00026 // Output:   none
00027 // ---------------------------------------------------------------------------
00028 {
00029 
00030 }
00031 
00032 CCylinder::~CCylinder ()
00033 // ---------------------------------------------------------------------------
00034 // Function: destructor
00035 // Input:    none
00036 // Output:   none
00037 // ---------------------------------------------------------------------------
00038 {
00039 }
00040 
00041 void CCylinder::SetSizes(int nRadii)
00042 // ---------------------------------------------------------------------------
00043 // Function: sets the first line of pin input
00044 // Input:    volume id of the pin, alias and total no. of lines in the pin input
00045 // Output:   none
00046 // ---------------------------------------------------------------------------
00047 {
00048         m_nRadii = nRadii;
00049         m_szVMat.SetSize(nRadii);
00050         m_dVRadii.SetSize(2*nRadii);
00051 }
00052 
00053 void CCylinder::SetRadii(CVector<double> dVRadii)
00054 // ---------------------------------------------------------------------------
00055 // Function: sets the first line of pin input
00056 // Input:    volume id of the pin, alias and total no. of lines in the pin input
00057 // Output:   none
00058 // ---------------------------------------------------------------------------
00059 {
00060         m_dVRadii = dVRadii;
00061 }
00062 
00063 void CCylinder::SetType(int nType)
00064 // ---------------------------------------------------------------------------
00065 // Function: sets the first line of pin input
00066 // Input:    volume id of the pin, alias and total no. of lines in the pin input
00067 // Output:   none
00068 // ---------------------------------------------------------------------------
00069 {
00070         m_nType = nType;
00071 }
00072 
00073 
00074 void CCylinder::SetPos(CVector<double> dVXYPos)
00075 // ---------------------------------------------------------------------------
00076 // Function: sets the first line of pin input
00077 // Input:    volume id of the pin, alias and total no. of lines in the pin input
00078 // Output:   none
00079 // ---------------------------------------------------------------------------
00080 {
00081         m_dVXYPos = dVXYPos;
00082 }
00083 
00084 
00085 void CCylinder::SetZPos(CVector<double> dVZPos)
00086 // ---------------------------------------------------------------------------
00087 // Function: sets the first line of pin input
00088 // Input:    volume id of the pin, alias and total no. of lines in the pin input
00089 // Output:   none
00090 // ---------------------------------------------------------------------------
00091 {
00092         m_dVZPos = dVZPos;
00093 }
00094 
00095 void CCylinder::SetMat(CVector<std::string> szVMat)
00096 // ---------------------------------------------------------------------------
00097 // Function: sets the first line of pin input
00098 // Input:    volume id of the pin, alias and total no. of lines in the pin input
00099 // Output:   none
00100 // ---------------------------------------------------------------------------
00101 {
00102         m_szVMat = szVMat;
00103 }
00104 
00105 void CCylinder::GetSizes(int &nRadii)
00106 // ---------------------------------------------------------------------------
00107 // Function: sets the first line of pin input
00108 // Input:    volume id of the pin, alias and total no. of lines in the pin input
00109 // Output:   none
00110 // ---------------------------------------------------------------------------
00111 {
00112         nRadii = m_nRadii;
00113 }
00114 
00115 void CCylinder::GetRadii(CVector<double> &dVRadii)
00116 // ---------------------------------------------------------------------------
00117 // Function: sets the first line of pin input
00118 // Input:    volume id of the pin, alias and total no. of lines in the pin input
00119 // Output:   none
00120 // ---------------------------------------------------------------------------
00121 {
00122         dVRadii = m_dVRadii;
00123 }
00124 
00125 void CCylinder::GetType(int &nType)
00126 // ---------------------------------------------------------------------------
00127 // Function: sets the first line of pin input
00128 // Input:    volume id of the pin, alias and total no. of lines in the pin input
00129 // Output:   none
00130 // ---------------------------------------------------------------------------
00131 {
00132         nType = m_nType;
00133 }
00134 
00135 
00136 void CCylinder::GetMat(CVector<std::string> &szVMat)
00137 // ---------------------------------------------------------------------------
00138 // Function: sets the first line of pin input
00139 // Input:    volume id of the pin, alias and total no. of lines in the pin input
00140 // Output:   none
00141 // ---------------------------------------------------------------------------
00142 {
00143         szVMat = m_szVMat;
00144 }
00145 
00146 void CCylinder::GetPos(CVector<double> &dVCoor)
00147 // ---------------------------------------------------------------------------
00148 // Function: sets the first line of pin input
00149 // Input:    volume id of the pin, alias and total no. of lines in the pin input
00150 // Output:   none
00151 // ---------------------------------------------------------------------------
00152 {
00153         dVCoor = m_dVXYPos;
00154 }
00155 
00156 void CCylinder::GetZPos(CVector<double> &dVZPos)
00157 // ---------------------------------------------------------------------------
00158 // Function: sets the first line of pin input
00159 // Input:    volume id of the pin, alias and total no. of lines in the pin input
00160 // Output:   none
00161 // ---------------------------------------------------------------------------
00162 {
00163         dVZPos = m_dVZPos;
00164 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines