I am trying to declare a custom pgf shape. I have a problem that I cannot access the east, west, north, south anchors. This works:
\pgfdeclareshape{mixer}{%
\inheritsavedanchors[from=circle]
\inheritanchorborder[from=circle]
\inheritanchor[from=circle]{center}
\inheritanchor[from=circle]{north}
\inheritanchor[from=circle]{south}
\inheritanchor[from=circle]{west}
\inheritanchor[from=circle]{east}
\backgroundpath{%
\pgf@x=\radius
\pgf@y=\radius
\centerpoint \pgf@xa=\pgf@x \pgf@ya=\pgf@y
\pgfpathcircle{\pgfpoint{\pgf@xa}{\pgf@ya}}{\radius}
}
}
However, as soon as I try to use something like:
\northeast \pgf@xa=\pgf@x \pgf@ya=\pgf@y
or
\north \pgf@xa=\pgf@x \pgf@ya=\pgf@y
I get undefined command. Why is that?

pics? They are kinda like shapes, but much more simple. Declaring new shapes are (I'd say) not for the end-user, butpics are. You can set coordinates inside thepicwhich behave like node anchors... Maybe it's what you looking for: check this link. – Guilherme Zanotelli Dec 05 '16 at 15:21