20 #ifndef OMNI_VISUAL_TUNING_H_
21 #define OMNI_VISUAL_TUNING_H_
24 #include <QOpenGLShaderProgram>
25 #include <QOpenGLFramebufferObject>
26 #include <QOpenGLTexture>
73 float _inputOpacity = 0.0,
74 QColor
const& _color = Qt::white,
75 float _blendMaskOpacity = 1.0,
76 bool _grayscale =
true)
const;
void setBlendTextureUpdateRect(QRect const &)
Set portion of blend mask which is to be updated.
Definition: Tuning.cpp:130
QRect blendTextureUpdateRect_
Definition: Tuning.h:112
void drawWarpPatch() const
Draw warp grip without lines and handles.
Definition: Tuning.cpp:72
void updateWarpBuffer(visual::Session const *_vizSession)
Update warp buffer which contains image of projector perspective.
Definition: Tuning.cpp:351
void drawCursor(QPointF const &_pos)
Draw cursor for blend brush.
Definition: Tuning.cpp:216
void drawCalibratedInput(bool _flipped=false)
Definition: Tuning.cpp:411
static ContextBoundPtr< QOpenGLShaderProgram > calibrationShader_
Definition: Tuning.h:114
Channel
Definition: Channel.h:24
bool initialized() const
Definition: Tuning.cpp:235
A projector tuning holds adjustment and distorsion data for a single projector and screen A tuning c...
Definition: Tuning.h:52
void update()
Update shaders, warp grid and blend texture.
Definition: Tuning.cpp:77
void drawTestCard(int _id, bool _grayscale=false)
Draw Test card image for screen setup.
Definition: Tuning.cpp:50
void generateCalibrationData()
Definition: Tuning.cpp:391
~Tuning()
Definition: Tuning.cpp:43
omni::proj::Tuning & tuning_
Definition: Tuning.h:99
static ContextBoundPtr< QOpenGLShaderProgram > blendBrushCursorShader_
Definition: Tuning.h:118
omni::proj::Tuning const & tuning() const
Definition: Tuning.cpp:45
ContextBoundPtr< QOpenGLFramebufferObject > warpGridBuffer_
Frame buffer which holds a texture with current view image.
Definition: Tuning.h:108
Calibration generated from a tuning Calibration has output mode with either UVW or TEXCOORDS...
Definition: Calibration.h:39
proj::Calibration calibration_
Definition: Tuning.h:105
QVector4D channelCorrectionAsVec(Channel) const
Return QVector4D of channel correction parameters.
Definition: Tuning.cpp:397
void updateBlendTexture()
Updates blend texture after it has changed by blend brush.
Definition: Tuning.cpp:142
QRectF tuningRect() const
Calculates rectangle of this tuning.
Definition: Tuning.cpp:461
ContextBoundPtr< QOpenGLFramebufferObject > testCardFrameBuffer_
Definition: Tuning.h:110
Base class for drawing a session.
Definition: Session.h:33
void drawOutput(float _inputOpacity=0.0, QColor const &_color=Qt::white, float _blendMaskOpacity=1.0, bool _grayscale=true) const
Draws Blendmask with warp grid and brush stroke layer.
Definition: Tuning.cpp:240
ContextBoundPtr< QOpenGLTexture > blendTex_
Definition: Tuning.h:102
static ContextBoundPtr< QOpenGLShaderProgram > blendBrushShader_
Definition: Tuning.h:117
static ContextBoundPtr< QOpenGLShaderProgram > testCardShader_
Definition: Tuning.h:115
ContextBoundPtr< visual::WarpGrid > warpGrid_
Definition: Tuning.h:101
void drawWarpGrid() const
Draws warp grid with lines and handles.
Definition: Tuning.cpp:65
ContextBoundPtr< Framebuffer32F > calibrationFramebuffer_
Definition: Tuning.h:103
Tuning(omni::proj::Tuning &)
Definition: Tuning.cpp:39
void updateWarpGrid()
Update warp grid mesh.
Definition: Tuning.cpp:342
Tuning visualizer.
Definition: Tuning.h:40
static ContextBoundPtr< QOpenGLShaderProgram > blendShader_
Definition: Tuning.h:116
A pointer template which is free'd together with its context Holds an internal object which is respo...
Definition: ContextBoundPtr.h:32