Skip to content

Commit

Permalink
update Sort from Application to Kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
chambbj committed Oct 23, 2014
1 parent c1ab17d commit 8dc1841
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apps/pdal.cpp
Expand Up @@ -164,8 +164,8 @@ int main(int argc, char* argv[])

if (boost::iequals(action, "sort"))
{
pdal::kernel::Sort app(count, args);
return app.run();
pdal::kernel::Sort app;
return app.run(count, args, "sort");
}

if (boost::iequals(action, "pipeline"))
Expand Down
6 changes: 3 additions & 3 deletions include/pdal/kernel/Sort.hpp
Expand Up @@ -34,17 +34,17 @@

#pragma once

#include "Application.hpp"
#include <pdal/kernel/Kernel.hpp>

namespace pdal
{
namespace kernel
{

class PDAL_DLL Sort : public Application
class PDAL_DLL Sort : public Kernel
{
public:
Sort(int argc, const char* argv[]);
Sort();
int execute();

private:
Expand Down
7 changes: 4 additions & 3 deletions src/kernel/Sort.cpp
Expand Up @@ -44,8 +44,8 @@ namespace pdal
namespace kernel
{

Sort::Sort(int argc, const char* argv[]) :
Application(argc, argv, "sort"), m_bCompress(false), m_bForwardMetadata(false)
Sort::Sort() :
Kernel(), m_bCompress(false), m_bForwardMetadata(false)
{}


Expand Down Expand Up @@ -174,7 +174,8 @@ int Sort::execute()
// process the data, grabbing the PointBufferSet for visualization of the
PointBufferSet pbSetOut = writer->execute(ctx);

visualize(*pbSetOut.begin());
if (isVisualize())
visualize(*pbSetOut.begin());
//visualize(*pbSetIn.begin(), *pbSetOut.begin());

return 0;
Expand Down

0 comments on commit 8dc1841

Please sign in to comment.