Go to the documentation of this file.
40 #include <OgreMatrix4.h>
47 "The rendering operation to use to draw the grid lines.",
this, SLOT(
updateColors()));
67 Display::onInitialize();
84 unsigned int n =
arrows_.size();
94 for (
unsigned int i = 0; i < n; ++i)
97 double v =
static_cast<double>(i) / (n - 1);
112 arrow->setColor(spec_color.
r, spec_color.
g, spec_color.
b, spec_color.
a);
123 for (
size_t i =
arrows_.size(); i < size; i++)
129 else if (size <
arrows_.size())
131 int size_signed =
static_cast<int>(size);
132 for (
int i =
arrows_.size() - 1; size_signed <= i; i--)
139 for (
unsigned int i = 0; i < size; ++i)
143 arrow->set(1.0, 1.0 / size, 0.0, 1.0 / size);
144 arrow->setPosition(Ogre::Vector3(0.0,
static_cast<double>(i) / (size - 1), 0.0));
145 arrow->setDirection(Ogre::Vector3(1, 0, 0));
virtual void queueRender()=0
rviz::FloatProperty * alpha_b_property_
hsva hueBlend(const hsva &color_a, const hsva &color_b, double ratio)
rgba rgbaBlend(const rgba &color_a, const rgba &color_b, double ratio)
rviz::ColorProperty * color_b_property_
std::vector< rviz::Arrow * > arrows_
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
virtual float getFloat() const
virtual void addOption(const QString &option, int value=0)
rviz::EnumProperty * spectrum_property_
Ogre::SceneNode * scene_node_
rviz::FloatProperty * alpha_a_property_
SpectrumStyle getSpectrumStyle() const
Ogre::SceneManager * scene_manager_
rviz::ColorProperty * color_a_property_
DisplayContext * context_
color_util::ColorHSVA hueBlendPlus(const color_util::ColorHSVA &color_a, const color_util::ColorHSVA &color_b, double ratio)
virtual int getInt() const
color_util::ColorRGBA changeColorspace(const color_util::ColorHSVA &hsva)
void onInitialize() override
rviz::IntProperty * size_property_
Ogre::ColourValue getOgreColor() const