30 #ifndef _GranOO_LibShape_Rectangle_hh_
31 #define _GranOO_LibShape_Rectangle_hh_
36 #include <vtkUnstructuredGrid.h>
60 return std::string(
"Rectangle");
86 GRANOO_ACCESS_POS(ly,
double,
_ly);
87 GRANOO_ACCESS_POS(lz,
double,
_lz);
105 template<
class Archive>
void serialize(Archive & ar,
const unsigned int);
145 template<
class Archive>
148 ar & boost::serialization::base_object<Surface>(*
this);
157 #include <boost/serialization/export.hpp>
160 #include <boost/serialization/version.hpp>
162 GRANOO_SERIALIZE_SHAPE(Rectangle)
166 extern template class Core::ObjectFactoryInterface<Shape::Base, Shape::Rectangle>;
BOOST_CLASS_EXPORT_KEY(GranOO3::Shape::Box) namespace GranOO3
Definition: Box.hpp:319
BOOST_CLASS_VERSION(GranOO3::Core::Base, 1) namespace GranOO3
Definition: Base.hpp:277
#define SafeModeAssert(condition, message)
Definition: Macro.hpp:47
Definition: ObjectFactory.hpp:235
Definition: Rectangle.hpp:54
std::string description() const
bool collide(const Geom::Point &, Collision::Data &) const
Rectangle()
Definition: Rectangle.hpp:119
static std::string class_ID()
Definition: Rectangle.hpp:59
void serialize(Archive &ar, const unsigned int)
Definition: Rectangle.hpp:147
double area() const
Definition: Rectangle.hpp:81
double _lz
Definition: Rectangle.hpp:102
bool collide(const Volume &, Collision::Data &) const
void read_xml_element(const TiXmlElement *el)
std::ostream & to_povray(std::ostream &out, const Core::Color &) const
std::string get_str_type_key() const
Definition: Rectangle.hpp:77
double _ly
Definition: Rectangle.hpp:101
friend class boost::serialization::access
Definition: Rectangle.hpp:104
static std::string desc()
~Rectangle()
Definition: Rectangle.hpp:142
virtual void to_vtk(vtkUnstructuredGrid *data)
Definition: Surface.hpp:55
Definition: Volume.hpp:103
Definition: Common.hpp:198