1 /* 2 * NodeMetadataFloat.h 3 * 4 * Copyright (C) 2006 J. "MUFTI" Scheurich 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program 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 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program (see the file "COPYING" for details); if 18 * not, write to the Free Software Foundation, Inc., 675 Mass Ave, 19 * Cambridge, MA 02139, USA. 20 */ 21 22 #pragma once 23 24 #include "Metadata.h" 25 26 class ProtoMetadataFloat : public ProtoMetadata { 27 public: 28 ProtoMetadataFloat(Scene *scene); 29 virtual Node *create(Scene *scene); 30 getType()31 virtual int getType() const { return X3D_METADATA_FLOAT; } 32 isX3dInternalProto(void)33 virtual bool isX3dInternalProto(void) { return true; } 34 35 FieldIndex value; 36 }; 37 38 class NodeMetadataFloat : public Metadata { 39 public: 40 NodeMetadataFloat(Scene *scene, Proto *proto); 41 getX3dVersion(void)42 virtual int getX3dVersion(void) const { return 0; } copy()43 virtual Node *copy() const { return new NodeMetadataFloat(*this); } 44 45 fieldMacros(MFFloat, value, ProtoMetadataFloat) 46 }; 47 48