Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/parametrics/nurbsVertex.h

Go to the documentation of this file.
00001 // Filename: nurbsVertex.h
00002 // Created by:  drose (03Dec02)
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 #ifndef NURBSVERTEX_H
00020 #define NURBSVERTEX_H
00021 
00022 #include "pandabase.h"
00023 #include "luse.h"
00024 #include "nodePath.h"
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //       Class : NurbsVertex
00028 // Description : This represents a single control vertex in a
00029 //               NurbsEvaluator.  It may be relative to a particular
00030 //               coordinate space; or its coordinate space may be
00031 //               unspecified.
00032 //
00033 //               This is not related to NurbsCurve, ClassicNurbsCurve,
00034 //               CubicCurveseg or any of the ParametricCurve-derived
00035 //               objects in this module.  It is a completely parallel
00036 //               implementation of NURBS curves, and will probably
00037 //               eventually replace the whole ParametricCurve class
00038 //               hierarchy.
00039 ////////////////////////////////////////////////////////////////////
00040 class EXPCL_PANDA NurbsVertex {
00041 public:
00042   INLINE NurbsVertex();
00043   INLINE NurbsVertex(const NurbsVertex &copy);
00044   INLINE void operator = (const NurbsVertex &copy);
00045   INLINE ~NurbsVertex();
00046 
00047   INLINE void set_vertex(const LVecBase4f &vertex);
00048   INLINE const LVecBase4f &get_vertex() const;
00049 
00050   INLINE void set_space(const NodePath &space);
00051   INLINE void set_space(const string &space);
00052   INLINE NodePath get_space(const NodePath &rel_to) const;
00053 
00054 private:
00055   LVecBase4f _vertex;
00056   NodePath _space;
00057   string _space_path;
00058 };
00059 
00060 #include "nurbsVertex.I"
00061 
00062 #endif
00063 

Generated on Fri May 2 00:40:48 2003 for Panda by doxygen1.3