$search
#include <point_cloud_transformers.h>
Public Member Functions | |
virtual void | createProperties (PropertyManager *property_man, const CategoryPropertyWPtr &parent, const std::string &prefix, uint32_t mask, V_PropertyBaseWPtr &out_props) |
Create any properties necessary for this transformer. Will be called once when the transformer is loaded. All properties must be added to the out_props vector. | |
FlatColorPCTransformer () | |
const Color & | getColor () |
virtual uint8_t | score (const sensor_msgs::PointCloud2ConstPtr &cloud) |
"Score" a message for how well supported the message is. For example, a "flat color" transformer can support any cloud, but will return a score of 0 here since it should not be preferred over others that explicitly support fields in the message. This allows that "flat color" transformer to still be selectable, but generally not chosen automatically. | |
void | setColor (const Color &color) |
virtual uint8_t | supports (const sensor_msgs::PointCloud2ConstPtr &cloud) |
Returns a level of support for a specific cloud. This level of support is a mask using the SupportLevel enum. | |
virtual bool | transform (const sensor_msgs::PointCloud2ConstPtr &cloud, uint32_t mask, const Ogre::Matrix4 &transform, PointCloud &out) |
Transforms a PointCloud2 into an rviz::PointCloud. The rviz::PointCloud is assumed to have been preallocated into the correct size. The mask determines which part of the cloud should be output (xyz or color). This method will only be called if supports() of the same cloud has returned a non-zero mask, and will only be called with masks compatible with the one returned from supports(). | |
Private Attributes | |
Color | color_ |
ColorPropertyWPtr | color_property_ |
Definition at line 195 of file point_cloud_transformers.h.
rviz::FlatColorPCTransformer::FlatColorPCTransformer | ( | ) | [inline] |
Definition at line 198 of file point_cloud_transformers.h.
void rviz::FlatColorPCTransformer::createProperties | ( | PropertyManager * | property_man, | |
const CategoryPropertyWPtr & | parent, | |||
const std::string & | prefix, | |||
uint32_t | mask, | |||
V_PropertyBaseWPtr & | out_props | |||
) | [virtual] |
Create any properties necessary for this transformer. Will be called once when the transformer is loaded. All properties must be added to the out_props vector.
Reimplemented from rviz::PointCloudTransformer.
Definition at line 517 of file point_cloud_transformers.cpp.
const Color& rviz::FlatColorPCTransformer::getColor | ( | ) | [inline] |
Definition at line 208 of file point_cloud_transformers.h.
uint8_t rviz::FlatColorPCTransformer::score | ( | const sensor_msgs::PointCloud2ConstPtr & | cloud | ) | [virtual] |
"Score" a message for how well supported the message is. For example, a "flat color" transformer can support any cloud, but will return a score of 0 here since it should not be preferred over others that explicitly support fields in the message. This allows that "flat color" transformer to still be selectable, but generally not chosen automatically.
Reimplemented from rviz::PointCloudTransformer.
Definition at line 489 of file point_cloud_transformers.cpp.
void rviz::FlatColorPCTransformer::setColor | ( | const Color & | color | ) |
Definition at line 510 of file point_cloud_transformers.cpp.
uint8_t rviz::FlatColorPCTransformer::supports | ( | const sensor_msgs::PointCloud2ConstPtr & | cloud | ) | [virtual] |
Returns a level of support for a specific cloud. This level of support is a mask using the SupportLevel enum.
Implements rviz::PointCloudTransformer.
Definition at line 484 of file point_cloud_transformers.cpp.
bool rviz::FlatColorPCTransformer::transform | ( | const sensor_msgs::PointCloud2ConstPtr & | cloud, | |
uint32_t | mask, | |||
const Ogre::Matrix4 & | transform, | |||
PointCloud & | out | |||
) | [virtual] |
Transforms a PointCloud2 into an rviz::PointCloud. The rviz::PointCloud is assumed to have been preallocated into the correct size. The mask determines which part of the cloud should be output (xyz or color). This method will only be called if supports() of the same cloud has returned a non-zero mask, and will only be called with masks compatible with the one returned from supports().
Implements rviz::PointCloudTransformer.
Definition at line 494 of file point_cloud_transformers.cpp.
Color rviz::FlatColorPCTransformer::color_ [private] |
Definition at line 211 of file point_cloud_transformers.h.
ColorPropertyWPtr rviz::FlatColorPCTransformer::color_property_ [private] |
Definition at line 212 of file point_cloud_transformers.h.