1 /**************************************************************************\ 2 * Copyright (c) Kongsberg Oil & Gas Technologies AS 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: 8 * 9 * Redistributions of source code must retain the above copyright notice, 10 * this list of conditions and the following disclaimer. 11 * 12 * Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * Neither the name of the copyright holder nor the names of its 17 * contributors may be used to endorse or promote products derived from 18 * this software without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 \**************************************************************************/ 32 33 #ifndef COIN_INTERNAL 34 #error this is a private header file 35 #endif /* !COIN_INTERNAL */ 36 37 #ifndef SO_JACKDRAGGER_IV_H 38 #define SO_JACKDRAGGER_IV_H 39 40 static const char JACKDRAGGER_draggergeometry[] = 41 "#Inventor V2.1 ascii\n" 42 "\n" 43 "\n" 44 "DEF JACK_INACTIVE_MATERIAL Material { diffuseColor 0.5 0.5 0.5 emissiveColor 0.5 0.5 0.5 }\n" 45 "DEF JACK_ACTIVE_MATERIAL Material { diffuseColor 0.5 0.5 0 emissiveColor 0.5 0.5 0 }\n" 46 "DEF JACK_FEEDBACK_MATERIAL Material { diffuseColor 0.5 0 0.5 emissiveColor 0.5 0 0.5 }\n" 47 "DEF JACK_GREENISH_MATERIAL Material { diffuseColor 0 0.3 0.2 emissiveColor 0 0.3 0.2 transparency 0.5 }\n" 48 "\n" 49 "\n" 50 "\n" 51 "\n" 52 "DEF JACK_TRANSLATOR_AXIS Cube { width 2.2 height 0.1 depth 0.1 }\n" 53 "\n" 54 "DEF jackTranslatorLineTranslator Separator {\n" 55 " USE JACK_INACTIVE_MATERIAL\n" 56 " USE JACK_TRANSLATOR_AXIS\n" 57 "}\n" 58 "\n" 59 "DEF jackTranslatorLineTranslatorActive Separator {\n" 60 " USE JACK_ACTIVE_MATERIAL\n" 61 " USE JACK_TRANSLATOR_AXIS\n" 62 "}\n" 63 "\n" 64 "DEF JACK_FEEDBACK_AXIS Group {\n" 65 " Coordinate3 { point [ 0 3 0, 0 -3 0 ] }\n" 66 " IndexedLineSet { coordIndex [ 0, 1, -1 ] }\n" 67 " Translation { translation 0 3 0 }\n" 68 " Cone { height 0.2 bottomRadius 0.1 }\n" 69 " Translation { translation 0 -6 0 }\n" 70 " Rotation { rotation 0 0 1 3.14 }\n" 71 " Cone { height 0.2 bottomRadius 0.1 }\n" 72 "}\n" 73 "\n" 74 "DEF jackTranslatorXFeedback Separator {\n" 75 " USE JACK_FEEDBACK_MATERIAL\n" 76 " Rotation { rotation 0 0 1 1.57 }\n" 77 " USE JACK_FEEDBACK_AXIS\n" 78 "}\n" 79 "\n" 80 "DEF jackTranslatorYFeedback Separator {\n" 81 " USE JACK_FEEDBACK_MATERIAL\n" 82 " USE JACK_FEEDBACK_AXIS\n" 83 "}\n" 84 "\n" 85 "DEF jackTranslatorZFeedback Separator {\n" 86 " USE JACK_FEEDBACK_MATERIAL\n" 87 " Rotation { rotation 1 0 0 1.57 }\n" 88 " USE JACK_FEEDBACK_AXIS\n" 89 "}\n" 90 "\n" 91 "DEF JACK_TRANSLATOR_PLANE Group {\n" 92 " DrawStyle { style LINES lineWidth 1 }\n" 93 " Cube { depth 0.2 }\n" 94 "}\n" 95 "\n" 96 "DEF jackTranslatorPlaneTranslator Separator {\n" 97 " USE JACK_INACTIVE_MATERIAL\n" 98 " USE JACK_TRANSLATOR_PLANE\n" 99 "}\n" 100 "\n" 101 "DEF jackTranslatorPlaneTranslatorActive Separator {\n" 102 " USE JACK_ACTIVE_MATERIAL\n" 103 " USE JACK_TRANSLATOR_PLANE\n" 104 "}\n" 105 "\n" 106 "DEF JACK_FEEDBACK_PLANE Group {\n" 107 " Coordinate3 { point [ -3 0 -3, 3 0 -3 , 3 0 3, -3 0 3 ] }\n" 108 " IndexedFaceSet { coordIndex [ 0, 1, 2, 3, -1 ] }\n" 109 "}\n" 110 "\n" 111 "DEF jackTranslatorYZFeedback Separator {\n" 112 " USE JACK_GREENISH_MATERIAL\n" 113 " Rotation { rotation 0 0 1 1.57 }\n" 114 " USE JACK_FEEDBACK_PLANE\n" 115 "}\n" 116 "\n" 117 "DEF jackTranslatorXZFeedback Separator {\n" 118 " USE JACK_GREENISH_MATERIAL\n" 119 " USE JACK_FEEDBACK_PLANE\n" 120 "}\n" 121 "\n" 122 "DEF jackTranslatorXYFeedback Separator {\n" 123 " USE JACK_GREENISH_MATERIAL\n" 124 " Rotation { rotation 1 0 0 1.57 }\n" 125 " USE JACK_FEEDBACK_PLANE\n" 126 "}\n" 127 "\n" 128 "\n" 129 "\n" 130 "\n" 131 "DEF JACK_ROTATE_AXES Group {\n" 132 " DrawStyle { lineWidth 2 }\n" 133 " Coordinate3 { point [ 1.5 0 0, -1.5 0 0, 0 1.5 0, 0 -1.5 0, 0 0 1.5, 0 0 -1.5 ] }\n" 134 " IndexedLineSet { coordIndex [ 0, 1, -1, 2, 3, -1, 4, 5, -1 ] }\n" 135 "}\n" 136 "\n" 137 "DEF jackRotatorRotator Separator {\n" 138 " USE JACK_INACTIVE_MATERIAL\n" 139 " USE JACK_ROTATE_AXES\n" 140 "}\n" 141 "DEF jackRotatorRotatorActive Separator {\n" 142 " USE JACK_ACTIVE_MATERIAL\n" 143 " USE JACK_ROTATE_AXES\n" 144 "}\n" 145 "\n" 146 "DEF jackRotatorFeedback Separator { }\n" 147 "DEF jackRotatorFeedbackActive Separator { }\n" 148 "\n" 149 "\n" 150 "\n" 151 "\n" 152 "DEF JACK_SCALER Group {\n" 153 " Translation { translation -1.5 0 0 }\n" 154 " DEF JACK_SCALE_MARKER Cube { width 0.1 height 0.1 depth 0.1 }\n" 155 " Translation { translation 3 0 0 }\n" 156 " USE JACK_SCALE_MARKER\n" 157 " Translation { translation -1.5 -1.5 0 }\n" 158 " USE JACK_SCALE_MARKER\n" 159 " Translation { translation 0 3 0 }\n" 160 " USE JACK_SCALE_MARKER\n" 161 " Translation { translation 0 -1.5 -1.5 }\n" 162 " USE JACK_SCALE_MARKER\n" 163 " Translation { translation 0 0 3 }\n" 164 " USE JACK_SCALE_MARKER\n" 165 "}\n" 166 "\n" 167 "DEF jackScalerScaler Separator {\n" 168 " USE JACK_INACTIVE_MATERIAL\n" 169 " USE JACK_SCALER\n" 170 "}\n" 171 "DEF jackScalerScalerActive Separator {\n" 172 " USE JACK_ACTIVE_MATERIAL\n" 173 " USE JACK_SCALER\n" 174 "}\n" 175 "\n" 176 "DEF jackScalerFeedback Separator { }\n" 177 "DEF jackScalerFeedbackActive Separator { }\n"; 178 179 #endif /* ! SO_JACKDRAGGER_IV_H */ 180