Basic Image AlgorithmS Library
2.8.0
|
exemplary output attachment, creating a underwater effect More...
#include <GLviewer/OutputAttachments/OutputUnderwater.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... | |
OutputUnderwater (BIAS::glfRenderTarget *out) | |
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... | |
void | UpdateParams (double zNear, double zFar, std::vector< int > &waterQuality) |
~OutputUnderwater () | |
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 get zNear and zFar, 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 |
float | alphaB_ |
float | alphaG_ |
float | alphaR_ |
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_ |
float | waterColorB_ |
float | waterColorG_ |
float | waterColorR_ |
float | waterQualityB_ |
float | waterQualityG_ |
float | waterQualityR_ |
float | zFar_ |
float | zNear_ |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
exemplary output attachment, creating a underwater effect
Definition at line 23 of file OutputUnderwater.hh.
Enumerator | |
---|---|
WoWVX | |
Haze | |
WoWVX2 | |
Underwater | |
LensDistortion |
Definition at line 35 of file GLProjectionOutputAttachment.hh.
OutputUnderwater::OutputUnderwater | ( | BIAS::glfRenderTarget * | out | ) |
Definition at line 6 of file OutputUnderwater.cpp.
References InitShader_().
OutputUnderwater::~OutputUnderwater | ( | ) |
Definition at line 12 of file OutputUnderwater.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 get zNear and zFar, so we need to implement this here
Reimplemented from BIAS::GLProjectionOutputAttachment.
Definition at line 81 of file OutputUnderwater.cpp.
References alphaB_, alphaG_, alphaR_, BIAS::glfShaderProgram::SetUniform(), BIAS::GLProjectionOutputAttachment::shaderProg_, BIAS::GLProjectionOutputAttachment::StandardDraw_(), waterColorB_, waterColorG_, waterColorR_, waterQualityB_, waterQualityG_, waterQualityR_, zFar_, and zNear_.
|
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_(), BIAS::OutputWowDisplay::InitShader_(), BIAS::OutputLensDistortion::InitShader_(), and InitShader_().
|
protectedvirtual |
creates strings with shader code and calls InitShader(vertex, fragment) from superclass
Reimplemented from BIAS::GLProjectionOutputAttachment.
Definition at line 16 of file OutputUnderwater.cpp.
References BIAS::GLProjectionOutputAttachment::InitShader().
Referenced by OutputUnderwater().
|
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_(), BIAS::OutputWowDisplay::Draw_(), and Draw_().
void OutputUnderwater::UpdateParams | ( | double | zNear, |
double | zFar, | ||
std::vector< int > & | waterQuality | ||
) |
Definition at line 62 of file OutputUnderwater.cpp.
References alphaB_, alphaG_, alphaR_, waterColorB_, waterColorG_, waterColorR_, waterQualityB_, waterQualityG_, waterQualityR_, zFar_, and zNear_.
|
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 41 of file OutputUnderwater.hh.
Referenced by Draw_(), and UpdateParams().
|
protected |
Definition at line 41 of file OutputUnderwater.hh.
Referenced by Draw_(), and UpdateParams().
|
protected |
Definition at line 41 of file OutputUnderwater.hh.
Referenced by Draw_(), and UpdateParams().
|
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_(), BIAS::OutputWowDisplay::Draw_(), BIAS::OutputLensDistortion::Draw_(), and 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_().
|
protected |
Definition at line 40 of file OutputUnderwater.hh.
Referenced by Draw_(), and UpdateParams().
|
protected |
Definition at line 40 of file OutputUnderwater.hh.
Referenced by Draw_(), and UpdateParams().
|
protected |
Definition at line 40 of file OutputUnderwater.hh.
Referenced by Draw_(), and UpdateParams().
|
protected |
Definition at line 39 of file OutputUnderwater.hh.
Referenced by Draw_(), and UpdateParams().
|
protected |
Definition at line 39 of file OutputUnderwater.hh.
Referenced by Draw_(), and UpdateParams().
|
protected |
Definition at line 39 of file OutputUnderwater.hh.
Referenced by Draw_(), and UpdateParams().
|
protected |
Definition at line 39 of file OutputUnderwater.hh.
Referenced by Draw_(), and UpdateParams().
|
protected |
Definition at line 39 of file OutputUnderwater.hh.
Referenced by Draw_(), and UpdateParams().