Omnidome
Fulldome Mapping Software Toolkit
|
A projector tuning holds adjustment and distorsion data for a single projector and screen A tuning consists of a projector, warp grid, blend mask and color correction. It holds a color as well. It can render a projector calibration. More...
#include <Tuning.h>
Public Types | |
typedef omni::visual::Tuning | visualizer_type |
Public Member Functions | |
Tuning (Session const &) | |
Constructor. More... | |
void | assignVirtualScreen () |
Assign virtual screen to tuning. More... | |
void | setScreen (QScreen const *_screen, int _subScreenIndex) |
Set screen for this tuning. More... | |
QScreen const * | screen () const |
int | subScreenIndex () const |
Projector & | projector () |
Projector const & | projector () const |
WarpGrid & | warpGrid () |
Returns reference to warp grid. More... | |
WarpGrid const & | warpGrid () const |
Returns reference to warp grid (const version) More... | |
BlendMask & | blendMask () |
Returns reference to blend mask. More... | |
BlendMask const & | blendMask () const |
Returns reference to blend mask (const version) More... | |
PatchList & | patches () |
Return list of patches. More... | |
PatchList const & | patches () const |
Return list of patches (const version) More... | |
ColorCorrection & | colorCorrection () |
Color correction for projector. More... | |
ColorCorrection const & | colorCorrection () const |
Color correction for projector (const) More... | |
QColor | color () const |
Returns color for mapping. More... | |
void | setColor (QColor const &) |
Sets color for mapping. More... | |
visualizer_type * | visualizer () |
Return pointer to visualizer. More... | |
visualizer_type const * | visualizer () const |
Return pointer to visualizer (const version) More... | |
visualizer_type * | makeVisualizer () |
Make visualizer if it is not instantiated yet. More... | |
bool | hasScreen () const |
Return if a screen is associated with mapping. More... | |
void | renderCalibration (Calibration &_calib) const |
Render calibration. More... | |
QRect | screenGeometry () const |
Rectangle of the output screen on desktop. More... | |
QRect | contentGeometry () const |
Content rectangle (position) inside the screen. More... | |
Calibration | renderCalibration (CalibrationMode=CalibrationMode::TEXCOORDS) const |
Render and return calibration. More... | |
int | width () const |
Returns width of screen. More... | |
int | height () const |
Returns height of screen. More... | |
bool | outputDisabled () const |
Return flag if output is disabled, projector output is black. More... | |
bool | outputEnabled () const |
Return flag if output is enabled. More... | |
void | setOutputDisabled (bool _disabled=true) |
Disable output if _disabled is true, enable otherwise. More... | |
void | setOutputEnabled (bool _enabled=true) |
Enable output if _enabled is true, disable otherwise. More... | |
float | overlapOpacity () const |
Return opacity of overlapped blend mask. More... | |
void | setOverlapOpacity (float) |
Set opacity of overlap mask in blend mode. More... | |
void | toStream (QDataStream &) const |
Write tuning to stream. More... | |
void | fromStream (QDataStream &) |
Read tuning from stream. More... | |
Session const & | session () const |
Return const reference to owning session. More... | |
int | id () const |
Return id of tuning. More... | |
Private Attributes | |
bool | outputDisabled_ = false |
bool | overlapOpacity_ = 0.0 |
QColor | color_ |
Projector | projector_ |
QScreen const * | screen_ = nullptr |
Screen this tuning is assigned to. If screen is nullptr, tuning is assigned to virtual screen. More... | |
int | subScreenIndex_ = 0 |
SubScreen index of this tuning. More... | |
WarpGrid | warpGrid_ |
BlendMask | blendMask_ |
ColorCorrection | colorCorrection_ |
std::unique_ptr< visualizer_type > | viz_ |
PatchList | patches_ |
Session const & | session_ |
Friends | |
bool | operator== (Tuning const &, Tuning const &) |
Test for equality. More... | |
A projector tuning holds adjustment and distorsion data for a single projector and screen A tuning consists of a projector, warp grid, blend mask and color correction. It holds a color as well. It can render a projector calibration.
omni::proj::Tuning::Tuning | ( | Session const & | _session | ) |
Constructor.
void omni::proj::Tuning::assignVirtualScreen | ( | ) |
Assign virtual screen to tuning.
BlendMask & omni::proj::Tuning::blendMask | ( | ) |
Returns reference to blend mask.
BlendMask const & omni::proj::Tuning::blendMask | ( | ) | const |
Returns reference to blend mask (const version)
QColor omni::proj::Tuning::color | ( | ) | const |
Returns color for mapping.
ColorCorrection & omni::proj::Tuning::colorCorrection | ( | ) |
Color correction for projector.
ColorCorrection const & omni::proj::Tuning::colorCorrection | ( | ) | const |
Color correction for projector (const)
QRect omni::proj::Tuning::contentGeometry | ( | ) | const |
Content rectangle (position) inside the screen.
void omni::proj::Tuning::fromStream | ( | QDataStream & | _is | ) |
Read tuning from stream.
Reset visualizer
bool omni::proj::Tuning::hasScreen | ( | ) | const |
Return if a screen is associated with mapping.
int omni::proj::Tuning::height | ( | ) | const |
Returns height of screen.
int omni::proj::Tuning::id | ( | ) | const |
Return id of tuning.
Tuning::visualizer_type * omni::proj::Tuning::makeVisualizer | ( | ) |
Make visualizer if it is not instantiated yet.
bool omni::proj::Tuning::outputDisabled | ( | ) | const |
Return flag if output is disabled, projector output is black.
bool omni::proj::Tuning::outputEnabled | ( | ) | const |
Return flag if output is enabled.
float omni::proj::Tuning::overlapOpacity | ( | ) | const |
Return opacity of overlapped blend mask.
PatchList & omni::proj::Tuning::patches | ( | ) |
Return list of patches.
PatchList const & omni::proj::Tuning::patches | ( | ) | const |
Return list of patches (const version)
Projector & omni::proj::Tuning::projector | ( | ) |
Projector const & omni::proj::Tuning::projector | ( | ) | const |
void omni::proj::Tuning::renderCalibration | ( | Calibration & | _calib | ) | const |
Render calibration.
Calibration omni::proj::Tuning::renderCalibration | ( | CalibrationMode | _outputMode = CalibrationMode::TEXCOORDS | ) | const |
QScreen const * omni::proj::Tuning::screen | ( | ) | const |
QRect omni::proj::Tuning::screenGeometry | ( | ) | const |
Rectangle of the output screen on desktop.
Session const & omni::proj::Tuning::session | ( | ) | const |
Return const reference to owning session.
void omni::proj::Tuning::setColor | ( | QColor const & | _color | ) |
Sets color for mapping.
void omni::proj::Tuning::setOutputDisabled | ( | bool | _disabled = true | ) |
Disable output if _disabled is true, enable otherwise.
void omni::proj::Tuning::setOutputEnabled | ( | bool | _enabled = true | ) |
Enable output if _enabled is true, disable otherwise.
void omni::proj::Tuning::setOverlapOpacity | ( | float | _overlapOpacity | ) |
Set opacity of overlap mask in blend mode.
void omni::proj::Tuning::setScreen | ( | QScreen const * | _screen, |
int | _subScreenIndex | ||
) |
Set screen for this tuning.
int omni::proj::Tuning::subScreenIndex | ( | ) | const |
void omni::proj::Tuning::toStream | ( | QDataStream & | _os | ) | const |
Write tuning to stream.
Tuning::visualizer_type * omni::proj::Tuning::visualizer | ( | ) |
Return pointer to visualizer.
Tuning::visualizer_type const * omni::proj::Tuning::visualizer | ( | ) | const |
Return pointer to visualizer (const version)
WarpGrid & omni::proj::Tuning::warpGrid | ( | ) |
Returns reference to warp grid.
WarpGrid const & omni::proj::Tuning::warpGrid | ( | ) | const |
Returns reference to warp grid (const version)
int omni::proj::Tuning::width | ( | ) | const |
Returns width of screen.
Test for equality.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Screen this tuning is assigned to. If screen is nullptr, tuning is assigned to virtual screen.
|
private |
|
private |
SubScreen index of this tuning.
|
private |
|
private |