| 1 | /* |
| 2 | * |
| 3 | * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2.1 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * Further, this software is distributed without any warranty that it is |
| 16 | * free of the rightful claim of any third person regarding infringement |
| 17 | * or the like. Any license provided herein, whether implied or |
| 18 | * otherwise, applies only to this software file. Patent licenses, if |
| 19 | * any, provided herein do not apply to combinations of this program with |
| 20 | * other software, or any other product whatsoever. |
| 21 | * |
| 22 | * You should have received a copy of the GNU Lesser General Public |
| 23 | * License along with this library; if not, write to the Free Software |
| 24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 25 | * |
| 26 | * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, |
| 27 | * Mountain View, CA 94043, or: |
| 28 | * |
| 29 | * http://www.sgi.com |
| 30 | * |
| 31 | * For further information regarding this notice, see: |
| 32 | * |
| 33 | * http://oss.sgi.com/projects/GenInfo/NoticeExplan/ |
| 34 | * |
| 35 | */ |
| 36 | |
| 37 | // -*- C++ -*- |
| 38 | |
| 39 | /* |
| 40 | * Copyright (C) 1995-96 Silicon Graphics, Inc. |
| 41 | * |
| 42 | _______________________________________________________________________ |
| 43 | ______________ S I L I C O N G R A P H I C S I N C . ____________ |
| 44 | | |
| 45 | | $Revision: 1.1.1.1 $ |
| 46 | | |
| 47 | | Description: |
| 48 | | Upgrade from 2.0 WWWAnchor unknown node format to the 2.1 known format |
| 49 | | |
| 50 | | Author(s) : David Mott |
| 51 | | |
| 52 | ______________ S I L I C O N G R A P H I C S I N C . ____________ |
| 53 | _______________________________________________________________________ |
| 54 | */ |
| 55 | |
| 56 | #ifndef _SO_V2WWWANCHOR_ |
| 57 | #define _SO_V2WWWANCHOR_cxx . . $ `lib/database/src/so/upgraders/SoV2WWWAnchor.h:57:10`! |
| 58 | |
| 59 | #include <Inventor/fields/SoSFString.h>cxx . . $ `<file>/lib/database/include/Inventor/fields/SoSFString.h`/ |
| 60 | #include <Inventor/fields/SoSFEnum.h>cxx . . $ `<file>/lib/database/include/Inventor/fields/SoSFEnum.h`/ |
| 61 | #include <Inventor/fields/SoSFNode.h>cxx . . $ `<file>/lib/database/include/Inventor/fields/SoSFNode.h`/ |
| 62 | #include <Inventor/misc/upgraders/SoUpgrader.h>cxx . . $ `<file>/lib/database/include/Inventor/misc/upgraders/SoUpgrader.h`/ |
| 63 | |
| 64 | ////////////////////////////////////////////////////////////////////////////// |
| 65 | // |
| 66 | // Class: SoV2WWWAnchor |
| 67 | // |
| 68 | // This is EXACTLY the same format as the 2.1 WWWAnchor, but it looks for |
| 69 | // the alternateRep field (which does not exist in 2.1 for WWWAnchor). |
| 70 | // |
| 71 | ////////////////////////////////////////////////////////////////////////////// |
| 72 | |
| 73 | class SoV2WWWAnchorcxx . . $ SoV2WWWAnchor# : public SoUpgradercxx . . $ SoUpgrader# { |
| 74 | |
| 75 | SO_NODE_HEADERcxx . . $ SoType#(SoV2WWWAnchor); |
| 76 | |
| 77 | public: |
| 78 | enum Mappingcxx . . $ SoV2WWWAnchor#Mapping# { |
| 79 | NONEcxx . . $ SoV2WWWAnchor#NONE., // Do not add information to the URL |
| 80 | POINTcxx . . $ SoV2WWWAnchor#POINT. // Add object-space coordinates to URL |
| 81 | }; |
| 82 | |
| 83 | // Fields |
| 84 | SoSFStringcxx . . $ SoSFString# namecxx . . $ SoV2WWWAnchor#name.; // URL to fetch when activated by mouse click |
| 85 | SoSFStringcxx . . $ SoSFString# descriptioncxx . . $ SoV2WWWAnchor#description.; // Description of the URL that will be grabbed |
| 86 | SoSFEnumcxx . . $ SoSFEnum# mapcxx . . $ SoV2WWWAnchor#map.; // What additional info to add to the URL |
| 87 | SoSFNodecxx . . $ SoSFNode# alternateRepcxx . . $ SoV2WWWAnchor#alternateRep.; // This is what's different from the 2.1 version! |
| 88 | |
| 89 | // Constructor |
| 90 | SoV2WWWAnchorcxx . . $ SoV2WWWAnchor#SoV2WWWAnchor(49f6e7a06ebc5aa8).(); |
| 91 | |
| 92 | SoINTERNALcxx . . $ `lib/database/include/Inventor/SbBasic.h:113:9`! public: |
| 93 | static void initClasscxx . . $ SoV2WWWAnchor#initClass(49f6e7a06ebc5aa8).(); |
| 94 | |
| 95 | virtual SoNodecxx . . $ SoNode# *createNewNodecxx . . $ SoV2WWWAnchor#createNewNode(37b0c20759e6fed3).(); |
| 96 | |
| 97 | //virtual upgrade method used to discard extra characters in binary format: |
| 98 | virtual SbBoolcxx . . $ SbBool# upgradecxx . . $ SoV2WWWAnchor#upgrade(2025cb8b3a26f0e3).(SoInputcxx . . $ SoInput# *in, const SbNamecxx . . $ SbName# &refName, SoBasecxx . . $ SoBase# *&result); |
| 99 | |
| 100 | protected: |
| 101 | virtual ~cxx . . $ SoV2WWWAnchor#`~SoV2WWWAnchor`(49f6e7a06ebc5aa8).SoV2WWWAnchorcxx . . $ SoV2WWWAnchor#(); |
| 102 | }; |
| 103 | |
| 104 | #endif /* _SO_V2WWWANCHOR_ */ |