gramods
|
The ChromaKeyView filters another view making it transparent where the chroma key is matched within the CbCr color space within a specified tolerance. More...
#include <ChromaKeyView.hh>
Classes | |
struct | Impl |
Public Member Functions | |
void | renderFullPipeline (ViewSettings settings) override |
Appends local renderers to the view settings, forwards rendering to the sub views and mixes the results. More... | |
void | traverse (Visitor *visitor) override |
Propagates the specified visitor. More... | |
void | addView (std::shared_ptr< View >) |
Adds a view to mask with chroma key. More... | |
void | setKey (gmCore::float3 key) |
Set the RGB key to mask with. More... | |
void | setTolerance (gmCore::float2 tol) |
Set the minimum and maximum tolerances against the key when masking. More... | |
![]() | |
void | addNode (std::shared_ptr< Node > node) |
Adds a scenegraph to the view. More... | |
void | setViewpoint (std::shared_ptr< Viewpoint > viewpoint) |
Sets the viewpoint to use in the views rendered by this ViewBase. More... | |
void | addViewpoint (std::shared_ptr< Viewpoint > viewpoint) |
Adds a viewpoint to use in the views rendered by this ViewBase. More... | |
void | traverse (Visitor *visitor) override |
Propagates the specified visitor. More... | |
![]() | |
Object () | |
Initializes internal data. More... | |
virtual | ~Object () |
Cleaning up internal data. More... | |
virtual void | initialize () |
Called to initialize the Object. More... | |
virtual void | accept (Visitor *visitor) |
Calls the visitors apply method with this as argument. More... | |
bool | isInitialized () |
Returns true if the Object is initialized. More... | |
Static Public Attributes | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
![]() | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
![]() | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
Additional Inherited Members | |
![]() | |
void | populateViewSettings (ViewSettings &settings) |
Adds the dispatcher's local renderers and viewpoint, if set. More... | |
![]() | |
Node::list | nodes |
std::vector< std::shared_ptr< Viewpoint > > | viewpoints |
The ChromaKeyView filters another view making it transparent where the chroma key is matched within the CbCr color space within a specified tolerance.
void gramods::gmGraphics::ChromaKeyView::addView | ( | std::shared_ptr< View > | view | ) |
Adds a view to mask with chroma key.
XML-attribute: view
|
overridevirtual |
Appends local renderers to the view settings, forwards rendering to the sub views and mixes the results.
Reimplemented from gramods::gmGraphics::ViewBase.
void gramods::gmGraphics::ChromaKeyView::setKey | ( | gmCore::float3 | key | ) |
void gramods::gmGraphics::ChromaKeyView::setTolerance | ( | gmCore::float2 | tol | ) |
Set the minimum and maximum tolerances against the key when masking.
This will specify a ramp in decimal CrCb (2D) color space. Default is [0.48, 0.50].
XML-attribute: tolerance
|
overridevirtual |
Propagates the specified visitor.
Reimplemented from gramods::gmCore::Object.