Ticket #170: ouMathIO.h

File ouMathIO.h, 1.2 kB (added by marcusl, 2 years ago)
Line 
1 #ifndef MENTICE_STYX_CORE_OSGUTIL_MATHIO_H
2 #define MENTICE_STYX_CORE_OSGUTIL_MATHIO_H
3
4 namespace mtc
5 {
6 namespace styx
7 {
8 namespace osgutil
9 {
10 namespace io
11 {
12 /**
13     Input operators for osg-types.
14     
15     These should be the inverse of those defined in OSGVector.h, so
16     that serialization to/from text work as expected.
17  @{
18 */
19 template<class V>
20 STYX_DECLSPEC std::istream & operator >>
21     (std::istream & is, osg::Color3<V> &obj);
22
23 template<class V>
24 STYX_DECLSPEC std::istream & operator >>
25     (std::istream & is, osg::Color4<V> &obj);
26
27 template<class V, class S>
28 STYX_DECLSPEC std::istream & operator >>
29     (std::istream & is, osg::PointInterface<V, S> &obj);
30
31 template<class V, class S>
32 STYX_DECLSPEC std::istream & operator >>
33     (std::istream & is, osg::VectorInterface<V, S> &obj);
34
35 template<class V>
36 STYX_DECLSPEC std::istream & operator >>
37     (std::istream & is, osg::TransformationMatrix<V> &obj);
38
39 template<class V>
40 STYX_DECLSPEC std::istream & operator >>
41     (std::istream & is, osg::QuaternionBase<V> &obj);
42
43 /// @}
44 }
45 //MTC_DECLARE_NIFTYCOUNTER(MathIOInit, STYX_DECLSPEC)
46 }
47 }
48 }
49
50 using namespace mtc::styx::osgutil::io;
51
52 #endif
53