#include <ColorBlendingFilter.hpp>
Public Member Functions | |
ColorBlendingFilter () | |
virtual bool | configure () |
virtual bool | update (const T &mapIn, T &mapOut) |
virtual | ~ColorBlendingFilter () |
Public Member Functions inherited from filters::FilterBase< T > | |
bool | configure (const std::string ¶m_name, ros::NodeHandle node_handle=ros::NodeHandle()) |
bool | configure (XmlRpc::XmlRpcValue &config) |
FilterBase () | |
const std::string & | getName () |
std::string | getType () |
virtual | ~FilterBase () |
Private Types | |
enum | BlendModes { BlendModes::Normal, BlendModes::HardLight, BlendModes::SoftLight } |
Private Attributes | |
std::string | backgroundLayer_ |
Input layers. More... | |
BlendModes | blendMode_ |
Blend mode. More... | |
std::string | foregroundLayer_ |
double | opacity_ |
Opacity of foreground layer. More... | |
std::string | outputLayer_ |
Output layer name. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from filters::FilterBase< T > | |
bool | getParam (const std::string &name, std::string &value) |
bool | getParam (const std::string &name, XmlRpc::XmlRpcValue &value) |
bool | getParam (const std::string &name, double &value) |
bool | getParam (const std::string &name, std::vector< double > &value) |
bool | getParam (const std::string &name, unsigned int &value) |
bool | getParam (const std::string &name, int &value) |
bool | getParam (const std::string &name, std::vector< std::string > &value) |
bool | getParam (const std::string &name, bool &value) |
bool | loadConfiguration (XmlRpc::XmlRpcValue &config) |
Protected Attributes inherited from filters::FilterBase< T > | |
bool | configured_ |
std::string | filter_name_ |
std::string | filter_type_ |
string_map_t | params_ |
Blend two color layers.
Definition at line 22 of file ColorBlendingFilter.hpp.
|
strongprivate |
Enumerator | |
---|---|
Normal | |
HardLight | |
SoftLight |
Definition at line 49 of file ColorBlendingFilter.hpp.
grid_map::ColorBlendingFilter< T >::ColorBlendingFilter | ( | ) |
Constructor
Definition at line 22 of file ColorBlendingFilter.cpp.
|
virtual |
Destructor.
Definition at line 29 of file ColorBlendingFilter.cpp.
|
virtual |
Configures the filter.
Implements filters::FilterBase< T >.
Definition at line 34 of file ColorBlendingFilter.cpp.
|
virtual |
Compute a new color layer based on blending two color layers.
mapIn | grid map containing the two color layers. |
mapOut | grid map containing mapIn and the blended color layer. |
Implements filters::FilterBase< T >.
Definition at line 76 of file ColorBlendingFilter.cpp.
|
private |
Input layers.
Definition at line 56 of file ColorBlendingFilter.hpp.
|
private |
Blend mode.
Definition at line 59 of file ColorBlendingFilter.hpp.
|
private |
Definition at line 56 of file ColorBlendingFilter.hpp.
|
private |
Opacity of foreground layer.
Definition at line 62 of file ColorBlendingFilter.hpp.
|
private |
Output layer name.
Definition at line 65 of file ColorBlendingFilter.hpp.