#include <polygon_array_display.h>
Public Types | |
typedef std::shared_ptr < rviz::Arrow > | ArrowPtr |
Public Member Functions | |
PolygonArrayDisplay () | |
virtual | ~PolygonArrayDisplay () |
Protected Member Functions | |
virtual void | allocateMaterials (int num) |
virtual Ogre::ColourValue | getColor (size_t index) |
virtual bool | getTransform (const std_msgs::Header &header, Ogre::Vector3 &position, Ogre::Quaternion &orientation) |
virtual void | onInitialize () |
virtual void | processLine (const size_t i, const geometry_msgs::PolygonStamped &polygon) |
virtual void | processMessage (const jsk_recognition_msgs::PolygonArray::ConstPtr &msg) |
virtual void | processNormal (const size_t i, const geometry_msgs::PolygonStamped &polygon) |
virtual void | processPolygon (const size_t i, const geometry_msgs::PolygonStamped &polygon) |
virtual void | processPolygonMaterial (const size_t i) |
virtual void | reset () |
virtual void | updateLines (int num) |
virtual void | updateSceneNodes (const jsk_recognition_msgs::PolygonArray::ConstPtr &msg) |
Protected Attributes | |
rviz::FloatProperty * | alpha_property_ |
std::vector< Ogre::SceneNode * > | arrow_nodes_ |
std::vector< ArrowPtr > | arrow_objects_ |
rviz::ColorProperty * | color_property_ |
std::string | coloring_method_ |
rviz::EnumProperty * | coloring_property_ |
bool | enable_lighting_ |
rviz::BoolProperty * | enable_lighting_property_ |
jsk_recognition_msgs::PolygonArray::ConstPtr | latest_msg_ |
std::vector < rviz::BillboardLine * > | lines_ |
std::vector< Ogre::ManualObject * > | manual_objects_ |
std::vector< Ogre::MaterialPtr > | materials_ |
double | normal_length_ |
rviz::FloatProperty * | normal_length_property_ |
bool | only_border_ |
rviz::BoolProperty * | only_border_property_ |
std::vector< Ogre::SceneNode * > | scene_nodes_ |
bool | show_normal_ |
rviz::BoolProperty * | show_normal_property_ |
Private Slots | |
void | updateColoring () |
void | updateEnableLighting () |
void | updateNormalLength () |
void | updateOnlyBorder () |
void | updateShowNormal () |
Definition at line 59 of file polygon_array_display.h.
typedef std::shared_ptr<rviz::Arrow> jsk_rviz_plugins::PolygonArrayDisplay::ArrowPtr |
Definition at line 64 of file polygon_array_display.h.
Definition at line 46 of file polygon_array_display.cpp.
Definition at line 86 of file polygon_array_display.cpp.
void jsk_rviz_plugins::PolygonArrayDisplay::allocateMaterials | ( | int | num | ) | [protected, virtual] |
Definition at line 118 of file polygon_array_display.cpp.
Ogre::ColourValue jsk_rviz_plugins::PolygonArrayDisplay::getColor | ( | size_t | index | ) | [protected, virtual] |
Definition at line 220 of file polygon_array_display.cpp.
bool jsk_rviz_plugins::PolygonArrayDisplay::getTransform | ( | const std_msgs::Header & | header, |
Ogre::Vector3 & | position, | ||
Ogre::Quaternion & | orientation | ||
) | [protected, virtual] |
Definition at line 463 of file polygon_array_display.cpp.
void jsk_rviz_plugins::PolygonArrayDisplay::onInitialize | ( | ) | [protected, virtual] |
Reimplemented from rviz::MessageFilterDisplay< jsk_recognition_msgs::PolygonArray >.
Definition at line 109 of file polygon_array_display.cpp.
void jsk_rviz_plugins::PolygonArrayDisplay::processLine | ( | const size_t | i, |
const geometry_msgs::PolygonStamped & | polygon | ||
) | [protected, virtual] |
Definition at line 269 of file polygon_array_display.cpp.
void jsk_rviz_plugins::PolygonArrayDisplay::processMessage | ( | const jsk_recognition_msgs::PolygonArray::ConstPtr & | msg | ) | [protected, virtual] |
Definition at line 414 of file polygon_array_display.cpp.
void jsk_rviz_plugins::PolygonArrayDisplay::processNormal | ( | const size_t | i, |
const geometry_msgs::PolygonStamped & | polygon | ||
) | [protected, virtual] |
Definition at line 371 of file polygon_array_display.cpp.
void jsk_rviz_plugins::PolygonArrayDisplay::processPolygon | ( | const size_t | i, |
const geometry_msgs::PolygonStamped & | polygon | ||
) | [protected, virtual] |
Definition at line 322 of file polygon_array_display.cpp.
void jsk_rviz_plugins::PolygonArrayDisplay::processPolygonMaterial | ( | const size_t | i | ) | [protected, virtual] |
Definition at line 302 of file polygon_array_display.cpp.
void jsk_rviz_plugins::PolygonArrayDisplay::reset | ( | ) | [protected, virtual] |
Reimplemented from rviz::MessageFilterDisplay< jsk_recognition_msgs::PolygonArray >.
Definition at line 150 of file polygon_array_display.cpp.
void jsk_rviz_plugins::PolygonArrayDisplay::updateColoring | ( | ) | [private, slot] |
Definition at line 482 of file polygon_array_display.cpp.
void jsk_rviz_plugins::PolygonArrayDisplay::updateEnableLighting | ( | ) | [private, slot] |
Definition at line 521 of file polygon_array_display.cpp.
void jsk_rviz_plugins::PolygonArrayDisplay::updateLines | ( | int | num | ) | [protected, virtual] |
Definition at line 203 of file polygon_array_display.cpp.
void jsk_rviz_plugins::PolygonArrayDisplay::updateNormalLength | ( | ) | [private, slot] |
Definition at line 526 of file polygon_array_display.cpp.
void jsk_rviz_plugins::PolygonArrayDisplay::updateOnlyBorder | ( | ) | [private, slot] |
Definition at line 502 of file polygon_array_display.cpp.
void jsk_rviz_plugins::PolygonArrayDisplay::updateSceneNodes | ( | const jsk_recognition_msgs::PolygonArray::ConstPtr & | msg | ) | [protected, virtual] |
Definition at line 158 of file polygon_array_display.cpp.
void jsk_rviz_plugins::PolygonArrayDisplay::updateShowNormal | ( | ) | [private, slot] |
Definition at line 507 of file polygon_array_display.cpp.
Definition at line 88 of file polygon_array_display.h.
std::vector<Ogre::SceneNode*> jsk_rviz_plugins::PolygonArrayDisplay::arrow_nodes_ [protected] |
Definition at line 103 of file polygon_array_display.h.
std::vector<ArrowPtr> jsk_rviz_plugins::PolygonArrayDisplay::arrow_objects_ [protected] |
Definition at line 104 of file polygon_array_display.h.
Definition at line 87 of file polygon_array_display.h.
std::string jsk_rviz_plugins::PolygonArrayDisplay::coloring_method_ [protected] |
Definition at line 97 of file polygon_array_display.h.
Definition at line 91 of file polygon_array_display.h.
bool jsk_rviz_plugins::PolygonArrayDisplay::enable_lighting_ [protected] |
Definition at line 96 of file polygon_array_display.h.
Definition at line 93 of file polygon_array_display.h.
jsk_recognition_msgs::PolygonArray::ConstPtr jsk_rviz_plugins::PolygonArrayDisplay::latest_msg_ [protected] |
Definition at line 100 of file polygon_array_display.h.
std::vector<rviz::BillboardLine*> jsk_rviz_plugins::PolygonArrayDisplay::lines_ [protected] |
Definition at line 106 of file polygon_array_display.h.
std::vector<Ogre::ManualObject*> jsk_rviz_plugins::PolygonArrayDisplay::manual_objects_ [protected] |
Definition at line 101 of file polygon_array_display.h.
std::vector<Ogre::MaterialPtr> jsk_rviz_plugins::PolygonArrayDisplay::materials_ [protected] |
Definition at line 105 of file polygon_array_display.h.
double jsk_rviz_plugins::PolygonArrayDisplay::normal_length_ [protected] |
Definition at line 99 of file polygon_array_display.h.
Definition at line 94 of file polygon_array_display.h.
bool jsk_rviz_plugins::PolygonArrayDisplay::only_border_ [protected] |
Definition at line 95 of file polygon_array_display.h.
Definition at line 89 of file polygon_array_display.h.
std::vector<Ogre::SceneNode*> jsk_rviz_plugins::PolygonArrayDisplay::scene_nodes_ [protected] |
Definition at line 102 of file polygon_array_display.h.
bool jsk_rviz_plugins::PolygonArrayDisplay::show_normal_ [protected] |
Definition at line 98 of file polygon_array_display.h.
Definition at line 92 of file polygon_array_display.h.