15 #ifndef EGGSWITCHCONDITION
16 #define EGGSWITCHCONDITION
18 #include "pandabase.h"
20 #include "eggObject.h"
36 virtual void write(ostream &out,
int indent_level)
const=0;
38 virtual void transform(
const LMatrix4d &mat)=0;
46 static void init_type() {
47 EggObject::init_type();
48 register_type(_type_handle,
"EggSwitchCondition",
49 EggObject::get_class_type());
52 return get_class_type();
54 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
69 const LPoint3d ¢er,
double fade = 0.0);
72 virtual void write(ostream &out,
int indent_level)
const;
74 virtual void transform(
const LMatrix4d &mat);
77 double _switch_in, _switch_out, _fade;
84 static void init_type() {
85 EggSwitchCondition::init_type();
86 register_type(_type_handle,
"EggSwitchConditionDistance",
87 EggSwitchCondition::get_class_type());
90 return get_class_type();
This is a 4-by-4 transform matrix.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
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...