56 lines
1.3 KiB
C++
56 lines
1.3 KiB
C++
// Filename: eggSurface.h
|
|
// Created by: drose (15Feb00)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef EGGSURFACE_H
|
|
#define EGGSURFACE_H
|
|
|
|
#include <pandabase.h>
|
|
|
|
#include "eggPrimitive.h"
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Class : EggSurface
|
|
// Description : A parametric surface of some kind. See
|
|
// EggNurbsSurface.
|
|
////////////////////////////////////////////////////////////////////
|
|
class EggSurface : public EggPrimitive {
|
|
public:
|
|
INLINE EggSurface(const 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
|