#include <torus_array_display.h>
Public Types | |
typedef std::shared_ptr < rviz::Arrow > | ArrowPtr |
typedef std::shared_ptr < rviz::MeshShape > | ShapePtr |
Public Member Functions | |
TorusArrayDisplay () | |
virtual | ~TorusArrayDisplay () |
Protected Member Functions | |
void | allocateShapes (const jsk_recognition_msgs::TorusArray::ConstPtr &msg) |
void | allocateShapes (const size_t num) |
QColor | getColor (size_t index) |
virtual void | onInitialize () |
virtual void | reset () |
Protected Attributes | |
double | alpha_ |
rviz::FloatProperty * | alpha_property_ |
std::vector< Ogre::SceneNode * > | arrow_nodes_ |
std::vector< ArrowPtr > | arrow_objects_ |
bool | auto_color_ |
rviz::BoolProperty * | auto_color_property_ |
QColor | color_ |
rviz::ColorProperty * | color_property_ |
double | normal_length_ |
rviz::FloatProperty * | normal_length_property_ |
std::vector< ShapePtr > | shapes_ |
bool | show_normal_ |
rviz::BoolProperty * | show_normal_property_ |
int | uv_dimension_ |
rviz::IntProperty * | uv_property_ |
Private Slots | |
void | calcurateTriangleMesh (int large_dimension, int small_dimension, float large_radius, float small_radius, Ogre::Vector3 pos, Ogre::Quaternion q, std::vector< Triangle > &triangles, std::vector< Ogre::Vector3 > &vertices, std::vector< Ogre::Vector3 > &normals) |
void | updateAlpha () |
void | updateAutoColor () |
void | updateColor () |
void | updateNormalLength () |
void | updateShowNormal () |
void | updateUVdimension () |
Private Member Functions | |
void | processMessage (const jsk_recognition_msgs::TorusArray::ConstPtr &msg) |
Definition at line 59 of file torus_array_display.h.
typedef std::shared_ptr<rviz::Arrow> jsk_rviz_plugins::TorusArrayDisplay::ArrowPtr |
Definition at line 63 of file torus_array_display.h.
typedef std::shared_ptr<rviz::MeshShape> jsk_rviz_plugins::TorusArrayDisplay::ShapePtr |
Definition at line 64 of file torus_array_display.h.
Definition at line 42 of file torus_array_display.cpp.
jsk_rviz_plugins::TorusArrayDisplay::~TorusArrayDisplay | ( | ) | [virtual] |
Definition at line 66 of file torus_array_display.cpp.
void jsk_rviz_plugins::TorusArrayDisplay::allocateShapes | ( | const jsk_recognition_msgs::TorusArray::ConstPtr & | msg | ) | [protected] |
Definition at line 159 of file torus_array_display.cpp.
void jsk_rviz_plugins::TorusArrayDisplay::allocateShapes | ( | const size_t | num | ) | [protected] |
Definition at line 129 of file torus_array_display.cpp.
void jsk_rviz_plugins::TorusArrayDisplay::calcurateTriangleMesh | ( | int | large_dimension, |
int | small_dimension, | ||
float | large_radius, | ||
float | small_radius, | ||
Ogre::Vector3 | pos, | ||
Ogre::Quaternion | q, | ||
std::vector< Triangle > & | triangles, | ||
std::vector< Ogre::Vector3 > & | vertices, | ||
std::vector< Ogre::Vector3 > & | normals | ||
) | [private, slot] |
Definition at line 171 of file torus_array_display.cpp.
QColor jsk_rviz_plugins::TorusArrayDisplay::getColor | ( | size_t | index | ) | [protected] |
Definition at line 76 of file torus_array_display.cpp.
void jsk_rviz_plugins::TorusArrayDisplay::onInitialize | ( | ) | [protected, virtual] |
Reimplemented from rviz::MessageFilterDisplay< jsk_recognition_msgs::TorusArray >.
Definition at line 88 of file torus_array_display.cpp.
void jsk_rviz_plugins::TorusArrayDisplay::processMessage | ( | const jsk_recognition_msgs::TorusArray::ConstPtr & | msg | ) | [private] |
Definition at line 252 of file torus_array_display.cpp.
void jsk_rviz_plugins::TorusArrayDisplay::reset | ( | ) | [protected, virtual] |
Reimplemented from rviz::MessageFilterDisplay< jsk_recognition_msgs::TorusArray >.
Definition at line 123 of file torus_array_display.cpp.
void jsk_rviz_plugins::TorusArrayDisplay::updateAlpha | ( | ) | [private, slot] |
Definition at line 108 of file torus_array_display.cpp.
void jsk_rviz_plugins::TorusArrayDisplay::updateAutoColor | ( | ) | [private, slot] |
Definition at line 118 of file torus_array_display.cpp.
void jsk_rviz_plugins::TorusArrayDisplay::updateColor | ( | ) | [private, slot] |
Definition at line 103 of file torus_array_display.cpp.
void jsk_rviz_plugins::TorusArrayDisplay::updateNormalLength | ( | ) | [private, slot] |
Definition at line 246 of file torus_array_display.cpp.
void jsk_rviz_plugins::TorusArrayDisplay::updateShowNormal | ( | ) | [private, slot] |
Definition at line 232 of file torus_array_display.cpp.
void jsk_rviz_plugins::TorusArrayDisplay::updateUVdimension | ( | ) | [private, slot] |
Definition at line 113 of file torus_array_display.cpp.
double jsk_rviz_plugins::TorusArrayDisplay::alpha_ [protected] |
Definition at line 80 of file torus_array_display.h.
Definition at line 74 of file torus_array_display.h.
std::vector<Ogre::SceneNode*> jsk_rviz_plugins::TorusArrayDisplay::arrow_nodes_ [protected] |
Definition at line 85 of file torus_array_display.h.
std::vector<ArrowPtr> jsk_rviz_plugins::TorusArrayDisplay::arrow_objects_ [protected] |
Definition at line 86 of file torus_array_display.h.
bool jsk_rviz_plugins::TorusArrayDisplay::auto_color_ [protected] |
Definition at line 81 of file torus_array_display.h.
Definition at line 76 of file torus_array_display.h.
QColor jsk_rviz_plugins::TorusArrayDisplay::color_ [protected] |
Definition at line 79 of file torus_array_display.h.
Definition at line 73 of file torus_array_display.h.
double jsk_rviz_plugins::TorusArrayDisplay::normal_length_ [protected] |
Definition at line 83 of file torus_array_display.h.
Definition at line 78 of file torus_array_display.h.
std::vector<ShapePtr> jsk_rviz_plugins::TorusArrayDisplay::shapes_ [protected] |
Definition at line 87 of file torus_array_display.h.
bool jsk_rviz_plugins::TorusArrayDisplay::show_normal_ [protected] |
Definition at line 82 of file torus_array_display.h.
Definition at line 77 of file torus_array_display.h.
int jsk_rviz_plugins::TorusArrayDisplay::uv_dimension_ [protected] |
Definition at line 84 of file torus_array_display.h.
Definition at line 75 of file torus_array_display.h.