MCPcopy Create free account
hub / github.com/christophhart/HISE / drawOscilloscopePath

Method drawOscilloscopePath

hi_scripting/scripting/api/ScriptingGraphics.cpp:3801–3826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3799}
3800
3801void ScriptingObjects::ScriptedLookAndFeel::Laf::drawOscilloscopePath(Graphics& g_, RingBufferComponentBase& ac, const Path& p)
3802{
3803 if (functionDefined("drawAnalyserPath"))
3804 {
3805 auto obj = new DynamicObject();
3806 auto c = dynamic_cast<Component*>(&ac);
3807 writeId(obj, c);
3808 obj->setProperty("area", ApiHelpers::getVarRectangle(c->getLocalBounds().toFloat()));
3809 auto sp = new ScriptingObjects::PathObject(get()->getScriptProcessor());
3810
3811
3812 var keeper(sp);
3813 sp->getPath() = p;
3814 obj->setProperty("path", keeper);
3815 obj->setProperty("pathArea", ApiHelpers::getVarRectangle(p.getBounds()));
3816
3817 setColourOrBlack(obj, "bgColour", *c, RingBufferComponentBase::ColourId::bgColour);
3818 setColourOrBlack(obj, "itemColour1", *c, RingBufferComponentBase::ColourId::fillColour);
3819 setColourOrBlack(obj, "itemColour2", *c, RingBufferComponentBase::ColourId::lineColour);
3820
3821 if (get()->callWithGraphics(g_, "drawAnalyserPath", var(obj), c))
3822 return;
3823 }
3824
3825 RingBufferComponentBase::LookAndFeelMethods::drawOscilloscopePath(g_, ac, p);
3826}
3827
3828void ScriptingObjects::ScriptedLookAndFeel::Laf::drawGonioMeterDots(Graphics& g_, RingBufferComponentBase& ac, const RectangleList<float>& dots, int index)
3829{

Callers

nothing calls this directly

Calls 10

setColourOrBlackFunction · 0.85
varFunction · 0.85
getLocalBoundsMethod · 0.80
callWithGraphicsMethod · 0.80
getFunction · 0.50
setPropertyMethod · 0.45
toFloatMethod · 0.45
getScriptProcessorMethod · 0.45
getPathMethod · 0.45
getBoundsMethod · 0.45

Tested by

no test coverage detected