97 lines
3.7 KiB
C
97 lines
3.7 KiB
C
/***************************************************************************
|
|
* Copyright (c) 2011 Werner Mayer <wmayer[at]users.sourceforge.net> *
|
|
* *
|
|
* This file is part of the FreeCAD CAx development system. *
|
|
* *
|
|
* This library is free software; you can redistribute it and/or *
|
|
* modify it under the terms of the GNU Library General Public *
|
|
* License as published by the Free Software Foundation; either *
|
|
* version 2 of the License, or (at your option) any later version. *
|
|
* *
|
|
* This library is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* GNU Library General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU Library General Public *
|
|
* License along with this library; see the file COPYING.LIB. If not, *
|
|
* write to the Free Software Foundation, Inc., 59 Temple Place, *
|
|
* Suite 330, Boston, MA 02111-1307, USA *
|
|
* *
|
|
***************************************************************************/
|
|
|
|
const char RotTransDragger::NavigationDraggerLayout[] =
|
|
"\n"
|
|
"\n"
|
|
"# Geometry resource file for the RotTransDragger\n"
|
|
"\n"
|
|
"# Geometry for the rotating parts.\n"
|
|
"DEF rotTransRotatorRotator Separator {\n"
|
|
" Material { \n"
|
|
" diffuseColor .05 .18 .125\n"
|
|
" emissiveColor .05 .18 .125\n"
|
|
" }\n"
|
|
" DrawStyle { lineWidth 2 }\n"
|
|
" Cylinder {\n"
|
|
" radius 1.85\n"
|
|
" height .15\n"
|
|
" parts SIDES\n"
|
|
" }\n"
|
|
"}\n"
|
|
"\n"
|
|
"DEF rotTransRotatorRotatorActive Separator {\n"
|
|
" Material { \n"
|
|
" diffuseColor .05 .2025 .18\n"
|
|
" emissiveColor .05 .2025 .18\n"
|
|
" }\n"
|
|
" DrawStyle { lineWidth 2 }\n"
|
|
" Cylinder {\n"
|
|
" radius 1.85\n"
|
|
" height .15\n"
|
|
" parts SIDES\n"
|
|
" }\n"
|
|
"}\n"
|
|
"\n"
|
|
"# Do not display the axis feedback used\n"
|
|
"# by the cylinder manips.\n"
|
|
"DEF rotTransRotatorFeedback Separator { }\n"
|
|
"DEF rotTransRotatorFeedbackActive Separator { }\n"
|
|
"\n"
|
|
"DEF rotTransTranslatorTranslator Separator {\n"
|
|
" Material { diffuseColor .6 .6 .6 }\n"
|
|
" DrawStyle { style LINES }\n"
|
|
" Sphere { radius 1.732 }\n"
|
|
"}\n"
|
|
"\n"
|
|
"DEF rotTransTranslatorTranslatorActive Separator {\n"
|
|
" Material { diffuseColor .6 .6 0 }\n"
|
|
" DrawStyle { style LINES }\n"
|
|
" Sphere { radius 1.732 }\n"
|
|
"}\n"
|
|
"\n"
|
|
"# Don't show anything for feedback during inactive state.\n"
|
|
"DEF rotTransTranslatorFeedback Separator { }\n"
|
|
"\n"
|
|
"DEF rotTransTranslatorFeedbackActive Separator {\n"
|
|
" Material { diffuseColor .5 .9 .9 }\n"
|
|
" # An arrow aligned with the x-axis.\n"
|
|
" RotationXYZ {\n"
|
|
" axis Z\n"
|
|
" angle 1.57079\n"
|
|
" }\n"
|
|
" Separator {\n"
|
|
"\n"
|
|
" #stick\n"
|
|
" Cylinder { height 4.0 radius 0.05 }\n"
|
|
"\n"
|
|
" #left arrowhead\n"
|
|
" Translation { translation 0 2.2 0 }\n"
|
|
" Cone { height 0.4 bottomRadius 0.2 }\n"
|
|
"\n"
|
|
" #right arrowhead\n"
|
|
" Translation { translation 0 -4.4 0 }\n"
|
|
" RotationXYZ { axis Z angle 3.14159 }\n"
|
|
" Cone { height 0.4 bottomRadius 0.2 }\n"
|
|
" }\n"
|
|
"}\n";
|