Page 1 of 1

Visibility of Point3D series.

Posted: Thu Jul 10, 2008 1:22 am
by 15049432
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.

Posted: Thu Jul 10, 2008 8:24 am
by yeray
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

Posted: Thu Jul 10, 2008 8:45 pm
by 15049432
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 :)

Posted: Fri Jul 11, 2008 8:37 am
by yeray
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