K
Keith Rebello
I am trying to implement a graph drawing class. I want to nest a curve
class inside it to draw multiple curves.
i.e.
Class Graph2D
'
Class CurveObj
'
End Class
'
End Class
The Graph2D class will have multiple CurveObj classes, each with its own set
of (x,y) values.
Two questions:
1. Is there a way of keeping track of each CurveObj in the Graph2D class?
I would like to add each CurveObj to some sort of collection in the Graph2D
class when I instantiate the CurveObj (in Sub New() maybe). I want the
Graph2D class to do all the drawing and hence it needs to know each curve's
(x,y) values.
2. Is there a better way of doing this if I'm barking up the wrong tree?
Thanks for your help.
Keith Rebello.
class inside it to draw multiple curves.
i.e.
Class Graph2D
'
Class CurveObj
'
End Class
'
End Class
The Graph2D class will have multiple CurveObj classes, each with its own set
of (x,y) values.
Two questions:
1. Is there a way of keeping track of each CurveObj in the Graph2D class?
I would like to add each CurveObj to some sort of collection in the Graph2D
class when I instantiate the CurveObj (in Sub New() maybe). I want the
Graph2D class to do all the drawing and hence it needs to know each curve's
(x,y) values.
2. Is there a better way of doing this if I'm barking up the wrong tree?
Thanks for your help.
Keith Rebello.