Re: Text entities classes structure.
Posted by ClaudeQC on Apr 16, 2012; 1:21am
URL: https://forum.librecad.org/Text-entities-classes-structure-tp5640739p5642735.html
On 2012-04-15 14:56, gnagno91 [via LibreCAD] wrote:
>
> I agree with you about the classes. Just two things:
> -woudn't be better if we use rs_stext for the single line (the new one)
> and rs_mtext for the old one?
>
- I am not aware of the implementation details of text
entities in LibreCAD; but I know 2 things for sure.
That 2 things is that in AutoCAD there is primarily too
types of text entities:
1) Entities named "TEXT" (text formatted on a single line).
2) Entities named "MTEXT" (text formatted on multi-line).
So, from my point of view, I think its a good idea to make LibreCAD
class structure follow that name convention.
i.e.: "rs_text" for "TEXT" entities, and "rs_mtext" for "MTEXT"
entities.
>
> -in the structure you propose to me rs_mtext and rs_text are subclasses
> of rs_textdata? because I thought to create a rs_textdata.h file with
> the general rs_texdata class and then I created other classes in
> rs_text.h called rs_stextdata and in rs_mtext.h called rs_mtextdata. I
> upload the files just to be more clear.
>
- I think Rallaz, Dxli and Ries can help more than me in this area.
Claude