Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Dynamically Change symbolsize
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

soundar

51 Posts

Posted - 01 Aug 2008 :  16:25:20  Show Profile  Reply with Quote
I am plotting a graph that tracks the pressure point of an object that Is placed On a rectangular platform And then moved around. We calculate the load sensed at the four corners, compute the center of gravity and this way we know where the object is.

I am using a XYScatter plot that seems to work very well for this purpose. As the object is moved around, I add the new location to the dataset and then simply do

<RTProcessVar>.TruncateProcessVarDataset(1)

so I only one point that is moving around on the plot.

Now in addition to the location, I also want to change the size of the symbol dynamically, so that as the pressure increases or decreases so the user can see how much pressure is applied.

I tried to do this before I call updatedraw like this:

Dim attrib As ChartAttribute = plotCG.GetChartObjAttributes
attrib.SymbolSize = <new symbol size>
attrib.SetColor(newColor)
plotCG.SetChartObjAttributes(attrib)
Me.UpdateDraw()

But these changes have no effect. Am I doing something wrong or this is just not possible?

soundar

51 Posts

Posted - 01 Aug 2008 :  16:37:35  Show Profile  Reply with Quote
Followup to the above post:
----------------------------
I change the symbol size on the RTSimpleSingleValuePlot object. I notice that the SimplePlot used in the constructor also has GetChartObjAttributes and SetChartObjAttributes functions. Should I be changing the symbol size on the SimplePlot? If yes, how can I access this SimplePlot object in my Repaint method? Only my RTSimpleSingleValuePlot is global.
Go to Top of Page

quinncurtis

1586 Posts

Posted - 01 Aug 2008 :  17:30:21  Show Profile  Reply with Quote
Your second observation is correct. You should be changing the size of the scatter plot symbol for the underlying SimpleScatterPlot, since that is where you set it in the first place.

You can make anything global you want. Make a reference to the SimpleScatterPlot global to the class.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07