24class EXPCL_PANDA_EGG EggCurve :
public EggPrimitive {
26 INLINE
explicit EggCurve(
const std::string &name =
"");
27 INLINE EggCurve(
const EggCurve ©);
28 INLINE EggCurve &operator = (
const EggCurve ©);
54 static void init_type() {
55 EggPrimitive::init_type();
57 EggPrimitive::get_class_type());
60 return get_class_type();
62 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
68std::ostream &operator << (std::ostream &out, EggCurve::CurveType t);
void set_subdiv(int subdiv)
Sets the number of subdivisions that will be requested across the curve.
void set_curve_type(CurveType type)
Sets the type of the curve.
static CurveType string_curve_type(const std::string &string)
Returns the CurveType value associated with the given string representation, or CT_invalid if the str...
int get_subdiv() const
Returns the requested number of subdivisions, or 0 if no particular subdivisions have been requested.
CurveType get_curve_type() const
Returns the indicated type of the curve.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...