61 lines
1.4 KiB
C++
61 lines
1.4 KiB
C++
/**
|
|
* PANDA 3D SOFTWARE
|
|
* Copyright (c) Carnegie Mellon University. All rights reserved.
|
|
*
|
|
* All use of this software is subject to the terms of the revised BSD
|
|
* license. You should have received a copy of this license along
|
|
* with this source code in a file named "LICENSE."
|
|
*
|
|
* @file eggSurface.h
|
|
* @author drose
|
|
* @date 2000-02-15
|
|
*/
|
|
|
|
#ifndef EGGSURFACE_H
|
|
#define EGGSURFACE_H
|
|
|
|
#include "pandabase.h"
|
|
|
|
#include "eggPrimitive.h"
|
|
|
|
/**
|
|
* A parametric surface of some kind. See EggNurbsSurface.
|
|
*/
|
|
class EXPCL_PANDA_EGG EggSurface : public EggPrimitive {
|
|
PUBLISHED:
|
|
INLINE explicit EggSurface(const std::string &name = "");
|
|
INLINE EggSurface(const EggSurface ©);
|
|
INLINE EggSurface &operator = (const EggSurface ©);
|
|
|
|
INLINE void set_u_subdiv(int subdiv);
|
|
INLINE int get_u_subdiv() const;
|
|
INLINE void set_v_subdiv(int subdiv);
|
|
INLINE int get_v_subdiv() const;
|
|
|
|
private:
|
|
int _u_subdiv;
|
|
int _v_subdiv;
|
|
|
|
public:
|
|
|
|
static TypeHandle get_class_type() {
|
|
return _type_handle;
|
|
}
|
|
static void init_type() {
|
|
EggPrimitive::init_type();
|
|
register_type(_type_handle, "EggSurface",
|
|
EggPrimitive::get_class_type());
|
|
}
|
|
virtual TypeHandle get_type() const {
|
|
return get_class_type();
|
|
}
|
|
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
|
|
|
|
private:
|
|
static TypeHandle _type_handle;
|
|
|
|
};
|
|
|
|
#include "eggSurface.I"
|
|
|
|
#endif
|