K3dPlaneVis.cpp

Go to the documentation of this file.
00001 
00012 /***************************************************************************
00013  *   Copyright (C) 2007 by Jan Koci   *
00014  *   honza.koci@email.cz   *
00015  *   http://kengine.sourceforge.net/tutorial/
00016  *                                                                         *
00017  *   This program is free software; you can redistribute it and/or modify  *
00018  *   it under the terms of the GNU General Public License as published by  *
00019  *   the Free Software Foundation; either version 2 of the License, or     *
00020  *   (at your option) any later version.                                   *
00021  *                                                                         *
00022  *   This program is distributed in the hope that it will be useful,       *
00023  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00024  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00025  *   GNU General Public License for more details.                          *
00026  *                                                                         *
00027  *   You should have received a copy of the GNU General Public License     *
00028  *   along with this program; if not, write to the                         *
00029  *   Free Software Foundation, Inc.,                                       *
00030  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00031  ***************************************************************************/
00032 
00033 #include "K3dPlaneVis.h"
00034 
00035 K3dPlaneVis::K3dPlaneVis()
00036 {
00037         m_vVertex.clear();
00038         m_pColor = NULL;
00039         // Set default plane width and height
00040         m_fWidth = m_fHeight = 500;
00041 }
00042 
00043 K3dPlaneVis::~K3dPlaneVis()
00044 {
00045 }
00046 
00047 K3dPlaneVis& K3dPlaneVis::operator= (K3dPlaneVis& _rkPlaneVis)
00048 {
00049         *this->GetPosition() = *_rkPlaneVis.GetPosition();
00050         *this->GetNormal() = *_rkPlaneVis.GetNormal();
00051         this->GetDistance() = _rkPlaneVis.GetDistance();
00052         _rkPlaneVis.GetVertexArray() = GetVertexArray();
00053         *this->GetColor() = *_rkPlaneVis.GetColor();
00054         this->GetWidth() = _rkPlaneVis.GetWidth();
00055         this->GetHeight() = _rkPlaneVis.GetHeight();
00056         return *this;
00057 }
00058 
00059 
00060 

Generated on Thu Aug 16 23:53:26 2007 for K3dEngine by  doxygen 1.5.0