First checkin for OpenMesh 2.0
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@2 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
34
Apps/Deprecated/Streaming/Server/VDPMStreamingServer.cc
Normal file
34
Apps/Deprecated/Streaming/Server/VDPMStreamingServer.cc
Normal file
@@ -0,0 +1,34 @@
|
||||
#include <iostream>
|
||||
|
||||
#include <OpenMesh/Apps/VDProgMesh/Streaming/Server/VDPMStreamingServer.hh>
|
||||
#include <OpenMesh/Apps/VDProgMesh/Streaming/Server/ServerSideVDPM.hh>
|
||||
#include <OpenMesh/Apps/VDProgMesh/Streaming/Server/VDPMServerSocket.hh>
|
||||
#include <OpenMesh/Apps/VDProgMesh/Streaming/Server/VDPMServerSession.hh>
|
||||
#include <OpenMesh/Apps/VDProgMesh/Streaming/Server/VDPMServerViewerWidget.hh>
|
||||
#include <OpenMesh/Tools/Utils/getopt.h>
|
||||
|
||||
#include <qhostaddress.h>
|
||||
#include <qapplication.h>
|
||||
|
||||
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
std::cout << "View-dependent streaming of PM server." << std::endl;
|
||||
|
||||
QApplication app(argc, argv);
|
||||
VDPMServerViewerWidget server_widget;
|
||||
|
||||
server_widget.resize(50, 50);
|
||||
app.setMainWidget(&server_widget);
|
||||
server_widget.show();
|
||||
|
||||
for (int idx=1; idx < argc; ++idx)
|
||||
{
|
||||
std::cout << "loading " << argv[idx] << std::endl;
|
||||
server_widget.open_vd_prog_mesh( argv[idx] ) ;
|
||||
}
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user