Sunday, 30 August 2015

CircuitSimulator Component Specification Aug 30 2015

I made some progress to circuit simulator with a the addition of components.


Now there is a components dialog with a list of components.

Example component:

So here is the component specification:

  • component_name represents the tooltip name
  • graphic represents how the component is drawn on the grid
  • icon is data for the img on the button
  • id is reference id with is used to retrieve properties for components
  • attributes are the component's values(e.g voltage,current,resistance)
graphic specification is different:
  • polygon represents a polygon,it has [x1,y1,x2,y2,x3,y3 ...] coordinates for every point
  • line represents a line [x1,y1,x2,y2]
  • linecircle is a circle made of lines [centerx,centery,outerradius,thickness]








No comments:

Post a Comment