Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Protected Member Functions
omni::visual::Interface Class Referenceabstract

Basic visual interface. More...

#include <Interface.h>

Inheritance diagram for omni::visual::Interface:
Inheritance graph
[legend]

Public Member Functions

virtual ~Interface ()
 
virtual void draw () const =0
 Abstract method for visualing. More...
 
virtual void update ()
 Update geometry. More...
 

Static Protected Member Functions

static void vertex3 (QVector3D const &)
 glVertex3f from QVector3D More...
 
static void visualLine (QVector3D const &_from, QVector3D const &_to)
 Draws a line. More...
 
static void color (QColor _color, float _alpha=1.0)
 glColor4f from QColor More...
 

Detailed Description

Basic visual interface.

Constructor & Destructor Documentation

virtual omni::visual::Interface::~Interface ( )
inlinevirtual

Member Function Documentation

void omni::visual::Interface::color ( QColor  _color,
float  _alpha = 1.0 
)
staticprotected

glColor4f from QColor

41  {
42  glColor4f(_color.red() / 255.0, _color.green() / 255.0,
43  _color.blue() / 255.0, _alpha);
44  }
virtual void omni::visual::Interface::draw ( ) const
pure virtual
virtual void omni::visual::Interface::update ( )
inlinevirtual
void omni::visual::Interface::vertex3 ( QVector3D const &  _v)
staticprotected

glVertex3f from QVector3D

28  {
29  glVertex3f(_v.x(), _v.y(), _v.z());
30  }
void omni::visual::Interface::visualLine ( QVector3D const &  _from,
QVector3D const &  _to 
)
staticprotected

Draws a line.

33  {
34  glBegin(GL_LINES);
35  vertex3(_from);
36  vertex3(_to);
37  glEnd();
38  }
static void vertex3(QVector3D const &)
glVertex3f from QVector3D
Definition: Interface.cpp:27

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