gbbox.cpp
Go to the documentation of this file.
00001 /******************************************************************************
00002  * \file
00003  *
00004  * $Id:$
00005  *
00006  * Copyright (C) Brno University of Technology (BUT)
00007  *
00008  * This file is part of software developed by dcgm-robotics@FIT group.
00009  *
00010  * Author: Jan Gorig (xgorig01@stud.fit.vutbr.cz)
00011  * Supervised by: Michal Spanel (spanel@fit.vutbr.cz)
00012  * Date: 21/06/2012
00013  *
00014  * This file is free software: you can redistribute it and/or modify
00015  * it under the terms of the GNU Lesser General Public License as published by
00016  * the Free Software Foundation, either version 3 of the License, or
00017  * (at your option) any later version.
00018  *
00019  * This file is distributed in the hope that it will be useful,
00020  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00022  * GNU Lesser General Public License for more details.
00023  *
00024  * You should have received a copy of the GNU Lesser General Public License
00025  * along with this file.  If not, see <http://www.gnu.org/licenses/>.
00026  */
00027 
00028 #include <srs_env_model/but_server/objtree/gbbox.h>
00029 #include <srs_env_model/but_server/objtree/types.h>
00030 
00031 namespace objtree
00032 {
00033 
00038 GBBox::GBBox(const Point &position, const Vector4f &orientation, const Point &scale, const Box &box) :
00039     BBox(box),
00040     m_position(position),
00041     m_orientation(orientation),
00042     m_scale(scale)
00043 {
00044     m_type = GENERAL_BOUNDING_BOX;
00045 }
00046 
00052 bool GBBox::isSimilar(const Object *object) const
00053 {
00054     if(object->type() != GENERAL_BOUNDING_BOX) return false;
00055 
00056     return isSimilarBBox((BBox*)object);
00057 }
00058 
00059 }


srs_env_model
Author(s): Vit Stancl (stancl@fit.vutbr.cz), Tomas Lokaj, Jan Gorig, Michal Spanel (spanel@fit.vutbr.cz)
autogenerated on Sun Jan 5 2014 11:50:48