72 #ifndef SLIP_POINT3D_HPP
73 #define SLIP_POINT3D_HPP
80 #include <boost/serialization/access.hpp>
81 #include <boost/serialization/split_member.hpp>
82 #include <boost/serialization/version.hpp>
83 #include <boost/serialization/base_object.hpp>
97 template <
typename CoordType>
98 class Point3d:
public Point<CoordType,3>
118 Point3d(
const CoordType* array);
128 const CoordType&
x3);
140 void x1(
const CoordType& x);
150 const CoordType&
x1()
const;
156 void x2(
const CoordType& x);
168 const CoordType&
x2()
const;
174 void x3(
const CoordType& x);
185 const CoordType&
x3()
const;
192 std::string
name()
const;
194 friend class boost::serialization::access;
195 template<
class Archive>
196 void save(Archive & ar,
const unsigned int version)
const
198 ar & boost::serialization::base_object<slip::Point<CoordType,3> >(*this);
200 template<
class Archive>
201 void load(Archive & ar,
const unsigned int version)
203 ar & boost::serialization::base_object<slip::Point<CoordType,3> >(*this);
205 BOOST_SERIALIZATION_SPLIT_MEMBER()
231 template<
typename CoordType>
235 this->coord_[0] = CoordType(0);
236 this->coord_[1] = CoordType(0);
237 this->coord_[2] = CoordType(0);
240 template<
typename CoordType>
243 Point<CoordType,3>(array)
247 template<
typename CoordType>
253 this->coord_[0] = CoordType(x1);
254 this->coord_[1] = CoordType(x2);
255 this->coord_[2] = CoordType(x3);
258 template<
typename CoordType>
262 template<
typename CoordType>
266 template<
typename CoordType>
270 template<
typename CoordType>
275 template<
typename CoordType>
279 template<
typename CoordType>
283 template<
typename CoordType>
287 template<
typename CoordType>
291 template<
typename CoordType>
295 template<
typename CoordType>
304 #endif //SLIP_POINT3D_HPP
CoordType & x2()
Accessor/Mutator of the second coordinate of Point3d.
Point< CoordType, 3 > base
slip::Point3d< int > Point3d_i
int alias
CoordType & x3()
Accessor/Mutator of the second coordinate of Point3d.
slip::Point3d< unsigned int > Point3d_ui
unsigned int alias
Provides an abstract class to modelize nd points.
slip::Point3d< double > Point3d_d
double alias
slip::Point3d< unsigned char > Point3d_uc
unsigned char alias
slip::Point3d< short > Point3d_s
short alias
slip::Point3d< unsigned long > Point3d_ul
unsigned long alias
slip::Point3d< float > Point3d_f
float alias
CoordType & x1()
Accessor/Mutator of the first coordinate of Point3d.
std::string name() const
Returns the name of the class.
slip::Point3d< long > Point3d_l
long alias
slip::Point3d< unsigned short > Point3d_us
unsigned long alias
slip::Point3d< char > Point3d_c
char alias
Point3d()
Constructs a Point3d.
This is a point3d class, a specialized version of Point<CoordType,DIM> with DIM = 3...