Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

vpview.cpp

Go to the documentation of this file.
00001 
00002 
00003 //
00004 
00005 //  PROJECT.....: vpat - Creating Virtual Patients
00006 
00007 //  RESPONSIBLE.: Carla Freitas e Luciana Nedel
00008 
00009 //
00010 
00011 //  FILE........: vpview.cpp
00012 
00013 //  DESCRIPTION.: Contain the VPView class implementation that 
00014 
00015 //                manage the viewport.
00016 
00017 //
00018 
00019 //  AUTHOR......: Isabel Harb Manssour
00020 
00021 //  DATE........: November/30/2000
00022 
00023 //  DESCRIPTION.: Methods definition.
00024 
00025 //
00026 
00028 
00029 
00030 
00031 
00032 
00033 #include <vpview.h>
00034 
00035 
00036 
00037 
00038 
00040 // Description: Class "VPView" constructor withou parameters
00041 
00042 // Parameters.: -
00043 
00044 // Return.....: -
00045 
00046 
00047 VPView::VPView() {
00048 
00049     visualizationType = DEFAULTVIS;
00050 
00051     scene = NULL;
00052 }
00053 
00054 
00055 
00056 
00057 
00059 
00060 // Description: Class "VPView" constructor with parameters
00061 
00062 // Parameters.: -
00063 
00064 // Return.....: -
00065 
00066 
00067 
00068 VPView::VPView(VPScene *s, int v) {
00069 
00070     visualizationType = v;
00071 
00072     scene = s;
00073 
00074     
00075 
00076 }
00077 
00078 
00079 
00080 
00081 
00083 
00084 // Description: Method "vpGetVisualizationType" returns the value 
00085 
00086 //              of "visualizationType" attribute.
00087 
00088 // Parameters.: -
00089 
00090 // Return.....: int visualizationType (attribute content)
00091 
00092 
00093 
00094 int VPView::vpGetVisualizationType() {
00095 
00096     return(visualizationType);
00097 
00098 }
00099 
00100 
00101 
00102 
00103 
00105 
00106 // Description: Method "vpSetVisualizationType" sends a new value 
00107 
00108 //              to the "visualizationType" attribute.
00109 
00110 // Parameters.: int vp (new visualization type)
00111 
00112 // Return.....: -
00113 
00114 
00115 
00116 void VPView::vpSetVisualizationType(int vp) {
00117 
00118     visualizationType = vp;
00119 
00120 }
00121 
00122 
00123 
00124 
00125 
00127 
00128 // Description: Method "vpGetScene" returns the value 
00129 
00130 //              of "scene" attribute.
00131 
00132 // Parameters.: -
00133 
00134 // Return.....: VPScene* scene (attribute content)
00135 
00136 
00137 
00138 VPScene* VPView::vpGetScene() {
00139 
00140     return scene;
00141 
00142 }
00143 
00144 
00145 
00146 
00147 
00149 
00150 // Description: Method "vpSetScene" sends a new value 
00151 
00152 //              to the "scene" attribute.
00153 
00154 // Parameters.: VPScene* s (new scene)
00155 
00156 // Return.....: -
00157 
00158 
00159 
00160 void VPView::vpSetScene(VPScene* s) {
00161 
00162     scene = s;
00163 
00164 }
00165 
00166 
00167 

Generated on Tue Sep 6 10:00:07 2005 for VPAT by  doxygen 1.4.4