00001 // Filename: config_parametrics.cxx 00002 // Created by: drose (19Mar00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #include "classicNurbsCurve.h" 00020 #include "config_parametrics.h" 00021 #include "cubicCurveseg.h" 00022 #include "curveFitter.h" 00023 #include "hermiteCurve.h" 00024 #include "nurbsCurveDrawer.h" 00025 #include "nurbsCurveInterface.h" 00026 #include "parametricCurve.h" 00027 #include "parametricCurveDrawer.h" 00028 #include "piecewiseCurve.h" 00029 #include "ropeNode.h" 00030 00031 #ifdef HAVE_NURBSPP 00032 #include "nurbsPPCurve.h" 00033 #endif 00034 00035 #include "get_config_path.h" 00036 00037 Configure(config_parametrics); 00038 NotifyCategoryDef(parametrics, ""); 00039 00040 ConfigureFn(config_parametrics) { 00041 ClassicNurbsCurve::init_type(); 00042 CubicCurveseg::init_type(); 00043 CurveFitter::init_type(); 00044 HermiteCurve::init_type(); 00045 NurbsCurveDrawer::init_type(); 00046 NurbsCurveInterface::init_type(); 00047 ParametricCurve::init_type(); 00048 ParametricCurveDrawer::init_type(); 00049 PiecewiseCurve::init_type(); 00050 RopeNode::init_type(); 00051 00052 #ifdef HAVE_NURBSPP 00053 NurbsPPCurve::init_type(); 00054 NurbsPPCurve::register_with_read_factory(); 00055 #endif 00056 00057 ClassicNurbsCurve::register_with_read_factory(); 00058 CubicCurveseg::register_with_read_factory(); 00059 HermiteCurve::register_with_read_factory(); 00060 RopeNode::register_with_read_factory(); 00061 } 00062 00063 const DSearchPath & 00064 get_parametrics_path() { 00065 static DSearchPath *parametrics_path = NULL; 00066 return get_config_path("parametrics-path", parametrics_path); 00067 }