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

#include <Interface.h>

Inheritance diagram for omni::patch::Interface:
Inheritance graph
[legend]
Collaboration diagram for omni::patch::Interface:
Collaboration graph
[legend]

Public Member Functions

virtual ~Interface ()
 
std::vector< PatchHandle const * > getHandles (QPointF const &_p) const
 Get handles under cursor (const version). Position is normalized [0,0] - [1,1]. More...
 
virtual std::vector
< PatchHandle * > 
getHandles (QPointF const &)=0
 Get handles under cursor. Position is normalized [0,0] - [1,1]. More...
 
virtual QWidget * widget ()
 Return pointer to widget. More...
 
virtual input::Interfaceinput () const =0
 
virtual void assignInput (input::Interface *)=0
 
virtual void removeInput ()=0
 
virtual bool canHaveInput () const
 
- Public Member Functions inherited from omni::visual::Interface
virtual void draw () const =0
 Abstract method for visualing. More...
 
virtual void update ()
 Update geometry. More...
 
- Public Member Functions inherited from omni::serialization::Interface
virtual void toStream (QDataStream &) const =0
 Serialize to stream. More...
 
virtual void fromStream (QDataStream &)=0
 Deserialize from stream. More...
 
virtual bool equal (Interface const *_that) const
 Optional virtual member method for testing equality of two. More...
 
- Public Member Functions inherited from omni::TypeIdInterface
virtual ~TypeIdInterface ()
 
virtual Id getTypeId () const =0
 Returns type id of object. More...
 
virtual void registerInFactory () const =0
 Register the inherited class in factory. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from omni::visual::Interface
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...
 

Constructor & Destructor Documentation

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

Reimplemented from omni::serialization::Interface.

37 {}

Member Function Documentation

virtual void omni::patch::Interface::assignInput ( input::Interface )
pure virtual
virtual bool omni::patch::Interface::canHaveInput ( ) const
inlinevirtual
64 { return false; }
std::vector<PatchHandle const*> omni::patch::Interface::getHandles ( QPointF const &  _p) const
inline

Get handles under cursor (const version). Position is normalized [0,0] - [1,1].

42  {
43  std::vector<PatchHandle*> _handles = const_cast<Interface*>(this)->getHandles(_p);
44  std::vector<PatchHandle const*> _result;
45  for (auto& _handle : _handles) {
46  _result.push_back(_handle);
47  }
48  return _result;
49  }
std::vector< PatchHandle const * > getHandles(QPointF const &_p) const
Get handles under cursor (const version). Position is normalized [0,0] - [1,1].
Definition: Interface.h:42
virtual std::vector<PatchHandle*> omni::patch::Interface::getHandles ( QPointF const &  )
pure virtual

Get handles under cursor. Position is normalized [0,0] - [1,1].

virtual input::Interface* omni::patch::Interface::input ( ) const
pure virtual
virtual void omni::patch::Interface::removeInput ( )
pure virtual
virtual QWidget* omni::patch::Interface::widget ( )
inlinevirtual

Return pointer to widget.

57 { return nullptr; }

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