Raytracing/InitGui.py

Go to the documentation of this file.
00001 # Raytracing gui init module
00002 # (c) 2003 Juergen Riegel
00003 #
00004 # Gathering all the information to start FreeCAD
00005 # This is the second one of three init scripts, the third one
00006 # runs when the gui is up
00007 
00008 #***************************************************************************
00009 #*   (c) Juergen Riegel (juergen.riegel@web.de) 2002                       *
00010 #*                                                                         *
00011 #*   This file is part of the FreeCAD CAx development system.              *
00012 #*                                                                         *
00013 #*   This program is free software; you can redistribute it and/or modify  *
00014 #*   it under the terms of the GNU General Public License (GPL)            *
00015 #*   as published by the Free Software Foundation; either version 2 of     *
00016 #*   the License, or (at your option) any later version.                   *
00017 #*   for detail see the LICENCE text file.                                 *
00018 #*                                                                         *
00019 #*   FreeCAD is distributed in the hope that it will be useful,            *
00020 #*   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00021 #*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00022 #*   GNU Library General Public License for more details.                  *
00023 #*                                                                         *
00024 #*   You should have received a copy of the GNU Library General Public     *
00025 #*   License along with FreeCAD; if not, write to the Free Software        *
00026 #*   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
00027 #*   USA                                                                   *
00028 #*                                                                         *
00029 #*   Juergen Riegel 2002                                                   *
00030 #***************************************************************************/
00031 
00032 
00033 
00034 class RaytracingWorkbench ( Workbench ):
00035         "Raytracing workbench object"
00036         Icon = """
00037                         /* XPM */
00038                         static char * raytracing_xpm[] = {
00039                         "16 16 9 1",
00040                         "       c None",
00041                         ".      c #000100",
00042                         "+      c #0C1731",
00043                         "@      c #1D3154",
00044                         "#      c #29476F",
00045                         "$      c #3C6291",
00046                         "%      c #7394BB",
00047                         "&      c #B0BFD3",
00048                         "*      c #FBFDFB",
00049                         "                ",
00050                         "      $$        ",
00051                         "    %&%$$$#     ",
00052                         "  %&***$$###    ",
00053                         "  %****$###@@   ",
00054                         " $%***%###@@@   ",
00055                         " $$%&$###@@@+   ",
00056                         " $$$####@@@++   ",
00057                         " $$####@@@+++   ",
00058                         " $####@@@++++   ",
00059                         "  ###@@@+++++   ",
00060                         "  ##@@@+++++    ",
00061                         "   @@@+++++...  ",
00062                         "     ++++.....  ",
00063                         "                ",
00064                         "                "};
00065                         """
00066         MenuText = "Raytracing"
00067         ToolTip = "Raytracing workbench"
00068 
00069         def Initialize(self):
00070                 # load the module
00071                 import PartGui
00072                 import RaytracingGui
00073         def GetClassName(self):
00074                 return "RaytracingGui::Workbench"
00075 
00076 Gui.addWorkbench(RaytracingWorkbench())
00077 
00078 FreeCAD.addImportType("Povray format (*.pov *.inc)","RaytracingGui")

Generated on Wed Nov 23 19:00:19 2011 for FreeCAD by  doxygen 1.6.1