HeightfieldTesselator HeightfieldTesselator::HeightfieldTesselator(string const &name); Description: |
generate NodePath HeightfieldTesselator::generate(void); Description: Generates a tree of nodes that represents the heightfield. This can be reparented into the scene. |
getElevation double HeightfieldTesselator::get_elevation(double x, double y); Description: Fetches the elevation at (x,y), where the input coordinate is specified in pixels. This ignores the current tesselation level and instead provides an accurate number. Linear blending is used for non-integral coordinates. |
heightfield PNMImage &HeightfieldTesselator::heightfield(void); Description: Returns a reference to the heightfield (a PNMImage) contained inside the HeightfieldTesselator. You can use the reference to alter the heightfield. |
setFocalPoint void HeightfieldTesselator::set_focal_point(int x, int y); Description: Sets the focal point. The tesselator generates high-resolution terrain around the focal point, and progressively lower and lower resolution terrain as you get farther away. The units are in pixels. |
setHeightfield bool HeightfieldTesselator::set_heightfield(Filename const &filename, PNMFileType *type = ((void *)(0))); Description: Loads the specified greyscale image file into the heightfield. |
setHorizontalScale void HeightfieldTesselator::set_horizontal_scale(double h); Description: Sets the horizontal scale. The default scale is 1.0, meaning that each pixel in the heightfield is 1x1 panda units wide. |
setMaxTriangles void HeightfieldTesselator::set_max_triangles(int n); Description: Sets the max triangles per geom. |
setPolyCount void HeightfieldTesselator::set_poly_count(int n); Description: Sets the polygon-count target. The tesselator usually manages to come within about 20% of the target, plus or minus. |
setVerticalScale void HeightfieldTesselator::set_vertical_scale(double v); Description: Sets the vertical scale. The default scale is 255.0, meaning that each as the gray value ranges from (0-1), the elevation ranges from (0-255) feet. |
setVisibilityRadius void HeightfieldTesselator::set_visibility_radius(int r); Description: Sets the visibility radius. Polygons that are completely outside the radius (relative to the focal point) are cropped away. The cropping is imperfect (all approximations are conservative), so this should be used in conjunction with a far clipping plane, fog, or some other visibility limiting mechanism. The units are in pixels. |
Namable Namable::Namable(string const &initial_name = ("")); Description: |
clearName void Namable::clear_name(void); Description: Resets the Namable's name to empty. |
getClassType static TypeHandle Namable::get_class_type(void); Undocumented function. |
getName string const &Namable::get_name(void) const; Description: |
hasName bool Namable::has_name(void) const; Description: Returns true if the Namable has a nonempty name set, false if the name is empty. |
operator = Namable &Namable::operator =(Namable const &other); Description: |
output void Namable::output(ostream &out) const; In the absence of any definition to the contrary, outputting a Namable will write out its name. Description: Outputs the Namable. This function simply writes the name to the output stream; most Namable derivatives will probably redefine this. |
setName void Namable::set_name(string const &name); Description: |