Basic Image AlgorithmS Library
2.8.0
|
Utility class for distortion rendering used by GLProjection. More...
#include <GLviewer/DistortionRendering.hh>
Public Member Functions | |
void | AddDebugLevel (const long int lv) |
void | AddDebugLevel (const std::string &name) |
int | BeginRendering (BIAS::ProjectionParametersPerspective *projParams, bool useStencil=false) |
void | Bind () |
bool | DebugLevelIsSet (const long int lv) const |
bool | DebugLevelIsSet (const std::string &name) const |
DistortionRendering () | |
int | DrawScenes (std::vector< SceneBase * > &scenes, bool &FirstRenderingPassFinished, bool &informScenesOfChange, BIAS::ProjectionParametersPerspective *projParams, BIAS::glfRenderTarget *renderTarget, bool useStencil=false) |
int | EndRendering (BIAS::glfRenderTarget *renderTarget) |
int | GetDebugLevel () const |
std::ostream & | GetDebugStream () const |
void | GetDebugStream (std::ostream &os) const |
int | Init (BIAS::ProjectionParametersPerspective *projParams) |
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 | Reset () |
void | SetClearColor (double r, double g, double b) |
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... | |
~DistortionRendering () | |
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... | |
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 |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
Utility class for distortion rendering used by GLProjection.
Definition at line 40 of file DistortionRendering.hh.
DistortionRendering::DistortionRendering | ( | ) |
Definition at line 27 of file DistortionRendering.cpp.
References BIAS::Vector4< T >::Set().
DistortionRendering::~DistortionRendering | ( | ) |
Definition at line 39 of file DistortionRendering.cpp.
References Reset().
|
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 |
int DistortionRendering::BeginRendering | ( | BIAS::ProjectionParametersPerspective * | projParams, |
bool | useStencil = false |
||
) |
Definition at line 323 of file DistortionRendering.cpp.
References BIAS::glfViewport::Bind(), BIAS::glfFramebufferObject::Bind(), BIAS::glfFramebufferObject::CheckComplete(), BIAS::glfRenderTarget::ClearColorBuffer(), BIAS::glfRenderTarget::ClearDepthBuffer(), BIAS::glfRenderTarget::ClearStencilBuffer(), BIAS::Vector4< T >::GetData(), BIAS::glfException::GetMessageString(), and Init().
Referenced by DrawScenes().
void DistortionRendering::Bind | ( | ) |
Definition at line 455 of file DistortionRendering.cpp.
References BIAS::glfViewport::Bind(), and BIAS::glfFramebufferObject::Bind().
|
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 DistortionRendering::DrawScenes | ( | std::vector< SceneBase * > & | scenes, |
bool & | FirstRenderingPassFinished, | ||
bool & | informScenesOfChange, | ||
BIAS::ProjectionParametersPerspective * | projParams, | ||
BIAS::glfRenderTarget * | renderTarget, | ||
bool | useStencil = false |
||
) |
Definition at line 521 of file DistortionRendering.cpp.
References BeginRendering(), and EndRendering().
int DistortionRendering::EndRendering | ( | BIAS::glfRenderTarget * | renderTarget | ) |
Definition at line 462 of file DistortionRendering.cpp.
References BIAS::glfRenderTarget::Bind(), BIAS::glfBatch::Draw(), BIAS::glfTexture::GenerateMipMap(), BIAS::glfViewport::SetOrigin(), and BIAS::glfViewport::SetSize().
Referenced by DrawScenes().
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
int DistortionRendering::Init | ( | BIAS::ProjectionParametersPerspective * | projParams | ) |
Definition at line 119 of file DistortionRendering.cpp.
References BIAS::glfTexture2D::Allocate(), BIAS::glfShaderProgram::AttachShader(), BIAS::glfFramebufferObject::AttachTexture(), BIAS::glfFramebufferObject::CheckComplete(), BIAS::glfRenderTarget::ClearColorBuffer(), BIAS::glfRenderTarget::ClearDepthBuffer(), BIAS::glfShaderProgram::Create(), BIAS::glfTexture::Create(), BIAS::glfFramebufferObject::Create(), BIAS::glfShader::Create(), BIAS::glfTexture::GenerateMipMap(), BIAS::ProjectionParametersPerspective::GetIdealImageSize(), BIAS::ProjectionParametersPerspective::GetIdealK(), BIAS::Image< StorageType >::GetImageData(), BIAS::ProjectionParametersBase::GetImageSize(), BIAS::ProjectionParametersPerspective::GetK(), BIAS::glfException::GetMessageString(), BIAS::HomgPoint2D::Homogenize(), BIAS::KMatrix::Invert(), BIAS::glfShaderProgram::Link(), BIAS::glfBatch::SetDepthBufferMode(), BIAS::glfDepthBufferMode::SetDepthFunc(), BIAS::glfDepthBufferMode::SetDepthTest(), BIAS::glfTexture::SetMagFilter(), BIAS::glfTexture::SetMinFilter(), BIAS::glfViewport::SetOrigin(), BIAS::glfBatch::SetRenderTarget(), BIAS::glfBatch::SetShaderProgram(), BIAS::glfViewport::SetSize(), BIAS::glfBatch::SetTexture(), BIAS::glfShaderProgram::SetUniform(), BIAS::glfBatch::SetViewport(), BIAS::glfTexture::SetWrapS(), BIAS::glfTexture::SetWrapT(), BIAS::ProjectionParametersPerspective::Undistort(), and BIAS::glfTexture2D::UploadImage().
Referenced by BeginRendering().
|
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 DistortionRendering::Reset | ( | ) |
Definition at line 317 of file DistortionRendering.cpp.
Referenced by ~DistortionRendering().
|
inline |
Definition at line 52 of file DistortionRendering.hh.
|
inline |
Definition at line 56 of file DistortionRendering.hh.
|
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 |
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=().
|
staticprotectedinherited |