/**************************************************************************** Copyright (C) 2010-2012 the Office National des ForĂȘts (ONF), France and the Association de Recherche Technologie et Sciences (ARTS), Ecole Nationale Suprieure d'Arts et MĂ©tiers (ENSAM), Cluny, France. All rights reserved. Contact : alexandre.piboule@onf.fr Developers : Alexandre PIBOULE (ONF) This file is part of PluginShared library 2.0. PluginShared is free library: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. PluginShared is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with PluginShared. If not, see . *****************************************************************************/ #ifndef CT_BOXDATA_H #define CT_BOXDATA_H #include "ct_shapedata.h" class CTLIBSTRUCTUREADDON_EXPORT CT_BoxData : public CT_ShapeData { using SuperClass = CT_ShapeData; public: CT_BoxData(); CT_BoxData(const Eigen::Vector3d& center, const Eigen::Vector3d& direction, const Eigen::Vector3d& widthDirection, double height, double width, double depth); CT_BoxData(const CT_BoxData& other) = default; const Eigen::Vector3d& getWidthDirection() const; float getHeight() const; float getWidth() const; float getDepth() const; virtual void getBoundingBox(Eigen::Vector3d& min, Eigen::Vector3d& max) const override; CT_SHAPEDATA_CLONE_IMP(CT_BoxData) private: Eigen::Vector3d _widthDirection; double _width; // selon l'axe de _widthDirection double _height; // selon l'axe de _direction double _depth; }; #endif // CT_BOXDATA_H