25class EXPCL_PANDA_EGG EggPoint :
public EggPrimitive {
27 INLINE
explicit EggPoint(
const std::string &name =
"");
28 INLINE EggPoint(
const EggPoint ©);
29 INLINE EggPoint &operator = (
const EggPoint ©);
31 virtual EggPoint *
make_copy()
const override;
33 INLINE
bool has_thick()
const;
35 INLINE
void set_thick(
double thick);
36 INLINE
void clear_thick();
38 INLINE
bool has_perspective()
const;
40 INLINE
void set_perspective(
bool perspective);
41 INLINE
void clear_perspective();
43 virtual bool cleanup()
override;
45 virtual void write(std::ostream &out,
int indent_level)
const override;
50 F_perspective = 0x0002,
51 F_has_perspective = 0x0004,
62 static void init_type() {
63 EggPrimitive::init_type();
65 EggPrimitive::get_class_type());
68 return get_class_type();
70 virtual TypeHandle force_init_type()
override {
72 return get_class_type();
virtual void write(std::ostream &out, int indent_level) const override
Writes the point to the indicated output stream in Egg format.
bool get_perspective() const
Returns the perspective flag set on this particular point.
double get_thick() const
Returns the thickness set on this particular point.
virtual EggPoint * make_copy() const override
Makes a copy of this object.
virtual bool cleanup()
Cleans up modeling errors in whatever context this makes sense.
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(),...