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.
Visibility of Point3D series.
Hi LVL,
Yes, you can hide the points you wish, knowing their indexes:
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
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
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
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |