sghr / iGeo

iGeo: Computational Design and 3D Modeling Library for Processing
http://igeo.jp
GNU Lesser General Public License v3.0
146 stars 34 forks source link

Extending IGraphicObject #8

Open superseed77 opened 10 years ago

superseed77 commented 10 years ago

When for some reason I extend IGraphicObject I can access all properties of IGraphicObject from my extended class (eg. visible, parent)... except one : color.

This property collide in some way with processing. So so it will not compile if i refer to this.color.

Is it possible for you to rename it to icolor or something like that Thanks a lot

sghr commented 10 years ago

I guess that happens only when you compile in Processing IDE because Processing's preprocessor seems to treat "color" as a reserved word. Using eclipse or just simply compiling with javac would not have this issue. Although I didn't expect people touches those internal methods and fields from Processing, I'll consider about changing the field name "color" to something else (likely to be "clr"), because now I see people touching those area like you do. I'll let you know when I make the decision.

superseed77 commented 10 years ago

You're right: the pb arise in processing ide. Anyway I found a workaround Thanks a lot