The following is a refined form of the problem that I posted more than 18 hours ago.
I am new to Tikz. However, even with the little knowledge I have of TikZ, I do appreciate its superiority over the other graphics packages that I have used previously.
I would like to create a TikZ node style that can produce the diagram shown below. I have drawn it using Xfig. However, I would like to draw it in a more flexible way using TikZ. The following constraints pertain to the diagram:
- The arcs on the left and the right sides of the rectangular structure are semi-circles --- each has a radius that is half the height of the underlying rectangle(s).
- The two triangles inside the structure are similar.
- Each triangle is an isosceles triangle whose apex lies on the center-line that is parallel to the top and bottom edges of the rectangular structure.
- The dimensions of the triangles are fixed fractions of the height of the rectangular structure.
- The base of the filled triangle is on the left edge of the (imaginary) inner rectangle; and that of the second triangle is on the base right edge of the (imaginary) inner rectangle.
The only parameters that I should be free to alter are the positions of the anchors, the height and the width of the rectangular structure. I need to know how I can access the height and width parameters and use them in the calculation of the other parameters of the structure.
Could some experienced user of TikZ and PGF come to my aid.