00001 //=========================================================================== 00002 /* 00003 This file is part of the CHAI 3D visualization and haptics libraries. 00004 Copyright (C) 2003-2009 by CHAI 3D. All rights reserved. 00005 00006 This library is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License("GPL") version 2 00008 as published by the Free Software Foundation. 00009 00010 For using the CHAI 3D libraries with software that can not be combined 00011 with the GNU GPL, and for taking advantage of the additional benefits 00012 of our support services, please contact CHAI 3D about acquiring a 00013 Professional Edition License. 00014 00015 \author <http://www.chai3d.org> 00016 \author Francois Conti 00017 \author Dan Morris 00018 \version 2.0.0 $Rev: 251 $ 00019 */ 00020 //=========================================================================== 00021 00022 //--------------------------------------------------------------------------- 00023 #ifndef CDraw3DH 00024 #define CDraw3DH 00025 //--------------------------------------------------------------------------- 00026 #include "graphics/CMacrosGL.h" 00027 //--------------------------------------------------------------------------- 00028 00029 //=========================================================================== 00038 //=========================================================================== 00039 00040 //--------------------------------------------------------------------------- 00041 // GENERAL PURPOSE FUNCTIONS 00042 //--------------------------------------------------------------------------- 00043 00045 void cDrawFrame(const double a_scale = 1.0, 00046 const bool a_modifyMaterialState=true); 00047 00049 void cDrawFrame(const double a_axisLengthScale, 00050 const double a_axisThicknessScale, 00051 const bool a_modifyMaterialState); 00052 00054 void cDrawWireBox(const double a_xMin, const double a_xMax, 00055 const double a_yMin, const double a_yMax, 00056 const double a_zMin, const double a_zMax); 00057 00059 void cDrawSphere(const double a_radius, 00060 const unsigned int a_numSlices=10, 00061 const unsigned int a_numStacks=10); 00062 00064 void cDrawArrow(const cVector3d& a_arrowStart, 00065 const cVector3d& a_arrowTip, 00066 const double a_width = 0.05); 00067 00068 //--------------------------------------------------------------------------- 00069 #endif 00070 //--------------------------------------------------------------------------- 00071 00072