36 #include <boost/bind.hpp> 41 #include <OgreMatrix4.h> 48 "The rendering operation to use to draw the grid lines.",
this, SLOT(
updateColors()));
68 Display::onInitialize();
85 unsigned int n =
arrows_.size();
95 for (
unsigned int i = 0; i < n; ++i)
98 double v =
static_cast<double>(i) / (n - 1);
113 arrow->setColor(spec_color.
r, spec_color.
g, spec_color.
b, spec_color.
a);
124 for (
size_t i =
arrows_.size(); i < size; i++)
130 else if (size <
arrows_.size())
132 int size_signed =
static_cast<int>(size);
133 for (
int i =
arrows_.size() - 1; size_signed <= i; i--)
140 for (
unsigned int i = 0; i < size; ++i)
144 arrow->set(1.0, 1.0 / size, 0.0, 1.0 / size);
145 arrow->setPosition(Ogre::Vector3(0.0, static_cast<double>(i) / (size - 1), 0.0));
146 arrow->setDirection(Ogre::Vector3(1, 0, 0));
color_util::ColorHSVA changeColorspace(const color_util::ColorRGBA &rgba)
Ogre::ColourValue getOgreColor() const
hsva hueBlend(const hsva &color_a, const hsva &color_b, double ratio)
DisplayContext * context_
virtual int getInt() const
virtual float getFloat() const
SpectrumStyle getSpectrumStyle() const
color_util::ColorHSVA hueBlendPlus(const color_util::ColorHSVA &color_a, const color_util::ColorHSVA &color_b, double ratio)
rviz::EnumProperty * spectrum_property_
rviz::FloatProperty * alpha_a_property_
Ogre::SceneNode * scene_node_
rviz::FloatProperty * alpha_b_property_
std::vector< rviz::Arrow * > arrows_
virtual void addOption(const QString &option, int value=0)
Ogre::SceneManager * scene_manager_
virtual void queueRender()=0
rgba rgbaBlend(const rgba &color_a, const rgba &color_b, double ratio)
void onInitialize() override
rviz::ColorProperty * color_b_property_
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
rviz::ColorProperty * color_a_property_
rviz::IntProperty * size_property_