Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions
omni::proj::AngleSetup Class Reference

Basic projector setup with three euler angles and no positioning offsets. More...

#include <AngleSetup.h>

Inheritance diagram for omni::proj::AngleSetup:
Inheritance graph
[legend]
Collaboration diagram for omni::proj::AngleSetup:
Collaboration graph
[legend]

Public Member Functions

 AngleSetup ()
 
 ~AngleSetup ()
 
virtual void setup (Projector &)
 Setup projector with scene size. More...
 
virtual void toPropertyMap (PropertyMap &) const
 
virtual void fromPropertyMap (PropertyMap const &)
 
bool flipped () const
 
- Public Member Functions inherited from omni::proj::Setup
virtual bool isMultiSetup () const
 
virtual void setup (Projector &_proj, qreal _scale)
 
virtual void scale (qreal _factor)=0
 Scale projector setup by factor, e.g. to adapt defaults to scene size. 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...
 

Detailed Description

Basic projector setup with three euler angles and no positioning offsets.

Constructor & Destructor Documentation

omni::proj::AngleSetup::AngleSetup ( )
30  {
31  setPitch(30.0);
32  }
omni::proj::AngleSetup::~AngleSetup ( )
35  {
36  }

Member Function Documentation

bool omni::proj::AngleSetup::flipped ( ) const
virtual

Implements omni::proj::Setup.

53  {
54  return std::abs(roll().degrees()) > 90.0;
55  }
void omni::proj::AngleSetup::fromPropertyMap ( PropertyMap const &  _map)
virtual

Reimplemented in omni::proj::FreeSetup, and omni::proj::PeripheralSetup.

44  {
45  _map.get("angles",static_cast<EulerAngles&>(*this));
46  }
void omni::proj::AngleSetup::setup ( Projector )
virtual

Setup projector with scene size.

Implements omni::proj::Setup.

Reimplemented in omni::proj::PeripheralSetup, and omni::proj::FreeSetup.

49  {
50  _proj.setMatrix(EulerAngles::matrix());
51  }
void omni::proj::AngleSetup::toPropertyMap ( PropertyMap &  _map) const
virtual

Reimplemented in omni::proj::FreeSetup, and omni::proj::PeripheralSetup.

39  {
40  _map("angles",static_cast<EulerAngles const&>(*this));
41  }

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