ó
œ<Ìac           @   sh   d  Z  d d l m Z d d l m Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d „  Z d	 „  Z d
 S(   s‚  
**Project Name:**      MakeHuman

**Product Home Page:** http://www.makehuman.org/

**Code Home Page:**    https://bitbucket.org/MakeHuman/makehuman/

**Authors:**           Thomas Larsson

**Copyright(c):**      MakeHuman Team 2001-2014

**Licensing:**         AGPL3 (http://www.makehuman.org/doc/node/the_makehuman_application.html)

    This file is part of MakeHuman (www.makehuman.org).

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as
    published by the Free Software Foundation, either version 3 of the
    License, or (at your option) any later version.

    This program 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 Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

**Coding Standards:**  See http://www.makehuman.org/node/165

Abstract
--------

TODO
iÿÿÿÿ(   t   Exporter(   t   Configt	   ObjConfigc           B   s   e  Z d  „  Z RS(   c         C   s#   t  j |  ƒ t |  _ t |  _ d  S(   N(   R   t   __init__t   Truet   useRelPathst   Falset
   useNormals(   t   self(    (    s    plugins/9_export_obj\__init__.pyR   -   s    	(   t   __name__t
   __module__R   (    (    (    s    plugins/9_export_obj\__init__.pyR   +   s   t   ExporterOBJc           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   s5   t  j |  ƒ d |  _ d |  _ d |  _ d |  _ d  S(   Ns   Wavefront objs   Wavefront (*.obj)t   objg      N@(   R    R   t   namet   filtert   fileExtensiont   orderPriority(   R   (    (    s    plugins/9_export_obj\__init__.pyR   4   s
    			c         C   sA   d d  l  } t j |  | | ƒ | j | j d t ƒ ƒ |  _ d  S(   Niÿÿÿÿt   Normals(   t   guiR    t   buildt	   addWidgett   CheckBoxR   R   (   R   t   optionst   taskviewR   (    (    s    plugins/9_export_obj\__init__.pyR   ;   s    c         C   sh   d d l  m } d d l m } | j ƒ  d d ƒ } |  j ƒ  } | j | ƒ | j | d ƒ | ƒ d  S(   Niÿÿÿÿ(   t   Progressi   (   t   mh2obji    R   (   t   progressR   t    R   t   begint	   getConfigt   setHumant	   exportObj(   R   t   humant   filenameR   R   R   t   cfg(    (    s    plugins/9_export_obj\__init__.pyt   export@   s    c         C   sO   t  ƒ  } |  j j | _ t | _ |  j j | _ |  j j ƒ  \ | _ | _	 | S(   N(
   R   R   t   selectedR   t   useTPoset   feetOnGroundR   t   getScalet   scalet   unit(   R   R"   (    (    s    plugins/9_export_obj\__init__.pyR   I   s    		(   R	   R
   R   R   R#   R   (    (    (    s    plugins/9_export_obj\__init__.pyR   3   s   				c         C   s   |  j  t ƒ  ƒ d  S(   N(   t   addExporterR   (   t   app(    (    s    plugins/9_export_obj\__init__.pyt   loadS   s    c         C   s   d  S(   N(    (   R+   (    (    s    plugins/9_export_obj\__init__.pyt   unloadV   s    N(	   t   __doc__R#   R    t   exportutils.configR   R   R   R,   R-   (    (    (    s    plugins/9_export_obj\__init__.pyt   <module>&   s    	