Panda3D
 All Classes Functions Variables Enumerations
mayaToEgg_server.h
00001 // Filename: mayaToEgg_server.h
00002 // Adapted by: cbrunner (09Nov09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef MAYATOEGGSERVER_H
00016 #define MAYATOEGGSERVER_H
00017 
00018 #include "pandatoolbase.h"
00019 #include "somethingToEgg.h"
00020 #include "mayaToEggConverter.h"
00021 #include "queuedConnectionManager.h"
00022 #include "queuedConnectionListener.h"
00023 #include "queuedConnectionReader.h"
00024 #include "connectionWriter.h"
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //       Class : MayaToEggServer
00028 // Description :
00029 ////////////////////////////////////////////////////////////////////
00030 class MayaToEggServer : public SomethingToEgg {
00031 public:
00032   MayaToEggServer();
00033   ~MayaToEggServer();
00034 
00035   void run();
00036   void poll();
00037 
00038   void add_reader(Connection *connection, QueuedConnectionReader *reader);
00039   void remove_reader(Connection *connection, QueuedConnectionReader *reader);
00040   QueuedConnectionManager *qManager;
00041   QueuedConnectionListener *qListener;
00042   QueuedConnectionReader *qReader;
00043   ConnectionWriter *cWriter;
00044   MayaToEggConverter *dummy;
00045 
00046 
00047 protected:
00048   static bool dispatch_transform_type(const string &opt, const string &arg, void *var);
00049   typedef pset< PT(Connection) > Clients;
00050   Clients _clients;
00051 
00052   int _verbose;
00053   bool _polygon_output;
00054   double _polygon_tolerance;
00055   bool _respect_maya_double_sided;
00056   bool _suppress_vertex_color;
00057   bool _keep_all_uvsets;
00058   bool _round_uvs;
00059   bool _legacy_shader;
00060 
00061   MayaToEggConverter::TransformType _transform_type;
00062   vector_string _subroots; 
00063   vector_string _subsets;
00064   vector_string _excludes;
00065   vector_string _ignore_sliders;
00066   vector_string _force_joints;
00067 };
00068 
00069 #endif
 All Classes Functions Variables Enumerations