Panda3D
mayaToEgg_server.h
1 // Filename: mayaToEgg_server.h
2 // Adapted by: cbrunner (09Nov09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef MAYATOEGGSERVER_H
16 #define MAYATOEGGSERVER_H
17 
18 #include "pandatoolbase.h"
19 #include "somethingToEgg.h"
20 #include "mayaToEggConverter.h"
21 #include "queuedConnectionManager.h"
22 #include "queuedConnectionListener.h"
23 #include "queuedConnectionReader.h"
24 #include "connectionWriter.h"
25 
26 ////////////////////////////////////////////////////////////////////
27 // Class : MayaToEggServer
28 // Description :
29 ////////////////////////////////////////////////////////////////////
31 public:
33  ~MayaToEggServer();
34 
35  void run();
36  void poll();
37 
38  void add_reader(Connection *connection, QueuedConnectionReader *reader);
39  void remove_reader(Connection *connection, QueuedConnectionReader *reader);
40  QueuedConnectionManager *qManager;
41  QueuedConnectionListener *qListener;
42  QueuedConnectionReader *qReader;
43  ConnectionWriter *cWriter;
44  MayaToEggConverter *dummy;
45 
46 
47 protected:
48  static bool dispatch_transform_type(const string &opt, const string &arg, void *var);
50  Clients _clients;
51 
52  int _verbose;
53  bool _polygon_output;
54  double _polygon_tolerance;
55  bool _respect_maya_double_sided;
56  bool _suppress_vertex_color;
57  bool _keep_all_uvsets;
58  bool _round_uvs;
59  bool _legacy_shader;
60 
61  MayaToEggConverter::TransformType _transform_type;
62  vector_string _subroots;
63  vector_string _subsets;
64  vector_string _excludes;
65  vector_string _ignore_sliders;
66  vector_string _force_joints;
67 };
68 
69 #endif
This flavor of ConnectionManager will queue up all of the reset-connection messages from the Connecti...
void poll()
Checks for any network activity and handles it, if appropriate, and then returns. ...
This class handles threaded delivery of datagrams to various TCP or UDP sockets.
This class supervises the construction of an EggData structure from a single Maya file...
This flavor of ConnectionReader will read from its sockets and queue up all of the datagrams read for...
This is the general base class for a file-converter program that reads some model file format and gen...
Represents a single TCP or UDP socket for input or output.
Definition: connection.h:32
This flavor of ConnectionListener will queue up all of the TCP connections it established for later d...