80 int32_t x = node->
x();
81 int32_t y = node->
y();
82 int32_t size = node->
size();
85 CellGrid *cg = m_layer->getCellGrid();
89 ScreenPoint scrpt1 =m_camera->toScreenCoordinates( emc );
91 ScreenPoint scrpt2 =m_camera->toScreenCoordinates( emc );
93 ScreenPoint scrpt3 =m_camera->toScreenCoordinates( emc );
95 ScreenPoint scrpt4 =m_camera->toScreenCoordinates( emc );
109 FL_WARN(
_log,
"No cellgrid assigned to layer, cannot draw grid");
#define FL_WARN(logger, msg)
void applyVisitor(Visitor &visitor)
See QuadNode::apply_visitor.
void render(Camera *cam, Layer *layer, RenderList &instances)
This method is called by the view to ask renderer to draw its rendering aspect based on given paramet...
RendererBase * clone()
Makes copy of this renderer.
Abstract interface for all the renderbackends.
std::vector< RenderItem * > RenderList
static Logger _log(LM_AUDIO)
Camera describes properties of a view port shown in the main screen Main screen can have multiple cam...
RenderBackend * m_renderbackend
PointType2D< int32_t > Point
Base class for all view renderers View renderer renders one aspect of the view shown on screen...
int32_t size() const
Return the size (width and height) of the node.
virtual ~QuadTreeRenderer()
Destructor.
virtual void drawLine(const Point &p1, const Point &p2, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)=0
Draws line between given points with given RGBA.
virtual void setEnabled(bool enabled)
Enables renderer.
QuadTreeRenderer(RenderBackend *renderbackend, int32_t position)
constructor.
InstanceTree * getInstanceTree(void) const
Get the instance tree.
DoublePoint3D ExactModelCoordinate
CellGrid * getCellGrid() const
Get the Cellgrid.
int32_t y() const
Return the Y position of the node.
RenderVisitor(RenderBackend *rb, Layer *layer, Camera *camera)
ExactModelCoordinate toMapCoordinates(const ModelCoordinate &layer_coords)
Transforms given point from layer coordinates to map coordinates.
int32_t x() const
Return the X position of the node.
bool visit(QuadNode< T, InstanceTree::MIN_TREE_SIZE > *node, int32_t d)