Skip to content

Feature/ticket 19 ;feat(renderer):add abstract base classes and 2D rendering primitives#29

Open
zhangx1ang03620 wants to merge 9 commits into
rp-itmo:masterfrom
zhangx1ang03620:feature/ticket-19
Open

Feature/ticket 19 ;feat(renderer):add abstract base classes and 2D rendering primitives#29
zhangx1ang03620 wants to merge 9 commits into
rp-itmo:masterfrom
zhangx1ang03620:feature/ticket-19

Conversation

@zhangx1ang03620
Copy link
Copy Markdown
Collaborator

Closes #19

Added abstract base classes for the 2D renderer architecture:

  • renderer_base.py: defines Primitive and RendererBase abstract classes with interfaces for drawing lines, circles, rectangles, polygons and text. Supports headless mode.
  • renderer_primitives.py: implements 5 primitive data classes (Line, Circle, Rectangle, Polygon, Text) that inherit from Primitive.
  • test_renderer_primitives.py: unit tests for all 5 primitive classes.

zhangx1ang03620 and others added 9 commits May 20, 2026 11:48
Add abstract base classes for renderer and primitives.
RendererBase defines the interface for drawing backends.
Primitive is the base class for all drawable shapes.
Implement rendering primitives: Line, Circle, Rectangle, Polygon, Text
test : add units tests for render_primitive
add pythonpath for pytest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Renderer] Implement Core 2D Rendering Primitives

4 participants