Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
rviz::ColorEditor Class Reference

#include <color_editor.h>

Inheritance diagram for rviz::ColorEditor:
Inheritance graph
[legend]

List of all members.

Public Slots

void invalidateParse ()
void parseText ()
void setColor (const QColor &color)

Public Member Functions

 ColorEditor (QWidget *parent=0)
QColor getColor ()

Static Public Member Functions

static void paintColorBox (QPainter *painter, const QRect &rect, const QColor &color)

Protected Member Functions

virtual void onButtonClick ()
virtual void paintEvent (QPaintEvent *event)
virtual void resizeEvent (QResizeEvent *event)

Private Attributes

QColor color_
bool parse_valid_

Detailed Description

Definition at line 37 of file color_editor.h.


Constructor & Destructor Documentation

rviz::ColorEditor::ColorEditor ( QWidget *  parent = 0)

Definition at line 40 of file color_editor.cpp.


Member Function Documentation

Definition at line 117 of file color_editor.cpp.

Definition at line 75 of file color_editor.cpp.

void rviz::ColorEditor::onButtonClick ( ) [protected, virtual]

Override this to do something when the button is clicked.

Reimplemented from rviz::LineEditWithButton.

Definition at line 126 of file color_editor.cpp.

void rviz::ColorEditor::paintColorBox ( QPainter *  painter,
const QRect &  rect,
const QColor &  color 
) [static]

Static function to paint just the color box. Paints it in the left end of rect, size rect.height() by rect.height().

Definition at line 54 of file color_editor.cpp.

void rviz::ColorEditor::paintEvent ( QPaintEvent *  event) [protected, virtual]

Call parent version then paint color swatch.

Definition at line 47 of file color_editor.cpp.

Definition at line 80 of file color_editor.cpp.

void rviz::ColorEditor::resizeEvent ( QResizeEvent *  event) [protected, virtual]

Reimplemented from rviz::LineEditWithButton.

Definition at line 65 of file color_editor.cpp.

void rviz::ColorEditor::setColor ( const QColor &  color) [slot]

Definition at line 110 of file color_editor.cpp.


Member Data Documentation

QColor rviz::ColorEditor::color_ [private]

Definition at line 63 of file color_editor.h.

Definition at line 64 of file color_editor.h.


The documentation for this class was generated from the following files:


rviz
Author(s): Dave Hershberger, Josh Faust
autogenerated on Mon Jan 6 2014 11:54:33