Operators -----------------------------------------------------------------------------
| 104 | // Operators |
| 105 | // ----------------------------------------------------------------------------- |
| 106 | OutofcoreCloud::OutofcoreCloud (std::string name, boost::filesystem::path& tree_root) : |
| 107 | Object (name) |
| 108 | { |
| 109 | |
| 110 | // Create the pcd reader thread once for all outofcore nodes |
| 111 | if (!OutofcoreCloud::pcd_reader_thread) |
| 112 | OutofcoreCloud::pcd_reader_thread.reset (new std::thread (&OutofcoreCloud::pcdReaderThread)); |
| 113 | |
| 114 | octree_.reset (new OctreeDisk (tree_root, true)); |
| 115 | octree_->getBoundingBox (bbox_min_, bbox_max_); |
| 116 | |
| 117 | voxel_actor_ = vtkSmartPointer<vtkActor>::New (); |
| 118 | |
| 119 | updateVoxelData (); |
| 120 | |
| 121 | cloud_actors_ = vtkSmartPointer<vtkActorCollection>::New (); |
| 122 | |
| 123 | addActor (voxel_actor_); |
| 124 | } |
| 125 | |
| 126 | // Methods |
| 127 | // ----------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected