Added find_object namespace prefix to all signals and slots
git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@381 620bd6b2-0a58-f614-fd9a-1bd335dccda9
This commit is contained in:
@@ -32,8 +32,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <QtCore/QPointF>
|
||||
#include <QtCore/QTime>
|
||||
|
||||
using namespace find_object;
|
||||
|
||||
TcpClient::TcpClient(QObject *parent) :
|
||||
QTcpSocket(parent),
|
||||
blockSize_(0)
|
||||
@@ -65,7 +63,7 @@ void TcpClient::readReceivedData()
|
||||
|
||||
blockSize_ = 0;
|
||||
|
||||
DetectionInfo info;
|
||||
find_object::DetectionInfo info;
|
||||
in >> info;
|
||||
|
||||
printf("---\n");
|
||||
|
||||
@@ -33,14 +33,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <QtNetwork/QTcpSocket>
|
||||
#include <QtGui/QTransform>
|
||||
|
||||
using namespace find_object;
|
||||
|
||||
ImagesTcpServer::ImagesTcpServer(float hz, const QString & path, QObject * parent) :
|
||||
QTcpSocket(parent)
|
||||
{
|
||||
// Set camera parameters
|
||||
Settings::setCamera_4imageRate(hz);
|
||||
Settings::setCamera_5mediaPath(path);
|
||||
find_object::Settings::setCamera_4imageRate(hz);
|
||||
find_object::Settings::setCamera_5mediaPath(path);
|
||||
|
||||
connect(&camera_, SIGNAL(imageReceived(const cv::Mat &)), this, SLOT(publishImage(const cv::Mat &)));
|
||||
connect(this, SIGNAL(connected()), this, SLOT(startCamera()));
|
||||
|
||||
@@ -33,8 +33,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "TcpResponse.h"
|
||||
#include "find_object/JsonWriter.h"
|
||||
|
||||
using namespace find_object;
|
||||
|
||||
void showUsage()
|
||||
{
|
||||
printf("\ntcpRequest [options] --scene image.png --out # --in #\n"
|
||||
@@ -42,7 +40,7 @@ void showUsage()
|
||||
" \"in\" is the port from which the detection is received.\n"
|
||||
" Options:\n"
|
||||
" --host #.#.#.# Set host address.\n");
|
||||
if(JsonWriter::available())
|
||||
if(find_object::JsonWriter::available())
|
||||
{
|
||||
printf(" --json \"path\" Path to an output JSON file.\n");
|
||||
}
|
||||
@@ -116,7 +114,7 @@ int main(int argc, char * argv[])
|
||||
continue;
|
||||
}
|
||||
|
||||
if(JsonWriter::available())
|
||||
if(find_object::JsonWriter::available())
|
||||
{
|
||||
if(strcmp(argv[i], "--json") == 0 || strcmp(argv[i], "-json") == 0)
|
||||
{
|
||||
@@ -236,9 +234,9 @@ int main(int argc, char * argv[])
|
||||
printf("No objects detected.\n");
|
||||
}
|
||||
// write json
|
||||
if(!jsonPath.isEmpty() && JsonWriter::available())
|
||||
if(!jsonPath.isEmpty() && find_object::JsonWriter::available())
|
||||
{
|
||||
JsonWriter::write(response.info(), jsonPath);
|
||||
find_object::JsonWriter::write(response.info(), jsonPath);
|
||||
printf("JSON written to \"%s\"\n", jsonPath.toStdString().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user