Basic Image AlgorithmS Library
2.8.0
|
Class for extra rendering pass in GLProjection (for now only used in glutGLviewer) More...
#include <GLviewer/OutputAttachments/GLProjectionOutputAttachment.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... | |
GLProjectionOutputAttachment (BIAS::glfRenderTarget *out) | |
constructor is given final render target (GLProjection defaults to "screen") 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... | |
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 | ~GLProjectionOutputAttachment () |
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... | |
virtual int | Draw_ () |
virtual int | InitShader_ () |
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 |
Class for extra rendering pass in GLProjection (for now only used in glutGLviewer)
GLProjection will first render into FBO of this attachment and afterwards the attached shader program is executed on the result. See OutputHaze, OutputWowDisplay for examples on how to derive specialized versions
Definition at line 31 of file GLProjectionOutputAttachment.hh.
Enumerator | |
---|---|
WoWVX | |
Haze | |
WoWVX2 | |
Underwater | |
LensDistortion |
Definition at line 35 of file GLProjectionOutputAttachment.hh.
GLProjectionOutputAttachment::GLProjectionOutputAttachment | ( | BIAS::glfRenderTarget * | out | ) |
constructor is given final render target (GLProjection defaults to "screen")
Definition at line 6 of file GLProjectionOutputAttachment.cpp.
|
virtual |
Definition at line 13 of file GLProjectionOutputAttachment.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 |
int GLProjectionOutputAttachment::Draw | ( | ) |
rendering second pass (for example to "screen"
Definition at line 17 of file GLProjectionOutputAttachment.cpp.
|
inlineprotectedvirtual |
Reimplemented in BIAS::OutputUnderwater, BIAS::OutputLensDistortion, BIAS::OutputWowDisplay, and BIAS::OutputWowDisplay2.
Definition at line 64 of file GLProjectionOutputAttachment.hh.
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inline |
used by GLProjection to find rendering target of first pass
Definition at line 48 of file GLProjectionOutputAttachment.hh.
int GLProjectionOutputAttachment::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.
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_(), BIAS::OutputWowDisplay::InitShader_(), BIAS::OutputLensDistortion::InitShader_(), and BIAS::OutputUnderwater::InitShader_().
|
inlineprotectedvirtual |
Reimplemented in BIAS::OutputUnderwater, BIAS::OutputLensDistortion, BIAS::OutputWowDisplay, BIAS::OutputHaze, and BIAS::OutputWowDisplay2.
Definition at line 63 of file GLProjectionOutputAttachment.hh.
|
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 |
void GLProjectionOutputAttachment::SetClearColor | ( | const BIAS::Vector4< float > & | cc | ) |
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 |
|
protected |
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_(), BIAS::OutputWowDisplay::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=().
|
protected |
Definition at line 75 of file GLProjectionOutputAttachment.hh.
Referenced by BIAS::OutputLensDistortion::Draw_().
|
staticprotectedinherited |
|
protected |
Definition at line 72 of file GLProjectionOutputAttachment.hh.
|
protected |
Definition at line 77 of file GLProjectionOutputAttachment.hh.
|
protected |
Definition at line 74 of file GLProjectionOutputAttachment.hh.
Referenced by BIAS::OutputWowDisplay2::Draw_(), BIAS::OutputWowDisplay::Draw_(), BIAS::OutputLensDistortion::Draw_(), and BIAS::OutputUnderwater::Draw_().
|
protected |
Definition at line 73 of file GLProjectionOutputAttachment.hh.
|
protected |
Definition at line 71 of file GLProjectionOutputAttachment.hh.
Referenced by BIAS::OutputLensDistortion::Draw_().
|
protected |
Definition at line 70 of file GLProjectionOutputAttachment.hh.
|
protected |
Definition at line 71 of file GLProjectionOutputAttachment.hh.
Referenced by BIAS::OutputLensDistortion::Draw_().
|
protected |
Definition at line 69 of file GLProjectionOutputAttachment.hh.
Referenced by BIAS::OutputLensDistortion::Draw_().