Panda3D

Loading...
Searching...
No Matches
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"
20#include "queuedConnectionManager.h"
21#include "queuedConnectionListener.h"
22#include "queuedConnectionReader.h"
23#include "connectionWriter.h"
24
25/**
26 *
27 */
28 class MayaToEggServer : public SomethingToEgg {
29 public:
30 MayaToEggServer();
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
ConnectionWriter
This class handles threaded delivery of datagrams to various TCP or UDP sockets.
Definition connectionWriter.h:35
MayaToEggConverter
This class supervises the construction of an EggData structure from a single Maya file,...
Definition mayaToEggConverter.h:52
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
QueuedConnectionManager
This flavor of ConnectionManager will queue up all of the reset-connection messages from the Connecti...
Definition queuedConnectionManager.h:36
QueuedConnectionReader
This flavor of ConnectionReader will read from its sockets and queue up all of the datagrams read for...
Definition queuedConnectionReader.h:34
SomethingToEgg::SomethingToEgg
SomethingToEgg(const std::string &format_name, const std::string &preferred_extension=std::string(), bool allow_last_param=true, bool allow_stdout=true)
The first parameter to the constructor should be the one-word name of the file format that is to be r...
Definition somethingToEgg.cxx:25
connectionWriter.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
mayaToEggConverter.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandatoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
queuedConnectionListener.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
queuedConnectionManager.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
queuedConnectionReader.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
somethingToEgg.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.