00001 //deprecated 00003 // 00004 // PROJECT.....: vpat - Creating Virtual Patients 00005 // RESPONSIBLE.: Carla Freitas e Luciana Nedel 00006 // 00007 // FILE........: vpplane.h 00008 // DESCRIPTION.: Contain the VPPlane class declarations. 00009 // 00010 // AUTHOR......: Isabel Harb Manssour 00011 // DATE........: July/11/2000 00012 // DESCRIPTION.: Class declaration. 00013 // 00015 00016 00017 // To foresee several "includes" 00018 #ifndef __VPPLANE_H 00019 #define __VPPLANE_H 00020 00021 00022 #include <vpvector3d.h> 00023 #include <vppoint2d.h> 00024 #include <vpcolor.h> 00025 00026 00027 00028 00029 //----------------------------------------------------------------- 00030 // P L A N E 00031 //----------------------------------------------------------------- 00032 00033 00035 // Class Name: VPPlane 00036 // Superclass: - 00037 // Subclasses: - 00039 00040 class VPPlane { 00041 private: 00042 VPVector3D normal; 00043 VPVector3D point; 00044 VPPoint2D size; 00045 VPColor color; 00046 public: 00047 VPPlane(); 00048 VPPlane(VPPlane *plane); 00049 void vpSetNormal(VPVector3D n); 00050 VPVector3D vpGetNormal(void); 00051 void vpSetPoint(VPVector3D p); 00052 VPVector3D vpGetPoint(void); 00053 void vpSetSize(VPPoint2D s); 00054 VPPoint2D vpGetSize(void); 00055 void vpSetColor(VPColor c); 00056 VPColor vpGetColor(void); 00057 float TestPoint(VPVector3D p); 00058 VPVector3D TestLine(VPVector3D p, VPVector3D dir); 00059 }; 00060 /* 00061 Plane(); 00062 Plane(Plane* _Plane); 00063 Plane(Plane& _Plane); 00064 Plane(XYZR _Point, XYZR _Normal, XYR _Size); 00065 Plane(XYZR _Point, FLOAT _Azimute, FLOAT _Elevacao, XYR _Size); 00066 00067 void SetNormal(XYZR* _Normal); 00068 void SetNormal(FLOAT _Azimute, FLOAT _Elevacao); 00069 void GetNormal(FLOAT& _Azimute, FLOAT& _Elevacao); 00070 00071 FLOAT TestPoint(XYZR _Point); 00072 XYZR TestLine(XYZR _Point, XYZR _Dir); 00073 00074 void AdjustPlane(Plane& _PlaneC, FLOAT _ZVoxel); 00075 void AdjustPlaneZ(Plane& _PlaneC, FLOAT _ZVoxel); 00076 void AdjustPlaneX(Plane& _PlaneC, FLOAT _XVoxel); 00077 */ 00078 00079 #endif // __VPPLANE_H