Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Dynamically Change symbolsize

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
soundar Posted - 01 Aug 2008 : 16:25:20
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?
2   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 01 Aug 2008 : 17:30:21
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.
soundar Posted - 01 Aug 2008 : 16:37:35
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.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07