I have a figure which I generated using the code below. Basically, when I use [rotate=45] option, I would like to ensure that the strike out symbol is rotated as well.
Also, related to this figure, how can I make it connect 2 nodes? (such that its size automatically fits the space between)?
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,petri,calc,shapes.misc}
\begin{document}
\begin{tikzpicture}[rotate=45]
\draw (-0.5,0)-- ++(+0.5,0);
\coordinate (B) at (0,0);
\draw ++(-0.5,0.15) -- ++(+0.5,0);
\draw (-0.15,-0.15)-- (0,0);
\draw ++(0,0.15)--+(-0.15,+0.15);
\draw (0,0) .. controls (+0.075,+0.075) .. (0,0.15);
\coordinate (A) at (-0.5,0.15);
\node [strike out,draw,anchor=text] (X) at ++($ (A)!.5!(B) $) {};
\end{tikzpicture}
\end{document}
A screenshot of the result:

As As you might observe, the striking out symbol remains as is.
Here is a before and after, for comparison:


\begin{tikzpicture}[rotate=45,transform shape]...\end{tikzpicture}– Gonzalo Medina Aug 07 '14 at 17:10