Re: Re: drawing text issue
Posted by
Johnson on
May 28, 2013; 8:54am
URL: https://forum.librecad.org/drawing-text-issue-tp5708110p5708131.html
RS_EntityContainer could not implement draw because this is a "virtual"
class who don't know what's the object to draw.
RS_Text is a special derived RS_EntityContainer class , from the name you
know it's "TEXT".
Yes, I need to do conversion in the implementation of draw . you could
refer to RS_Line class.
Other question leave to other expert to answer :)
wingame82
Date: 2013-05-28 16:43
Subject: Re: Re: drawing text issue
hi,
I'm a noob in coding and want to
learn how to code. So if someone does have some time, can you answer my
questions, please:
"RS_Text is derived from RS_EntityContainer. You can
define a virtual function draw() in RS_Text then."
If RS_Text is derived
from RS_EntityContainer, shouldn't the draw() function beeing implemented in the
RS_EntityContainer class? (cause using virtual??)
"For zooming, please
note we have a model space (as entity sizes are), and a screen(GUI) space as
controlled by zooming factor. draw() methods must do the conversion."
What is the model space and the screen space?
model space: the
canvas, where drwing is performed??
screen space: the GUI?? so one can zoom
the GUI??