20 #ifndef OMNI_PROJ_TUNING_H_
21 #define OMNI_PROJ_TUNING_H_
66 QScreen
const *
screen()
const;
185 std::unique_ptr<visualizer_type>
viz_;
A projector with a transformation matrix and setup.
Definition: Projector.h:32
void fromStream(QDataStream &)
Read tuning from stream.
Definition: Tuning.cpp:246
float overlapOpacity() const
Return opacity of overlapped blend mask.
Definition: Tuning.cpp:217
int subScreenIndex_
SubScreen index of this tuning.
Definition: Tuning.h:180
A session consists of a canvas, a mapping, a list of tunings and one or several inputs.
Definition: Session.h:41
visualizer_type * visualizer()
Return pointer to visualizer.
Definition: Tuning.cpp:135
WarpGrid warpGrid_
Definition: Tuning.h:182
void assignVirtualScreen()
Assign virtual screen to tuning.
Definition: Tuning.cpp:44
Session const & session_
Definition: Tuning.h:187
QRect screenGeometry() const
Rectangle of the output screen on desktop.
Definition: Tuning.cpp:162
void setOverlapOpacity(float)
Set opacity of overlap mask in blend mode.
Definition: Tuning.cpp:222
void setOutputDisabled(bool _disabled=true)
Disable output if _disabled is true, enable otherwise.
Definition: Tuning.cpp:208
PatchList patches_
Definition: Tuning.h:186
CalibrationMode
Defines which type of data is in a calibration.
Definition: CalibrationMode.h:28
A projector tuning holds adjustment and distorsion data for a single projector and screen A tuning c...
Definition: Tuning.h:52
visualizer_type * makeVisualizer()
Make visualizer if it is not instantiated yet.
Definition: Tuning.cpp:139
void setOutputEnabled(bool _enabled=true)
Enable output if _enabled is true, disable otherwise.
Definition: Tuning.cpp:213
void setColor(QColor const &)
Sets color for mapping.
Definition: Tuning.cpp:129
int id() const
Return id of tuning.
Definition: Tuning.cpp:286
Projector & projector()
Definition: Tuning.cpp:76
WarpGrid & warpGrid()
Returns reference to warp grid.
Definition: Tuning.cpp:86
Projector projector_
Definition: Tuning.h:172
void renderCalibration(Calibration &_calib) const
Render calibration.
Definition: Tuning.cpp:176
Calibration generated from a tuning Calibration has output mode with either UVW or TEXCOORDS...
Definition: Calibration.h:39
A warp grid is a 2D bezier grid with MxN points Default size 6x6 points. Selected points are also st...
Definition: WarpGrid.h:32
QColor color() const
Returns color for mapping.
Definition: Tuning.cpp:124
BlendMask & blendMask()
Returns reference to blend mask.
Definition: Tuning.cpp:96
bool overlapOpacity_
Definition: Tuning.h:170
#define OMNI_DECL_STREAM_OPERATORS(CLASS)
Definition: Interface.h:53
Color correction for RGB color space.
Definition: ColorCorrection.h:29
Tuning(Session const &)
Constructor.
Definition: Tuning.cpp:37
int subScreenIndex() const
Definition: Tuning.cpp:61
BlendMask blendMask_
Definition: Tuning.h:183
void setScreen(QScreen const *_screen, int _subScreenIndex)
Set screen for this tuning.
Definition: Tuning.cpp:48
std::unique_ptr< visualizer_type > viz_
Definition: Tuning.h:185
PatchList & patches()
Return list of patches.
Definition: Tuning.cpp:107
ColorCorrection colorCorrection_
Definition: Tuning.h:184
bool outputEnabled() const
Return flag if output is enabled.
Definition: Tuning.cpp:203
QScreen const * screen_
Screen this tuning is assigned to. If screen is nullptr, tuning is assigned to virtual screen...
Definition: Tuning.h:177
int height() const
Returns height of screen.
Definition: Tuning.cpp:192
A blend mask consists of an edge mask and stroke mask with a brush Edge mask and stroke mask are sto...
Definition: BlendMask.h:35
Session const & session() const
Return const reference to owning session.
Definition: Tuning.cpp:282
int width() const
Returns width of screen.
Definition: Tuning.cpp:187
void toStream(QDataStream &) const
Write tuning to stream.
Definition: Tuning.cpp:227
QScreen const * screen() const
Definition: Tuning.cpp:56
QRect contentGeometry() const
Content rectangle (position) inside the screen.
Definition: Tuning.cpp:167
ColorCorrection & colorCorrection()
Color correction for projector.
Definition: Tuning.cpp:116
friend bool operator==(Tuning const &, Tuning const &)
Test for equality.
Definition: Tuning.cpp:269
bool hasScreen() const
Return if a screen is associated with mapping.
Definition: Tuning.cpp:156
omni::visual::Tuning visualizer_type
Definition: Tuning.h:54
QColor color_
Definition: Tuning.h:171
bool outputDisabled_
Definition: Tuning.h:169
bool outputDisabled() const
Return flag if output is disabled, projector output is black.
Definition: Tuning.cpp:198
Tuning visualizer.
Definition: Tuning.h:40