Panda3D
|
00001 // Filename: eggSurface.h 00002 // Created by: drose (15Feb00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef EGGSURFACE_H 00016 #define EGGSURFACE_H 00017 00018 #include "pandabase.h" 00019 00020 #include "eggPrimitive.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Class : EggSurface 00024 // Description : A parametric surface of some kind. See 00025 // EggNurbsSurface. 00026 //////////////////////////////////////////////////////////////////// 00027 class EXPCL_PANDAEGG EggSurface : public EggPrimitive { 00028 PUBLISHED: 00029 INLINE EggSurface(const string &name = ""); 00030 INLINE EggSurface(const EggSurface ©); 00031 INLINE EggSurface &operator = (const EggSurface ©); 00032 00033 INLINE void set_u_subdiv(int subdiv); 00034 INLINE int get_u_subdiv() const; 00035 INLINE void set_v_subdiv(int subdiv); 00036 INLINE int get_v_subdiv() const; 00037 00038 private: 00039 int _u_subdiv; 00040 int _v_subdiv; 00041 00042 public: 00043 00044 static TypeHandle get_class_type() { 00045 return _type_handle; 00046 } 00047 static void init_type() { 00048 EggPrimitive::init_type(); 00049 register_type(_type_handle, "EggSurface", 00050 EggPrimitive::get_class_type()); 00051 } 00052 virtual TypeHandle get_type() const { 00053 return get_class_type(); 00054 } 00055 virtual TypeHandle force_init_type() {init_type(); return get_class_type();} 00056 00057 private: 00058 static TypeHandle _type_handle; 00059 00060 }; 00061 00062 #include "eggSurface.I" 00063 00064 #endif