Panda3D
|
A SwitchCondition that switches the levels-of-detail based on distance from the camera's eyepoint. More...
#include "eggSwitchCondition.h"
Public Member Functions | |
EggSwitchConditionDistance (double switch_in, double switch_out, const LPoint3d ¢er, double fade=0.0) | |
virtual TypeHandle | get_type () const |
virtual EggSwitchCondition * | make_copy () const |
virtual void | transform (const LMatrix4d &mat) |
Applies the indicated transformation matrix to the switch condition parameters. | |
virtual void | write (ostream &out, int indent_level) const |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Public Attributes | |
LPoint3d | _center |
double | _fade |
double | _switch_in |
double | _switch_out |
A SwitchCondition that switches the levels-of-detail based on distance from the camera's eyepoint.
Definition at line 66 of file eggSwitchCondition.h.
static void EggSwitchConditionDistance::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from EggSwitchCondition.
Definition at line 84 of file eggSwitchCondition.h.
References EggSwitchCondition::init_type().
void EggSwitchConditionDistance::transform | ( | const LMatrix4d & | mat | ) | [virtual] |
Applies the indicated transformation matrix to the switch condition parameters.
Implements EggSwitchCondition.
Definition at line 76 of file eggSwitchCondition.cxx.
References LVecBase3d::length().