Visibility of Point3D series.

TeeChart for ActiveX, COM and ASP
Post Reply
LAL
Newbie
Newbie
Posts: 40
Joined: Fri Jun 20, 2008 12:00 am

Visibility of Point3D series.

Post by LAL » Thu Jul 10, 2008 1:22 am

I don't think this is possible, but thought I'd ask anyway...

I've plotted my ground surface using a SurfaceSeries, and now I'm indicating areas on the surface by drawing a number of Point3D series to outline the areas.

Is there any way to make the Point3D series only display the points visible to the viewer? (like the SurfaceSeries 'hide cells'). At present, all the points are always visible which makes the view confusing sometimes when the chart is rotated.

Yeray
Site Admin
Site Admin
Posts: 9601
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Thu Jul 10, 2008 8:24 am

Hi LVL,

Yes, you can hide the points you wish, knowing their indexes:

Code: Select all

Private Sub TChart1_OnGetSeriesPointerStyle(ByVal SeriesIndex As Long, ByVal ValueIndex As Long, AStyle As TeeChart.EPointerStyle)
  If SeriesIndex = 1  Then ' supposing that your point series' index is 1
    Select Case ValueIndex
      Case 0, 1, 5, 7, 11, 14, 15, 19, 20, 22, 24: AStyle = psNothing 'indexes to hide
      Case Else: AStyle = psRectangle ' show the others
    End Select
  End If
End Sub
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

LAL
Newbie
Newbie
Posts: 40
Joined: Fri Jun 20, 2008 12:00 am

Post by LAL » Thu Jul 10, 2008 8:45 pm

Hi Yeray,

Thanks for the response. This is useful to know, but might not be practical for my situation. I'm actually using a 3D point series showing no pointers, only lines. So I suppose it is the lines I really want to hide.

With the method above I'd also need to be able to calculate which points were and were not visible on my 'surface' for any given rotation / elevation.

I was hoping that there might be some kind of property of the series or chart that would do this for me :)

Yeray
Site Admin
Site Admin
Posts: 9601
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Fri Jul 11, 2008 8:37 am

Hi LVL,

I'm afraid that the exactly property you wish doesn't exist. But activating OpenGL could be the easiest solution for your request.

Code: Select all

TChart1.Aspect.OpenGL.Active = True
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply