Recent

Author Topic: TAChart with BGRABitmap  (Read 18692 times)

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: TAChart with BGRABitmap
« Reply #15 on: February 04, 2013, 07:02:46 pm »
Here you are (apparently, the path is not kept) :
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: TAChart with BGRABitmap
« Reply #16 on: February 04, 2013, 07:45:28 pm »
It would be useful to have access to the drawer from the TChartGUIConnectorBGRA object, in order to define special properties.
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: TAChart with BGRABitmap
« Reply #17 on: February 07, 2013, 10:25:09 am »
Here is a tutorial on how to improve TAChart rendering with BGRABitmap :
http://wiki.freepascal.org/BGRABitmap_tutorial_TAChart
Conscience is the debugger of the mind

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: TAChart with BGRABitmap
« Reply #18 on: February 08, 2013, 11:37:24 pm »
Patch applied with small modifications in r40212.

Quote
a tutorial on how to improve TAChart rendering with BGRABitmap
When setting BarSeries.Depth = 10, I recommend to also set BarSeries.ZPosition = 10 and Chart.Depth = 10. This will avoid clipping of 3D bars.

Quote
It would be useful to have access to the drawer from the TChartGUIConnectorBGRA object, in order to define special properties
Yes, this was a part of the plan.
Since r40214, GUI connectors notify connected charts about property changes, so everything is ready for this stage.
See r40217 for an example of GUI connector property, based on AggPas connector.

Note, however, that GUI connector should only contain properties which are 100% specific for
the corresponding drawer. For example, pixel format, path to font files, choice of font rendering engine, antialiasing/resampling method are good candidates. On the other hand, 3D lighting parameters, gradients, etc are not suitable here.
« Last Edit: February 09, 2013, 12:40:08 am by Ask »

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: TAChart with BGRABitmap
« Reply #19 on: February 09, 2013, 10:41:41 am »
Well, then you need to include at least those phong parameters :
  • ambiant lighting : single = 1
  • specular lighting : single = 0
  • specular index : single = 10
  • diffusion lighting : single = 0
  • light direction : (single,single,single) =(sqrt(1/3),sqrt(1/3),sqrt(1/3)) (the signs will depend on how you define 3D axes)
(default values are indicated to show the "no lighting" mode)
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: TAChart with BGRABitmap
« Reply #20 on: February 09, 2013, 10:51:58 am »
Since r40214, GUI connectors notify connected charts about property changes, so everything is ready for this stage.
See r40217 for an example of GUI connector property, based on AggPas connector.
Hmm, Broadcaster does not seem to have a specified message to convey. Is it an Invalidate broadcaster ?
Conscience is the debugger of the mind

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: TAChart with BGRABitmap
« Reply #21 on: February 09, 2013, 04:00:01 pm »
Quote
Broadcaster does not seem to have a specified message to convey. Is it an Invalidate broadcaster ?
Basically, yes.
The Broadcaster does pass the object which has initiated the broadcast,
which is sometimes used for more detailed actions.

 

TinyPortal © 2005-2018