Basic Image AlgorithmS Library
2.8.0
|
exemplary output attachment to create 2D+Depth output for Wow Displays More...
#include <GLviewer/OutputAttachments/OutputWowDisplay.hh>
Public Types | |
enum | GLProjectionOutputAttachmentType { WoWVX = 0, Haze, WoWVX2, Underwater, LensDistortion } |
Public Member Functions | |
void | AddDebugLevel (const long int lv) |
void | AddDebugLevel (const std::string &name) |
bool | DebugLevelIsSet (const long int lv) const |
bool | DebugLevelIsSet (const std::string &name) const |
int | Draw () |
rendering second pass (for example to "screen" More... | |
int | GetDebugLevel () const |
std::ostream & | GetDebugStream () const |
void | GetDebugStream (std::ostream &os) const |
BIAS::glfFramebufferObject * | GetOutputFBO () |
used by GLProjection to find rendering target of first pass More... | |
int | InitShader (std::string vertexCode, std::string fragmentCode) |
can be called to create output attachment without having to derive new subclass will also create FBO and attached textures. More... | |
long int | Name2DebugLevel (const std::string &name) const |
looks up a debuglevel in the internal map, returns 0 if not found More... | |
long int | NewDebugLevel (const std::string &name) |
creates a new debuglevel More... | |
OutputWowDisplay (BIAS::glfRenderTarget *out, int factor=0x40, int offset=0x80) | |
void | PrintDebugLevel (std::ostream &os=std::cout) const |
void | RemoveDebugLevel (const long int lv) |
void | RemoveDebugLevel (const std::string &name) |
void | SetClearColor (const BIAS::Vector4< float > &cc) |
void | SetDebugLevel (const long int lv) |
void | SetDebugLevel (const std::string &name) |
void | SetDebugStream (const std::ostream &os) |
void | ShowDebugLevel (std::ostream &os=std::cout) const |
prints all internally known debuglevels More... | |
virtual | ~OutputWowDisplay () |
Static Public Member Functions | |
static long int | GetGlobalDebugLevel () |
static void | SetGlobalDebugLevel (long int lev) |
Protected Member Functions | |
long | ConsumeNextFreeDebuglevel_ () |
returns the next available debuglevel More... | |
int | Draw_ () |
standard draw from superclass does not suffice to set the header information for wow display, so we need to implement this here More... | |
int | InitShader_ () |
creates strings with shader code and calls InitShader(vertex, fragment) from superclass More... | |
int | StandardDraw_ () |
this function suffices for simple shaders that only need the standard uniforms to be set. More... | |
Protected Attributes | |
long int | _liDebugLevel |
long int | _liNextDebugLevel |
new concept, debuglevel are managed here in the debug class More... | |
std::map< std::string, long int > | _String2Debuglevel |
BIAS::Vector4< float > | ClearColor_ |
BIAS::glfShader | shaderF_ |
bool | ShaderInited_ |
BIAS::glfShaderProgram | shaderProg_ |
BIAS::glfShader | shaderV_ |
BIAS::glfTexture2D | specialDisplayDepth_ |
BIAS::glfFramebufferObject | specialDisplayRenderingFBO_ |
BIAS::glfTexture2D | specialDisplayTex_ |
BIAS::glfRenderTarget * | target_ |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
exemplary output attachment to create 2D+Depth output for Wow Displays
Definition at line 23 of file OutputWowDisplay.hh.
Enumerator | |
---|---|
WoWVX | |
Haze | |
WoWVX2 | |
Underwater | |
LensDistortion |
Definition at line 35 of file GLProjectionOutputAttachment.hh.
OutputWowDisplay::OutputWowDisplay | ( | BIAS::glfRenderTarget * | out, |
int | factor = 0x40 , |
||
int | offset = 0x80 |
||
) |
Definition at line 6 of file OutputWowDisplay.cpp.
References InitShader_().
|
virtual |
Definition at line 12 of file OutputWowDisplay.cpp.
|
inlineinherited |
Definition at line 355 of file Debug.hh.
Referenced by BIAS::GLProjectionParametersBase::AddDebugLevel(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::FilterBase< InputStorageType, OutputStorageType >::FilterBase(), BIAS::ShowCamWxVideoSourceFactory::OpenDevice(), and BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph().
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineinherited |
Definition at line 341 of file Debug.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::UnscentedTransform::ComputeSigmaPoints_(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::GenSynthMatches::GetGTNormalizedF(), BIAS::MonteCarloTransform::GetSamples_(), and BIAS::MonteCarloTransform::Transform().
|
inlineinherited |
|
inherited |
rendering second pass (for example to "screen"
Definition at line 17 of file GLProjectionOutputAttachment.cpp.
|
protectedvirtual |
standard draw from superclass does not suffice to set the header information for wow display, so we need to implement this here
Reimplemented from BIAS::GLProjectionOutputAttachment.
Definition at line 90 of file OutputWowDisplay.cpp.
References BIAS::glfShaderProgram::SetUniform(), BIAS::GLProjectionOutputAttachment::shaderProg_, and BIAS::GLProjectionOutputAttachment::StandardDraw_().
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlineinherited |
used by GLProjection to find rendering target of first pass
Definition at line 48 of file GLProjectionOutputAttachment.hh.
|
inherited |
can be called to create output attachment without having to derive new subclass will also create FBO and attached textures.
gl viewport information has to be already set up here.
Definition at line 25 of file GLProjectionOutputAttachment.cpp.
References BIAS::Vector4< T >::GetData(), and BIAS::Vector4< T >::Set().
Referenced by BIAS::OutputHaze::InitShader_(), BIAS::OutputWowDisplay2::InitShader_(), InitShader_(), BIAS::OutputLensDistortion::InitShader_(), and BIAS::OutputUnderwater::InitShader_().
|
protectedvirtual |
creates strings with shader code and calls InitShader(vertex, fragment) from superclass
Reimplemented from BIAS::GLProjectionOutputAttachment.
Definition at line 17 of file OutputWowDisplay.cpp.
References BIAS::GLProjectionOutputAttachment::InitShader().
Referenced by OutputWowDisplay().
|
inlineinherited |
|
inlineinherited |
creates a new debuglevel
Definition at line 474 of file Debug.hh.
Referenced by BIAS::COSAC< SolutionType >::COSAC(), BIAS::ProjectionParametersPerspectiveDepth::Init(), BIAS::MonteCarloTransform::MonteCarloTransform(), BIAS::PMatrixEstimation::PMatrixEstimation(), BIAS::PreemptiveRANSAC< SolutionType >::PreemptiveRANSAC(), BIAS::RANSACPreKnowledge< SolutionType >::RANSACPreKnowledge(), BIAS::ROI::ROI(), BIAS::RotationAveraging::RotationAveraging(), BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph(), BIAS::ThreeDOutOpenSceneGraph::ThreeDOutOpenSceneGraph(), BIAS::Triangulation::Triangulation(), and BIAS::UnscentedTransform::UnscentedTransform().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 70 of file GLProjectionOutputAttachment.cpp.
|
inlineinherited |
Definition at line 318 of file Debug.hh.
Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateBumbleBee(), BIAS::ShowCamWxVideoSourceFactory::CreateDCAM(), BIAS::VideoSource_MDcam::ScanBus(), BIAS::GLProjectionParametersBase::SetDebugLevel(), BIAS::VideoSource_Disk::VideoSource_Disk(), BIAS::VideoSource_DV2::VideoSource_DV2(), BIAS::VideoSource_DV::VideoSource_DV_Internal_Init_(), and BIAS::VideoSource_V4L::VideoSource_V4L().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlineinherited |
|
protectedinherited |
this function suffices for simple shaders that only need the standard uniforms to be set.
these are one texture attachment, one depth attachment (the first pass render result), and their width and height
Definition at line 75 of file GLProjectionOutputAttachment.cpp.
References BIAS::Vector4< T >::GetData().
Referenced by BIAS::OutputWowDisplay2::Draw_(), Draw_(), and BIAS::OutputUnderwater::Draw_().
|
protectedinherited |
Definition at line 510 of file Debug.hh.
Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().
|
protectedinherited |
new concept, debuglevel are managed here in the debug class
Definition at line 516 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protectedinherited |
Definition at line 517 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |
Definition at line 511 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protectedinherited |
Definition at line 75 of file GLProjectionOutputAttachment.hh.
Referenced by BIAS::OutputLensDistortion::Draw_().
|
staticprotectedinherited |
|
protectedinherited |
Definition at line 72 of file GLProjectionOutputAttachment.hh.
|
protectedinherited |
Definition at line 77 of file GLProjectionOutputAttachment.hh.
|
protectedinherited |
Definition at line 74 of file GLProjectionOutputAttachment.hh.
Referenced by BIAS::OutputWowDisplay2::Draw_(), Draw_(), BIAS::OutputLensDistortion::Draw_(), and BIAS::OutputUnderwater::Draw_().
|
protectedinherited |
Definition at line 73 of file GLProjectionOutputAttachment.hh.
|
protectedinherited |
Definition at line 71 of file GLProjectionOutputAttachment.hh.
Referenced by BIAS::OutputLensDistortion::Draw_().
|
protectedinherited |
Definition at line 70 of file GLProjectionOutputAttachment.hh.
|
protectedinherited |
Definition at line 71 of file GLProjectionOutputAttachment.hh.
Referenced by BIAS::OutputLensDistortion::Draw_().
|
protectedinherited |
Definition at line 69 of file GLProjectionOutputAttachment.hh.
Referenced by BIAS::OutputLensDistortion::Draw_().