22 void updateBoxes(
const t_note_id ¬e_id)
24 boxAccessorSet.bind(m_dataset->scope());
27 boxAccessorSet.filter(boxRecords, m_dataset);
32 const Color green(0.0,1.0,0.0,1.0);
38 for (
Record boxRecord : boxRecords)
44 translate(drawBoxCenter, -boxAccessorSet.
size(boxRecord)/2);
46 draw->drawTransformedBoxes(
48 &boxAccessorSet.
size(boxRecord),
59 orchestrator->connect(
this, &BoxViewerSystem::updateBoxes,
"boxes_added");
60 orchestrator->connect(
this, &BoxViewerSystem::updateBoxes, FE_NOTE_COMPILE);
64 std::vector<Record> boxRecords;
Base class for Viewer Systems.
Definition: ViewerSystem.h:21
kernel
Definition: namespace.dox:3
Special vector for color (RGBA)
Definition: Color.h:21
Accessor< SpatialVector > size
Size of box.
Definition: AsBox.h:33
Test-only.
Definition: AsBox.h:19
Reference to an instance of a Layout.
Definition: RecordSB.h:35
Test-only.
Definition: BoxViewerSystem.h:19
void connectOrchestrator(sp< OrchestratorI > orchestrator) override
Callback for the System to register itself to the orchestrator.
Definition: ViewerSystem.h:48
void draw(Record viewportRecord) override
Draw stuff into the viewport.
Definition: BoxViewerSystem.h:30
AsViewport m_viewportAccessorSet
Accessors for viewport data.
Definition: ViewerSystem.h:63
Accessor< SpatialTransform > transform
Transform of box.
Definition: AsBox.h:31
void connectOrchestrator(sp< OrchestratorI > orchestrator) override
Callback for the System to register itself to the orchestrator.
Definition: BoxViewerSystem.h:55
Accessor< hp< DrawI > > draw
Draw Interface for actually drawing stuff.
Definition: AsViewport.h:35