| 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) 1990,91 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 | | Defines the SoV1GroupKit class. |
| 49 | | Organizes an appearance, a transform, a local transform and a |
| 50 | | group of child kits |
| 51 | | |
| 52 | | Author(s) : Paul Isaacs, Thad Beier |
| 53 | | |
| 54 | ______________ S I L I C O N G R A P H I C S I N C . ____________ |
| 55 | _______________________________________________________________________ |
| 56 | */ |
| 57 | |
| 58 | #ifndef _SO_V1_GROUP_KIT_ |
| 59 | #define _SO_V1_GROUP_KIT_cxx . . $ `lib/nodekits/include/Inventor/misc/upgraders/SoV1GroupKit.h:59:10`! |
| 60 | |
| 61 | #include <Inventor/misc/upgraders/SoV1BaseKit.h>cxx . . $ `<file>/lib/nodekits/include/Inventor/misc/upgraders/SoV1BaseKit.h`/ |
| 62 | #include <Inventor/misc/upgraders/SoV1AppearanceKit.h>cxx . . $ `<file>/lib/nodekits/include/Inventor/misc/upgraders/SoV1AppearanceKit.h`/ |
| 63 | |
| 64 | //////////////////////////////////////////////////////////////////// |
| 65 | // Class: SoV1GroupKit |
| 66 | // |
| 67 | // New nodes in this subclass are: |
| 68 | // callbackList, topSeparator, pickStyle, appearance, |
| 69 | // transform, texture2Transform, |
| 70 | // childList |
| 71 | // |
| 72 | // A parent node that manages a collection of child nodes |
| 73 | // into a unit with the following structure: |
| 74 | // |
| 75 | // this |
| 76 | // |---------------------| |
| 77 | // "label" | "topSeparator" |
| 78 | // "callbackList" | |
| 79 | // --------------------------------------------------------------- |
| 80 | // | | | | | |
| 81 | // "pickStyle" | "transform" | | |
| 82 | // "appearance" "texture2Transform" | |
| 83 | // | |
| 84 | // | |
| 85 | // "childList" |
| 86 | // |
| 87 | //////////////////////////////////////////////////////////////////// |
| 88 | SoEXTENDERcxx . . $ `lib/database/include/Inventor/SbBasic.h:112:9`! class SoV1GroupKitcxx . . $ SoV1GroupKit# : public SoV1BaseKitcxx . . $ SoV1BaseKit# { |
| 89 | |
| 90 | // Define typeId and name stuff |
| 91 | SO_NODE_HEADERcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:171:9`!(SoV1GroupKit); |
| 92 | |
| 93 | // Define catalog for children |
| 94 | SO_V1_SUBKIT_CATALOG_HEADERcxx . . $ `lib/nodekits/include/Inventor/misc/upgraders/SoV1SubKit.h:93:9`!(SoV1GroupKit); |
| 95 | |
| 96 | public: |
| 97 | // constructor |
| 98 | SoV1GroupKitcxx . . $ SoV1GroupKit#SoV1GroupKit(49f6e7a06ebc5aa8).(); |
| 99 | |
| 100 | virtual SoNodecxx . . $ SoNode# *createNewNodecxx . . $ SoV1GroupKit#createNewNode(37b0c20759e6fed3).(); |
| 101 | |
| 102 | // Overload this function. After SoV1BaseKit is done, see if there |
| 103 | // is information we need in the nodelist: |
| 104 | // SoV1AppearanceKit::unusedTextureXfs. |
| 105 | // If so, move this into our "texture2Transform" part. |
| 106 | // Need to do this because Inventor 1.0 texture had fields for |
| 107 | // texture transforms, but new one does not. So SoV1AppearanceKit just |
| 108 | // stores this info. We retrieve it and make use of it. |
| 109 | virtual void setUpNewNodecxx . . $ SoV1GroupKit#setUpNewNode(da6c7544ccee32bd).(SoNodecxx . . $ SoNode# *newNode); |
| 110 | |
| 111 | SoINTERNALcxx . . $ `lib/database/include/Inventor/SbBasic.h:113:9`! public: |
| 112 | static void initClasscxx . . $ SoV1GroupKit#initClass(49f6e7a06ebc5aa8).(); |
| 113 | |
| 114 | protected: |
| 115 | virtual ~cxx . . $ SoV1GroupKit#`~SoV1GroupKit`(49f6e7a06ebc5aa8).SoV1GroupKitcxx . . $ SoV1GroupKit#(); |
| 116 | }; |
| 117 | #endif /* _SO_V1_GROUP_KIT_ */ |