00001 /***************************************************************************** 00002 * SGL: A Scene Graph Library 00003 * 00004 * Copyright (C) 1997-2001 Scott McMillan All Rights Reserved. 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Library General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Library General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Library General Public 00017 * License along with this library; if not, write to the Free 00018 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 ***************************************************************************** 00020 * File: sglAxes.hpp 00021 * Author: Scott McMillan 00022 * Created: 23 January 2001 00023 * Summary: an leaf sglNode containing the geometry for coordinate axes. The 00024 * red line is the X axis, green - Y, and blue - Z. 00025 *****************************************************************************/ 00026 00027 #ifndef SGL_AXES_HPP 00028 #define SGL_AXES_HPP 00029 00030 #include <sgldb.h> 00031 #include <sglLineSet.hpp> 00032 00033 //---------------------------------------------------------------------------- 00034 00035 class SGLDB_DLL_API sglAxes : public sglLineSet 00036 { 00037 public: 00038 sglAxes(float size = 1.0f); 00039 virtual ~sglAxes(); 00040 00041 virtual void printInfo(ostream &ostrm, const char *indent_string) const; 00042 00043 private: 00044 sglAxes(const sglAxes &); // not implemented 00045 sglAxes &operator=(const sglAxes &); // not implemented 00046 00047 void makeCoordinateAxes(float size); 00048 00049 private: 00050 float m_size; 00051 }; 00052 00053 #endif