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_DRAGPOINTDRAGGER_IV_H
38 #define SO_DRAGPOINTDRAGGER_IV_H
39 
40 static const char DRAGPOINTDRAGGER_draggergeometry[] =
41   "#Inventor V2.1 ascii\n"
42   "\n"
43   "\n"
44   "\n"
45   "DEF DRAGPOINT_INACTIVE_MATERIAL Material { diffuseColor 0.5 0.5 0.5  emissiveColor 0.5 0.5 0.5 }\n"
46   "DEF DRAGPOINT_ACTIVE_MATERIAL Material { diffuseColor 0.5 0.5 0  emissiveColor 0.5 0.5 0 }\n"
47   "DEF DRAGPOINT_FEEDBACK_MATERIAL Material { diffuseColor 0.5 0 0.5  emissiveColor  0.5 0 0.5  transparency 0.2 }\n"
48   "\n"
49   "\n"
50   "\n"
51   "DEF DRAGPOINT_STICK Group {\n"
52   "   Rotation { rotation 0 0 1  1.57 }\n"
53   "   Cylinder { height 1.5 radius 0.2 }\n"
54   "}\n"
55   "\n"
56   "DEF DRAGPOINT_INACTIVE_STICK Separator {\n"
57   "   USE DRAGPOINT_INACTIVE_MATERIAL\n"
58   "   USE DRAGPOINT_STICK\n"
59   "}\n"
60   "DEF DRAGPOINT_ACTIVE_STICK Separator {\n"
61   "   USE DRAGPOINT_ACTIVE_MATERIAL\n"
62   "   USE DRAGPOINT_STICK\n"
63   "}\n"
64   "\n"
65   "DEF dragPointXTranslatorTranslator Separator { USE DRAGPOINT_INACTIVE_STICK } \n"
66   "DEF dragPointXTranslatorTranslatorActive Separator { USE DRAGPOINT_ACTIVE_STICK }\n"
67   "DEF dragPointYTranslatorTranslator Separator { USE DRAGPOINT_INACTIVE_STICK }\n"
68   "DEF dragPointYTranslatorTranslatorActive Separator { USE DRAGPOINT_ACTIVE_STICK }\n"
69   "DEF dragPointZTranslatorTranslator Separator { USE DRAGPOINT_INACTIVE_STICK }\n"
70   "DEF dragPointZTranslatorTranslatorActive Separator { USE DRAGPOINT_ACTIVE_STICK }\n"
71   "\n"
72   "\n"
73   "DEF DRAGPOINT_PLANE Group { Cube { width 1  height 1  depth .1 } }\n"
74   "\n"
75   "DEF DRAGPOINT_INACTIVE_PLANE Separator {\n"
76   "   USE DRAGPOINT_INACTIVE_MATERIAL\n"
77   "   USE DRAGPOINT_PLANE\n"
78   "}\n"
79   "DEF DRAGPOINT_ACTIVE_PLANE Separator {\n"
80   "   USE DRAGPOINT_ACTIVE_MATERIAL\n"
81   "   USE DRAGPOINT_PLANE\n"
82   "}\n"
83   "\n"
84   "DEF dragPointXYTranslatorTranslator Separator { USE DRAGPOINT_INACTIVE_PLANE }\n"
85   "DEF dragPointXYTranslatorTranslatorActive Separator { USE DRAGPOINT_ACTIVE_PLANE }\n"
86   "DEF dragPointXZTranslatorTranslator Separator { USE DRAGPOINT_INACTIVE_PLANE }\n"
87   "DEF dragPointXZTranslatorTranslatorActive Separator { USE DRAGPOINT_ACTIVE_PLANE }\n"
88   "DEF dragPointYZTranslatorTranslator Separator { USE DRAGPOINT_INACTIVE_PLANE }\n"
89   "DEF dragPointYZTranslatorTranslatorActive Separator { USE DRAGPOINT_ACTIVE_PLANE }\n"
90   "\n"
91   "\n"
92   "DEF DRAGPOINT_FEEDBACK_LINE Group {\n"
93   "   Coordinate3 { point [ 0 -10 0, 0 10 0 ] }\n"
94   "   LineSet { }\n"
95   "\n"
96   "   Transform { translation 0 10 0 }\n"
97   "   DEF DRAGPOINT_FEEDBACK_ARROWHEAD Cone { height 0.5 bottomRadius 0.5 }\n"
98   "   Transform { translation 0 -20 0 }\n"
99   "   Rotation { rotation 0 0 1  3.14 }\n"
100   "   USE DRAGPOINT_FEEDBACK_ARROWHEAD\n"
101   "}\n"
102   "\n"
103   "DEF dragPointXFeedback Separator {\n"
104   "   USE DRAGPOINT_FEEDBACK_MATERIAL\n"
105   "   Rotation { rotation 0 0 1 1.57 }\n"
106   "   USE DRAGPOINT_FEEDBACK_LINE\n"
107   "}\n"
108   "DEF dragPointYFeedback Separator {\n"
109   "   USE DRAGPOINT_FEEDBACK_MATERIAL\n"
110   "   USE DRAGPOINT_FEEDBACK_LINE\n"
111   "}\n"
112   "DEF dragPointZFeedback Separator {\n"
113   "   USE DRAGPOINT_FEEDBACK_MATERIAL\n"
114   "   Rotation { rotation 1 0 0 1.57 }\n"
115   "   USE DRAGPOINT_FEEDBACK_LINE\n"
116   "}\n"
117   "\n"
118   "\n"
119   "DEF DRAGPOINT_FEEDBACK_PLANE Group {\n"
120   "   ShapeHints { shapeType UNKNOWN_SHAPE_TYPE }\n"
121   "   Coordinate3 { point [ -10 0 -10, -10 0 10, 10 0 10, 10 0 -10, -10 0 -10 ] }\n"
122   "   FaceSet { }\n"
123   "   Scale { scaleFactor 1.05 1 1.05 }\n"
124   "   LineSet { }\n"
125   "}\n"
126   "\n"
127   "DEF dragPointXYFeedback Separator {\n"
128   "   USE DRAGPOINT_FEEDBACK_MATERIAL\n"
129   "   Rotation { rotation 1 0 0  1.57 }\n"
130   "   USE DRAGPOINT_FEEDBACK_PLANE\n"
131   "}\n"
132   "DEF dragPointXZFeedback Separator {\n"
133   "   USE DRAGPOINT_FEEDBACK_MATERIAL\n"
134   "   USE DRAGPOINT_FEEDBACK_PLANE\n"
135   "}\n"
136   "DEF dragPointYZFeedback Separator {\n"
137   "   USE DRAGPOINT_FEEDBACK_MATERIAL\n"
138   "   Rotation { rotation 0 0 1  1.57 }\n"
139   "   USE DRAGPOINT_FEEDBACK_PLANE\n"
140   "}\n";
141 
142 #endif /* ! SO_DRAGPOINTDRAGGER_IV_H */
143