Panda3D
Public Member Functions | Static Public Member Functions | Public Attributes

EggSwitchConditionDistance Class Reference

A SwitchCondition that switches the levels-of-detail based on distance from the camera's eyepoint. More...

#include "eggSwitchCondition.h"

Inheritance diagram for EggSwitchConditionDistance:
EggSwitchCondition EggObject TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Member Functions

 EggSwitchConditionDistance (double switch_in, double switch_out, const LPoint3d &center, double fade=0.0)
virtual TypeHandle get_type () const
virtual EggSwitchConditionmake_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

Detailed Description

A SwitchCondition that switches the levels-of-detail based on distance from the camera's eyepoint.

Definition at line 66 of file eggSwitchCondition.h.


Member Function Documentation

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().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations