Rectangle tool

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
dpatch
Newbie
Newbie
Posts: 53
Joined: Mon Jul 02, 2007 12:00 am

Rectangle tool

Post by dpatch » Tue Nov 27, 2007 4:38 pm

The rectangle tool is great. Is there a way of drawing a similar shape with more than 4 sides? I need to be able to draw an "n" sided shape and know if a given point in the colorgridseries is inside the shape or outside.

Thnks in advance.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Nov 27, 2007 6:15 pm

Hi dpatch,

You could try using Chart1.Canvas.Cube method.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

dpatch
Newbie
Newbie
Posts: 53
Joined: Mon Jul 02, 2007 12:00 am

Post by dpatch » Wed Dec 05, 2007 1:13 am

Thank you for your response.

I guess I was not clear about what I was asking. I need to draw a shape, say a hexagon or an octogon...using something similar to the rectangle tool. Maybe I could give 6 points as the shape bounds and it would connect the points, drawing a 6 sided shape.

My application needs to draw bounds (or an outline) around a feature in an image then manipulate the point values inside the shape. What you have done with the rectangle tool is perfect, if I could only add more than 4 sides.

thanks again in advance.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Dec 05, 2007 11:08 am

Hi dpatch,

Thanks for the information.

I'll add your request to our wish-list to be considered for inclusion in future releases. In the meantime, the only way to achieve that I can think of, is using existing TeeChart's Canvas methods for drawing 3D polygons combined with text output methods like TextOut or TextOut3D.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

dpatch
Newbie
Newbie
Posts: 53
Joined: Mon Jul 02, 2007 12:00 am

Post by dpatch » Wed Dec 05, 2007 2:32 pm

OK, thanks for the consideration. Remember, I am looking fo a 2D shape, not a 3D shape.

In the mean time, I am going to look at the source code for the rectangle tool to see if it can be easily modified.

Thanks again!

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Dec 05, 2007 3:09 pm

Hi dpatch,

Ok, in that case you may be also interested in the polygon drawing methods included in TeeChart's Canvas.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply