source: experimental/distortionNG/DistortionSet.cpp @ 344

Last change on this file since 344 was 344, checked in by Torben Dannhauer, 12 years ago

distortion container osgViewer::DistortionSet? angelegt

File size: 2.1 KB
Line 
1/* -*-c++-*- osgVisual - Copyright (C) 2009-2012 Torben Dannhauer
2 *
3 * This library is based on OpenSceneGraph, open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version.  The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * osgVisual requires for some proprietary modules a license from the correspondig manufacturer.
9 * You have to aquire licenses for all used proprietary modules.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * OpenSceneGraph Public License for more details.
15*/
16
17#include "DistortionSet.h"
18#include <osgDB/ObjectWrapper>
19#include <osgDB/InputStream>
20#include <osgDB/OutputStream>
21
22using namespace osgViewer;
23
24DistortionSet::DistortionSet()
25{
26}
27
28DistortionSet::~DistortionSet()
29{
30}
31
32
33REGISTER_OBJECT_WRAPPER( osgViewer_DistortionSet,                  // The unique wrapper name
34                         new osgViewer::DistortionSet,             // The proto
35                         osgViewer::DistortionSet,                 // The class typename
36                         "osg::Object osgViewer::DistortionSet" )  // The inheritance relations
37{
38    // Serializers for different members
39        ADD_INT_SERIALIZER( DistortionMeshRows, 1 );    //int _distortionMeshRows;
40        ADD_INT_SERIALIZER( DistortionMeshColumns, 1 ); //int _distortionMeshColumns;
41
42        // Missing serializer macro for PrimitiveMeshType
43        //osg::PrimitiveSet::Mode _MeshType
44       
45        ADD_IMAGE_SERIALIZER( IntensityMap, osg::Image, NULL );  // _image      //osg::ref_ptr<osg::Image> _intensityMap;
46
47        ADD_UINT_SERIALIZER( TexUnitScene, 0 ); //unsigned int _texUnitScene;
48        ADD_UINT_SERIALIZER( TexUnitIntensityMap, 1 );  //unsigned int _texUnitIntensityMap;
49
50        ADD_MATRIX_SERIALIZER( ViewOffset, osg::Matrix() );     //osg::Matrix _viewOffset;
51        ADD_MATRIX_SERIALIZER( ProjectionOffset, osg::Matrix() );       //osg::Matrix _projectionOffset;
52}
Note: See TracBrowser for help on using the repository browser.