source: osgVisual/src/dataIO/dataIO_slot.cpp @ 84

Last change on this file since 84 was 31, checked in by Torben Dannhauer, 15 years ago

Adding first version of osgVisual!!

File size: 1.6 KB
RevLine 
[31]1#pragma once
2/* -*-c++-*- osgVisual - Copyright (C) 2009-2010 Torben Dannhauer
3 *
4 * This library is based on OpenSceneGraph, open source and may be redistributed and/or modified under
5 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
6 * (at your option) any later version.  The full license is in LICENSE file
7 * included with this distribution, and on the openscenegraph.org website.
8 *
9 * osgVisual requires for some proprietary modules a license from the correspondig manufacturer.
10 * You have to aquire licenses for all used proprietary modules.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * OpenSceneGraph Public License for more details.
16*/
17
18#include "dataIO_slot.h"
19
20REGISTER_OBJECT_WRAPPER( dataIO_slot,                 // The unique wrapper name
21                         new osgVisual::dataIO_slot,             // The proto
22                         osgVisual::dataIO_slot,                 // The class typename
23                                                 "osg::Object osgVisual::dataIO_slot" )  // The inheritance relations
24{
25    // Serializers for different members   
26        BEGIN_ENUM_SERIALIZER( dataDirection, TO_OBJ );
27                ADD_ENUM_VALUE( TO_OBJ );
28                ADD_ENUM_VALUE( FROM_OBJ );
29                END_ENUM_SERIALIZER();
30        BEGIN_ENUM_SERIALIZER( varType, DOUBLE );
31                ADD_ENUM_VALUE( DOUBLE );
32                ADD_ENUM_VALUE( STRING );
33                END_ENUM_SERIALIZER();
34        ADD_STRING_SERIALIZER( VariableName, "" );
35        ADD_DOUBLE_SERIALIZER( Value, 0.0 );
36        ADD_STRING_SERIALIZER( SValue, "" );   
37}
Note: See TracBrowser for help on using the repository browser.