post-processing-block-model.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2019 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
8 
9 
10 namespace rs2
11 {
12  /*
13  A less generic processing block that's used specifically for object detection
14  so that the filters inside are all of type object_detection_filter.
15  */
17  {
18  public:
20  subdevice_model * owner,
21  std::shared_ptr< post_processing_filter > block,
22  std::function<rs2::frame( rs2::frame )> invoker,
23  std::string& error_message,
24  bool enabled = true
25  )
26  : processing_block_model( owner, block->get_name(), block, invoker, error_message, enabled )
27  {
28  }
29 
30  protected:
31  void processing_block_enable_disable( bool actual ) override
32  {
33  dynamic_cast<post_processing_filter *>(_block.get())->on_processing_block_enable( actual );
34  }
35  };
36 }
37 
38 
const std::string & get_name() const
Definition: cah-model.h:10
GLsizei const GLchar *const * string
std::function< void(std::function< void()>)> invoker
GLenum GLenum GLsizei const GLuint GLboolean enabled
std::shared_ptr< rs2::filter > _block
void processing_block_enable_disable(bool actual) override
post_processing_block_model(subdevice_model *owner, std::shared_ptr< post_processing_filter > block, std::function< rs2::frame(rs2::frame)> invoker, std::string &error_message, bool enabled=true)


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:39