CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
NavSurfaceBuilder Class Reference

helper: builde a NavSurface for a Surface More...

#include <NavSurfaceBuilder.h>

Public Member Functions

NavSurfacebuild (const Surface &surface) const
 

Detailed Description

helper: builde a NavSurface for a Surface

Definition at line 8 of file NavSurfaceBuilder.h.

Member Function Documentation

NavSurface * NavSurfaceBuilder::build ( const Surface surface) const

Definition at line 10 of file NavSurfaceBuilder.cc.

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
Definition: Plane.h:17