#include <LOD.h>
Public Member Functions | |
LOD () | |
LOD (const LOD ©) | |
~LOD () | |
void | xform (const LMatrix4f &mat) |
Transforms the LOD specification by the indicated matrix. | |
int | compute_child (const LPoint3f &cam_pos, const LPoint3f ¢er) const |
Computes the distance between two points and returns the index for the child of the LOD by testing against the corresponding list of switching distances. | |
void | write_datagram (Datagram &destination) const |
Writes the contents of the LOD out to the datagram, presumably in preparation to writing to a Bam file. | |
void | read_datagram (DatagramIterator &source) |
Reads the contents of the LOD from the datagram, presumably in response to reading a Bam file. | |
void | output (ostream &out) const |
void | write (ostream &out, int indent_level=0) const |
Static Public Member Functions | |
void | set_stress_factor (float stress_factor) |
Sets the factor that globally scales all LOD's. | |
float | get_stress_factor () |
Returns the factor that globally scales all LOD's. | |
Public Attributes | |
LPoint3f | _center |
LODSwitchVector | _switch_vector |
Static Private Attributes | |
float | _stress_factor = lod_stress_factor |
Definition at line 101 of file LOD.h.
|
|
|
|
|
Definition at line 71 of file LOD.cxx. References _center, _switch_vector, and y. |
|
Computes the distance between two points and returns the index for the child of the LOD by testing against the corresponding list of switching distances.
Definition at line 112 of file LOD.cxx. References _switch_vector, and minimum_LOD_number. |
|
Returns the factor that globally scales all LOD's. See get_stress_factor(). |
|
Definition at line 198 of file LOD.cxx. References indent(). |
|
Reads the contents of the LOD from the datagram, presumably in response to reading a Bam file.
Definition at line 177 of file LOD.cxx. References _switch_vector. Referenced by LODNode::CData::write_datagram(). |
|
Sets the factor that globally scales all LOD's. This factor is applied to the square of the LOD distance, so the larger the number, the lower the detail that is presented. The normal value is 1.0. |
|
Definition at line 221 of file LOD.cxx. References _stress_factor. |
|
Writes the contents of the LOD out to the datagram, presumably in preparation to writing to a Bam file.
Definition at line 153 of file LOD.cxx. References _switch_vector. Referenced by LODNode::CData::make_copy(). |
|
Transforms the LOD specification by the indicated matrix.
Definition at line 85 of file LOD.cxx. References _stress_factor, _switch_vector, dot(), and select_LOD_number. |
|
Definition at line 123 of file LOD.h. Referenced by ~LOD(). |
|
|
|
Definition at line 124 of file LOD.h. Referenced by compute_child(), read_datagram(), write_datagram(), xform(), and ~LOD(). |