14 #ifndef EGGSWITCHCONDITION 15 #define EGGSWITCHCONDITION 32 virtual void write(std::ostream &out,
int indent_level)
const=0;
34 virtual void transform(
const LMatrix4d &mat)=0;
42 static void init_type() {
43 EggObject::init_type();
45 EggObject::get_class_type());
48 return get_class_type();
50 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
64 const LPoint3d ¢er,
double fade = 0.0);
67 virtual void write(std::ostream &out,
int indent_level)
const;
69 virtual void transform(
const LMatrix4d &mat);
72 double _switch_in, _switch_out, _fade;
79 static void init_type() {
80 EggSwitchCondition::init_type();
82 EggSwitchCondition::get_class_type());
85 return get_class_type();
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(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
This corresponds to a <SwitchCondition> entry within a group.
The highest-level base class in the egg directory.
A SwitchCondition that switches the levels-of-detail based on distance from the camera's eyepoint.