rock_widget_collection  0.1
Public Slots | Public Member Functions | Protected Attributes | List of all members
OrientationView Class Reference

#include <orientation.h>

Inherits MultiWidget.

Public Slots

OrientationViewnewInstance ()
 
void setHeading (double value)
 
void setPitch (double value)
 
void setRoll (double value)
 
void setHeadingAngle (double value)
 
void setPitchAngle (double value)
 
void setRollAngle (double value)
 
void update ()
 
- Public Slots inherited from MultiWidget
void setActive (bool b)
 
QString getMinimizedLabel ()
 
void setMinimizedLabel (QString label)
 
void childEvent (QChildEvent *event)
 
bool event (QEvent *event)
 
bool isHiddenWhenMinimized () const
 
void hideWhenMin (bool b)
 
- Public Slots inherited from PaintWidget
QObject * addItem (QObject *object)
 
QObject * addPoints (const QList< int > &points_x, const QList< int > &points_y, int groupNr, const QColor &color)
 
QObject * addText (int xPos, int yPos, int groupNr, const QString &text)
 
QObject * addLine (int xPos, int yPos, int groupNr, const QColor &color, int endX, int endY)
 
QObject * addEllipse (int xPos, int yPos, int groupNr, const QColor &color, int width, int height)
 
QObject * addRectangle (int xPos, int yPos, int groupNr, const QColor &color, int width, int height)
 
QObject * addPolyline (int groupNr, const QColor &color, const QList< QPoint > &points)
 
QObject * addPolygon (int groupNr, const QColor &color, const QList< QPoint > &points)
 
QObject * removeItem (QObject *drawItem, bool delete_object)
 
void removeAllItems (bool delete_objects)
 

Public Member Functions

 OrientationView (QWidget *parent=NULL)
 
- Public Member Functions inherited from MultiWidget
 MultiWidget (QWidget *parent=0)
 
- Public Member Functions inherited from PaintWidget
 PaintWidget (QWidget *parent)
 
 ~PaintWidget ()
 

Protected Attributes

QHBoxLayout * layout
 
Compasscompass
 
ArtificialHorizonhorizon
 
- Protected Attributes inherited from MultiWidget
bool isActive
 
bool wasHidden
 
- Protected Attributes inherited from PaintWidget
QList< DrawItem * > items
 
QList< int > disabledGroups
 
bool isOpenGL
 

Additional Inherited Members

- Signals inherited from MultiWidget
void activityChanged (bool)
 
- Protected Member Functions inherited from PaintWidget
void drawDrawItemsToImage (QImage &image, bool all=false)
 
void drawDrawItemsToPainter (QPainter &painter, bool all=false)
 
void paintEvent (QPaintEvent *event)
 
- Properties inherited from MultiWidget
bool hideWhenMinimized
 
QString minimizedLabel
 

Detailed Description

Definition at line 11 of file orientation.h.

Constructor & Destructor Documentation

OrientationView::OrientationView ( QWidget *  parent = NULL)

Definition at line 8 of file orientation.cc.

8  : MultiWidget(parent)
9 {
10  layout = new QHBoxLayout;
11  setLayout(layout);
12  compass = new Compass();
13  horizon = new ArtificialHorizon();
14  layout->addWidget(compass);
15  layout->addWidget(horizon);
16  setMinimumWidth(400);
17  setMinimumHeight(100);
18 }
Compass * compass
Definition: orientation.h:32
QHBoxLayout * layout
Definition: orientation.h:29
ArtificialHorizon * horizon
Definition: orientation.h:33
MultiWidget(QWidget *parent=0)
Definition: MultiWidget.h:18

Member Function Documentation

OrientationView * OrientationView::newInstance ( )
slot

Definition at line 20 of file orientation.cc.

21 {
22  return new OrientationView();
23 }
OrientationView(QWidget *parent=NULL)
Definition: orientation.cc:8
void OrientationView::setHeading ( double  value)
slot

Definition at line 25 of file orientation.cc.

26 {
27  compass->setHeading(v);
28 }
Compass * compass
Definition: orientation.h:32
void setHeading(double value)
Definition: compass.cc:38
void OrientationView::setHeadingAngle ( double  value)
inlineslot

Definition at line 26 of file orientation.h.

26 {setHeading(value);}
void setHeading(double value)
Definition: orientation.cc:25
void OrientationView::setPitch ( double  value)
slot

Definition at line 30 of file orientation.cc.

31 {
33 }
void setPitchAngle(double myval)
ArtificialHorizon * horizon
Definition: orientation.h:33
void OrientationView::setPitchAngle ( double  value)
inlineslot

Definition at line 27 of file orientation.h.

27 {setPitch(value);}
void setPitch(double value)
Definition: orientation.cc:30
void OrientationView::setRoll ( double  value)
slot

Definition at line 35 of file orientation.cc.

36 {
38 }
void setRollAngle(double myvalue)
ArtificialHorizon * horizon
Definition: orientation.h:33
void OrientationView::setRollAngle ( double  value)
inlineslot

Definition at line 28 of file orientation.h.

28 {setRoll(value);}
void setRoll(double value)
Definition: orientation.cc:35
void OrientationView::update ( )
inlineslot

Definition at line 29 of file orientation.h.

29 {}; //Nothig needs to be done but needs to be implemnted for ruby bindings

Member Data Documentation

Compass* OrientationView::compass
protected

Definition at line 32 of file orientation.h.

ArtificialHorizon* OrientationView::horizon
protected

Definition at line 33 of file orientation.h.

QHBoxLayout* OrientationView::layout
protected

Definition at line 29 of file orientation.h.


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