CMS 3D CMS Logo

NavSurfaceBuilder.cc
Go to the documentation of this file.
9 
11 {
12  const Plane* plane = dynamic_cast<const Plane*>(&surface);
13  if (plane != 0) {
14  return new NavPlane( plane);
15  }
16 
17  const Cylinder* cylinder = dynamic_cast<const Cylinder*>(&surface);
18  if (cylinder != 0) {
19  return new NavCylinder( cylinder);
20  }
21 
22  const Cone* cone = dynamic_cast<const Cone*>(&surface);
23  if (cone != 0) {
24  return new NavCone( cone);
25  }
26 
27  return 0;
28 }
Definition: Cone.h:17
NavSurface * build(const Surface &surface) const
Definition: Plane.h:17