00001 //deprecated 00003 // 00004 // PROJECT.....: vpat - Creating Virtual Patients 00005 // RESPONSIBLE.: Carla Freitas e Luciana Nedel 00006 // 00007 // FILE........: vpcutplane.h 00008 // DESCRIPTION.: Contain the VPCutPlane class declarations. 00009 // 00010 // AUTHOR......: Isabel Harb Manssour 00011 // DATE........: December/12/2000 00012 // DESCRIPTION.: Class declaration. 00013 // 00014 // AUTHOR......: Fernando Sola Pereira 00015 // DATE........: December/30/2000 00016 // DESCRIPTION.: Class update. 00017 // 00018 // AUTHOR......: Isabel Harb Manssour 00019 // DATE........: March/01/2001 00020 // DESCRIPTION.: File and variables rename. 00021 // 00023 00024 00025 // To foresee several "includes" 00026 #ifndef __VPCUTPLANE_H 00027 #define __VPCUTPLANE_H 00028 00029 00030 // To foresee several "includes" 00031 #ifndef __GL_STUFF 00032 #define __GL_STUFF 00033 #include <FL/Fl_Gl_Window.h> 00034 #include <FL/gl.h> 00035 #include <GL/glu.h> 00036 #include <GL/glaux.h> 00037 #endif // __GL_STUFF 00038 00039 #include <vprotation.h> 00040 #include <vptranslation.h> 00041 #include <vpboundingbox.h> 00042 #include <vpvector3d.h> 00043 #include <vpcuttools.h> 00044 #include <math.h> 00045 00046 00048 // Class Name: VPCutPlane 00049 // Superclass: - 00050 // Subclasses: 00052 class VPCutPlane : public VPCutTools { 00053 private: 00054 float nD; 00055 VPBoundingBox boundingBox; 00056 VPVector3D normal; 00057 VPPoint3D plane[4]; 00058 VPRotation rotation; 00059 VPTranslation translation; 00060 public: 00061 VPCutPlane(); 00062 VPCutPlane(VPBoundingBox b); 00063 void vpSetBoundingBox(VPBoundingBox b); 00064 void vpNormalComputation(float x1,float y1,float z1, 00065 float x2,float y2,float z2, 00066 float x3,float y3,float z3); 00067 VPVector3D vpGetNormal(void); 00068 void vpPlaneComputation(void); 00069 void vpDComputation(void); 00070 float vpGetD(void); 00071 VPRotation* vpGetRotation(void); 00072 VPTranslation* vpGetTranslation(void); 00073 void vpRender(void); 00074 }; 00075 00076 00077 #endif // __VPCUTPLANE_H 00078