All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
renderer.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_CORE_RENDERER_HPP
#define OPENPOSE_CORE_RENDERER_HPP
#include <atomic>
#include <openpose/core/common.hpp>
#include <openpose/core/enumClasses.hpp>
namespace op
{
class OP_API Renderer
{
public:
explicit Renderer(const float renderThreshold, const float alphaKeypoint, const float alphaHeatMap,
const bool blendOriginalFrame = true, const unsigned int elementToRender = 0u,
const unsigned int numberElementsToRender = 0u);
virtual ~Renderer();
void increaseElementToRender(const int increment);
void setElementToRender(const int elementToRender);
void setElementToRender(const ElementToRender elementToRender);
bool getBlendOriginalFrame() const;
void setBlendOriginalFrame(const bool blendOriginalFrame);
float getAlphaKeypoint() const;
void setAlphaKeypoint(const float alphaKeypoint);
float getAlphaHeatMap() const;
void setAlphaHeatMap(const float alphaHeatMap);
bool getShowGooglyEyes() const;
void setShowGooglyEyes(const bool showGooglyEyes);
protected:
const float mRenderThreshold;
std::atomic<bool> mBlendOriginalFrame;
std::shared_ptr<std::atomic<unsigned int>> spElementToRender;
std::shared_ptr<const unsigned int> spNumberElementsToRender;
std::atomic<bool> mShowGooglyEyes;
private:
float mAlphaKeypoint;
float mAlphaHeatMap;
DELETE_COPY(Renderer);
};
}
#endif // OPENPOSE_CORE_RENDERER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
op::Renderer::mBlendOriginalFrame
std::atomic< bool > mBlendOriginalFrame
Definition: renderer.hpp:43
op::ElementToRender
ElementToRender
Definition: enumClasses.hpp:31
common.hpp
op::Renderer::mShowGooglyEyes
std::atomic< bool > mShowGooglyEyes
Definition: renderer.hpp:46
op::Renderer::spNumberElementsToRender
std::shared_ptr< const unsigned int > spNumberElementsToRender
Definition: renderer.hpp:45
op::Renderer::spElementToRender
std::shared_ptr< std::atomic< unsigned int > > spElementToRender
Definition: renderer.hpp:44
OP_API
#define OP_API
Definition: macros.hpp:19
enumClasses.hpp
op::Renderer
Definition: renderer.hpp:10
op::Renderer::mRenderThreshold
const float mRenderThreshold
Definition: renderer.hpp:42