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