#include <LOD.h>
Public Member Functions | |
LODSwitch () | |
LODSwitch (float in, float out) | |
LODSwitch (const LODSwitch ©) | |
void | operator= (const LODSwitch ©) |
void | get_range (float &in, float &out) const |
float | get_in () const |
float | get_out () const |
void | set_range (float in, float out) |
bool | in_range (float dist_squared) const |
Computes the distance between two points and returns true if the result is within the range for the LOD. | |
void | rescale (float factor_squared) |
Scales the switching distances by the square root of the indicated factor. | |
bool | operator== (const LODSwitch &other) const |
bool | operator!= (const LODSwitch &other) const |
bool | operator< (const LODSwitch &other) const |
void | write_datagram (Datagram &destination) const |
Writes the contents of the LODSwitch out to the datagram, presumably in preparation to writing to a Bam file. | |
void | read_datagram (DatagramIterator &source) |
Reads the contents of the LODSwitch from the datagram, presumably in response to reading a Bam file. | |
Protected Attributes | |
float | _in |
float | _out |
An object will be visible when it is closer than "in" units, but further than "out" units from the camera.
The sense of in vs. out distances is as if the object were coming towards you from far away: it switches "in" at the far distance, and switches "out" at the close distance. Thus, "in" should be larger than "out".
Definition at line 56 of file LOD.h.
|
Definition at line 32 of file LOD.I. References INLINE, and set_range(). |
|
Definition at line 43 of file LOD.I. References INLINE. |
|
|
|
Definition at line 95 of file LOD.I. References _in, _out, and INLINE. Referenced by operator=(). |
|
Definition at line 107 of file LOD.I. References _in, _out, and INLINE. Referenced by operator=(). |
|
|
|
Computes the distance between two points and returns true if the result is within the range for the LOD.
|
|
Definition at line 177 of file LOD.I. References _in, _out, DatagramIterator::get_float32(), and INLINE. |
|
|
|
|
|
Definition at line 165 of file LOD.I. References _in, _out, Datagram::add_float32(), and INLINE. |
|
Reads the contents of the LODSwitch from the datagram, presumably in response to reading a Bam file.
|
|
Scales the switching distances by the square root of the indicated factor.
Definition at line 152 of file LOD.I. References INLINE. |
|
Definition at line 119 of file LOD.I. References _in, _out, and INLINE. Referenced by LODSwitch(). |
|
Writes the contents of the LODSwitch out to the datagram, presumably in preparation to writing to a Bam file.
|
|
Definition at line 81 of file LOD.h. Referenced by get_in(), get_out(), LODSwitch(), operator!=(), operator==(), and set_range(). |
|
Definition at line 82 of file LOD.h. Referenced by get_in(), get_out(), LODSwitch(), operator!=(), operator==(), and set_range(). |